@binance/crypto-loan 6.0.3 → 6.0.5
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/README.md +1 -0
- 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/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@binance/crypto-loan)
|
|
7
7
|

|
|
8
8
|
[](https://snyk.io/test/github/binance/binance-connector-js)
|
|
9
|
+
[](https://binance.github.io/binance-connector-js/modules/_binance_crypto-loan.html)
|
|
9
10
|
[](https://opensource.org/licenses/MIT)
|
|
10
11
|
|
|
11
12
|
This is a client library for the Binance Crypto Loan API, enabling developers to interact programmatically with Binance's Crypto Loan trading platform. The library provides tools to subscribe to fixed-term loans with fixed interest rates through the REST API:
|
package/dist/index.js
CHANGED
|
@@ -37,12 +37,11 @@ __export(index_exports, {
|
|
|
37
37
|
module.exports = __toCommonJS(index_exports);
|
|
38
38
|
|
|
39
39
|
// src/crypto-loan.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/crypto-loan";
|
|
45
|
-
var version = "6.0.
|
|
44
|
+
var version = "6.0.5";
|
|
46
45
|
|
|
47
46
|
// src/rest-api/index.ts
|
|
48
47
|
var rest_api_exports = {};
|
|
@@ -1590,13 +1589,16 @@ var RestAPI = class {
|
|
|
1590
1589
|
// src/crypto-loan.ts
|
|
1591
1590
|
var CryptoLoan = class {
|
|
1592
1591
|
constructor(config) {
|
|
1592
|
+
const userAgent = (0, import_common4.buildUserAgent)(name, version);
|
|
1593
1593
|
if (config?.configurationRestAPI) {
|
|
1594
|
-
const configRestAPI = new import_common4.ConfigurationRestAPI(
|
|
1594
|
+
const configRestAPI = new import_common4.ConfigurationRestAPI(
|
|
1595
|
+
config.configurationRestAPI
|
|
1596
|
+
);
|
|
1595
1597
|
configRestAPI.basePath = configRestAPI.basePath || import_common4.CRYPTO_LOAN_REST_API_PROD_URL;
|
|
1596
1598
|
configRestAPI.baseOptions = configRestAPI.baseOptions || {};
|
|
1597
1599
|
configRestAPI.baseOptions.headers = {
|
|
1598
1600
|
...configRestAPI.baseOptions.headers || {},
|
|
1599
|
-
"User-Agent":
|
|
1601
|
+
"User-Agent": userAgent
|
|
1600
1602
|
};
|
|
1601
1603
|
this.restAPI = new RestAPI(configRestAPI);
|
|
1602
1604
|
}
|