Comparing version 0.1.0 to 0.2.0
@@ -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 @@ }); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20196
13
326
111
3