+1
-1
@@ -713,3 +713,3 @@ #!/usr/bin/env node | ||
| var name = "poof"; | ||
| var version = "3.1.0"; | ||
| var version = "3.1.1"; | ||
| var description = "Fast, non-blocking rm -rf alternative. Deletes files instantly while cleanup runs in the background."; | ||
@@ -716,0 +716,0 @@ var packageJson = { |
+8
-10
@@ -1596,3 +1596,8 @@ #!/usr/bin/env node | ||
| const crawl = async (directory) => { | ||
| const entries = await fs.readdir(directory, { withFileTypes: true }); | ||
| const entries = await fs.readdir(directory, { withFileTypes: true }).catch((error) => { | ||
| if (error.code === "ENOENT") { | ||
| return []; | ||
| } | ||
| throw error; | ||
| }); | ||
| const subdirectories = []; | ||
@@ -1809,3 +1814,3 @@ for (const entry of entries) { | ||
| const resolveStart = performance.now(); | ||
| const { files, notFound } = await resolvePatterns(patternArray, { | ||
| const { files } = await resolvePatterns(patternArray, { | ||
| cwd, | ||
@@ -1818,10 +1823,3 @@ dangerous: options?.dangerous, | ||
| debug(`filtered ${files.length} -> ${filesToDelete.length} (removed ${files.length - filesToDelete.length} nested)`); | ||
| const errors = notFound.map((pattern) => { | ||
| const error = new Error(`Path not found: ${pattern}`); | ||
| error.code = "ENOENT"; | ||
| return { | ||
| path: pattern, | ||
| error | ||
| }; | ||
| }); | ||
| const errors = []; | ||
| if (options?.dry) { | ||
@@ -1828,0 +1826,0 @@ return { |
+1
-1
| { | ||
| "name": "poof", | ||
| "version": "3.1.0", | ||
| "version": "3.1.1", | ||
| "description": "Fast, non-blocking rm -rf alternative. Deletes files instantly while cleanup runs in the background.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
122803
-0.06%2802
-0.07%