fs-extra
Advanced tools
Comparing version 10.0.1 to 10.1.0
@@ -20,4 +20,7 @@ 'use strict' | ||
if (opts.preserveTimestamps && process.arch === 'ia32') { | ||
console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n | ||
see https://github.com/jprichardson/node-fs-extra/issues/269`) | ||
process.emitWarning( | ||
'Using the preserveTimestamps option in 32-bit node is not recommended;\n\n' + | ||
'\tsee https://github.com/jprichardson/node-fs-extra/issues/269', | ||
'Warning', 'fs-extra-WARN0002' | ||
) | ||
} | ||
@@ -24,0 +27,0 @@ |
@@ -26,4 +26,7 @@ 'use strict' | ||
if (opts.preserveTimestamps && process.arch === 'ia32') { | ||
console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n | ||
see https://github.com/jprichardson/node-fs-extra/issues/269`) | ||
process.emitWarning( | ||
'Using the preserveTimestamps option in 32-bit node is not recommended;\n\n' + | ||
'\tsee https://github.com/jprichardson/node-fs-extra/issues/269', | ||
'Warning', 'fs-extra-WARN0001' | ||
) | ||
} | ||
@@ -30,0 +33,0 @@ |
@@ -57,3 +57,2 @@ 'use strict' | ||
}) | ||
exports.realpath.native = u(fs.realpath.native) | ||
@@ -121,1 +120,11 @@ // We differ from mz/fs in that we still ship the old, broken, fs.exists() | ||
} | ||
// fs.realpath.native sometimes not available if fs is monkey-patched | ||
if (typeof fs.realpath.native === 'function') { | ||
exports.realpath.native = u(fs.realpath.native) | ||
} else { | ||
process.emitWarning( | ||
'fs.realpath.native is not a function. Is fs being monkey-patched?', | ||
'Warning', 'fs-extra-WARN0003' | ||
) | ||
} |
@@ -17,2 +17,4 @@ 'use strict' | ||
opts = opts || {} | ||
const overwrite = opts.overwrite || opts.clobber || false | ||
@@ -19,0 +21,0 @@ |
{ | ||
"name": "fs-extra", | ||
"version": "10.0.1", | ||
"version": "10.1.0", | ||
"description": "fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as recursive mkdir, copy, and remove.", | ||
@@ -5,0 +5,0 @@ "engines": { |
63278
1541