rippled-ws-client-pool
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "rippled-ws-client-pool", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Connection pool for multiple rippled-ws-client connections: client side failover and health checking", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"rippled-ws-client": "0.0.1", | ||
"websocket": "^1.0.26" | ||
}, | ||
"main": "src/index.js", | ||
@@ -11,4 +14,7 @@ "files": [ | ||
"devDependencies": { | ||
"rippled-ws-client": "0.0.1", | ||
"websocket": "^1.0.26" | ||
"babel-preset-es2015-ie": "^6.7.0", | ||
"babel-core": "^6.26.3", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babelify": "^8.0.0", | ||
"browserify": "^16.2.2" | ||
}, | ||
@@ -15,0 +21,0 @@ "repository": { |
@@ -14,3 +14,10 @@ # rippled-ws-client-pool | ||
##### To compile for the browser: | ||
``` | ||
./node_modules/.bin/browserify -t [ babelify --presets [ es2015 ] ] -r .:rippled-ws-client-pool -o dist/rippled-ws-client-pool.js | ||
``` | ||
The output will be in the `dist` folder. You can use it in your project [like this](https://gist.github.com/WietseWind/b8879a123b432485f68a3e4a1139af23). | ||
# API | ||
@@ -17,0 +24,0 @@ |
@@ -102,3 +102,3 @@ 'use strict' | ||
// Do nothing | ||
if ((typeof c.transaction.Account !== 'undefined' && typeof WatchAccounts[c.transaction.Account] !== 'undefined') || (typeof c.transaction.Destination !== 'undefined' && typeof WatchAccounts[c.transaction.Destination] !== 'undefined')) { | ||
if ((typeof c.transaction.Account !== 'undefined' && (typeof WatchAccounts[c.transaction.Account] !== 'undefined' || Object.keys(WatchAccounts).length < 1)) || (typeof c.transaction.Destination !== 'undefined' && (typeof WatchAccounts[c.transaction.Destination] !== 'undefined' || Object.keys(WatchAccounts).length < 1))) { | ||
RecentTransactions.splice(TX_HISTORY_LENGTH) | ||
@@ -105,0 +105,0 @@ let CurrentTxIndex = RecentTransactions.map((r) => { return r.Hash }).indexOf(c.transaction.hash) |
33238
591
243
2
5
+ Addedrippled-ws-client@0.0.1
+ Addedwebsocket@^1.0.26
+ Addedbufferutil@4.0.9(transitive)
+ Addedd@1.0.2(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addednode-gyp-build@4.8.4(transitive)
+ Addedrippled-ws-client@0.0.1(transitive)
+ Addedtype@2.7.3(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedutf-8-validate@5.0.10(transitive)
+ Addedwebsocket@1.0.35(transitive)
+ Addedyaeti@0.0.6(transitive)