Socket
Socket
Sign inDemoInstall

flush-write-stream

Package Overview
Dependencies
8
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

example.js

2

index.js

@@ -50,4 +50,4 @@ var stream = require('readable-stream')

this.destroyed = true
if (err) this.emit('error')
if (err) this.emit('error', err)
this.emit('close')
}
{
"name": "flush-write-stream",
"version": "1.0.0",
"version": "1.0.1",
"description": "A write stream constructor that supports a flush function that is called before finish is emitted",

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

@@ -73,1 +73,14 @@ var tape = require('tape')

})
tape('emits error on destroy', function (t) {
var expected = new Error()
var ws = writer({objectMode: true}, function () {})
ws.on('error', function (err) {
t.equal(err, expected)
})
ws.on('close', t.end)
ws.destroy(expected)
})
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