Comparing version 3.1.0 to 3.1.1
@@ -423,2 +423,5 @@ 'use strict' | ||
buf.dataLength = 0 | ||
// set the promise first, in case an error is raised | ||
// by triggering the flow here. | ||
const p = this.promise() | ||
this.on('data', c => { | ||
@@ -429,3 +432,3 @@ buf.push(c) | ||
}) | ||
return this.promise().then(() => buf) | ||
return p.then(() => buf) | ||
} | ||
@@ -432,0 +435,0 @@ |
{ | ||
"name": "minipass", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"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
36604
463