@binance/derivatives-trading-portfolio-margin 4.0.1 → 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 +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5,15 +5,15 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/derivatives-trading-portfolio-margin.ts
|
|
8
|
-
import { platform, arch } from "os";
|
|
9
8
|
import {
|
|
9
|
+
buildUserAgent,
|
|
10
10
|
ConfigurationRestAPI as ConfigurationRestAPI6,
|
|
11
11
|
DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL
|
|
12
12
|
} from "@binance/common";
|
|
13
13
|
|
|
14
14
|
// package.json
|
|
15
15
|
var name = "@binance/derivatives-trading-portfolio-margin";
|
|
16
|
-
var version = "4.0.
|
|
16
|
+
var version = "4.0.2";
|
|
17
17
|
|
|
18
18
|
// src/rest-api/index.ts
|
|
19
19
|
var rest_api_exports = {};
|
|
@@ -9352,13 +9352,16 @@ var RestAPI = class {
|
|
|
9352
9352
|
// src/derivatives-trading-portfolio-margin.ts
|
|
9353
9353
|
var DerivativesTradingPortfolioMargin = class {
|
|
9354
9354
|
constructor(config) {
|
|
9355
|
+
const userAgent = buildUserAgent(name, version);
|
|
9355
9356
|
if (config?.configurationRestAPI) {
|
|
9356
|
-
const configRestAPI = new ConfigurationRestAPI6(
|
|
9357
|
+
const configRestAPI = new ConfigurationRestAPI6(
|
|
9358
|
+
config.configurationRestAPI
|
|
9359
|
+
);
|
|
9357
9360
|
configRestAPI.basePath = configRestAPI.basePath || DERIVATIVES_TRADING_PORTFOLIO_MARGIN_REST_API_PROD_URL;
|
|
9358
9361
|
configRestAPI.baseOptions = configRestAPI.baseOptions || {};
|
|
9359
9362
|
configRestAPI.baseOptions.headers = {
|
|
9360
9363
|
...configRestAPI.baseOptions.headers || {},
|
|
9361
|
-
"User-Agent":
|
|
9364
|
+
"User-Agent": userAgent
|
|
9362
9365
|
};
|
|
9363
9366
|
this.restAPI = new RestAPI(configRestAPI);
|
|
9364
9367
|
}
|