@binance/derivatives-trading-portfolio-margin 4.0.0 → 4.0.2
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 +3 -3
package/dist/index.js
CHANGED
|
@@ -38,12 +38,11 @@ __export(index_exports, {
|
|
|
38
38
|
module.exports = __toCommonJS(index_exports);
|
|
39
39
|
|
|
40
40
|
// src/derivatives-trading-portfolio-margin.ts
|
|
41
|
-
var import_os = require("os");
|
|
42
41
|
var import_common6 = require("@binance/common");
|
|
43
42
|
|
|
44
43
|
// package.json
|
|
45
44
|
var name = "@binance/derivatives-trading-portfolio-margin";
|
|
46
|
-
var version = "4.0.
|
|
45
|
+
var version = "4.0.2";
|
|
47
46
|
|
|
48
47
|
// src/rest-api/index.ts
|
|
49
48
|
var rest_api_exports = {};
|
|
@@ -9372,13 +9371,16 @@ var RestAPI = class {
|
|
|
9372
9371
|
// src/derivatives-trading-portfolio-margin.ts
|
|
9373
9372
|
var DerivativesTradingPortfolioMargin = class {
|
|
9374
9373
|
constructor(config) {
|
|
9374
|
+
const userAgent = (0, import_common6.buildUserAgent)(name, version);
|
|
9375
9375
|
if (config?.configurationRestAPI) {
|
|
9376
|
-
const configRestAPI = new import_common6.ConfigurationRestAPI(
|
|
9376
|
+
const configRestAPI = new import_common6.ConfigurationRestAPI(
|
|
9377
|
+
config.configurationRestAPI
|
|
9378
|
+
);
|
|
9377
9379
|
configRestAPI.basePath = configRestAPI.basePath || import_common6.DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL;
|
|
9378
9380
|
configRestAPI.baseOptions = configRestAPI.baseOptions || {};
|
|
9379
9381
|
configRestAPI.baseOptions.headers = {
|
|
9380
9382
|
...configRestAPI.baseOptions.headers || {},
|
|
9381
|
-
"User-Agent":
|
|
9383
|
+
"User-Agent": userAgent
|
|
9382
9384
|
};
|
|
9383
9385
|
this.restAPI = new RestAPI(configRestAPI);
|
|
9384
9386
|
}
|