@binance/wallet 6.0.1 → 6.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
@@ -37,12 +37,11 @@ __export(index_exports, {
37
37
  module.exports = __toCommonJS(index_exports);
38
38
 
39
39
  // src/wallet.ts
40
- var import_os = require("os");
41
40
  var import_common7 = require("@binance/common");
42
41
 
43
42
  // package.json
44
43
  var name = "@binance/wallet";
45
- var version = "6.0.1";
44
+ var version = "6.0.2";
46
45
 
47
46
  // src/rest-api/index.ts
48
47
  var rest_api_exports = {};
@@ -3950,13 +3949,16 @@ var RestAPI = class {
3950
3949
  // src/wallet.ts
3951
3950
  var Wallet = class {
3952
3951
  constructor(config) {
3952
+ const userAgent = (0, import_common7.buildUserAgent)(name, version);
3953
3953
  if (config?.configurationRestAPI) {
3954
- const configRestAPI = new import_common7.ConfigurationRestAPI(config.configurationRestAPI);
3954
+ const configRestAPI = new import_common7.ConfigurationRestAPI(
3955
+ config.configurationRestAPI
3956
+ );
3955
3957
  configRestAPI.basePath = configRestAPI.basePath || import_common7.WALLET_REST_API_PROD_URL;
3956
3958
  configRestAPI.baseOptions = configRestAPI.baseOptions || {};
3957
3959
  configRestAPI.baseOptions.headers = {
3958
3960
  ...configRestAPI.baseOptions.headers || {},
3959
- "User-Agent": `${name}/${version} (Node.js/${process.version}; ${(0, import_os.platform)()}; ${(0, import_os.arch)()})`
3961
+ "User-Agent": userAgent
3960
3962
  };
3961
3963
  this.restAPI = new RestAPI(configRestAPI);
3962
3964
  }