@ledgerhq/hw-transport-node-speculos
Advanced tools
Comparing version 5.15.2 to 5.15.3
@@ -84,5 +84,7 @@ import { Subject } from "rxjs"; | ||
socket.on("data", data => { | ||
const ascii = data.toString("ascii"); | ||
const json = JSON.parse(ascii); | ||
this.automationEvents.next(json); | ||
const split = data.toString("ascii").split("\n"); | ||
split.filter(ascii => !!ascii).forEach(ascii => { | ||
const json = JSON.parse(ascii); | ||
this.automationEvents.next(json); | ||
}); | ||
}); | ||
@@ -89,0 +91,0 @@ socket.connect(automationPort, opts.host || "127.0.0.1"); |
@@ -94,5 +94,7 @@ "use strict"; | ||
socket.on("data", data => { | ||
const ascii = data.toString("ascii"); | ||
const json = JSON.parse(ascii); | ||
this.automationEvents.next(json); | ||
const split = data.toString("ascii").split("\n"); | ||
split.filter(ascii => !!ascii).forEach(ascii => { | ||
const json = JSON.parse(ascii); | ||
this.automationEvents.next(json); | ||
}); | ||
}); | ||
@@ -99,0 +101,0 @@ socket.connect(automationPort, opts.host || "127.0.0.1"); |
{ | ||
"name": "@ledgerhq/hw-transport-node-speculos", | ||
"version": "5.15.2", | ||
"version": "5.15.3", | ||
"description": "Ledger Hardware Wallet communication layer with speculos Nano simulator", | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "536b009164061baf46310fb842a99054cb90889f" | ||
"gitHead": "6aefbb66f94ca5e58d3f9f51c3a0757ca0fa5f05" | ||
} |
@@ -98,5 +98,9 @@ //@flow | ||
socket.on("data", (data) => { | ||
const ascii = data.toString("ascii"); | ||
const json = JSON.parse(ascii); | ||
this.automationEvents.next(json); | ||
const split = data.toString("ascii").split("\n"); | ||
split | ||
.filter((ascii) => !!ascii) | ||
.forEach((ascii) => { | ||
const json = JSON.parse(ascii); | ||
this.automationEvents.next(json); | ||
}); | ||
}); | ||
@@ -103,0 +107,0 @@ socket.connect(automationPort, opts.host || "127.0.0.1"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
62341
448