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

lzma-native

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lzma-native - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"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 @@

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