@tastytrade/api 2.1.1 → 2.1.2
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.
package/dist/account-streamer.js
CHANGED
|
@@ -40,6 +40,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.AccountStreamer = exports.STREAMER_STATE = void 0;
|
|
43
|
+
var isomorphic_ws_1 = __importDefault(require("isomorphic-ws"));
|
|
43
44
|
var lodash_1 = __importDefault(require("lodash"));
|
|
44
45
|
var json_util_1 = require("./utils/json-util");
|
|
45
46
|
var STREAMER_STATE;
|
|
@@ -230,7 +231,7 @@ var AccountStreamer = /** @class */ (function () {
|
|
|
230
231
|
if (this.startPromise !== null) {
|
|
231
232
|
return [2 /*return*/, this.startPromise];
|
|
232
233
|
}
|
|
233
|
-
websocket = (this.websocket = new
|
|
234
|
+
websocket = (this.websocket = new isomorphic_ws_1.default(this.url));
|
|
234
235
|
this.lastCloseEvent = null;
|
|
235
236
|
this.lastErrorEvent = null;
|
|
236
237
|
websocket.addEventListener('open', this.handleOpen);
|
package/lib/account-streamer.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tastytrade/api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"main": "dist/tastytrade-api.js",
|
|
5
5
|
"typings": "dist/tastytrade-api.d.ts",
|
|
6
6
|
"repository": "https://github.com/tastytrade/tastytrade-api-js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"unit-test": "jest --testPathPattern=tests/unit",
|
|
13
13
|
"integration-test": "jest --testPathPattern=tests/integration",
|
|
14
14
|
"lint": "eslint lib/** tests/**",
|
|
15
|
-
"prepublishOnly": "npm run build",
|
|
15
|
+
"prepublishOnly": "npm run test && npm run build",
|
|
16
16
|
"postpack": "git tag -a $npm_package_version -m $npm_package_version && git push origin $npm_package_version"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|