module-deps
Advanced tools
Comparing version 0.13.1 to 0.14.0
@@ -14,2 +14,3 @@ var fs = require('fs'); | ||
var cache = opts.cache; | ||
var pkgCache = opts.packageCache; | ||
@@ -69,7 +70,8 @@ if (!Array.isArray(mains)) mains = [ mains ].filter(Boolean); | ||
var c = opts.cache && opts.cache[parent.id]; | ||
var c = cache && cache[parent.id]; | ||
var resolver = c && typeof c === 'object' | ||
&& !Buffer.isBuffer(c) && c.deps[id] | ||
? function (xid, xparent, cb) { | ||
cb(null, opts.cache[parent.id].deps[id]); | ||
var file = cache[parent.id].deps[id]; | ||
cb(null, file, pkgCache && pkgCache[file]); | ||
} | ||
@@ -76,0 +78,0 @@ : resolve; |
{ | ||
"name": "module-deps", | ||
"version": "0.13.1", | ||
"version": "0.14.0", | ||
"description": "walk the dependency graph to generate json output that can be fed into browser-pack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
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
27885
643
143