Comparing version 4.2.0 to 4.2.1
11
index.js
@@ -395,6 +395,4 @@ 'use strict' | ||
[BUFFERSHIFT]() { | ||
if (this[BUFFER].length) { | ||
if (this[OBJECTMODE]) this[BUFFERLENGTH] -= 1 | ||
else this[BUFFERLENGTH] -= this[BUFFER][0].length | ||
} | ||
if (this[OBJECTMODE]) this[BUFFERLENGTH] -= 1 | ||
else this[BUFFERLENGTH] -= this[BUFFER][0].length | ||
return this[BUFFER].shift() | ||
@@ -404,3 +402,3 @@ } | ||
[FLUSH](noDrain) { | ||
do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]())) | ||
do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length) | ||
@@ -411,3 +409,4 @@ if (!noDrain && !this[BUFFER].length && !this[EOF]) this.emit('drain') | ||
[FLUSHCHUNK](chunk) { | ||
return chunk ? (this.emit('data', chunk), this.flowing) : false | ||
this.emit('data', chunk) | ||
return this.flowing | ||
} | ||
@@ -414,0 +413,0 @@ |
{ | ||
"name": "minipass", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "minimal implementation of a PassThrough stream", | ||
@@ -35,3 +35,3 @@ "main": "./index.js", | ||
"presnap": "npm run prepare", | ||
"prepare": "node ./scripts/transpile-to-esm.mjs", | ||
"prepare": "node ./scripts/transpile-to-esm.js", | ||
"snap": "tap", | ||
@@ -38,0 +38,0 @@ "test": "tap", |
Sorry, the diff of this file is not supported yet
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
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
70577
1386