@slavmak2486/bx24ts 1.0.6 → 1.0.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/BX24Server.ts CHANGED
@@ -127,7 +127,7 @@ export class BX24Server extends baseBX24{
127
127
  if (cb) cb(newAuth);
128
128
  })
129
129
  .catch(err=>{
130
- throw err;
130
+ if (cb) cb(err);
131
131
  });
132
132
  }
133
133
 
@@ -89,7 +89,8 @@ class BX24Server extends BX24_1.baseBX24 {
89
89
  cb(newAuth);
90
90
  })
91
91
  .catch(err => {
92
- throw err;
92
+ if (cb)
93
+ cb(err);
93
94
  });
94
95
  }
95
96
  refreshAuthAsync() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slavmak2486/bx24ts",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Library for bitrix24",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",