Socket
Socket
Sign inDemoInstall

minipass

Package Overview
Dependencies
1
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

.nyc_output/0e2e35c88896e6873ed787d655f8f215.json

9

index.js

@@ -122,5 +122,12 @@ const EE = require('events')

get emittedEnd () {
return this[EMITTED_END]
}
[MAYBE_EMIT_END] () {
if (!this[EMITTED_END] && this.buffer.length === 0 && this[EOF])
if (!this[EMITTED_END] && this.buffer.length === 0 && this[EOF]) {
this.emit('end')
this.emit('finished')
this.emit('close')
}
}

@@ -127,0 +134,0 @@

2

package.json
{
"name": "minipass",
"version": "1.0.1",
"version": "1.0.2",
"description": "minimal implementation of a PassThrough stream",

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

@@ -9,4 +9,6 @@ const t = require('tap')

mp.end()
t.notOk(mp.emittedEnd)
list.push('called end')
mp.resume()
t.ok(mp.emittedEnd)
list.push('called resume')

@@ -13,0 +15,0 @@ t.same(list, ['called end', 'end', 'called resume'])

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc