Socket
Socket
Sign inDemoInstall

tar

Package Overview
Dependencies
Maintainers
3
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tar - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

test/parse-discard.js

7

lib/entry.js

@@ -27,2 +27,3 @@ // A passthrough read/write stream that sets its properties

this._remaining = 0
this._abort = false
this._queue = []

@@ -213,3 +214,9 @@ this._index = 0

// the parser may not call write if _abort is true.
// useful for skipping data from some files quickly.
Entry.prototype.abort = function(){
this._abort = true
}
Entry.prototype.warn = fstream.warn
Entry.prototype.error = fstream.error

6

lib/parse.js

@@ -105,3 +105,7 @@

var entry = this._entry
entry.write(c)
if(!entry._abort) entry.write(c)
else {
entry._remaining -= c.length
if(entry._remaining < 0) entry._remaining = 0
}
if (entry._remaining === 0) {

@@ -108,0 +112,0 @@ entry.end()

2

package.json

@@ -5,3 +5,3 @@ {

"description": "tar for node",
"version": "2.1.1",
"version": "2.2.0",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc