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:
authorGar <gar+gh@danger.computer>2021-02-11 21:56:29 +0300
committerGar <gar+gh@danger.computer>2021-02-11 21:56:29 +0300
commit39e4a640130b85d62199a33cc2026b04390520ee (patch)
tree3f259a6e79c2abdd881998bc6974f854747c17c3 /node_modules
parent14dd9385358b3815c2285526f7c2e53ed3c5e8da (diff)
graceful-fs@4.2.6
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/graceful-fs/graceful-fs.js10
-rw-r--r--node_modules/graceful-fs/package.json7
-rw-r--r--node_modules/graceful-fs/polyfills.js13
3 files changed, 18 insertions, 12 deletions
diff --git a/node_modules/graceful-fs/graceful-fs.js b/node_modules/graceful-fs/graceful-fs.js
index 8218b1478..e15042da9 100644
--- a/node_modules/graceful-fs/graceful-fs.js
+++ b/node_modules/graceful-fs/graceful-fs.js
@@ -173,10 +173,14 @@ function patch (fs) {
var fs$copyFile = fs.copyFile
if (fs$copyFile)
fs.copyFile = copyFile
- function copyFile (src, dest, cb) {
- return fs$copyFile(src, dest, function (err) {
+ function copyFile (src, dest, flags, cb) {
+ if (typeof flags === 'function') {
+ cb = flags
+ flags = 0
+ }
+ return fs$copyFile(src, dest, flags, function (err) {
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
- enqueue([fs$copyFile, [src, dest, cb]])
+ enqueue([fs$copyFile, [src, dest, flags, cb]])
else {
if (typeof cb === 'function')
cb.apply(this, arguments)
diff --git a/node_modules/graceful-fs/package.json b/node_modules/graceful-fs/package.json
index 8eca6d66f..d73f971fc 100644
--- a/node_modules/graceful-fs/package.json
+++ b/node_modules/graceful-fs/package.json
@@ -1,7 +1,7 @@
{
"name": "graceful-fs",
"description": "A drop-in replacement for fs, making various improvements.",
- "version": "4.2.5",
+ "version": "4.2.6",
"repository": {
"type": "git",
"url": "https://github.com/isaacs/node-graceful-fs"
@@ -14,7 +14,7 @@
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --follow-tags",
- "test": "nyc --silent node test.js | tap -",
+ "test": "nyc --silent node test.js | tap -c -",
"posttest": "nyc report"
},
"keywords": [
@@ -46,6 +46,5 @@
"legacy-streams.js",
"polyfills.js",
"clone.js"
- ],
- "dependencies": {}
+ ]
}
diff --git a/node_modules/graceful-fs/polyfills.js b/node_modules/graceful-fs/polyfills.js
index 56d08d180..1287da1aa 100644
--- a/node_modules/graceful-fs/polyfills.js
+++ b/node_modules/graceful-fs/polyfills.js
@@ -14,12 +14,15 @@ try {
process.cwd()
} catch (er) {}
-var chdir = process.chdir
-process.chdir = function(d) {
- cwd = null
- chdir.call(process, d)
+// This check is needed until node.js 12 is required
+if (typeof process.chdir === 'function') {
+ var chdir = process.chdir
+ process.chdir = function (d) {
+ cwd = null
+ chdir.call(process, d)
+ }
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
}
-if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir)
module.exports = patch