@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 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';
@@ -10,6 +10,7 @@ export interface WebSocketClientOptions {
10
10
  timeout?: number;
11
11
  keepAlive?: boolean;
12
12
  keepAliveInterval?: number;
13
+ rejectUnauthorized?: boolean;
13
14
  }
14
15
  export declare class WebSocketClient {
15
16
  private url;
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "2.0.68",
3
+ "version": "2.0.70",
4
4
  "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",