module-deps
Advanced tools
Comparing version 0.2.0 to 0.2.1
15
index.js
@@ -5,3 +5,3 @@ var fs = require('fs'); | ||
var required = require('required'); | ||
var Stream = require('stream'); | ||
var through = require('through'); | ||
@@ -18,4 +18,3 @@ module.exports = function (mains, opts) { | ||
var output = new Stream; | ||
output.readable = true; | ||
var output = through(); | ||
@@ -41,7 +40,7 @@ if (!opts) opts = {}; | ||
}; | ||
output.emit('data', files[file]); | ||
output.queue(files[file]); | ||
}; | ||
walk(rows); | ||
if (--pending === 0) output.emit('end'); | ||
if (--pending === 0) output.queue(null); | ||
} | ||
@@ -62,3 +61,5 @@ | ||
if (pending === 0) process.nextTick(output.emit.bind(output, 'end')); | ||
if (pending === 0) process.nextTick(function () { | ||
output.queue(null); | ||
}); | ||
@@ -81,3 +82,3 @@ return output; | ||
} | ||
output.emit('data', r); | ||
output.queue(r); | ||
@@ -84,0 +85,0 @@ walk(row.deps || []); |
{ | ||
"name": "module-deps", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"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
158
8772