Comparing version 2.1.1 to 2.2.0
@@ -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 |
@@ -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() |
@@ -5,3 +5,3 @@ { | ||
"description": "tar for node", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164682
33
4621
25
2