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

lazystream

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lazystream - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

test.js

9

lib/lazystream.js

@@ -32,3 +32,6 @@

var source = fn.call(this, options);
var that = this;
var that = this
source.on('error', function(err) {
that.emit('error', err)
})
source.pipe(this);

@@ -48,2 +51,6 @@ });

var destination = fn.call(this, options);
var that = this
destination.on('error', function(err) {
that.emit('error', err)
})
this.pipe(destination);

@@ -50,0 +57,0 @@ });

13

package.json
{
"name": "lazystream",
"version": "0.1.0",
"version": "0.2.0",
"description": "Open Node Streams on demand.",
"homepage": "https://github.com/jpommerening/node-lazystream",
"author": {
"name": "J. Pommerening"
"name": "Jonas Pommerening",
"email": "jonas.pommerening@gmail.com",
"url": "https://npmjs.org/~jpommerening"
},
"contributors": [
"Mario Casciaro <mariocasciaro@gmail.com>"
],
"repository": {

@@ -33,5 +38,7 @@ "type": "git",

"devDependencies": {
"nodeunit": "~0.7.4"
"nodeunit": "^0.9.1"
},
"keywords": [
"emfile",
"lazy",
"streams",

@@ -38,0 +45,0 @@ "stream"

@@ -64,6 +64,16 @@ # Lazy Streams

npm http 200 https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.2.tgz
lazystream@0.0.2 node_modules/lazystream
lazystream@0.2.0 node_modules/lazystream
└── readable-stream@1.0.2
```
## Changelog
### v0.2.0
- [#1](github.com/jpommerening/node-lazystream/pull/1): error events are now propagated
### v0.1.0
- _(this was the first release)_
## Contributing

@@ -70,0 +80,0 @@

@@ -52,4 +52,6 @@

readable.on('readable', function() {
var chunk = readable.read();
actual.push(chunk.toString());
var chunk;
while ((chunk = readable.read())) {
actual.push(chunk.toString());
}
});

@@ -86,5 +88,5 @@ readable.on('end', function() {

test.equal(instantiated, false, 'DummyReadable should only be instantiated when it is needed');
readable.resume();
}
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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