@travetto/base
Advanced tools
Comparing version 3.2.0 to 3.2.1
{ | ||
"name": "@travetto/base", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Environment config and common utilities for travetto applications.", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@travetto/transformer": "^3.2.0" | ||
"@travetto/transformer": "^3.2.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "peerDependenciesMeta": { |
@@ -10,3 +10,3 @@ import fs from 'fs/promises'; | ||
type All = Buffer | string | Readable | Uint8Array; | ||
type All = Buffer | string | Readable | Uint8Array | NodeJS.ReadableStream; | ||
@@ -32,3 +32,3 @@ /** | ||
*/ | ||
static async streamToBuffer(src: Readable): Promise<Buffer> { | ||
static async streamToBuffer(src: Readable | NodeJS.ReadableStream): Promise<Buffer> { | ||
return new Promise<Buffer>((res, rej) => { | ||
@@ -66,3 +66,4 @@ const data: Buffer[] = []; | ||
if (typeof src !== 'string' && 'pipe' in src) { | ||
return src; | ||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions | ||
return src as Readable; | ||
} else { | ||
@@ -69,0 +70,0 @@ return this.bufferToStream(await this.toBuffer(src)); |
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
106910
2355