@tanker/identity
Advanced tools
@@ -19,2 +19,4 @@ "use strict"; | ||
| _this = _super.call(this, 'InvalidArgument', message) || this; | ||
| // Set the prototype explicitly. | ||
| Object.setPrototypeOf(_this, InvalidArgument.prototype); | ||
| return _this; | ||
@@ -21,0 +23,0 @@ } |
@@ -5,3 +5,2 @@ "use strict"; | ||
| var tslib_1 = require("tslib"); | ||
| var make_error_1 = require("make-error"); | ||
| var TankerError = /** @class */ (function (_super) { | ||
@@ -12,2 +11,5 @@ tslib_1.__extends(TankerError, _super); | ||
| var _this = _super.call(this) || this; | ||
| // Set the prototype explicitly. | ||
| // See https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work | ||
| Object.setPrototypeOf(_this, TankerError.prototype); | ||
| _this.name = name; | ||
@@ -23,3 +25,3 @@ if (typeof message === 'string') { | ||
| return TankerError; | ||
| }(make_error_1.BaseError)); | ||
| }(Error)); | ||
| exports.TankerError = TankerError; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.TANKER_IDENTITY_SDK_VERSION = void 0; | ||
| exports.TANKER_IDENTITY_SDK_VERSION = '3.1.0'; | ||
| exports.TANKER_IDENTITY_SDK_VERSION = '3.2.0'; |
@@ -13,3 +13,5 @@ import { TankerError } from '../TankerError'; | ||
| super('InvalidArgument', message); | ||
| // Set the prototype explicitly. | ||
| Object.setPrototypeOf(this, InvalidArgument.prototype); | ||
| } | ||
| } |
@@ -1,5 +0,7 @@ | ||
| import { BaseError } from 'make-error'; | ||
| export class TankerError extends BaseError { | ||
| export class TankerError extends Error { | ||
| constructor(name = 'TankerError', message) { | ||
| super(); | ||
| // Set the prototype explicitly. | ||
| // See https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work | ||
| Object.setPrototypeOf(this, TankerError.prototype); | ||
| this.name = name; | ||
@@ -6,0 +8,0 @@ if (typeof message === 'string') { |
@@ -1,1 +0,1 @@ | ||
| export const TANKER_IDENTITY_SDK_VERSION = '3.1.0'; | ||
| export const TANKER_IDENTITY_SDK_VERSION = '3.2.0'; |
@@ -16,4 +16,6 @@ "use strict"; | ||
| super('InvalidArgument', message); | ||
| // Set the prototype explicitly. | ||
| Object.setPrototypeOf(this, InvalidArgument.prototype); | ||
| } | ||
| } | ||
| exports.InvalidArgument = InvalidArgument; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.TankerError = void 0; | ||
| const make_error_1 = require("make-error"); | ||
| class TankerError extends make_error_1.BaseError { | ||
| class TankerError extends Error { | ||
| constructor(name = 'TankerError', message) { | ||
| super(); | ||
| // Set the prototype explicitly. | ||
| // See https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work | ||
| Object.setPrototypeOf(this, TankerError.prototype); | ||
| this.name = name; | ||
@@ -9,0 +11,0 @@ if (typeof message === 'string') { |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.TANKER_IDENTITY_SDK_VERSION = void 0; | ||
| exports.TANKER_IDENTITY_SDK_VERSION = '3.1.0'; | ||
| exports.TANKER_IDENTITY_SDK_VERSION = '3.2.0'; |
@@ -1,5 +0,4 @@ | ||
| import { BaseError } from 'make-error'; | ||
| export declare class TankerError extends BaseError { | ||
| export declare class TankerError extends Error { | ||
| constructor(name?: string, message?: string); | ||
| toString(): string; | ||
| } |
@@ -1,1 +0,1 @@ | ||
| export declare const TANKER_IDENTITY_SDK_VERSION = "3.1.0"; | ||
| export declare const TANKER_IDENTITY_SDK_VERSION = "3.2.0"; |
+2
-3
| { | ||
| "name": "@tanker/identity", | ||
| "version": "3.1.0", | ||
| "version": "3.2.0", | ||
| "description": "Tanker Identity SDK", | ||
@@ -29,4 +29,3 @@ "author": "Tanker Team", | ||
| "dependencies": { | ||
| "@tanker/crypto": "^2.15.0", | ||
| "make-error": "^1.3.6" | ||
| "@tanker/crypto": "^2.15.0" | ||
| }, | ||
@@ -33,0 +32,0 @@ "devDependencies": { |
74375
1.15%1
-50%1492
0.74%- Removed
- Removed