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 0.1.0 to 0.1.1

4

index.js

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

ConcatStream.prototype.isArray = function(arr) {
var isArray = Array.isArray(arr)
var isTypedArray = arr.toString().match(/Array/)
return isArray || isTypedArray
return Array.isArray(arr)
}

@@ -34,0 +32,0 @@

{ "name" : "concat-stream"
, "description" : "writable stream that concatenates strings or data and calls a callback with the result"
, "tags" : ["stream", "simple", "util", "utility"]
, "version" : "0.1.0"
, "version" : "0.1.1"
, "author" : "Max Ogden <max@maxogden.com>"

@@ -6,0 +6,0 @@ , "repository" :

@@ -22,6 +22,6 @@ var spawn = require('child_process').spawn

var buffers = concat(function(err, out) {
console.log('buffers', err, out)
console.log('buffers', err, out.toString())
})
buffers.write(new Buffer('pizza '))
buffers.write(new Buffer('cats'))
buffers.write(new Buffer('pizza Array is not a ', 'utf8'))
buffers.write(new Buffer('stringy cat'))
buffers.end()

@@ -28,0 +28,0 @@

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