lzma-native
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "lzma-native", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Hauke Henningsen", |
@@ -29,10 +29,10 @@ /** | ||
this.readable = readable; | ||
this.writable = writable; | ||
this.source = readable; | ||
this.sink = writable; | ||
this.readable.on('end', _.bind(function() { this.push(null); }, this)); | ||
this.readable.on('readable', _.bind(function() { this.read(0); }, this)); | ||
this.readable.on('error', _.bind(function(err) { this.emit('error', err); }, this)); | ||
this.writable.on('error', _.bind(function(err) { this.emit('error', err); }, this)); | ||
this. on('finish', _.bind(function() { this.writable.end(); }, this)); | ||
this.source.on('end', _.bind(function() { this.push(null); }, this)); | ||
this.source.on('readable', _.bind(function() { this.read(0); }, this)); | ||
this.source.on('error', _.bind(function(err) { this.emit('error', err); }, this)); | ||
this.sink .on('error', _.bind(function(err) { this.emit('error', err); }, this)); | ||
this. on('finish', _.bind(function() { this.sink.end(); }, this)); | ||
} | ||
@@ -43,3 +43,3 @@ | ||
SimpleDuplex.prototype._read = function(size) { | ||
var chunk = this.readable.read(size); | ||
var chunk = this.source.read(size); | ||
this.push(chunk === null ? '' : chunk); | ||
@@ -50,3 +50,3 @@ return chunk; | ||
SimpleDuplex.prototype._write = function(chunk, encoding, callback) { | ||
return this.writable.write(chunk, encoding, callback); | ||
return this.sink.write(chunk, encoding, callback); | ||
}; | ||
@@ -53,0 +53,0 @@ |
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
85093
1
1
50340
8
133