graceful-fs
Advanced tools
Comparing version 4.1.10 to 4.1.11
{ | ||
"name": "graceful-fs", | ||
"description": "A drop-in replacement for fs, making various improvements.", | ||
"version": "4.1.10", | ||
"version": "4.1.11", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -6,2 +6,5 @@ var fs = require('./fs.js') | ||
var cwd = null | ||
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform | ||
process.cwd = function() { | ||
@@ -91,3 +94,3 @@ if (!cwd) | ||
// contention to be starved of CPU by node, so the contention doesn't resolve. | ||
if (process.platform === "win32") { | ||
if (platform === "win32") { | ||
fs.rename = (function (fs$rename) { return function (from, to, cb) { | ||
@@ -101,3 +104,8 @@ var start = Date.now() | ||
setTimeout(function() { | ||
fs$rename(from, to, CB); | ||
fs.stat(to, function (stater, st) { | ||
if (stater && stater.code === "ENOENT") | ||
fs$rename(from, to, CB); | ||
else | ||
cb(er) | ||
}) | ||
}, backoff) | ||
@@ -104,0 +112,0 @@ if (backoff < 100) |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
24916
622
6