@autofleet/zehut 1.4.10-beta-2 → 1.4.10-beta-3

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/lib/errors.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import ApiUser from "./user";
2
2
  export declare class UnauthorizedAccessError extends Error {
3
3
  user: ApiUser;
4
- constructor(user?: any, ...params: any[]);
4
+ constructor(user: any, message: any);
5
5
  }
package/lib/errors.js CHANGED
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnauthorizedAccessError = void 0;
4
4
  class UnauthorizedAccessError extends Error {
5
- constructor(user = null, ...params) {
6
- super(...params);
5
+ constructor(user = null, message) {
6
+ super(message);
7
+ this.name = 'UnauthorizedAccessError';
7
8
  this.user = user;
8
9
  }
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/zehut",
3
- "version": "1.4.10-beta-2",
3
+ "version": "1.4.10-beta-3",
4
4
  "description": "manage user's identity",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",