@binance/derivatives-trading-portfolio-margin-pro 6.0.3 → 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 +7 -4
- 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/derivatives-trading-portfolio-margin-pro.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/derivatives-trading-portfolio-margin-pro";
|
|
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 = {};
|
|
@@ -1618,13 +1617,16 @@ var RestAPI = class {
|
|
|
1618
1617
|
// src/derivatives-trading-portfolio-margin-pro.ts
|
|
1619
1618
|
var DerivativesTradingPortfolioMarginPro = class {
|
|
1620
1619
|
constructor(config) {
|
|
1620
|
+
const userAgent = (0, import_common4.buildUserAgent)(name, version);
|
|
1621
1621
|
if (config?.configurationRestAPI) {
|
|
1622
|
-
const configRestAPI = new import_common4.ConfigurationRestAPI(
|
|
1622
|
+
const configRestAPI = new import_common4.ConfigurationRestAPI(
|
|
1623
|
+
config.configurationRestAPI
|
|
1624
|
+
);
|
|
1623
1625
|
configRestAPI.basePath = configRestAPI.basePath || import_common4.DERIVATIVES_TRADING_PORTFOLIO_MARGIN_PRO_REST_API_PROD_URL;
|
|
1624
1626
|
configRestAPI.baseOptions = configRestAPI.baseOptions || {};
|
|
1625
1627
|
configRestAPI.baseOptions.headers = {
|
|
1626
1628
|
...configRestAPI.baseOptions.headers || {},
|
|
1627
|
-
"User-Agent":
|
|
1629
|
+
"User-Agent": userAgent
|
|
1628
1630
|
};
|
|
1629
1631
|
this.restAPI = new RestAPI(configRestAPI);
|
|
1630
1632
|
}
|