Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

poof

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poof - npm Package Compare versions

Comparing version
3.1.0
to
3.1.1
+1
-1
dist/cli.mjs

@@ -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 = {

@@ -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 {

{
"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": [