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:
authorRebecca Turner <me@re-becca.org>2018-01-05 02:00:00 +0300
committerRebecca Turner <me@re-becca.org>2018-01-05 02:07:55 +0300
commitffd6ea62ce583baff38cf4901cf599639bc193c8 (patch)
tree316d71c1f0213b7f5ddb8bda63d63f5558a658f5 /node_modules/tar
parent30dc1b1d81101dc86e962d67535fc5789e1cda03 (diff)
fs-minipass@1.2.5
Diffstat (limited to 'node_modules/tar')
-rw-r--r--node_modules/tar/node_modules/fs-minipass/index.js5
-rw-r--r--node_modules/tar/node_modules/fs-minipass/package.json31
2 files changed, 21 insertions, 15 deletions
diff --git a/node_modules/tar/node_modules/fs-minipass/index.js b/node_modules/tar/node_modules/fs-minipass/index.js
index 07f0f513c..0f15c810e 100644
--- a/node_modules/tar/node_modules/fs-minipass/index.js
+++ b/node_modules/tar/node_modules/fs-minipass/index.js
@@ -94,6 +94,8 @@ class ReadStream extends MiniPass {
if (!this[_reading]) {
this[_reading] = true
const buf = this[_makeBuf]()
+ /* istanbul ignore if */
+ if (buf.length === 0) return process.nextTick(() => this[_onread](null, 0, buf))
fs.read(this[_fd], buf, 0, buf.length, null, (er, br, buf) =>
this[_onread](er, br, buf))
}
@@ -172,7 +174,8 @@ class ReadStreamSync extends ReadStream {
this[_reading] = true
do {
const buf = this[_makeBuf]()
- const br = fs.readSync(this[_fd], buf, 0, buf.length, null)
+ /* istanbul ignore next */
+ const br = buf.length === 0 ? 0 : fs.readSync(this[_fd], buf, 0, buf.length, null)
if (!this[_handleChunk](br, buf))
break
} while (true)
diff --git a/node_modules/tar/node_modules/fs-minipass/package.json b/node_modules/tar/node_modules/fs-minipass/package.json
index 172af3b20..9a96770d5 100644
--- a/node_modules/tar/node_modules/fs-minipass/package.json
+++ b/node_modules/tar/node_modules/fs-minipass/package.json
@@ -1,27 +1,32 @@
{
- "_from": "fs-minipass@^1.2.3",
- "_id": "fs-minipass@1.2.3",
+ "_args": [
+ [
+ "fs-minipass@1.2.5",
+ "/Users/rebecca/code/npm"
+ ]
+ ],
+ "_from": "fs-minipass@1.2.5",
+ "_id": "fs-minipass@1.2.5",
"_inBundle": false,
- "_integrity": "sha512-u1pHCXDx+CElfM6CuIeHDTKvb1Ya9ZhsMk7xTHTh6zHSRLK6O0DTVBN+E3wg8fruxAFp4oE07owrrzQfDA0b5Q==",
+ "_integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==",
"_location": "/tar/fs-minipass",
"_phantomChildren": {},
"_requested": {
- "type": "range",
+ "type": "version",
"registry": true,
- "raw": "fs-minipass@^1.2.3",
+ "raw": "fs-minipass@1.2.5",
"name": "fs-minipass",
"escapedName": "fs-minipass",
- "rawSpec": "^1.2.3",
+ "rawSpec": "1.2.5",
"saveSpec": null,
- "fetchSpec": "^1.2.3"
+ "fetchSpec": "1.2.5"
},
"_requiredBy": [
"/tar"
],
- "_resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.3.tgz",
- "_shasum": "633ee214389dede91c4ec446a34891f964805973",
- "_spec": "fs-minipass@^1.2.3",
- "_where": "/Users/zkat/Documents/code/npm/node_modules/tar",
+ "_resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz",
+ "_spec": "1.2.5",
+ "_where": "/Users/rebecca/code/npm",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
@@ -30,11 +35,9 @@
"bugs": {
"url": "https://github.com/npm/fs-minipass/issues"
},
- "bundleDependencies": false,
"dependencies": {
"minipass": "^2.2.1"
},
- "deprecated": false,
"description": "fs read and write streams based on minipass",
"devDependencies": {
"mutate-fs": "^2.0.1",
@@ -58,5 +61,5 @@
"preversion": "npm test",
"test": "tap test/*.js --100 -J"
},
- "version": "1.2.3"
+ "version": "1.2.5"
}