[Pkg-javascript-commits] [node-module-deps] 342/444: include basedir in the top-parent

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:11 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 f55c8b54c9ff1338bbff7519b3ec852acfc3acbf
Author: James Halliday <mail at substack.net>
Date:   Mon Feb 16 20:07:52 2015 -0800

    include basedir in the top-parent
---
 index.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 1bd2ab1..71a2c38 100644
--- a/index.js
+++ b/index.js
@@ -56,7 +56,12 @@ function Deps (opts) {
     this.pending = 0;
     
     var topfile = path.join(this.basedir, '__fake.js');
-    this.top = { id: topfile, filename: topfile, paths: this.paths };
+    this.top = {
+        id: topfile,
+        filename: topfile,
+        paths: this.paths,
+        basedir: this.basedir
+    };
 }
 
 Deps.prototype._transform = function (row, enc, next) {

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