shallow-clone-shim
Advanced tools
Comparing version 1.1.0 to 2.0.0
'use strict' | ||
const getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || require('get-own-property-descriptors-polyfill') | ||
module.exports = function clone (obj, orig, shim = {}) { | ||
const descriptors = getOwnPropertyDescriptors(orig) | ||
const descriptors = Object.getOwnPropertyDescriptors(orig) | ||
@@ -8,0 +6,0 @@ for (const name of Object.keys(shim)) { |
{ | ||
"name": "shallow-clone-shim", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "Shallow clones an object while respecting the original property descriptors", | ||
"main": "index.js", | ||
"dependencies": { | ||
"get-own-property-descriptors-polyfill": "^1.0.1" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -49,5 +47,5 @@ "standard": "^14.3.1", | ||
"coordinates": [ | ||
55.778258, | ||
12.593204 | ||
55.778278, | ||
12.592982 | ||
] | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
0
4826
8
- Removedget-own-property-descriptors-polyfill@1.0.1(transitive)