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

rename-overwrite

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rename-overwrite - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

8

index.js

@@ -40,2 +40,10 @@ 'use strict'

case 'ENOENT':
try {
await fs.promises.stat(oldPath)
} catch (statErr) {
// If the source file does not exist, we cannot possible rename it
if (statErr.code === 'ENOENT') {
throw statErr
}
}
await fs.promises.mkdir(path.dirname(newPath), { recursive: true })

@@ -42,0 +50,0 @@ await renameOverwrite(oldPath, newPath)

2

package.json
{
"name": "rename-overwrite",
"version": "3.1.1",
"version": "3.1.2",
"description": "Like `fs.rename` but overwrites existing file or directory",

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