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

bare-stream

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-stream - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

25

index.js
const stream = require('streamx')
const b4a = require('b4a')

@@ -28,3 +29,3 @@ const getStreamError = stream.getStreamError

if (typeof chunk === 'string') {
chunk = Buffer.from(chunk, encoding || defaultEncoding)
chunk = b4a.from(chunk, encoding || defaultEncoding)
}

@@ -37,3 +38,3 @@

if (typeof chunk === 'string') {
chunk = Buffer.from(chunk, encoding || defaultEncoding)
chunk = b4a.from(chunk, encoding || defaultEncoding)
}

@@ -68,3 +69,3 @@

encoding = encoding || defaultEncoding
chunk = Buffer.from(chunk, encoding)
chunk = b4a.from(chunk, encoding)
} else {

@@ -92,3 +93,3 @@ encoding = 'buffer'

encoding = encoding || defaultEncoding
chunk = Buffer.from(chunk, encoding || defaultEncoding)
chunk = b4a.from(chunk, encoding || defaultEncoding)
} else {

@@ -129,3 +130,3 @@ encoding = 'buffer'

if (typeof chunk === 'string') {
chunk = Buffer.from(chunk, encoding || defaultEncoding)
chunk = b4a.from(chunk, encoding || defaultEncoding)
}

@@ -138,3 +139,3 @@

if (typeof chunk === 'string') {
chunk = Buffer.from(chunk, encoding || defaultEncoding)
chunk = b4a.from(chunk, encoding || defaultEncoding)
}

@@ -153,3 +154,3 @@

encoding = encoding || defaultEncoding
chunk = Buffer.from(chunk, encoding)
chunk = b4a.from(chunk, encoding)
} else {

@@ -177,3 +178,3 @@ encoding = 'buffer'

encoding = encoding || defaultEncoding
chunk = Buffer.from(chunk, encoding)
chunk = b4a.from(chunk, encoding)
} else {

@@ -206,3 +207,3 @@ encoding = 'buffer'

if (typeof chunk === 'string') {
chunk = Buffer.from(chunk, encoding || defaultEncoding)
chunk = b4a.from(chunk, encoding || defaultEncoding)
}

@@ -215,3 +216,3 @@

if (typeof chunk === 'string') {
chunk = Buffer.from(chunk, encoding || defaultEncoding)
chunk = b4a.from(chunk, encoding || defaultEncoding)
}

@@ -230,3 +231,3 @@

encoding = encoding || defaultEncoding
chunk = Buffer.from(chunk, encoding)
chunk = b4a.from(chunk, encoding)
} else {

@@ -254,3 +255,3 @@ encoding = 'buffer'

encoding = encoding || defaultEncoding
chunk = Buffer.from(chunk, encoding)
chunk = b4a.from(chunk, encoding)
} else {

@@ -257,0 +258,0 @@ encoding = 'buffer'

{
"name": "bare-stream",
"version": "2.2.0",
"version": "2.2.1",
"description": "Streaming data for JavaScript",

@@ -28,2 +28,3 @@ "exports": {

"dependencies": {
"b4a": "^1.6.6",
"streamx": "^2.18.0"

@@ -30,0 +31,0 @@ },

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