Comparing version 10.3.3 to 10.3.6
{ | ||
"version": "10.3.3", | ||
"version": "10.3.6", | ||
"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, |
@@ -97,3 +97,3 @@ "use strict"; | ||
if (m.match(fullpath)) | ||
true; | ||
return true; | ||
} | ||
@@ -100,0 +100,0 @@ return false; |
@@ -71,2 +71,3 @@ import { Minipass } from 'minipass'; | ||
export type { MatchStream } from './walker.js'; | ||
export type { Path, WalkOptionsWithFileTypesTrue, WalkOptionsWithFileTypesUnset, WalkOptions, FSOption, } from 'path-scurry'; | ||
export declare const glob: typeof glob_ & { | ||
@@ -73,0 +74,0 @@ glob: typeof glob_; |
@@ -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 @@ } |
@@ -94,3 +94,3 @@ // give it a pattern, and it'll be able to tell you if | ||
if (m.match(fullpath)) | ||
true; | ||
return true; | ||
} | ||
@@ -97,0 +97,0 @@ return false; |
@@ -71,2 +71,3 @@ import { Minipass } from 'minipass'; | ||
export type { MatchStream } from './walker.js'; | ||
export type { Path, WalkOptionsWithFileTypesTrue, WalkOptionsWithFileTypesUnset, WalkOptions, FSOption, } from 'path-scurry'; | ||
export declare const glob: typeof glob_ & { | ||
@@ -73,0 +74,0 @@ glob: typeof glob_; |
{ | ||
"version": "10.3.3", | ||
"version": "10.3.6", | ||
"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.6", | ||
"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", |
@@ -92,3 +92,3 @@ # Glob | ||
const timeSortedFiles = results | ||
.sort((a, b) => a.mtimeMS - b.mtimeMS) | ||
.sort((a, b) => a.mtimeMs - b.mtimeMs) | ||
.map(path => path.fullpath()) | ||
@@ -95,0 +95,0 @@ |
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
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
451644
12
4239