[Pkg-javascript-commits] [node-module-deps] 203/444: load transform code properly but not getting applied

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:56 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 567f5ecd52d768ce88a2beb4c6c415bbd1dc239a
Author: James Halliday <mail at substack.net>
Date:   Fri May 9 01:05:45 2014 -0700

    load transform code properly but not getting applied
---
 index.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index 5b447d3..0e67732 100644
--- a/index.js
+++ b/index.js
@@ -208,14 +208,14 @@ Deps.prototype.getTransforms = function (file, pkg) {
         }
     }
     
-    function loadTransform (file, trOpts, cb) {
+    function loadTransform (id, trOpts, cb) {
         var params = { basedir: path.dirname(file) };
-        nodeResolve(file, params, function nr (err, res, again) {
+        nodeResolve(id, params, function nr (err, res, again) {
             if (err && again) return cb(err);
             
             if (err) {
                 params.basedir = process.cwd();
-                return nodeResolve(file, params, function (e, r) {
+                return nodeResolve(id, params, function (e, r) {
                     nr(e, r, true)
                 });
             }
@@ -256,6 +256,7 @@ Deps.prototype.walk = function (id, parent, cb) {
         if (err) return self.emit('error', err);
         self.readFile(file).pipe(concat(function (body) {
             var src = body.toString('utf8');
+console.log(src); 
             var deps = self.parseDeps(file, src);
             fromDeps(file, src, pkg, deps);
         }));

-- 
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