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.1.0 to 1.2.0

5

index.js

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

ConcatStream.prototype.getBody = function () {
if (this.body.length === 0) return
if (this.body.length === 0) return bops.from(0)
if (typeof(this.body[0]) === "string") return this.body.join('')

@@ -43,3 +43,4 @@ if (this.isArray(this.body[0])) return this.arrayConcat(this.body)

ConcatStream.prototype.end = function() {
ConcatStream.prototype.end = function(chunk) {
if (chunk) this.write(chunk)
this.emit('end')

@@ -46,0 +47,0 @@ if (this.cb) this.cb(this.getBody())

2

package.json

@@ -10,3 +10,3 @@ {

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

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

@@ -45,1 +45,9 @@ var spawn = require('child_process').spawn

emitter.end()
// chunk passed to end
var endchunk = concat(function(out) {
console.log('strings', out)
})
endchunk.write("this ")
endchunk.write("is the ")
endchunk.end("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