rename-overwrite
Advanced tools
Comparing version 3.1.2 to 4.0.0
# rename-overwrite | ||
## 4.0.0 | ||
### Breaking Changes | ||
- Drop Node.js 10 support | ||
## 3.1.0 | ||
@@ -4,0 +10,0 @@ |
'use strict' | ||
const fs = require('fs') | ||
const path = require('path') | ||
const promisify = require('util').promisify | ||
const rimraf = promisify(require('rimraf')) | ||
const rimrafSync = require('rimraf').sync | ||
const rimraf = require('@zkochan/rimraf') | ||
@@ -65,3 +63,3 @@ module.exports = async function renameOverwrite (oldPath, newPath) { | ||
case 'EPERM': // weird Windows stuff | ||
rimrafSync(newPath) | ||
rimraf.sync(newPath) | ||
fs.renameSync(oldPath, newPath) | ||
@@ -68,0 +66,0 @@ return |
{ | ||
"name": "rename-overwrite", | ||
"version": "3.1.2", | ||
"version": "4.0.0", | ||
"description": "Like `fs.rename` but overwrites existing file or directory", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=10.12" | ||
"node": ">=12.10" | ||
}, | ||
@@ -30,5 +30,2 @@ "scripts": { | ||
"homepage": "https://github.com/zkochan/packages/tree/master/rename-overwrite#readme", | ||
"dependencies": { | ||
"rimraf": "^3.0.2" | ||
}, | ||
"devDependencies": { | ||
@@ -41,3 +38,6 @@ "load-json-file": "6.2.0", | ||
"write-json-file": "^4.3.0" | ||
}, | ||
"dependencies": { | ||
"@zkochan/rimraf": "^2.1.0" | ||
} | ||
} |
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
5292
77
+ Added@zkochan/rimraf@^2.1.0
+ Added@zkochan/rimraf@2.1.3(transitive)
- Removedrimraf@^3.0.2