Comparing version 7.0.1 to 7.0.2
@@ -498,3 +498,3 @@ /// <reference types="node" /> | ||
*/ | ||
concat(): Promise<string | Buffer>; | ||
concat(): Promise<RType>; | ||
/** | ||
@@ -501,0 +501,0 @@ * Return a void Promise that resolves once the stream ends. |
@@ -865,5 +865,5 @@ "use strict"; | ||
const buf = await this.collect(); | ||
return this[ENCODING] | ||
return (this[ENCODING] | ||
? buf.join('') | ||
: Buffer.concat(buf, buf.dataLength); | ||
: Buffer.concat(buf, buf.dataLength)); | ||
} | ||
@@ -870,0 +870,0 @@ /** |
@@ -498,3 +498,3 @@ /// <reference types="node" /> | ||
*/ | ||
concat(): Promise<string | Buffer>; | ||
concat(): Promise<RType>; | ||
/** | ||
@@ -501,0 +501,0 @@ * Return a void Promise that resolves once the stream ends. |
@@ -856,5 +856,5 @@ const proc = typeof process === 'object' && process | ||
const buf = await this.collect(); | ||
return this[ENCODING] | ||
return (this[ENCODING] | ||
? buf.join('') | ||
: Buffer.concat(buf, buf.dataLength); | ||
: Buffer.concat(buf, buf.dataLength)); | ||
} | ||
@@ -861,0 +861,0 @@ /** |
{ | ||
"name": "minipass", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"description": "minimal implementation of a PassThrough stream", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
284773