Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zkochan/rimraf

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zkochan/rimraf - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

8

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc