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:
authorForrest L Norvell <forrest@npmjs.com>2014-11-28 04:59:26 +0300
committerForrest L Norvell <forrest@npmjs.com>2014-11-28 04:59:26 +0300
commita5586954f1c18df7c96137e0a79f41a69e7a884e (patch)
treefb7bc215eaac12fff310e707e1f1ac25aee61aba /node_modules/tar
parent12a0a492bc0ba43d74073840827e762cf992c868 (diff)
tar@1.0.3
Don't extract broken files, pass on drain events.
Diffstat (limited to 'node_modules/tar')
-rw-r--r--node_modules/tar/lib/extract.js4
-rw-r--r--node_modules/tar/lib/parse.js2
-rw-r--r--node_modules/tar/package.json30
3 files changed, 12 insertions, 24 deletions
diff --git a/node_modules/tar/lib/extract.js b/node_modules/tar/lib/extract.js
index 68ff89c08..9fb1e6fb1 100644
--- a/node_modules/tar/lib/extract.js
+++ b/node_modules/tar/lib/extract.js
@@ -61,6 +61,10 @@ function Extract (opts) {
me.emit('error', err)
})
+ this._fst.on('drain', function() {
+ me.emit('drain')
+ })
+
// this._fst.on("end", function () {
// console.error("\nEEEE Extract End", me._fst.path)
// })
diff --git a/node_modules/tar/lib/parse.js b/node_modules/tar/lib/parse.js
index 009a85f41..8517c481b 100644
--- a/node_modules/tar/lib/parse.js
+++ b/node_modules/tar/lib/parse.js
@@ -146,7 +146,7 @@ Parse.prototype._startEntry = function (c) {
e.header = header
e.tar_file_offset = this.position
e.tar_block = this.position / 512
- this.emit("error", e)
+ return this.emit("error", e)
}
switch (tar.types[header.type]) {
diff --git a/node_modules/tar/package.json b/node_modules/tar/package.json
index 7942f9df3..b4a120992 100644
--- a/node_modules/tar/package.json
+++ b/node_modules/tar/package.json
@@ -6,7 +6,7 @@
},
"name": "tar",
"description": "tar for node",
- "version": "1.0.2",
+ "version": "1.0.3",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/node-tar.git"
@@ -27,30 +27,14 @@
"mkdirp": "^0.5.0"
},
"license": "BSD",
- "gitHead": "f31811bfa4ed1d1a89c380c65595ac92474dd84d",
+ "readme": "# node-tar\n\nTar for Node.js.\n\n[![NPM](https://nodei.co/npm/tar.png)](https://nodei.co/npm/tar/)\n\n## API\n\nSee `examples/` for usage examples.\n\n### var tar = require('tar')\n\nReturns an object with `.Pack`, `.Extract` and `.Parse` methods.\n\n### tar.Pack([properties])\n\nReturns a through stream. Use\n[fstream](https://npmjs.org/package/fstream) to write files into the\npack stream and you will receive tar archive data from the pack\nstream.\n\nThis only works with directories, it does not work with individual files.\n\nThe optional `properties` object are used to set properties in the tar\n'Global Extended Header'.\n\n### tar.Extract([options])\n\nReturns a through stream. Write tar data to the stream and the files\nin the tarball will be extracted onto the filesystem.\n\n`options` can be:\n\n```js\n{\n path: '/path/to/extract/tar/into',\n strip: 0, // how many path segments to strip from the root when extracting\n}\n```\n\n`options` also get passed to the `fstream.Writer` instance that `tar`\nuses internally.\n\n### tar.Parse()\n\nReturns a writable stream. Write tar data to it and it will emit\n`entry` events for each entry parsed from the tarball. This is used by\n`tar.Extract`.\n",
+ "readmeFilename": "README.md",
+ "gitHead": "f4151128c585da236c6b1e278b762ecaedc20c15",
"bugs": {
"url": "https://github.com/isaacs/node-tar/issues"
},
"homepage": "https://github.com/isaacs/node-tar",
- "_id": "tar@1.0.2",
- "_shasum": "8b0f6740f9946259de26a3ed9c9a22890dff023f",
- "_from": "tar@>=1.0.2 <1.1.0",
- "_npmVersion": "2.1.3",
- "_nodeVersion": "0.10.31",
- "_npmUser": {
- "name": "isaacs",
- "email": "i@izs.me"
- },
- "maintainers": [
- {
- "name": "isaacs",
- "email": "i@izs.me"
- }
- ],
- "dist": {
- "shasum": "8b0f6740f9946259de26a3ed9c9a22890dff023f",
- "tarball": "http://registry.npmjs.org/tar/-/tar-1.0.2.tgz"
- },
- "directories": {},
- "_resolved": "https://registry.npmjs.org/tar/-/tar-1.0.2.tgz"
+ "_id": "tar@1.0.3",
+ "_shasum": "15bcdab244fa4add44e4244a0176edb8aa9a2b44",
+ "_from": "tar@>=1.0.3 <1.1.0"
}