Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stream-array

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-array - npm Package Compare versions

Comparing version 0.1.3 to 1.0.0

2

index.js

@@ -25,3 +25,3 @@ var Readable = require('stream').Readable

StreamArray.prototype._read = function(size) {
this.push(this._queue.shift());
this.push(this._queue.length ? this._queue.shift() : null);
};

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

{
"name": "stream-array",
"version": "0.1.3",
"version": "1.0.0",
"description": "Pipe an Array through Node.js streams",

@@ -11,3 +11,3 @@ "dependencies": {

"tap": "~0.4.0",
"concat-stream": "~1.0.0"
"concat-stream": "~1.4.0"
},

@@ -14,0 +14,0 @@ "scripts": {

@@ -6,3 +6,3 @@ # stream-array

[![build status][1]][2] [![npm version][3]][4] [![dependencies][5]][6]
[![build status][1]][2] [![npm version][3]][4] [![dependencies][5]][6] [![devDependencies][7]][8]

@@ -39,2 +39,4 @@

[6]: https://david-dm.org/mimetnet/node-stream-array
[7]: https://david-dm.org/mimetnet/node-stream-array/dev-status.png?#info=devDependencies
[8]: https://david-dm.org/mimetnet/node-stream-array/#info=devDependencies
var test = require('tap').test
, Queue = require('fastqueue');
, Queue = require('fastqueue')
;

@@ -30,3 +30,5 @@

t.equal(undefined, q.shift(), 'empty shift === undefined');
t.end();
});

@@ -7,2 +7,13 @@ var tap = require('tap')

test('empty array', function(t) {
var s = streamify([]);
s.pipe(concat({encoding: 'object'}, function(res) {
t.equal(1, arguments.length, 'concat returns 1 arg');
t.equal(0, res.length, 'result is an empty list');
t.deepEqual([], res, 'result matches expectation');
t.end();
}));
});
test('array of strings', function(t) {

@@ -9,0 +20,0 @@ var s = streamify(['1', '2', '3', 'Four']);

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