@slavmak2486/bx24ts 1.2.18 → 1.2.19

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
@@ -3,6 +3,7 @@ import { type AuthBaseServe, type Logger } from "./types/authBaseServe";
3
3
  import { type getAuth } from './types/getAuth';
4
4
  import { CallResult } from "./callResult";
5
5
  import { type BitrixEvent } from "./types/bitrixEvent";
6
+ import { inspect } from "util";
6
7
 
7
8
 
8
9
  export class BX24Server extends baseBX24{
@@ -179,7 +180,7 @@ export class BX24Server extends baseBX24{
179
180
  this.emitEvent('refreshAuth', this.getAuth());
180
181
  const authArr=this.getAuth();
181
182
  if (authArr===false){
182
- reject('Refresh auth undefined error!');
183
+ reject('Refresh auth undefined error!: '+inspect(data, {depth:5}));
183
184
  }
184
185
  else{
185
186
  resolve(authArr);
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BX24Server = void 0;
4
4
  const BX24_1 = require("./base/BX24");
5
5
  const callResult_1 = require("./callResult");
6
+ const util_1 = require("util");
6
7
  class BX24Server extends BX24_1.baseBX24 {
7
8
  constructor(param) {
8
9
  var _a;
@@ -143,7 +144,7 @@ class BX24Server extends BX24_1.baseBX24 {
143
144
  this.emitEvent('refreshAuth', this.getAuth());
144
145
  const authArr = this.getAuth();
145
146
  if (authArr === false) {
146
- reject('Refresh auth undefined error!');
147
+ reject('Refresh auth undefined error!: ' + (0, util_1.inspect)(data, { depth: 5 }));
147
148
  }
148
149
  else {
149
150
  resolve(authArr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slavmak2486/bx24ts",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "description": "Library for bitrix24",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",