[Pkg-javascript-commits] [node-module-deps] 261/444: set top parent path to basedir

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:01 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 cf50981a2ae0cbeb2e0c309a8b0215b5739a8f6c
Author: James Halliday <mail at substack.net>
Date:   Sun Jul 20 16:10:01 2014 -0700

    set top parent path to basedir
---
 index.js     | 4 +++-
 package.json | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 96b5a79..6f9b108 100644
--- a/index.js
+++ b/index.js
@@ -44,7 +44,9 @@ function Deps (opts) {
     this.resolver = opts.resolve || browserResolve;
     this.options = opts;
     this.pending = 0;
-    this.top = { id: '/', filename: '/', paths: this.paths };
+    
+    var topfile = path.join(this.basedir, '__fake.js');
+    this.top = { id: topfile, filename: topfile, paths: this.paths };
 }
 
 Deps.prototype._transform = function (row, enc, next) {
diff --git a/package.json b/package.json
index 45f9a87..b06f675 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
   },
   "dependencies": {
     "JSONStream": "~0.7.1",
-    "browser-resolve": "~1.2.4",
+    "browser-resolve": "^1.3.1",
     "concat-stream": "~1.4.5",
     "detective": "~3.1.0",
     "duplexer2": "0.0.2",

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