[Pkg-javascript-commits] [node-module-deps] 170/444: transform event for every transform stream and file pair
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:47:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-module-deps.
commit 0a6fda0424a2de646f545d242576c0257b819878
Author: James Halliday <mail at substack.net>
Date: Sat Feb 8 17:02:30 2014 -0800
transform event for every transform stream and file pair
---
index.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 5ff793d..dda347c 100644
--- a/index.js
+++ b/index.js
@@ -298,9 +298,12 @@ module.exports = function (mains, opts) {
var r = require(res);
if (typeof r !== 'function') {
- cb(new Error('transform not a function'));
+ return cb(new Error('transform not a function'));
}
- else cb(null, r(file));
+
+ var trs = r(file);
+ output.emit('transform', trs, file);
+ cb(null, trs);
});
}
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git
More information about the Pkg-javascript-commits
mailing list