module-deps
Advanced tools
Comparing version 3.5.5 to 3.5.6
@@ -133,2 +133,3 @@ var fs = require('fs'); | ||
Deps.prototype.readFile = function (file, id, pkg) { | ||
var self = this; | ||
var tr = through(); | ||
@@ -141,3 +142,3 @@ if (this.cache && this.cache[file]) { | ||
var rs = fs.createReadStream(file); | ||
rs.on('error', function (err) { tr.emit('error', err) }); | ||
rs.on('error', function (err) { self.emit('error', err) }); | ||
this.emit('file', file, id); | ||
@@ -274,3 +275,3 @@ return rs; | ||
self.emit('missing', id, parent); | ||
return cb(null, undefined); | ||
return cb && cb(null, undefined); | ||
} | ||
@@ -277,0 +278,0 @@ if (err) return self.emit('error', err); |
{ | ||
"name": "module-deps", | ||
"version": "3.5.5", | ||
"version": "3.5.6", | ||
"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
46226
1146