aboutsummaryrefslogtreecommitdiff
path: root/node_modules/fs-extra
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/fs-extra
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
downloadwallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz
update packages
Diffstat (limited to 'node_modules/fs-extra')
-rw-r--r--node_modules/fs-extra/.npmignore8
-rw-r--r--node_modules/fs-extra/CHANGELOG.md13
-rw-r--r--node_modules/fs-extra/docs/copy.md2
-rw-r--r--node_modules/fs-extra/docs/fs-read-write.md2
-rw-r--r--node_modules/fs-extra/docs/outputJson-sync.md1
-rw-r--r--node_modules/fs-extra/docs/outputJson.md1
-rw-r--r--node_modules/fs-extra/docs/writeJson-sync.md1
-rw-r--r--node_modules/fs-extra/docs/writeJson.md1
-rw-r--r--node_modules/fs-extra/lib/fs/index.js12
-rw-r--r--node_modules/fs-extra/lib/remove/rimraf.js4
-rw-r--r--node_modules/fs-extra/package.json8
11 files changed, 34 insertions, 19 deletions
diff --git a/node_modules/fs-extra/.npmignore b/node_modules/fs-extra/.npmignore
deleted file mode 100644
index 68eefb7b7..000000000
--- a/node_modules/fs-extra/.npmignore
+++ /dev/null
@@ -1,8 +0,0 @@
-.nyc_output/
-coverage/
-test/
-.travis.yml
-appveyor.yml
-lib/**/__tests__/
-test/readme.md
-test.js
diff --git a/node_modules/fs-extra/CHANGELOG.md b/node_modules/fs-extra/CHANGELOG.md
index ad514e507..29a37b521 100644
--- a/node_modules/fs-extra/CHANGELOG.md
+++ b/node_modules/fs-extra/CHANGELOG.md
@@ -1,3 +1,16 @@
+4.0.3 / 2017-12-05
+------------------
+
+- Fix wrong `chmod` values in `fs.remove()` [#501](https://github.com/jprichardson/node-fs-extra/pull/501)
+- Fix `TypeError` on systems that don't have some `fs` operations like `lchown` [#520](https://github.com/jprichardson/node-fs-extra/pull/520)
+
+4.0.2 / 2017-09-12
+------------------
+
+- Added `EOL` option to `writeJson*` & `outputJson*` (via upgrade to jsonfile v4)
+- Added promise support to [`fs.copyFile()`](https://nodejs.org/api/fs.html#fs_fs_copyfile_src_dest_flags_callback) in Node 8.5+
+- Added `.js` extension to `main` field in `package.json` for better tooling compatibility. [#485](https://github.com/jprichardson/node-fs-extra/pull/485)
+
4.0.1 / 2017-07-31
------------------
diff --git a/node_modules/fs-extra/docs/copy.md b/node_modules/fs-extra/docs/copy.md
index ff0811f50..84407261e 100644
--- a/node_modules/fs-extra/docs/copy.md
+++ b/node_modules/fs-extra/docs/copy.md
@@ -3,7 +3,7 @@
Copy a file or directory. The directory can have contents. Like `cp -r`.
- `src` `<String>`
-- `dest` `<String>`
+- `dest` `<String>` Note that if `src` is a file, `dest` cannot be a directory (see [issue #323](https://github.com/jprichardson/node-fs-extra/issues/323)).
- `options` `<Object>`
- `overwrite` `<boolean>`: overwrite existing file or directory, default is `true`. _Note that the copy operation will silently fail if you set this to `false` and the destination exists._ Use the `errorOnExist` option to change this behavior.
- `errorOnExist` `<boolean>`: when `overwrite` is `false` and the destination exists, throw an error. Default is `false`.
diff --git a/node_modules/fs-extra/docs/fs-read-write.md b/node_modules/fs-extra/docs/fs-read-write.md
index 5e5f42070..805ea3c38 100644
--- a/node_modules/fs-extra/docs/fs-read-write.md
+++ b/node_modules/fs-extra/docs/fs-read-write.md
@@ -2,7 +2,7 @@
[`fs.read()`](https://nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callback) & [`fs.write()`](https://nodejs.org/api/fs.html#fs_fs_write_fd_buffer_offset_length_position_callback) are different from other `fs` methods in that their callbacks are called with 3 arguments instead of the usual 2 arguments.
-If you're using them with callbacks, they will behave as usual. However, their promise usage is a little different. `fs-extra` promisifies these methods like [`util.promisify()`](https://nodejs.org/api/util.html#util_util_promisify_original) (only availible in Node 8+) does.
+If you're using them with callbacks, they will behave as usual. However, their promise usage is a little different. `fs-extra` promisifies these methods like [`util.promisify()`](https://nodejs.org/api/util.html#util_util_promisify_original) (only available in Node 8+) does.
Here's the example promise usage:
diff --git a/node_modules/fs-extra/docs/outputJson-sync.md b/node_modules/fs-extra/docs/outputJson-sync.md
index 13c214d1b..ef78f802d 100644
--- a/node_modules/fs-extra/docs/outputJson-sync.md
+++ b/node_modules/fs-extra/docs/outputJson-sync.md
@@ -8,6 +8,7 @@ Almost the same as [`writeJsonSync`](writeJson-sync.md), except that if the dire
- `object` `<Object>`
- `options` `<Object>`
- `spaces` `<Number|String>` Number of spaces to indent; or a string to use for indentation (i.e. pass `'\t'` for tab indentation). See [the docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_space_argument) for more info.
+ - `EOL` `<String>` Set EOL character. Default is `\n`.
- `replacer` [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter)
- Also accepts [`fs.writeFileSync` options](https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options)
diff --git a/node_modules/fs-extra/docs/outputJson.md b/node_modules/fs-extra/docs/outputJson.md
index d3fbe670f..7156991e2 100644
--- a/node_modules/fs-extra/docs/outputJson.md
+++ b/node_modules/fs-extra/docs/outputJson.md
@@ -8,6 +8,7 @@ Almost the same as [`writeJson`](writeJson.md), except that if the directory doe
- `object` `<Object>`
- `options` `<Object>`
- `spaces` `<Number|String>` Number of spaces to indent; or a string to use for indentation (i.e. pass `'\t'` for tab indentation). See [the docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_space_argument) for more info.
+ - `EOL` `<String>` Set EOL character. Default is `\n`.
- `replacer` [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter)
- Also accepts [`fs.writeFile` options](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback)
- `callback` `<Function>`
diff --git a/node_modules/fs-extra/docs/writeJson-sync.md b/node_modules/fs-extra/docs/writeJson-sync.md
index d2a3ef642..c22459db8 100644
--- a/node_modules/fs-extra/docs/writeJson-sync.md
+++ b/node_modules/fs-extra/docs/writeJson-sync.md
@@ -8,6 +8,7 @@ Writes an object to a JSON file.
- `object` `<Object>`
- `options` `<Object>`
- `spaces` `<Number|String>` Number of spaces to indent; or a string to use for indentation (i.e. pass `'\t'` for tab indentation). See [the docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_space_argument) for more info.
+ - `EOL` `<String>` Set EOL character. Default is `\n`.
- `replacer` [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter)
- Also accepts [`fs.writeFileSync` options](https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options)
diff --git a/node_modules/fs-extra/docs/writeJson.md b/node_modules/fs-extra/docs/writeJson.md
index af94ffc52..8e35271fb 100644
--- a/node_modules/fs-extra/docs/writeJson.md
+++ b/node_modules/fs-extra/docs/writeJson.md
@@ -8,6 +8,7 @@ Writes an object to a JSON file.
- `object` `<Object>`
- `options` `<Object>`
- `spaces` `<Number|String>` Number of spaces to indent; or a string to use for indentation (i.e. pass `'\t'` for tab indentation). See [the docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_space_argument) for more info.
+ - `EOL` `<String>` Set EOL character. Default is `\n`.
- `replacer` [JSON replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter)
- Also accepts [`fs.writeFile` options](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback)
- `callback` `<Function>`
diff --git a/node_modules/fs-extra/lib/fs/index.js b/node_modules/fs-extra/lib/fs/index.js
index 551ca6a09..1821fd000 100644
--- a/node_modules/fs-extra/lib/fs/index.js
+++ b/node_modules/fs-extra/lib/fs/index.js
@@ -9,6 +9,7 @@ const api = [
'chmod',
'chown',
'close',
+ 'copyFile',
'fchmod',
'fchown',
'fdatasync',
@@ -20,6 +21,7 @@ const api = [
'link',
'lstat',
'mkdir',
+ 'mkdtemp',
'open',
'readFile',
'readdir',
@@ -33,9 +35,13 @@ const api = [
'unlink',
'utimes',
'writeFile'
-]
-// fs.mkdtemp() was added in Node.js v5.10.0, so check if it exists
-typeof fs.mkdtemp === 'function' && api.push('mkdtemp')
+].filter(key => {
+ // Some commands are not available on some systems. Ex:
+ // fs.copyFile was added in Node.js v8.5.0
+ // fs.mkdtemp was added in Node.js v5.10.0
+ // fs.lchown is not available on at least some Linux
+ return typeof fs[key] === 'function'
+})
// Export all keys:
Object.keys(fs).forEach(key => {
diff --git a/node_modules/fs-extra/lib/remove/rimraf.js b/node_modules/fs-extra/lib/remove/rimraf.js
index 15924c37f..f07869457 100644
--- a/node_modules/fs-extra/lib/remove/rimraf.js
+++ b/node_modules/fs-extra/lib/remove/rimraf.js
@@ -117,7 +117,7 @@ function fixWinEPERM (p, options, er, cb) {
assert(er instanceof Error)
}
- options.chmod(p, 666, er2 => {
+ options.chmod(p, 0o666, er2 => {
if (er2) {
cb(er2.code === 'ENOENT' ? null : er)
} else {
@@ -144,7 +144,7 @@ function fixWinEPERMSync (p, options, er) {
}
try {
- options.chmodSync(p, 666)
+ options.chmodSync(p, 0o666)
} catch (er2) {
if (er2.code === 'ENOENT') {
return
diff --git a/node_modules/fs-extra/package.json b/node_modules/fs-extra/package.json
index 258681262..8ceeb7499 100644
--- a/node_modules/fs-extra/package.json
+++ b/node_modules/fs-extra/package.json
@@ -1,6 +1,6 @@
{
"name": "fs-extra",
- "version": "4.0.1",
+ "version": "4.0.3",
"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.",
"homepage": "https://github.com/jprichardson/node-fs-extra",
"repository": {
@@ -34,7 +34,7 @@
"license": "MIT",
"dependencies": {
"graceful-fs": "^4.1.2",
- "jsonfile": "^3.0.0",
+ "jsonfile": "^4.0.0",
"universalify": "^0.1.0"
},
"devDependencies": {
@@ -52,10 +52,10 @@
"standard": "^10.0.2",
"standard-markdown": "^4.0.1"
},
- "main": "./lib/index",
+ "main": "./lib/index.js",
"scripts": {
"coverage": "istanbul cover -i 'lib/**' -x '**/__tests__/**' test.js",
- "coveralls": "npm run coverage && coveralls < coverage/lcov.info",
+ "coveralls": "coveralls < coverage/lcov.info",
"lint": "standard && standard-markdown",
"test-find": "find ./lib/**/__tests__ -name *.test.js | xargs mocha",
"test": "npm run lint && npm run unit",