Comparing version 1.1.1 to 1.1.2
10
index.js
@@ -8,2 +8,4 @@ 'use strict' | ||
const READ = Symbol('read') | ||
const FLUSH = Symbol('flush') | ||
const FLUSHCHUNK = Symbol('flushChunk') | ||
const SD = require('string_decoder').StringDecoder | ||
@@ -91,3 +93,3 @@ | ||
if (this.buffer.length) | ||
this.flush() | ||
this[FLUSH]() | ||
else | ||
@@ -101,4 +103,4 @@ this[MAYBE_EMIT_END]() | ||
flush () { | ||
do {} while (this.flushChunk(this.buffer.shift())) | ||
[FLUSH] () { | ||
do {} while (this[FLUSHCHUNK](this.buffer.shift())) | ||
@@ -109,3 +111,3 @@ if (!this.buffer.length) | ||
flushChunk (chunk) { | ||
[FLUSHCHUNK] (chunk) { | ||
return chunk ? (this.emit('data', chunk), this.flowing) : false | ||
@@ -112,0 +114,0 @@ } |
{ | ||
"name": "minipass", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "minimal implementation of a PassThrough stream", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
127064
801