updated npm modules
This commit is contained in:
10
node_modules/mimic-fn/index.js
generated
vendored
10
node_modules/mimic-fn/index.js
generated
vendored
@@ -1,9 +1,13 @@
|
||||
'use strict';
|
||||
module.exports = (to, from) => {
|
||||
// TODO: use `Reflect.ownKeys()` when targeting Node.js 6
|
||||
for (const prop of Object.getOwnPropertyNames(from).concat(Object.getOwnPropertySymbols(from))) {
|
||||
|
||||
const mimicFn = (to, from) => {
|
||||
for (const prop of Reflect.ownKeys(from)) {
|
||||
Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
|
||||
}
|
||||
|
||||
return to;
|
||||
};
|
||||
|
||||
module.exports = mimicFn;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = mimicFn;
|
||||
|
||||
32
node_modules/mimic-fn/package.json
generated
vendored
32
node_modules/mimic-fn/package.json
generated
vendored
@@ -1,26 +1,26 @@
|
||||
{
|
||||
"_from": "mimic-fn@^1.0.0",
|
||||
"_id": "mimic-fn@1.2.0",
|
||||
"_from": "mimic-fn@^2.0.0",
|
||||
"_id": "mimic-fn@2.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
|
||||
"_integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
|
||||
"_location": "/mimic-fn",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "mimic-fn@^1.0.0",
|
||||
"raw": "mimic-fn@^2.0.0",
|
||||
"name": "mimic-fn",
|
||||
"escapedName": "mimic-fn",
|
||||
"rawSpec": "^1.0.0",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/mem"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
|
||||
"_shasum": "820c86a39334640e99516928bd03fca88057d022",
|
||||
"_spec": "mimic-fn@^1.0.0",
|
||||
"_resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
|
||||
"_shasum": "7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b",
|
||||
"_spec": "mimic-fn@^2.0.0",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\mem",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
@@ -34,14 +34,16 @@
|
||||
"deprecated": false,
|
||||
"description": "Make a function mimic another one",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.1",
|
||||
"xo": "^0.24.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
"node": ">=6"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/mimic-fn#readme",
|
||||
"keywords": [
|
||||
@@ -66,7 +68,7 @@
|
||||
"url": "git+https://github.com/sindresorhus/mimic-fn.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"version": "1.2.0"
|
||||
"version": "2.1.0"
|
||||
}
|
||||
|
||||
5
node_modules/mimic-fn/readme.md
generated
vendored
5
node_modules/mimic-fn/readme.md
generated
vendored
@@ -21,7 +21,7 @@ function foo() {}
|
||||
foo.unicorn = '🦄';
|
||||
|
||||
function wrapper() {
|
||||
return foo() {};
|
||||
return foo();
|
||||
}
|
||||
|
||||
console.log(wrapper.name);
|
||||
@@ -43,7 +43,7 @@ It will copy over the properties `name`, `length`, `displayName`, and any custom
|
||||
|
||||
### mimicFn(to, from)
|
||||
|
||||
It will modify `to` and return it.
|
||||
Modifies the `to` function and returns it.
|
||||
|
||||
#### to
|
||||
|
||||
@@ -61,6 +61,7 @@ Function to mimic.
|
||||
## Related
|
||||
|
||||
- [rename-fn](https://github.com/sindresorhus/rename-fn) - Rename a function
|
||||
- [keep-func-props](https://github.com/ehmicky/keep-func-props) - Wrap a function without changing its name, length and other properties
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Reference in New Issue
Block a user