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.1 to 2.3.0

10

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

@@ -11,3 +9,7 @@

exports.isStream = stream.isStream
exports.isEnded = stream.isEnded
exports.isFinished = stream.isFinished
exports.getStreamError = stream.getStreamError
exports.Readable = class Readable extends stream.Readable {

@@ -275,3 +277,3 @@ constructor (opts = {}) {

const done = () => {
cb(getStreamError(stream, { all: true }))
cb(exports.getStreamError(stream, { all: true }))

@@ -311,3 +313,3 @@ if (cleanup) detach()

function destroy (destroy, cb) {
destroy.call(this, stream.getStreamError(this), cb)
destroy.call(this, exports.getStreamError(this), cb)
}

@@ -314,0 +316,0 @@

4

package.json
{
"name": "bare-stream",
"version": "2.2.1",
"version": "2.3.0",
"description": "Streaming data for JavaScript",

@@ -29,3 +29,3 @@ "exports": {

"b4a": "^1.6.6",
"streamx": "^2.18.0"
"streamx": "^2.20.0"
},

@@ -32,0 +32,0 @@ "devDependencies": {

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