@clonegod/ttd-core 2.0.68 → 2.0.70
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/ws/ws_client.d.ts +1 -0
- package/dist/ws/ws_client.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './quote';
|
|
|
10
10
|
export * from './token';
|
|
11
11
|
export * from './trade';
|
|
12
12
|
export * from './chains';
|
|
13
|
+
export * from './ws';
|
|
13
14
|
export declare const FAILED = "FAILED";
|
|
14
15
|
export declare const SUCCESS = "SUCCESS";
|
|
15
16
|
export declare const NOT_FOUND = "NOT_FOUND";
|
package/dist/index.js
CHANGED
|
@@ -90,6 +90,7 @@ __exportStar(require("./quote"), exports);
|
|
|
90
90
|
__exportStar(require("./token"), exports);
|
|
91
91
|
__exportStar(require("./trade"), exports);
|
|
92
92
|
__exportStar(require("./chains"), exports);
|
|
93
|
+
__exportStar(require("./ws"), exports);
|
|
93
94
|
const short = require('short-uuid');
|
|
94
95
|
const exec = require('util').promisify(require('child_process').exec);
|
|
95
96
|
exports.FAILED = 'FAILED';
|
package/dist/ws/ws_client.d.ts
CHANGED
package/dist/ws/ws_client.js
CHANGED
|
@@ -32,6 +32,7 @@ class WebSocketClient {
|
|
|
32
32
|
handshakeTimeout: 10000,
|
|
33
33
|
perMessageDeflate: true,
|
|
34
34
|
timeout: 5000,
|
|
35
|
+
rejectUnauthorized: false,
|
|
35
36
|
};
|
|
36
37
|
return Object.assign(Object.assign({}, defaults), options);
|
|
37
38
|
}
|
|
@@ -43,7 +44,8 @@ class WebSocketClient {
|
|
|
43
44
|
headers: this.options.headers,
|
|
44
45
|
protocols: this.options.protocols,
|
|
45
46
|
handshakeTimeout: this.options.handshakeTimeout,
|
|
46
|
-
perMessageDeflate: this.options.perMessageDeflate
|
|
47
|
+
perMessageDeflate: this.options.perMessageDeflate,
|
|
48
|
+
rejectUnauthorized: this.options.rejectUnauthorized
|
|
47
49
|
};
|
|
48
50
|
(0, __1.log_info)(`Connecting to ${this.url} with options:`, wsOptions);
|
|
49
51
|
this.ws = new ws_1.default(this.url, wsOptions);
|