binance 2.13.19 → 2.13.20
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/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -3
- package/lib/util/proxy.d.ts +0 -6
- package/lib/util/proxy.js +0 -34
- package/lib/util/proxy.js.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export * from './types/shared';
|
|
|
8
8
|
export * from './types/spot';
|
|
9
9
|
export * from './types/websockets';
|
|
10
10
|
export * from './usdm-client';
|
|
11
|
-
export * from './util/proxy';
|
|
12
11
|
export * from './util/requestUtils';
|
|
13
12
|
export * from './util/typeGuards';
|
|
14
13
|
export * from './util/WsStore';
|
package/lib/index.js
CHANGED
|
@@ -24,7 +24,6 @@ __exportStar(require("./types/shared"), exports);
|
|
|
24
24
|
__exportStar(require("./types/spot"), exports);
|
|
25
25
|
__exportStar(require("./types/websockets"), exports);
|
|
26
26
|
__exportStar(require("./usdm-client"), exports);
|
|
27
|
-
__exportStar(require("./util/proxy"), exports);
|
|
28
27
|
__exportStar(require("./util/requestUtils"), exports);
|
|
29
28
|
__exportStar(require("./util/typeGuards"), exports);
|
|
30
29
|
__exportStar(require("./util/WsStore"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAAmB;AACnB,iDAA+B;AAC/B,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,qDAAmC;AACnC,gDAA8B;AAC9B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAAmB;AACnB,iDAA+B;AAC/B,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,qDAAmC;AACnC,gDAA8B;AAC9B,sDAAoC;AACpC,oDAAkC;AAClC,iDAA+B;AAC/B,8CAA4B;AAC5B,qDAAmC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "binance",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.20",
|
|
4
4
|
"description": "Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & end-to-end tests.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -47,10 +47,9 @@
|
|
|
47
47
|
"typescript": "^4.7.4"
|
|
48
48
|
},
|
|
49
49
|
"optionalDependencies": {
|
|
50
|
-
"https-proxy-agent": "^6.1.0",
|
|
51
50
|
"source-map-loader": "^2.0.0",
|
|
52
51
|
"ts-loader": "^8.0.11",
|
|
53
|
-
"webpack": "^5.
|
|
52
|
+
"webpack": "^5.97.1"
|
|
54
53
|
},
|
|
55
54
|
"keywords": [
|
|
56
55
|
"binance",
|
package/lib/util/proxy.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
/**
|
|
3
|
-
* Returns an axios & websocket compatible proxy config using brightdata credentials
|
|
4
|
-
*/
|
|
5
|
-
export declare function getHttpsProxyAgent(host: string, port: string | number, user: string, pass: string): AxiosRequestConfig | undefined;
|
|
6
|
-
export declare function getWsProxyAgent(host: string, port: string | number, user: string, pass: string): any;
|
package/lib/util/proxy.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getWsProxyAgent = exports.getHttpsProxyAgent = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Returns an axios & websocket compatible proxy config using brightdata credentials
|
|
6
|
-
*/
|
|
7
|
-
function getHttpsProxyAgent(host, port, user, pass) {
|
|
8
|
-
try {
|
|
9
|
-
// Optional dependency that might be missing
|
|
10
|
-
const { HttpsProxyAgent } = require('https-proxy-agent');
|
|
11
|
-
const url = `https://${user}:${pass}@${host}:${port}`;
|
|
12
|
-
return new HttpsProxyAgent(url);
|
|
13
|
-
}
|
|
14
|
-
catch (e) {
|
|
15
|
-
const msg = `Failed to prepare https proxy config - proxy agent dependency not installed`;
|
|
16
|
-
console.error(new Date(), msg, e);
|
|
17
|
-
throw new Error(msg);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.getHttpsProxyAgent = getHttpsProxyAgent;
|
|
21
|
-
function getWsProxyAgent(host, port, user, pass) {
|
|
22
|
-
try {
|
|
23
|
-
const { SocksProxyAgent } = require('socks-proxy-agent');
|
|
24
|
-
const url = `socks://${user}:${pass}@${host}:${port}`;
|
|
25
|
-
return new SocksProxyAgent(url);
|
|
26
|
-
}
|
|
27
|
-
catch (e) {
|
|
28
|
-
const msg = `Failed to prepare WS proxy config - proxy agent dependency not installed`;
|
|
29
|
-
console.error(new Date(), msg, e);
|
|
30
|
-
throw new Error(msg);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.getWsProxyAgent = getWsProxyAgent;
|
|
34
|
-
//# sourceMappingURL=proxy.js.map
|
package/lib/util/proxy.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.js","sourceRoot":"","sources":["../../src/util/proxy.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,SAAgB,kBAAkB,CAChC,IAAY,EACZ,IAAqB,EACrB,IAAY,EACZ,IAAY;IAEZ,IAAI;QACF,4CAA4C;QAC5C,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAEzD,MAAM,GAAG,GAAG,WAAW,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACtD,OAAO,IAAI,eAAe,CAAC,GAAG,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,GAAG,GAAG,6EAA6E,CAAC;QAC1F,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;QAClC,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;KACtB;AACH,CAAC;AAjBD,gDAiBC;AAED,SAAgB,eAAe,CAC7B,IAAY,EACZ,IAAqB,EACrB,IAAY,EACZ,IAAY;IAEZ,IAAI;QACF,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;QACzD,MAAM,GAAG,GAAG,WAAW,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACtD,OAAO,IAAI,eAAe,CAAC,GAAG,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,GAAG,GAAG,0EAA0E,CAAC;QACvF,OAAO,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;QAClC,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;KACtB;AACH,CAAC;AAfD,0CAeC"}
|