@binance/simple-earn 5.0.3 → 5.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 +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -37,12 +37,11 @@ __export(index_exports, {
|
|
|
37
37
|
module.exports = __toCommonJS(index_exports);
|
|
38
38
|
|
|
39
39
|
// src/simple-earn.ts
|
|
40
|
-
var import_os = require("os");
|
|
41
40
|
var import_common5 = require("@binance/common");
|
|
42
41
|
|
|
43
42
|
// package.json
|
|
44
43
|
var name = "@binance/simple-earn";
|
|
45
|
-
var version = "5.0.
|
|
44
|
+
var version = "5.0.4";
|
|
46
45
|
|
|
47
46
|
// src/rest-api/index.ts
|
|
48
47
|
var rest_api_exports = {};
|
|
@@ -2277,13 +2276,16 @@ var RestAPI = class {
|
|
|
2277
2276
|
// src/simple-earn.ts
|
|
2278
2277
|
var SimpleEarn = class {
|
|
2279
2278
|
constructor(config) {
|
|
2279
|
+
const userAgent = (0, import_common5.buildUserAgent)(name, version);
|
|
2280
2280
|
if (config?.configurationRestAPI) {
|
|
2281
|
-
const configRestAPI = new import_common5.ConfigurationRestAPI(
|
|
2281
|
+
const configRestAPI = new import_common5.ConfigurationRestAPI(
|
|
2282
|
+
config.configurationRestAPI
|
|
2283
|
+
);
|
|
2282
2284
|
configRestAPI.basePath = configRestAPI.basePath || import_common5.SIMPLE_EARN_REST_API_PROD_URL;
|
|
2283
2285
|
configRestAPI.baseOptions = configRestAPI.baseOptions || {};
|
|
2284
2286
|
configRestAPI.baseOptions.headers = {
|
|
2285
2287
|
...configRestAPI.baseOptions.headers || {},
|
|
2286
|
-
"User-Agent":
|
|
2288
|
+
"User-Agent": userAgent
|
|
2287
2289
|
};
|
|
2288
2290
|
this.restAPI = new RestAPI(configRestAPI);
|
|
2289
2291
|
}
|