@bitrix24/b24jssdk 0.1.3 → 0.1.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/commonjs/index.cjs +19 -6
- package/dist/commonjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/umd/index.js +1076 -2743
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/index.min.js +18 -21
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +3 -4
package/dist/commonjs/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @version @bitrix24/b24jssdk v0.1.
|
|
2
|
+
* @version @bitrix24/b24jssdk v0.1.4
|
|
3
3
|
* @copyright (c) 2024 Bitrix24
|
|
4
4
|
* @licence MIT
|
|
5
5
|
* @links https://github.com/bitrix24/b24jssdk - GitHub
|
|
@@ -9,7 +9,20 @@
|
|
|
9
9
|
|
|
10
10
|
const luxon = require('luxon');
|
|
11
11
|
const axios = require('axios');
|
|
12
|
-
const qs = require('qs');
|
|
12
|
+
const qs = require('qs-esm');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
const n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
for (const k in e) {
|
|
18
|
+
n[k] = e[k];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return n;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const qs__namespace = /*#__PURE__*/_interopNamespaceDefault(qs);
|
|
13
26
|
|
|
14
27
|
var LoggerType = /* @__PURE__ */ ((LoggerType2) => {
|
|
15
28
|
LoggerType2["desktop"] = "desktop";
|
|
@@ -1382,7 +1395,7 @@ class Http {
|
|
|
1382
1395
|
}
|
|
1383
1396
|
if (method) {
|
|
1384
1397
|
cnt++;
|
|
1385
|
-
const data = method + "?" +
|
|
1398
|
+
const data = method + "?" + qs__namespace.stringify(params);
|
|
1386
1399
|
if (isArrayMode || Array.isArray(cmd)) {
|
|
1387
1400
|
cmd.push(data);
|
|
1388
1401
|
} else {
|
|
@@ -1430,7 +1443,7 @@ class Http {
|
|
|
1430
1443
|
},
|
|
1431
1444
|
{
|
|
1432
1445
|
method: q[0] || "",
|
|
1433
|
-
params:
|
|
1446
|
+
params: qs__namespace.parse(q[1] || ""),
|
|
1434
1447
|
start: 0
|
|
1435
1448
|
},
|
|
1436
1449
|
response.getStatus()
|
|
@@ -1454,7 +1467,7 @@ class Http {
|
|
|
1454
1467
|
status: 0,
|
|
1455
1468
|
answerError: {
|
|
1456
1469
|
error: result2.getErrorMessages().join("; "),
|
|
1457
|
-
errorDescription: `batch ${result2.getQuery().method}: ${
|
|
1470
|
+
errorDescription: `batch ${result2.getQuery().method}: ${qs__namespace.stringify(result2.getQuery().params, { encode: false })}`
|
|
1458
1471
|
},
|
|
1459
1472
|
cause: result2.getErrors().next().value
|
|
1460
1473
|
});
|
|
@@ -1605,7 +1618,7 @@ class Http {
|
|
|
1605
1618
|
result.logTag = this.#logTag;
|
|
1606
1619
|
}
|
|
1607
1620
|
result[this.#requestIdGenerator.getQueryStringParameterName()] = this.#requestIdGenerator.getRequestId();
|
|
1608
|
-
result[this.#requestIdGenerator.getQueryStringSdkParameterName()] = "0.1.
|
|
1621
|
+
result[this.#requestIdGenerator.getQueryStringSdkParameterName()] = "0.1.4";
|
|
1609
1622
|
if (!!result.data && !!result.data.start) {
|
|
1610
1623
|
delete result.data.start;
|
|
1611
1624
|
}
|