Socket
Socket
Sign inDemoInstall

concat-stream

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concat-stream - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

1

index.js

@@ -56,2 +56,3 @@ var Writable = require('readable-stream').Writable

ConcatStream.prototype.getBody = function () {
if (this.body.length === 0) return []
if (this.shouldInferEncoding) this.encoding = this.inferEncoding()

@@ -58,0 +59,0 @@ if (this.encoding === 'array') return arrayConcat(this.body)

2

package.json
{
"name": "concat-stream",
"version": "1.4.3",
"description": "writable stream that concatenates strings or binary data and calls a callback with the result",

@@ -10,3 +11,2 @@ "tags": [

],
"version": "1.4.2",
"author": "Max Ogden <max@maxogden.com>",

@@ -13,0 +13,0 @@ "repository": {

@@ -10,1 +10,9 @@ var concat = require('../')

})
test('no encoding set, no data', function (t) {
var stream = concat(function(data) {
t.deepEqual(data, [])
t.end()
})
stream.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