diff options
Diffstat (limited to 'lib/ls.js')
-rw-r--r-- | lib/ls.js | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -14,7 +14,6 @@ var semver = require('semver') var color = require('ansicolors') var npa = require('npm-package-arg') var sortedObject = require('sorted-object') -var extend = Object.assign || require('util')._extend var npm = require('./npm.js') var mutateIntoLogicalTree = require('./install/mutate-into-logical-tree.js') var computeMetadata = require('./install/deps.js').computeMetadata @@ -266,7 +265,7 @@ function unloop (root) { var dep = deps[d] if (dep.missing && !dep.dependencies) return if (dep.path && seen[dep.path]) { - dep = deps[d] = extend({}, dep) + dep = deps[d] = Object.assign({}, dep) dep.dependencies = {} dep._deduped = path.relative(root.path, dep.path).replace(/node_modules\//g, '') return |