fs-extra
Advanced tools
Comparing version 0.23.1 to 0.24.0
@@ -0,1 +1,5 @@ | ||
0.24.0 / 2015-08-28 | ||
------------------- | ||
- removed alias `delete()` and `deleteSync()`. See: https://github.com/jprichardson/node-fs-extra/issues/171 | ||
0.23.1 / 2015-08-07 | ||
@@ -2,0 +6,0 @@ ------------------- |
@@ -22,3 +22,3 @@ var fs = require('graceful-fs') | ||
callback = callback || Function() | ||
callback = callback || function () {} | ||
p = path.resolve(p) | ||
@@ -25,0 +25,0 @@ |
@@ -8,3 +8,3 @@ var rimraf = require('rimraf') | ||
function remove (dir, callback) { | ||
return callback ? rimraf(dir, callback) : rimraf(dir, Function()) | ||
return callback ? rimraf(dir, callback) : rimraf(dir, function () {}) | ||
} | ||
@@ -14,6 +14,3 @@ | ||
remove: remove, | ||
removeSync: removeSync, | ||
// alias | ||
delete: remove, | ||
deleteSync: removeSync | ||
removeSync: removeSync | ||
} |
{ | ||
"name": "fs-extra", | ||
"version": "0.23.1", | ||
"version": "0.24.0", | ||
"description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.", | ||
@@ -49,3 +49,3 @@ "homepage": "https://github.com/jprichardson/node-fs-extra", | ||
"semver": "^4.3.6", | ||
"standard": "4.x" | ||
"standard": "5.x" | ||
}, | ||
@@ -52,0 +52,0 @@ "main": "./lib/index", |
@@ -379,7 +379,5 @@ Node.js: fs-extra | ||
Alias: `delete()` | ||
Sync: `removeSync()` | ||
Sync: `removeSync()` / `deleteSync()` | ||
Examples: | ||
@@ -493,3 +491,3 @@ | ||
So, if you want to remove a file or a directory regardless of whether it has contents, just call `fs.remove(path)` or its alias `fs.delete(path)`. If you want to copy a file or a directory whether it has contents, just call `fs.copy(source, destination)`. If you want to create a directory regardless of whether its parent directories exist, just call `fs.mkdirs(path)` or `fs.mkdirp(path)`. | ||
So, if you want to remove a file or a directory regardless of whether it has contents, just call `fs.remove(path)`. If you want to copy a file or a directory whether it has contents, just call `fs.copy(source, destination)`. If you want to create a directory regardless of whether its parent directories exist, just call `fs.mkdirs(path)` or `fs.mkdirp(path)`. | ||
@@ -496,0 +494,0 @@ |
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
61609
0
1155
517