Socket
Socket
Sign inDemoInstall

fs-extra

Package Overview
Dependencies
Maintainers
3
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.0 to 8.0.1

7

CHANGELOG.md

@@ -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()`

13

lib/util/stat.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc