@u4/tiny-glob
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -39,3 +39,7 @@ "use strict"; | ||
const dir = (0, path_1.resolve)(opts.cwd, prefix, dirname); | ||
const files = await fs.promises.readdir(dir); | ||
let files = []; | ||
try { | ||
files = await fs.promises.readdir(dir); | ||
} | ||
catch (_e) { } | ||
const { dot, filesOnly } = opts; | ||
@@ -42,0 +46,0 @@ for (const file of files) { |
{ | ||
"name": "@u4/tiny-glob", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "Tiny and extremely fast globbing", | ||
@@ -20,11 +20,6 @@ "repository": { | ||
], | ||
"scripts": { | ||
"bench": "node bench", | ||
"build": "tsc", | ||
"prepare": "npm run build", | ||
"test": "ts-node node_modules/tape/bin/tape test/*.ts | tap-spec" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.8.4", | ||
"@types/tape": "^4.13.2", | ||
"rimraf": "^3.0.2", | ||
"tap-spec": "^5.0.0", | ||
@@ -41,3 +36,9 @@ "tape": "^5.6.1", | ||
"expansion" | ||
] | ||
} | ||
], | ||
"scripts": { | ||
"bench": "node bench", | ||
"build": "tsc", | ||
"clean": "rimraf {.,bench,test,test/helpers}/{*.js,*.d.ts}", | ||
"test": "ts-node node_modules/tape/bin/tape test/*.test.ts | tap-spec" | ||
} | ||
} |
@@ -39,3 +39,7 @@ "use strict"; | ||
const dir = (0, path_1.resolve)(opts.cwd, prefix, dirname); | ||
const files = fs.readdirSync(dir); | ||
let files = []; | ||
try { | ||
fs.readdirSync(dir); | ||
} | ||
catch (e) { } | ||
const { dot, filesOnly } = opts; | ||
@@ -42,0 +46,0 @@ for (const file of files) { |
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
35146
766
6