fs-extra
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -28,4 +28,3 @@ // Adapted from https://github.com/sindresorhus/make-dir | ||
const processOptions = options => { | ||
// Must be defined here so we get fresh process.umask() | ||
const defaults = { mode: 0o777 & (~process.umask()) } | ||
const defaults = { mode: 0o777 } | ||
if (typeof options === 'number') options = { mode: options } | ||
@@ -32,0 +31,0 @@ return { ...defaults, ...options } |
@@ -116,5 +116,2 @@ 'use strict' | ||
assert(typeof cb === 'function') | ||
if (er) { | ||
assert(er instanceof Error) | ||
} | ||
@@ -143,5 +140,2 @@ options.chmod(p, 0o666, er2 => { | ||
assert(options) | ||
if (er) { | ||
assert(er instanceof Error) | ||
} | ||
@@ -178,5 +172,2 @@ try { | ||
assert(options) | ||
if (originalEr) { | ||
assert(originalEr instanceof Error) | ||
} | ||
assert(typeof cb === 'function') | ||
@@ -274,5 +265,2 @@ | ||
assert(options) | ||
if (originalEr) { | ||
assert(originalEr instanceof Error) | ||
} | ||
@@ -279,0 +267,0 @@ try { |
{ | ||
"name": "fs-extra", | ||
"version": "9.0.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.", | ||
"version": "9.0.1", | ||
"description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.", | ||
"engines": { | ||
@@ -6,0 +6,0 @@ "node": ">=10" |
Sorry, the diff of this file is too big to display
129267
1578