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

promise-readable

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-readable - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

4

CHANGELOG.md
# Changelog
## v3.1.2 2018-02-05
* Can call `destroy` twice.
## v3.1.1 2018-02-04

@@ -4,0 +8,0 @@

14

lib/promise-readable.js

@@ -193,8 +193,12 @@ 'use strict'

destroy () {
this.stream.removeListener('error', this._errorHandler)
delete this._errorHandler
if (typeof this.stream.destroy === 'function') {
this.stream.destroy()
if (this._errorHandler) {
this.stream.removeListener('error', this._errorHandler)
delete this._errorHandler
}
delete this.stream
if (this.stream) {
if (typeof this.stream.destroy === 'function') {
this.stream.destroy()
}
delete this.stream
}
}

@@ -201,0 +205,0 @@ }

{
"name": "promise-readable",
"version": "3.1.1",
"version": "3.1.2",
"description": "Return promise for readable stream",

@@ -5,0 +5,0 @@ "main": "lib/promise-readable.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