module-deps
Advanced tools
Comparing version 3.6.5 to 3.7.0
10
index.js
@@ -51,2 +51,6 @@ var fs = require('fs'); | ||
if (!this.options.modules) this.options.modules = {}; | ||
// If the caller passes options.expose, store resolved pathnames for exposed | ||
// modules in it. If not, set it anyway so it's defined later. | ||
if (!this.options.expose) this.options.expose = {}; | ||
this.pending = 0; | ||
@@ -289,3 +293,7 @@ | ||
if (rec.expose) { | ||
self.options.modules[rec.expose] = file; | ||
// Set options.expose to make the resolved pathname available to the | ||
// caller. They may or may not have requested it, but it's harmless | ||
// to set this if they didn't. | ||
self.options.expose[rec.expose] = | ||
self.options.modules[rec.expose] = file; | ||
} | ||
@@ -292,0 +300,0 @@ if (pkg) self.emit('package', pkg); |
{ | ||
"name": "module-deps", | ||
"version": "3.6.5", | ||
"version": "3.7.0", | ||
"description": "walk the dependency graph to generate json output that can be fed into browser-pack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
51730
95
1291