fs-extra
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -0,5 +1,10 @@ | ||
8.0.1 / 2019-05-13 | ||
------------------ | ||
- Fix bug `Maximum call stack size exceeded` error in `util/stat` ([#679](https://github.com/jprichardson/node-fs-extra/pull/679)) | ||
8.0.0 / 2019-05-11 | ||
------------------ | ||
**NOTE:** Node.js v6 support is depreciated, and will be dropped in the next major release. | ||
**NOTE:** Node.js v6 support is deprecated, and will be dropped in the next major release. | ||
@@ -6,0 +11,0 @@ - Use `renameSync()` under the hood in `moveSync()` |
@@ -107,7 +107,5 @@ 'use strict' | ||
function checkParentPaths (src, srcStat, dest, funcName, cb) { | ||
const destParent = path.dirname(dest) | ||
if (destParent && | ||
(destParent === path.dirname(src) || | ||
destParent === path.parse(destParent).root) | ||
) return cb() | ||
const srcParent = path.resolve(path.dirname(src)) | ||
const destParent = path.resolve(path.dirname(dest)) | ||
if (destParent === srcParent || destParent === path.parse(destParent).root) return cb() | ||
if (nodeSupportsBigInt()) { | ||
@@ -139,4 +137,5 @@ fs.stat(destParent, { bigint: true }, (err, destStat) => { | ||
function checkParentPathsSync (src, srcStat, dest, funcName) { | ||
const destParent = path.dirname(dest) | ||
if (destParent && (destParent === path.dirname(src) || destParent === path.parse(destParent).root)) return | ||
const srcParent = path.resolve(path.dirname(src)) | ||
const destParent = path.resolve(path.dirname(dest)) | ||
if (destParent === srcParent || destParent === path.parse(destParent).root) return | ||
let destStat | ||
@@ -143,0 +142,0 @@ try { |
{ | ||
"name": "fs-extra", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"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.", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
127303
1652
1