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

stream-chopper

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-chopper - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

8

index.js

@@ -51,7 +51,3 @@ 'use strict'

function oneos (err) {
// If oneos is called because of a close event, some streams will give a
// boolean as the first argument indicating if the stream was closed
// because of an error
if (err && typeof err !== 'boolean') self.destroy(err) // TODO: This error is already emitted by the stream. Maybe we shouldn't pass it on to destroy?
function oneos () {
self._removeStream()

@@ -110,3 +106,3 @@ }

.on('finish', this._oneos)
.on('end', this._oneos) // in case stream.destroy() is called by the user
.on('end', this._oneos)
.on('drain', this._ondrain)

@@ -113,0 +109,0 @@

{
"name": "stream-chopper",
"version": "3.0.0",
"version": "3.0.1",
"description": "Chop a single stream of data into a series of readable streams",

@@ -47,5 +47,5 @@ "main": "index.js",

"coordinates": [
55.778278,
12.593052
55.778265,
12.593146
]
}
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