@binance/derivatives-trading-portfolio-margin-pro 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.mjs CHANGED
@@ -5,15 +5,15 @@ var __export = (target, all) => {
5
5
  };
6
6
 
7
7
  // src/derivatives-trading-portfolio-margin-pro.ts
8
- import { platform, arch } from "os";
9
8
  import {
9
+ buildUserAgent,
10
10
  ConfigurationRestAPI as ConfigurationRestAPI4,
11
11
  DERIVATIVES_TRADING_PORTFOLIO_MARGIN_PRO_REST_API_PROD_URL
12
12
  } from "@binance/common";
13
13
 
14
14
  // package.json
15
15
  var name = "@binance/derivatives-trading-portfolio-margin-pro";
16
- var version = "6.0.2";
16
+ var version = "6.0.4";
17
17
 
18
18
  // src/rest-api/index.ts
19
19
  var rest_api_exports = {};
@@ -1594,13 +1594,16 @@ var RestAPI = class {
1594
1594
  // src/derivatives-trading-portfolio-margin-pro.ts
1595
1595
  var DerivativesTradingPortfolioMarginPro = class {
1596
1596
  constructor(config) {
1597
+ const userAgent = buildUserAgent(name, version);
1597
1598
  if (config?.configurationRestAPI) {
1598
- const configRestAPI = new ConfigurationRestAPI4(config.configurationRestAPI);
1599
+ const configRestAPI = new ConfigurationRestAPI4(
1600
+ config.configurationRestAPI
1601
+ );
1599
1602
  configRestAPI.basePath = configRestAPI.basePath || DERIVATIVES_TRADING_PORTFOLIO_MARGIN_PRO_REST_API_PROD_URL;
1600
1603
  configRestAPI.baseOptions = configRestAPI.baseOptions || {};
1601
1604
  configRestAPI.baseOptions.headers = {
1602
1605
  ...configRestAPI.baseOptions.headers || {},
1603
- "User-Agent": `${name}/${version} (Node.js/${process.version}; ${platform()}; ${arch()})`
1606
+ "User-Agent": userAgent
1604
1607
  };
1605
1608
  this.restAPI = new RestAPI(configRestAPI);
1606
1609
  }