Rename to hkt.sh

This commit is contained in:
mango
2026-03-21 01:10:53 +08:00
parent 76a263d0f9
commit 8f1171fe99
6676 changed files with 1724268 additions and 0 deletions

21
node_modules/clone-deep/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014-2015, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

72
node_modules/clone-deep/README.md generated vendored Normal file
View File

@@ -0,0 +1,72 @@
# clone-deep [![NPM version](https://img.shields.io/npm/v/clone-deep.svg)](https://www.npmjs.com/package/clone-deep) [![Build Status](https://img.shields.io/travis/jonschlinkert/clone-deep.svg)](https://travis-ci.org/jonschlinkert/clone-deep)
> Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.
The `instanceClone` function is invoked to clone objects that are not "plain" objects (as defined by [](#isPlainObject)`isPlainObject`) if it is provided. If `instanceClone` is not specified, it will not attempt to clone non-plain objects, and will copy the object reference.
## Install
Install with [npm](https://www.npmjs.com/)
```sh
$ npm i clone-deep --save
```
## Usage
```js
var cloneDeep = require('clone-deep');
var obj = {a: 'b'};
var arr = [obj];
var copy = cloneDeep(arr);
obj.c = 'd';
console.log(copy);
//=> [{a: 'b'}]
console.log(arr);
//=> [{a: 'b', c: 'd'}]
```
## Other object utils
* [assign-deep](https://www.npmjs.com/package/assign-deep): Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target… [more](https://www.npmjs.com/package/assign-deep) | [homepage](https://github.com/jonschlinkert/assign-deep)
* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow)
* [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep)
* [mixin-deep](https://www.npmjs.com/package/mixin-deep): Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. | [homepage](https://github.com/jonschlinkert/mixin-deep)
* [mixin-object](https://www.npmjs.com/package/mixin-object): Mixin the own and inherited properties of other objects onto the first object. Pass an… [more](https://www.npmjs.com/package/mixin-object) | [homepage](https://github.com/jonschlinkert/mixin-object)
* [shallow-clone](https://www.npmjs.com/package/shallow-clone): Make a shallow clone of an object, array or primitive. | [homepage](https://github.com/jonschlinkert/shallow-clone)
## Running tests
Install dev dependencies:
```sh
$ npm i -d && npm test
```
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/clone-deep/issues/new).
## Author
**Jon Schlinkert**
* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
Based on [mout's](https://github.com/mout/mout) implementation of deepClone.
## License
Copyright © 2014-2015 [Jon Schlinkert](https://github.com/jonschlinkert)
Released under the MIT license.
***
_This file was generated by [verb](https://github.com/verbose/verb) on December 23, 2015._
<!-- deps:helper-lookup-deps -->

51
node_modules/clone-deep/index.js generated vendored Normal file
View File

@@ -0,0 +1,51 @@
'use strict';
/**
* Module dependenices
*/
var utils = require('./utils');
/**
* Recursively clone native types.
*/
function cloneDeep(val, instanceClone) {
switch (utils.typeOf(val)) {
case 'object':
return cloneObjectDeep(val, instanceClone);
case 'array':
return cloneArrayDeep(val, instanceClone);
default:
return utils.clone(val);
}
}
function cloneObjectDeep(obj, instanceClone) {
if (utils.isObject(obj)) {
var res = {};
utils.forOwn(obj, function(obj, key) {
this[key] = cloneDeep(obj, instanceClone);
}, res);
return res;
} else if (instanceClone) {
return instanceClone(obj);
} else {
return obj;
}
}
function cloneArrayDeep(arr, instanceClone) {
var len = arr.length, res = [];
var i = -1;
while (++i < len) {
res[i] = cloneDeep(arr[i], instanceClone);
}
return res;
}
/**
* Expose `cloneDeep`
*/
module.exports = cloneDeep;

67
node_modules/clone-deep/package.json generated vendored Normal file
View File

@@ -0,0 +1,67 @@
{
"name": "clone-deep",
"description": "Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.",
"version": "0.2.4",
"homepage": "https://github.com/jonschlinkert/clone-deep",
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"repository": "jonschlinkert/clone-deep",
"bugs": {
"url": "https://github.com/jonschlinkert/clone-deep/issues"
},
"license": "MIT",
"files": [
"index.js",
"utils.js"
],
"main": "index.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"dependencies": {
"for-own": "^0.1.3",
"is-plain-object": "^2.0.1",
"kind-of": "^3.0.2",
"lazy-cache": "^1.0.3",
"shallow-clone": "^0.1.2"
},
"devDependencies": {
"mocha": "*",
"should": "*"
},
"keywords": [
"array",
"clone",
"clone-array",
"clone-array-deep",
"clone-date",
"clone-deep",
"clone-object",
"clone-object-deep",
"clone-reg-exp",
"date",
"deep",
"exp",
"for",
"for-in",
"for-own",
"javascript",
"mixin",
"mixin-object",
"object",
"own",
"reg",
"util",
"utility"
],
"verb": {
"related": {
"list": []
},
"plugins": [
"gulp-format-md"
]
}
}

21
node_modules/clone-deep/utils.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
'use strict';
/**
* Lazily required module dependencies
*/
var utils = require('lazy-cache')(require);
var fn = require;
require = utils;
require('is-plain-object', 'isObject');
require('shallow-clone', 'clone');
require('kind-of', 'typeOf');
require('for-own');
require = fn;
/**
* Expose `utils`
*/
module.exports = utils;