@zkochan/rimraf
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,6 +0,6 @@ | ||
const { rimraf } = require('rimraf') | ||
const fs = require('fs') | ||
module.exports = async (p) => { | ||
try { | ||
await rimraf(p) | ||
await fs.promises.rmdir(p, { recursive: true, force: true }) | ||
} catch (err) { | ||
@@ -14,3 +14,3 @@ if (err.code === 'ENOTDIR' || err.code === 'ENOENT') return | ||
try { | ||
rimraf.sync(p) | ||
fs.rmdirSync(p, { recursive: true, force: true }) | ||
} catch (err) { | ||
@@ -17,0 +17,0 @@ if (err.code === 'ENOTDIR' || err.code === 'ENOENT') return |
{ | ||
"name": "@zkochan/rimraf", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "rm -rf for Node. Similar to rimraf but returns a promise", | ||
@@ -23,10 +23,18 @@ "main": "index.js", | ||
"devDependencies": { | ||
"standard": "^16.0.4" | ||
"standard": "^16.0.4", | ||
"tempy": "^1.0.1", | ||
"jest": "^27.4.3" | ||
}, | ||
"dependencies": { | ||
"rimraf": "^5.0.7" | ||
"jest": { | ||
"testEnvironment": "node" | ||
}, | ||
"standard": { | ||
"globals": [ | ||
"test", | ||
"expect" | ||
] | ||
}, | ||
"scripts": { | ||
"test": "standard" | ||
"test": "standard && jest" | ||
} | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
2901
0
3
2
- Removedrimraf@^5.0.7
- Removed@isaacs/cliui@8.0.2(transitive)
- Removed@pkgjs/parseargs@0.11.0(transitive)
- Removedansi-regex@5.0.16.1.0(transitive)
- Removedansi-styles@4.3.06.2.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removedemoji-regex@8.0.09.2.2(transitive)
- Removedforeground-child@3.3.0(transitive)
- Removedglob@10.4.5(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedjackspeak@3.4.3(transitive)
- Removedlru-cache@10.4.3(transitive)
- Removedminimatch@9.0.5(transitive)
- Removedminipass@7.1.2(transitive)
- Removedpackage-json-from-dist@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-scurry@1.11.1(transitive)
- Removedrimraf@5.0.10(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@4.1.0(transitive)
- Removedstring-width@4.2.35.1.2(transitive)
- Removedstrip-ansi@6.0.17.1.0(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwrap-ansi@7.0.08.1.0(transitive)