@binance/crypto-loan 6.0.2 → 6.0.4
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.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -37,12 +37,11 @@ __export(index_exports, {
|
|
|
37
37
|
module.exports = __toCommonJS(index_exports);
|
|
38
38
|
|
|
39
39
|
// src/crypto-loan.ts
|
|
40
|
-
var import_os = require("os");
|
|
41
40
|
var import_common4 = require("@binance/common");
|
|
42
41
|
|
|
43
42
|
// package.json
|
|
44
43
|
var name = "@binance/crypto-loan";
|
|
45
|
-
var version = "6.0.
|
|
44
|
+
var version = "6.0.4";
|
|
46
45
|
|
|
47
46
|
// src/rest-api/index.ts
|
|
48
47
|
var rest_api_exports = {};
|
|
@@ -1590,13 +1589,16 @@ var RestAPI = class {
|
|
|
1590
1589
|
// src/crypto-loan.ts
|
|
1591
1590
|
var CryptoLoan = class {
|
|
1592
1591
|
constructor(config) {
|
|
1592
|
+
const userAgent = (0, import_common4.buildUserAgent)(name, version);
|
|
1593
1593
|
if (config?.configurationRestAPI) {
|
|
1594
|
-
const configRestAPI = new import_common4.ConfigurationRestAPI(
|
|
1594
|
+
const configRestAPI = new import_common4.ConfigurationRestAPI(
|
|
1595
|
+
config.configurationRestAPI
|
|
1596
|
+
);
|
|
1595
1597
|
configRestAPI.basePath = configRestAPI.basePath || import_common4.CRYPTO_LOAN_REST_API_PROD_URL;
|
|
1596
1598
|
configRestAPI.baseOptions = configRestAPI.baseOptions || {};
|
|
1597
1599
|
configRestAPI.baseOptions.headers = {
|
|
1598
1600
|
...configRestAPI.baseOptions.headers || {},
|
|
1599
|
-
"User-Agent":
|
|
1601
|
+
"User-Agent": userAgent
|
|
1600
1602
|
};
|
|
1601
1603
|
this.restAPI = new RestAPI(configRestAPI);
|
|
1602
1604
|
}
|