merge-descriptors
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -34,3 +34,3 @@ /*! | ||
function merge(dest, src, redefine) { | ||
function merge (dest, src, redefine) { | ||
if (!dest) { | ||
@@ -49,5 +49,5 @@ throw new TypeError('argument dest is required') | ||
Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName(name) { | ||
Object.getOwnPropertyNames(src).forEach(function forEachOwnPropertyName (name) { | ||
if (!redefine && hasOwnProperty.call(dest, name)) { | ||
// Skip desriptor | ||
// Skip descriptor | ||
return | ||
@@ -54,0 +54,0 @@ } |
{ | ||
"name": "merge-descriptors", | ||
"description": "Merge objects using descriptors", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": { | ||
@@ -16,6 +16,12 @@ "name": "Jonathan Ong", | ||
"license": "MIT", | ||
"repository": "component/merge-descriptors", | ||
"repository": "sindresorhus/merge-descriptors", | ||
"devDependencies": { | ||
"istanbul": "0.4.1", | ||
"mocha": "1.21.5" | ||
"eslint": "5.9.0", | ||
"eslint-config-standard": "12.0.0", | ||
"eslint-plugin-import": "2.14.0", | ||
"eslint-plugin-node": "7.0.1", | ||
"eslint-plugin-promise": "4.0.1", | ||
"eslint-plugin-standard": "4.0.0", | ||
"mocha": "5.2.0", | ||
"nyc": "13.1.0" | ||
}, | ||
@@ -29,6 +35,6 @@ "files": [ | ||
"scripts": { | ||
"test": "mocha --reporter spec --bail --check-leaks test/", | ||
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/" | ||
"lint": "eslint .", | ||
"test": "mocha test/", | ||
"test-cov": "nyc --reporter=html --reporter=text npm test" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# Merge Descriptors | ||
# merge-descriptors | ||
@@ -30,3 +30,4 @@ [![NPM Version][npm-image]][npm-url] | ||
Redefines `destination`'s descriptors with `source`'s. | ||
Redefines `destination`'s descriptors with `source`'s. The return value is the | ||
`destination` object. | ||
@@ -36,3 +37,3 @@ ### merge(destination, source, false) | ||
Defines `source`'s descriptors on `destination` if `destination` does not have | ||
a descriptor by the same name. | ||
a descriptor by the same name. The return value is the `destination` object. | ||
@@ -39,0 +40,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
5024
50
8
1