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

minizlib

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minizlib - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

8

index.js

@@ -53,2 +53,3 @@ 'use strict'

super(opts)
this[_sawError] = false
this[_ended] = false

@@ -68,3 +69,8 @@ this[_opts] = opts

this[_onError] = (err) => {
// no sense raising multiple errors, since we abort on the first one.
if (this[_sawError])
return
this[_sawError] = true
// there is no way to cleanly recover.

@@ -162,2 +168,4 @@ // continuing only obscures problems.

this[_handle].removeAllListeners('error')
// make sure OUR error listener is still attached tho
this[_handle].on('error', er => this[_onError](new ZlibError(er)))
}

@@ -164,0 +172,0 @@ }

2

package.json
{
"name": "minizlib",
"version": "2.1.0",
"version": "2.1.1",
"description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.",

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

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