Comparing version 6.0.0 to 6.0.1
@@ -0,1 +1,6 @@ | ||
6.0.1 / 2018-05-09 | ||
------------------ | ||
- Fix `fs.promises` `ExperimentalWarning` on Node v10.1.0 ([#578](https://github.com/jprichardson/node-fs-extra/pull/578)) | ||
6.0.0 / 2018-05-01 | ||
@@ -2,0 +7,0 @@ ------------------ |
@@ -49,2 +49,7 @@ 'use strict' | ||
Object.keys(fs).forEach(key => { | ||
if (key === 'promises') { | ||
// fs.promises is a getter property that triggers ExperimentalWarning | ||
// Don't re-export it here, the getter is defined in "lib/index.js" | ||
return | ||
} | ||
exports[key] = fs[key] | ||
@@ -51,0 +56,0 @@ }) |
@@ -20,1 +20,10 @@ 'use strict' | ||
) | ||
// Export fs.promises as a getter property so that we don't trigger | ||
// ExperimentalWarning before fs.promises is actually accessed. | ||
const fs = require('fs') | ||
if (Object.getOwnPropertyDescriptor(fs, 'promises')) { | ||
Object.defineProperty(module.exports, 'promises', { | ||
get () { return fs.promises } | ||
}) | ||
} |
{ | ||
"name": "fs-extra", | ||
"version": "6.0.0", | ||
"version": "6.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 @@ "homepage": "https://github.com/jprichardson/node-fs-extra", |
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
150040
1638
2