@zkochan/rimraf
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -5,5 +5,5 @@ const fs = require('fs') | ||
try { | ||
await fs.promises.rmdir(p, { recursive: true, force: true }) | ||
await fs.promises.rm(p, { recursive: true, force: true, maxRetries: 3 }) | ||
} catch (err) { | ||
if (err.code === 'ENOTDIR' || err.code === 'ENOENT') return | ||
if (err.code === 'ENOENT') return | ||
throw err | ||
@@ -15,7 +15,7 @@ } | ||
try { | ||
fs.rmdirSync(p, { recursive: true, force: true }) | ||
fs.rmSync(p, { recursive: true, force: true, maxRetries: 3 }) | ||
} catch (err) { | ||
if (err.code === 'ENOTDIR' || err.code === 'ENOENT') return | ||
if (err.code === 'ENOENT') return | ||
throw err | ||
} | ||
} |
{ | ||
"name": "@zkochan/rimraf", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "rm -rf for Node. Similar to rimraf but returns a promise", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2873