[Pkg-javascript-commits] [node-module-deps] 271/444: postFilter

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:03 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 48dd485daee81883a65447e1eeadf5906623995d
Author: James Halliday <mail at substack.net>
Date:   Mon Jul 21 23:02:40 2014 -0700

    postFilter
---
 index.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/index.js b/index.js
index ae81958..dc5a254 100644
--- a/index.js
+++ b/index.js
@@ -241,6 +241,9 @@ Deps.prototype.walk = function (id, parent, cb) {
     }
     
     self.resolve(id, parent, function (err, file, pkg) {
+        if (opts.postFilter && !opts.postFilter(id, file, pkg)) {
+            return cb(null, undefined);
+        }
         if (err && rec.source) {
             file = rec.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