module-deps
Advanced tools
Comparing version 3.5.2 to 3.5.3
17
index.js
@@ -142,3 +142,3 @@ var fs = require('fs'); | ||
this.emit('file', file, id); | ||
return rs.pipe(this.getTransforms(file, pkg)); | ||
return rs; | ||
}; | ||
@@ -290,5 +290,12 @@ | ||
self.readFile(file, id, pkg).pipe(concat(function (body) { | ||
fromSource(body.toString('utf8')); | ||
})); | ||
self.readFile(file, id, pkg) | ||
.pipe( | ||
has(parent.modules, id) | ||
? through() | ||
: self.getTransforms(file, pkg) | ||
) | ||
.pipe(concat(function (body) { | ||
fromSource(body.toString('utf8')); | ||
})) | ||
; | ||
@@ -453,3 +460,3 @@ function fromSource (src) { | ||
function has (obj, key) { | ||
return Object.prototype.hasOwnProperty.call(obj, key); | ||
return obj && Object.prototype.hasOwnProperty.call(obj, key); | ||
} | ||
@@ -456,0 +463,0 @@ |
{ | ||
"name": "module-deps", | ||
"version": "3.5.2", | ||
"version": "3.5.3", | ||
"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
45957
1141