@slavmak2486/bx24ts 1.1.6 → 1.1.8
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/base/BX24.ts +1 -1
- package/dist/base/BX24.js +3 -3
- package/package.json +1 -1
package/base/BX24.ts
CHANGED
|
@@ -400,7 +400,7 @@ export abstract class baseBX24{
|
|
|
400
400
|
const result:Partial<{[key in keyof R]:CallResult}>={};
|
|
401
401
|
for(const idx in calls){
|
|
402
402
|
const cmd=calls[idx];
|
|
403
|
-
if (data?.result?.[idx]|| data?.result_error?.[idx]){
|
|
403
|
+
if (data?.result?.[idx]!==undefined|| data?.result_error?.[idx]!==undefined){
|
|
404
404
|
result[idx]=new CallResult({
|
|
405
405
|
result: data.result?.[idx]||{},
|
|
406
406
|
error:data.result_error[idx]||undefined,
|
package/dist/base/BX24.js
CHANGED
|
@@ -332,7 +332,7 @@ class baseBX24 {
|
|
|
332
332
|
const result = {};
|
|
333
333
|
for (const idx in calls) {
|
|
334
334
|
const cmd = calls[idx];
|
|
335
|
-
if (((_a = data === null || data === void 0 ? void 0 : data.result) === null || _a === void 0 ? void 0 : _a[idx]) || ((_b = data === null || data === void 0 ? void 0 : data.result_error) === null || _b === void 0 ? void 0 : _b[idx])) {
|
|
335
|
+
if (((_a = data === null || data === void 0 ? void 0 : data.result) === null || _a === void 0 ? void 0 : _a[idx]) !== undefined || ((_b = data === null || data === void 0 ? void 0 : data.result_error) === null || _b === void 0 ? void 0 : _b[idx]) !== undefined) {
|
|
336
336
|
result[idx] = new callResult_1.CallResult({
|
|
337
337
|
result: ((_c = data.result) === null || _c === void 0 ? void 0 : _c[idx]) || {},
|
|
338
338
|
error: data.result_error[idx] || undefined,
|
|
@@ -349,7 +349,7 @@ class baseBX24 {
|
|
|
349
349
|
result[idx] = {
|
|
350
350
|
data: () => ({}),
|
|
351
351
|
total: () => 0,
|
|
352
|
-
error_description: () =>
|
|
352
|
+
error_description: () => JSON.stringify(res),
|
|
353
353
|
answer: (_d = data === null || data === void 0 ? void 0 : data.result) === null || _d === void 0 ? void 0 : _d[idx],
|
|
354
354
|
query: {
|
|
355
355
|
method: Array.isArray(cmd) ? cmd[0] : cmd === null || cmd === void 0 ? void 0 : cmd.method,
|
|
@@ -361,7 +361,7 @@ class baseBX24 {
|
|
|
361
361
|
time: () => ({}),
|
|
362
362
|
status: res.status,
|
|
363
363
|
more: () => false,
|
|
364
|
-
error: () =>
|
|
364
|
+
error: () => JSON.stringify(res)
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
}
|