@slavmak2486/bx24ts 1.1.5 → 1.1.6

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.
Files changed (2) hide show
  1. package/base/BX24.ts +2 -2
  2. package/package.json +1 -1
package/base/BX24.ts CHANGED
@@ -417,7 +417,7 @@ export abstract class baseBX24{
417
417
  result[idx]={
418
418
  data:()=>({}),
419
419
  total:()=>0,
420
- error_description:()=>'Incorrect response from bitrix24',
420
+ error_description:()=>JSON.stringify(res),
421
421
  answer:data?.result?.[idx],
422
422
  query: {
423
423
  method:Array.isArray(cmd)?cmd[0]:cmd?.method,
@@ -429,7 +429,7 @@ export abstract class baseBX24{
429
429
  time:()=>({}),
430
430
  status:res.status,
431
431
  more:()=>false,
432
- error:()=>`Incorect response from bitrix24`
432
+ error:()=>JSON.stringify(res)
433
433
  };
434
434
  }
435
435
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slavmak2486/bx24ts",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Library for bitrix24",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",