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

unique-stream

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unique-stream - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

.travis.yml

2

index.js

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

ended++;
if (ended == pipes) {
if (ended === pipes || pipes === 0) {
s.writable = false;

@@ -38,0 +38,0 @@ s.emit('end');

{
"name": "unique-stream",
"version": "0.0.2",
"version": "0.0.3",
"description": "node.js through stream that emits a unique stream of objects based on criteria",

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

@@ -5,2 +5,4 @@ # unique-stream

[![build status](https://secure.travis-ci.org/eugeneware/unique-stream.png)](http://travis-ci.org/eugeneware/unique-stream)
## Installation

@@ -7,0 +9,0 @@

@@ -92,2 +92,18 @@ var expect = require('chai').expect

});
it('should be able to handle uniqueness when not piped', function(done) {
var stream = unique();
var count = 0;
stream.on('data', function (data) {
expect(data).to.equal('hello');
count++;
});
stream.on('end', function() {
expect(count).to.equal(1);
done();
});
stream.write('hello');
stream.write('hello');
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