Socket
Socket
Sign inDemoInstall

merge-descriptors

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-descriptors - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc