@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.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.2";
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(config.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": `${name}/${version} (Node.js/${process.version}; ${(0, import_os.platform)()}; ${(0, import_os.arch)()})`
1629
+ "User-Agent": userAgent
1628
1630
  };
1629
1631
  this.restAPI = new RestAPI(configRestAPI);
1630
1632
  }