edge-currency-plugins 1.0.0-rc.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -450,7 +450,7 @@ var _utils3 = require('./utils');
|
|
|
450
450
|
const utxoMap = new Map()
|
|
451
451
|
for (const utxo of utxos) {
|
|
452
452
|
const utxoSet = _nullishCoalesce(utxoMap.get(utxo.scriptPubkey), () => ( new Set()))
|
|
453
|
-
if (utxoMap.has(utxo.scriptPubkey)
|
|
453
|
+
if (!utxoMap.has(utxo.scriptPubkey))
|
|
454
454
|
utxoMap.set(utxo.scriptPubkey, utxoSet)
|
|
455
455
|
utxoSet.add(utxo)
|
|
456
456
|
}
|
|
@@ -275,7 +275,12 @@ const WAKE_UP_MS = 5000 // interval at which we wakeUp and potentially onQueueSp
|
|
|
275
275
|
if (!subscription.subscribed) {
|
|
276
276
|
subscription.deferred.reject()
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
try {
|
|
279
|
+
subscription.cb(subscription.cleaner(json.data))
|
|
280
|
+
} catch (error) {
|
|
281
|
+
console.log({ uri, error, json, subscription })
|
|
282
|
+
throw error
|
|
283
|
+
}
|
|
279
284
|
return
|
|
280
285
|
}
|
|
281
286
|
}
|
|
@@ -296,9 +301,9 @@ const WAKE_UP_MS = 5000 // interval at which we wakeUp and potentially onQueueSp
|
|
|
296
301
|
} else {
|
|
297
302
|
message.task.deferred.resolve(json.data)
|
|
298
303
|
}
|
|
299
|
-
} catch (
|
|
300
|
-
|
|
301
|
-
message.task.deferred.reject(
|
|
304
|
+
} catch (error) {
|
|
305
|
+
console.log({ uri, error, json, message })
|
|
306
|
+
message.task.deferred.reject(error)
|
|
302
307
|
}
|
|
303
308
|
}
|
|
304
309
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-currency-plugins",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Edge currency plugins to fetch and process wallet accounts, balances and transactions.",
|
|
5
5
|
"repository": "https://github.com/EdgeApp/edge-currency-plugins",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"bs58smartcheck": "^2.0.4",
|
|
49
49
|
"cleaners": "^0.3.12",
|
|
50
50
|
"disklet": "^0.4.5",
|
|
51
|
-
"edge-core-js": "^0.19.
|
|
51
|
+
"edge-core-js": "^0.19.20",
|
|
52
52
|
"memlet": "^0.1.6",
|
|
53
53
|
"uri-js": "^4.4.0",
|
|
54
54
|
"url-parse": "^1.5.2",
|