[Pkg-javascript-commits] [node-module-deps] 357/444: Fix browserify's test/paths.js in Node 0.8 path.delimiter appeared in Node 0.10

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:13 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 a15bc797b33e20ced07ed6b4de46c2252d06aaa9
Author: ElNounch <ElNounch at users.noreply.github.com>
Date:   Thu Apr 2 23:45:33 2015 +0200

    Fix browserify's test/paths.js in Node 0.8
    path.delimiter appeared in Node 0.10
---
 index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 8c49982..01e8b33 100644
--- a/index.js
+++ b/index.js
@@ -39,7 +39,8 @@ function Deps (opts) {
     
     this.paths = opts.paths || process.env.NODE_PATH || '';
     if (typeof this.paths === 'string') {
-        this.paths = this.paths.split(path.delimiter);
+        var delimiter = path.delimiter || (process.platform === 'win32' ? ';' : ':');
+        this.paths = this.paths.split(delimiter);
     }
     this.paths = this.paths
         .filter(Boolean)

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