@slavmak2486/bx24ts 1.1.7 → 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 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slavmak2486/bx24ts",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Library for bitrix24",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",