cortex-shrinkwrap
Advanced tools
Comparing version 3.0.2 to 4.0.0
@@ -56,4 +56,4 @@ var path = require('path'); | ||
return cb(null, null, json); | ||
} catch (err) { | ||
return cb(err); | ||
} catch (e) { | ||
return cb(e); | ||
} | ||
@@ -76,3 +76,3 @@ }); | ||
traveller.visit(pkg, { | ||
enter: function(node, parent) { | ||
enter: function(node, parent, circular, ref) { | ||
var ret; | ||
@@ -125,2 +125,9 @@ var key = node.pkg.name + '@' + node.pkg.version + node.from; | ||
if (circular && ref) { | ||
n = { | ||
from: node.pkg.name + '@' + node.from, | ||
version: node.pkg.version | ||
}; | ||
} | ||
if (parent) { | ||
@@ -127,0 +134,0 @@ var pkey = parent.pkg.name + '@' + parent.pkg.version + parent.from; |
{ | ||
"name": "cortex-shrinkwrap", | ||
"version": "3.0.2", | ||
"version": "4.0.0", | ||
"description": "Lock down the versions of a package's dependencies", | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
"lint": "./node_modules/.bin/jshint {bin,lib,test}/*.js", | ||
"lint": "./node_modules/.bin/jshint lib/*.js test/*.js", | ||
"test": "npm run lint && ./node_modules/.bin/mocha -R spec test" | ||
@@ -35,4 +35,4 @@ }, | ||
"sorted-object": "~1.0.0", | ||
"cortex-deps-traveller": "^1.2.0" | ||
"cortex-deps-traveller": "^2.0.0" | ||
} | ||
} |
13175
7
258
+ Addedcortex-deps-traveller@2.0.0(transitive)
- Removedcortex-deps-traveller@1.2.4(transitive)
Updatedcortex-deps-traveller@^2.0.0