linux-device
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -218,7 +218,3 @@ "use strict"; | ||
if(res && this[kSource].forcedDataSize) { | ||
for(let i = 0; i < res.length; i+= res) { | ||
this.push(res.slice(i, i+this[kSource].forcedDataSize)); | ||
} | ||
} if(res && this[kSource].parser) { | ||
if(res && this[kSource].parser) { | ||
if(!this[kSource].emitter) { | ||
@@ -229,2 +225,6 @@ this[kSource].emitter = new EventEmitter(); | ||
this[kSource].parser(this[kSource].emitter, res); | ||
} else if(res && this[kSource].forcedDataSize) { | ||
for(let i = 0; i < res.length; i+= res) { | ||
this.push(res.slice(i, i+this[kSource].forcedDataSize)); | ||
} | ||
} else { | ||
@@ -231,0 +231,0 @@ this.push(res); |
{ | ||
"name": "linux-device", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Native addon to communicate with linux devices (can also be used for sockets or FIFOs)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1104602
2