Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update graceful-fs

  • Loading branch information...
commit 57003ea3efb7c3f431d5693e9bef8895e79e0688 1 parent b57d3bb
@isaacs isaacs authored
View
25 node_modules/graceful-fs/graceful-fs.js
@@ -259,16 +259,17 @@ function chownErOk (er) {
// on Windows, A/V software can lock the directory, causing this
// to fail with an EACCES or EPERM if the directory contains newly
// created files. Try again on failure, for up to 1 second.
-var rename_ = fs.rename
-fs.rename = function rename (from, to, cb) {
- var start = Date.now()
- rename_(from, to, function CB (er) {
- if (er
- && process.platform === "win32"
- && (er.code === "EACCES" || er.code === "EPERM")
- && Date.now() - start < 1000) {
- return rename_(from, to, CB)
- }
- cb(er)
- })
+if (process.platform === "win32") {
+ var rename_ = fs.rename
+ fs.rename = function rename (from, to, cb) {
+ var start = Date.now()
+ rename_(from, to, function CB (er) {
+ if (er
+ && (er.code === "EACCES" || er.code === "EPERM")
+ && Date.now() - start < 1000) {
+ return rename_(from, to, CB)
+ }
+ cb(er)
+ })
+ }
}
View
4 node_modules/graceful-fs/package.json
@@ -6,7 +6,7 @@
},
"name": "graceful-fs",
"description": "fs monkey-patching to avoid EMFILE and other problems",
- "version": "1.1.7",
+ "version": "1.1.8",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/node-graceful-fs.git"
@@ -20,7 +20,7 @@
"name": "isaacs",
"email": "i@izs.me"
},
- "_id": "graceful-fs@1.1.7",
+ "_id": "graceful-fs@1.1.8",
"dependencies": {},
"optionalDependencies": {},
"_engineSupported": true,
Please sign in to comment.
Something went wrong with that request. Please try again.