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-07-12 03:10:45 +0400
committerisaacs <i@izs.me>2012-07-12 03:10:45 +0400
commit3487273d40b2ece636f3e5ce9058e164fe2ecace (patch)
tree69d7f9d4da842df5843aa258ab65c6aeea901dc4 /node_modules/graceful-fs
parent1548d5f481529ace70acbcad05238b15371ae537 (diff)
graceful-fs: upgrade to 1.1.9
Diffstat (limited to 'node_modules/graceful-fs')
-rw-r--r--node_modules/graceful-fs/graceful-fs.js24
-rw-r--r--node_modules/graceful-fs/package.json15
2 files changed, 19 insertions, 20 deletions
diff --git a/node_modules/graceful-fs/graceful-fs.js b/node_modules/graceful-fs/graceful-fs.js
index ecbda31a5..856fc66bf 100644
--- a/node_modules/graceful-fs/graceful-fs.js
+++ b/node_modules/graceful-fs/graceful-fs.js
@@ -151,14 +151,6 @@ if (constants.hasOwnProperty('O_SYMLINK') &&
}
-// lstat on windows, missing from early 0.5 versions
-// replacing with stat isn't quite perfect, but good enough to get by.
-if (process.platform === "win32" && !process.binding("fs").lstat) {
- fs.lstat = fs.stat
- fs.lstatSync = fs.statSync
-}
-
-
// lutimes implementation, or no-op
if (!fs.lutimes) {
if (constants.hasOwnProperty("O_SYMLINK")) {
@@ -255,6 +247,22 @@ function chownErOk (er) {
}
+// if lchmod/lchown do not exist, then make them no-ops
+if (!fs.lchmod) {
+ fs.lchmod = function (path, mode, cb) {
+ process.nextTick(cb)
+ }
+ fs.lchmodSync = function () {}
+}
+if (!fs.lchown) {
+ fs.lchown = function (path, uid, gid, cb) {
+ process.nextTick(cb)
+ }
+ fs.lchownSync = function () {}
+}
+
+
+
// on Windows, A/V software can lock the directory, causing this
// to fail with an EACCES or EPERM if the directory contains newly
diff --git a/node_modules/graceful-fs/package.json b/node_modules/graceful-fs/package.json
index 757d3014c..fe4de9e58 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.8",
+ "version": "1.1.9",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/node-graceful-fs.git"
@@ -16,16 +16,7 @@
"node": ">=0.4.0"
},
"devDependencies": {},
- "_npmUser": {
- "name": "isaacs",
- "email": "i@izs.me"
- },
- "_id": "graceful-fs@1.1.8",
- "dependencies": {},
- "optionalDependencies": {},
- "_engineSupported": true,
- "_npmVersion": "1.1.10",
- "_nodeVersion": "v0.7.7-pre",
- "_defaultsLoaded": true,
+ "readme": "Just like node's `fs` module, but it does an incremental back-off when\nEMFILE is encountered.\n\nUseful in asynchronous situations where one needs to try to open lots\nand lots of files.\n",
+ "_id": "graceful-fs@1.1.9",
"_from": "graceful-fs@~1.1.1"
}