glob
Advanced tools
Comparing version 10.3.3 to 10.3.4
{ | ||
"version": "10.3.3", | ||
"version": "10.3.4", | ||
"type": "commonjs" | ||
} |
@@ -7,2 +7,3 @@ #!/usr/bin/env node | ||
const jackspeak_1 = require("jackspeak"); | ||
const path_1 = require("path"); | ||
const package_json_1 = require("../package.json"); | ||
@@ -233,3 +234,5 @@ const index_js_1 = require("./index.js"); | ||
: positionals.filter(p => !(0, fs_1.existsSync)(p)); | ||
const matches = values.all ? [] : positionals.filter(p => (0, fs_1.existsSync)(p)); | ||
const matches = values.all | ||
? [] | ||
: positionals.filter(p => (0, fs_1.existsSync)(p)).map(p => (0, path_1.join)(p)); | ||
const stream = (0, index_js_1.globStream)(patterns, { | ||
@@ -236,0 +239,0 @@ absolute: values.absolute, |
@@ -141,5 +141,2 @@ "use strict"; | ||
const c = t.resolve(p); | ||
// we can be reasonably sure that .. is a readable dir | ||
if (c.isUnknown() && p !== '..') | ||
break; | ||
t = c; | ||
@@ -160,10 +157,6 @@ pattern = rest; | ||
if (typeof p === 'string') { | ||
// must be final entry | ||
if (!rest) { | ||
const ifDir = p === '..' || p === '' || p === '.'; | ||
this.matches.add(t.resolve(p), absolute, ifDir); | ||
} | ||
else { | ||
this.subwalks.add(t, pattern); | ||
} | ||
// must not be final entry, otherwise we would have | ||
// concatenated it earlier. | ||
const ifDir = p === '..' || p === '' || p === '.'; | ||
this.matches.add(t.resolve(p), absolute, ifDir); | ||
continue; | ||
@@ -170,0 +163,0 @@ } |
{ | ||
"version": "10.3.3", | ||
"version": "10.3.4", | ||
"type": "module" | ||
} |
@@ -135,5 +135,2 @@ // synchronous utility for filtering entries and calculating subwalks | ||
const c = t.resolve(p); | ||
// we can be reasonably sure that .. is a readable dir | ||
if (c.isUnknown() && p !== '..') | ||
break; | ||
t = c; | ||
@@ -154,10 +151,6 @@ pattern = rest; | ||
if (typeof p === 'string') { | ||
// must be final entry | ||
if (!rest) { | ||
const ifDir = p === '..' || p === '' || p === '.'; | ||
this.matches.add(t.resolve(p), absolute, ifDir); | ||
} | ||
else { | ||
this.subwalks.add(t, pattern); | ||
} | ||
// must not be final entry, otherwise we would have | ||
// concatenated it earlier. | ||
const ifDir = p === '..' || p === '' || p === '.'; | ||
this.matches.add(t.resolve(p), absolute, ifDir); | ||
continue; | ||
@@ -164,0 +157,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "the most correct and second fastest glob implementation in JavaScript", | ||
"version": "10.3.3", | ||
"version": "10.3.4", | ||
"bin": "./dist/cjs/src/bin.js", | ||
@@ -34,4 +34,3 @@ "repository": { | ||
"prepublishOnly": "git push origin --follow-tags", | ||
"preprepare": "rm -rf dist", | ||
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash fixup.sh", | ||
"prepare": "tsc -p tsconfig/cjs.json && tsc -p tsconfig/esm.json && bash fixup.sh", | ||
"pretest": "npm run prepare", | ||
@@ -42,3 +41,3 @@ "presnap": "npm run prepare", | ||
"format": "prettier --write . --loglevel warn", | ||
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts", | ||
"typedoc": "typedoc --tsconfig tsconfig/esm.json ./src/*.ts", | ||
"prepublish": "npm run benchclean", | ||
@@ -79,2 +78,3 @@ "profclean": "rm -f v8.log profile.txt", | ||
"rimraf": "^4.1.3", | ||
"sync-content": "^1.0.2", | ||
"tap": "^16.3.4", | ||
@@ -81,0 +81,0 @@ "ts-node": "^10.9.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
450892
12
4237