Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/base

Package Overview
Dependencies
Maintainers
1
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/base - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

4

package.json
{
"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));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc