Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2014-12-25 14:07:19 +0300
committerForrest L Norvell <forrest@npmjs.com>2014-12-25 14:07:19 +0300
commit9b9de06a99893b40aa23f0335726dec6df7979db (patch)
treeab93c3d1bc0c7dddc32e905ac5d8c11443495210 /node_modules/glob
parent03a9fc43607de0438173f197be2f68aaa4e7ff9d (diff)
glob@4.3.2
Better handling of trailing slashes.
Diffstat (limited to 'node_modules/glob')
-rw-r--r--node_modules/glob/glob.js3
-rw-r--r--node_modules/glob/package.json25
-rw-r--r--node_modules/glob/sync.js3
3 files changed, 19 insertions, 12 deletions
diff --git a/node_modules/glob/glob.js b/node_modules/glob/glob.js
index 60761fbc3..8c9907821 100644
--- a/node_modules/glob/glob.js
+++ b/node_modules/glob/glob.js
@@ -569,10 +569,13 @@ Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {
return cb()
if (prefix && isAbsolute(prefix) && !this.nomount) {
+ var trail = /[\/\\]$/.test(prefix)
if (prefix.charAt(0) === "/") {
prefix = path.join(this.root, prefix)
} else {
prefix = path.resolve(this.root, prefix)
+ if (trail)
+ prefix += '/'
}
}
diff --git a/node_modules/glob/package.json b/node_modules/glob/package.json
index 14d053236..214a26045 100644
--- a/node_modules/glob/package.json
+++ b/node_modules/glob/package.json
@@ -6,7 +6,7 @@
},
"name": "glob",
"description": "a little globber",
- "version": "4.3.1",
+ "version": "4.3.2",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/node-glob.git"
@@ -34,23 +34,24 @@
},
"scripts": {
"prepublish": "npm run benchclean",
- "test": "rm -f v8.log profile.txt; tap test/*.js",
- "test-regen": "rm -f v8.log profile.txt; TEST_REGEN=1 node test/00-setup.js",
+ "profclean": "rm -f v8.log profile.txt",
+ "test": "npm run profclean && tap test/*.js",
+ "test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js",
"bench": "bash benchmark.sh",
"prof": "bash prof.sh && cat profile.txt",
"benchclean": "bash benchclean.sh"
},
"license": "ISC",
- "gitHead": "bc6458731a67f8864571a989906bc3d8d6f4dd80",
+ "gitHead": "941d53c8ab6216f43a6f5e8e01245364ba90cfe9",
"bugs": {
"url": "https://github.com/isaacs/node-glob/issues"
},
"homepage": "https://github.com/isaacs/node-glob",
- "_id": "glob@4.3.1",
- "_shasum": "9d09096f89b4d30949e784e83f312af3ca04ec14",
- "_from": "glob@>=4.3.1 <4.4.0",
- "_npmVersion": "2.1.11",
- "_nodeVersion": "0.10.16",
+ "_id": "glob@4.3.2",
+ "_shasum": "351ec7dafc29256b253ad86cd6b48c5a3404b76d",
+ "_from": "glob@>=4.3.2 <4.4.0",
+ "_npmVersion": "2.1.14",
+ "_nodeVersion": "0.10.33",
"_npmUser": {
"name": "isaacs",
"email": "i@izs.me"
@@ -62,10 +63,10 @@
}
],
"dist": {
- "shasum": "9d09096f89b4d30949e784e83f312af3ca04ec14",
- "tarball": "http://registry.npmjs.org/glob/-/glob-4.3.1.tgz"
+ "shasum": "351ec7dafc29256b253ad86cd6b48c5a3404b76d",
+ "tarball": "http://registry.npmjs.org/glob/-/glob-4.3.2.tgz"
},
"directories": {},
- "_resolved": "https://registry.npmjs.org/glob/-/glob-4.3.1.tgz",
+ "_resolved": "https://registry.npmjs.org/glob/-/glob-4.3.2.tgz",
"readme": "ERROR: No README data found!"
}
diff --git a/node_modules/glob/sync.js b/node_modules/glob/sync.js
index 9730ade3c..a7f9f52da 100644
--- a/node_modules/glob/sync.js
+++ b/node_modules/glob/sync.js
@@ -337,10 +337,13 @@ GlobSync.prototype._processSimple = function (prefix, index) {
return
if (prefix && isAbsolute(prefix) && !this.nomount) {
+ var trail = /[\/\\]$/.test(prefix)
if (prefix.charAt(0) === "/") {
prefix = path.join(this.root, prefix)
} else {
prefix = path.resolve(this.root, prefix)
+ if (trail)
+ prefix += '/'
}
}