@binance/derivatives-trading-usds-futures 7.0.0 → 7.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 CHANGED
@@ -44,12 +44,11 @@ __export(index_exports, {
44
44
  module.exports = __toCommonJS(index_exports);
45
45
 
46
46
  // src/derivatives-trading-usds-futures.ts
47
- var import_os = require("os");
48
47
  var import_common12 = require("@binance/common");
49
48
 
50
49
  // package.json
51
50
  var name = "@binance/derivatives-trading-usds-futures";
52
- var version = "7.0.0";
51
+ var version = "7.0.2";
53
52
 
54
53
  // src/rest-api/index.ts
55
54
  var rest_api_exports = {};
@@ -9808,13 +9807,16 @@ var WebsocketStreams = class {
9808
9807
  // src/derivatives-trading-usds-futures.ts
9809
9808
  var DerivativesTradingUsdsFutures = class {
9810
9809
  constructor(config) {
9810
+ const userAgent = (0, import_common12.buildUserAgent)(name, version);
9811
9811
  if (config?.configurationRestAPI) {
9812
- const configRestAPI = new import_common12.ConfigurationRestAPI(config.configurationRestAPI);
9812
+ const configRestAPI = new import_common12.ConfigurationRestAPI(
9813
+ config.configurationRestAPI
9814
+ );
9813
9815
  configRestAPI.basePath = configRestAPI.basePath || import_common12.DERIVATIVES_TRADING_USDS_FUTURES_REST_API_PROD_URL;
9814
9816
  configRestAPI.baseOptions = configRestAPI.baseOptions || {};
9815
9817
  configRestAPI.baseOptions.headers = {
9816
9818
  ...configRestAPI.baseOptions.headers || {},
9817
- "User-Agent": `${name}/${version} (Node.js/${process.version}; ${(0, import_os.platform)()}; ${(0, import_os.arch)()})`
9819
+ "User-Agent": userAgent
9818
9820
  };
9819
9821
  this.restAPI = new RestAPI(configRestAPI);
9820
9822
  }
@@ -9823,6 +9825,7 @@ var DerivativesTradingUsdsFutures = class {
9823
9825
  config.configurationWebsocketAPI
9824
9826
  );
9825
9827
  configWebsocketAPI.wsURL = configWebsocketAPI.wsURL || import_common12.DERIVATIVES_TRADING_USDS_FUTURES_WS_API_PROD_URL;
9828
+ configWebsocketAPI.userAgent = userAgent;
9826
9829
  this.websocketAPI = new WebsocketAPI(configWebsocketAPI);
9827
9830
  }
9828
9831
  if (config?.configurationWebsocketStreams) {
@@ -9830,6 +9833,7 @@ var DerivativesTradingUsdsFutures = class {
9830
9833
  config.configurationWebsocketStreams
9831
9834
  );
9832
9835
  configWebsocketStreams.wsURL = configWebsocketStreams.wsURL || import_common12.DERIVATIVES_TRADING_USDS_FUTURES_WS_STREAMS_PROD_URL;
9836
+ configWebsocketStreams.userAgent = userAgent;
9833
9837
  this.websocketStreams = new WebsocketStreams(configWebsocketStreams);
9834
9838
  }
9835
9839
  }