[Pkg-javascript-commits] [node-module-deps] 36/444: allow an opts.packageFilter
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:47:41 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 0a40309ebf4d0bd10c905ebe3271e49bf56c6e15
Author: James Halliday <mail at substack.net>
Date: Wed Feb 27 04:35:11 2013 -0800
allow an opts.packageFilter
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index fa9dabc..582b396 100644
--- a/index.js
+++ b/index.js
@@ -44,7 +44,7 @@ module.exports = function (mains, opts) {
&& pkg.browserify.transform) {
trx = [].concat(pkg.browserify.transform);
}
- return pkg;
+ return opts.packageFilter ? opts.packageFilter(pkg) : pkg;
};
resolve(id, parent, function (err, file) {
--
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