frontblock
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -93,3 +93,6 @@ "use strict"; | ||
if (res instanceof Types_1.SubscriptionResponse) { | ||
this.socket.hook(res.uid, callback); | ||
this.socket.hook(res.uid, (tx) => { | ||
const deserialized = JSON.parse(tx); | ||
callback(deserialized); | ||
}); | ||
} | ||
@@ -112,3 +115,6 @@ return res; | ||
if (res instanceof Types_1.SubscriptionResponse) { | ||
this.socket.hook(res.uid, callback); | ||
this.socket.hook(res.uid, (tx) => { | ||
const deserialized = JSON.parse(tx); | ||
callback(deserialized); | ||
}); | ||
} | ||
@@ -115,0 +121,0 @@ return res; |
@@ -110,3 +110,6 @@ import { Coin, AccountMap, TransactionMap, SubscriptionResponse, ErrorResponse, SuccessResponse, parseResponse, parseSubResponse } from "frontblock-generic/Types"; | ||
if(res instanceof SubscriptionResponse){ | ||
this.socket.hook(res.uid, callback) | ||
this.socket.hook(res.uid, (tx) => { | ||
const deserialized = <TransactionMap[C]>JSON.parse(tx) | ||
callback(deserialized) | ||
}) | ||
} | ||
@@ -132,3 +135,6 @@ return res | ||
if(res instanceof SubscriptionResponse){ | ||
this.socket.hook(res.uid, callback) | ||
this.socket.hook(res.uid, (tx) => { | ||
const deserialized = <TransactionMap[C]>JSON.parse(tx) | ||
callback(deserialized) | ||
}) | ||
} | ||
@@ -135,0 +141,0 @@ return res |
{ | ||
"name": "frontblock", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "frontblock shop-side library ", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
12450
301