Socket
Socket
Sign inDemoInstall

minipass

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minipass - npm Package Compare versions

Comparing version 1.1.9 to 1.1.10

.nyc_output/4263ae7f9f3889addcc40baa194c1d04.json

17

index.js

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

const FLOWING = Symbol('flowing')
const RESUME = Symbol('resume')

@@ -109,3 +110,4 @@ class MiniPass extends EE {

resume () {
// don't let the internal resume be overwritten
[RESUME] () {
this[FLOWING] = true

@@ -118,2 +120,6 @@ if (this.buffer.length)

resume () {
return this[RESUME]()
}
pause () {

@@ -140,4 +146,4 @@ this[FLOWING] = false

this.pipes.push(dest)
dest.on('drain', _ => this.resume())
this.resume()
dest.on('drain', _ => this[RESUME]())
this[RESUME]()
return dest

@@ -154,4 +160,5 @@ }

} finally {
if (ev === 'data' && !this.pipes.length && !this.flowing)
this.resume()
if (ev === 'data' && !this.pipes.length && !this.flowing) {
this[RESUME]()
}
}

@@ -158,0 +165,0 @@ }

{
"name": "minipass",
"version": "1.1.9",
"version": "1.1.10",
"description": "minimal implementation of a PassThrough stream",

@@ -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