@slavmak2486/bx24ts 1.1.6 → 1.1.7

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/base/BX24.js CHANGED
@@ -349,7 +349,7 @@ class baseBX24 {
349
349
  result[idx] = {
350
350
  data: () => ({}),
351
351
  total: () => 0,
352
- error_description: () => 'Incorrect response from bitrix24',
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: () => `Incorect response from bitrix24`
364
+ error: () => JSON.stringify(res)
365
365
  };
366
366
  }
367
367
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slavmak2486/bx24ts",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Library for bitrix24",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",