Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-03-23 03:20:59 +0400
committerisaacs <i@izs.me>2012-03-23 03:20:59 +0400
commit57003ea3efb7c3f431d5693e9bef8895e79e0688 (patch)
tree811e483ec4336070a387a2a26a1491ec1f2b584f /node_modules/graceful-fs
parentb57d3bb1cb275e8cd83dd59dafac16cfd3348e36 (diff)
update graceful-fs
Diffstat (limited to 'node_modules/graceful-fs')
-rw-r--r--node_modules/graceful-fs/graceful-fs.js25
-rw-r--r--node_modules/graceful-fs/package.json4
2 files changed, 15 insertions, 14 deletions
diff --git a/node_modules/graceful-fs/graceful-fs.js b/node_modules/graceful-fs/graceful-fs.js
index 36e0f844b..ecbda31a5 100644
--- a/node_modules/graceful-fs/graceful-fs.js
+++ b/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)
+ })
+ }
}
diff --git a/node_modules/graceful-fs/package.json b/node_modules/graceful-fs/package.json
index e426579ec..757d3014c 100644
--- a/node_modules/graceful-fs/package.json
+++ b/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,