@ex-master/core
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -16,4 +16,5 @@ "use strict"; | ||
this._destroyed = false; | ||
this.balanceMap = new Map(); | ||
this.dashboard = dashboard; | ||
this.ready = this.initialize(); | ||
this.ready = new Promise(nextTick => process.nextTick(nextTick)).then(() => this.initialize()); | ||
} | ||
@@ -20,0 +21,0 @@ get destroyed() { |
{ | ||
"name": "@ex-master/core", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"main": "bld/library/index.js", | ||
@@ -25,3 +25,3 @@ "types": "bld/library/index.d.ts", | ||
}, | ||
"gitHead": "7a7e8023a4aea3f9e6111abb19c7cfd3e38042b0" | ||
"gitHead": "ba7970b4124a958f0f03571f8e34589076fe5218" | ||
} |
@@ -96,3 +96,3 @@ import {EventEmitter} from 'events'; | ||
private balanceMap!: Map<string, Balance>; | ||
private balanceMap = new Map<string, Balance>(); | ||
private symbolToMarketDataMap!: Map<string, SpotMarketData>; | ||
@@ -112,3 +112,6 @@ | ||
this.dashboard = dashboard; | ||
this.ready = this.initialize(); | ||
this.ready = new Promise(nextTick => process.nextTick(nextTick)).then(() => | ||
this.initialize(), | ||
); | ||
} | ||
@@ -115,0 +118,0 @@ |
Sorry, the diff of this file is not supported yet
34732
854