[Pkg-javascript-commits] [node-module-deps] 413/444: pass module-deps options to transforms as `opts._flags`

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:18 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 b22b584b47c18de3cc3e054f5f20177ca138acd0
Author: Michael Williams <michael.williams at enspiral.com>
Date:   Mon Dec 28 03:15:17 2015 +1300

    pass module-deps options to transforms as `opts._flags`
---
 index.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/index.js b/index.js
index c0ca8bb..d737bc4 100644
--- a/index.js
+++ b/index.js
@@ -251,6 +251,7 @@ Deps.prototype.getTransforms = function (file, pkg, opts) {
             trOpts = tr[1];
             tr = tr[0];
         }
+        trOpts._flags = trOpts.hasOwnProperty('_flags') ? trOpts._flags : self.options;
         if (typeof tr === 'function') {
             var t = tr(file, trOpts);
             self.emit('transform', t, 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