Socket
Socket
Sign inDemoInstall

through

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

through - npm Package Compare versions

Comparing version 2.3.6 to 2.3.7

2

index.js

@@ -43,3 +43,3 @@ var Stream = require('stream')

if(_ended) return stream
if(data == null) _ended = true
if(data === null) _ended = true
buffer.push(data)

@@ -46,0 +46,0 @@ drain()

{
"name": "through",
"version": "2.3.6",
"version": "2.3.7",
"description": "simplified stream construction",

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

@@ -118,1 +118,17 @@

})
test('does not soft-end on `undefined`', function(assert) {
var stream = through()
, count = 0
stream.on('data', function (data) {
count++
})
stream.write(undefined)
stream.write(undefined)
assert.equal(count, 2)
assert.end()
})
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