@digitaldefiance/ecies-lib 1.0.16 → 1.0.17
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/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +6 -5
- package/dist/constants.js.map +1 -1
- package/dist/email-string.d.ts.map +1 -1
- package/dist/email-string.js +4 -3
- package/dist/email-string.js.map +1 -1
- package/dist/enumerations/ecies-encryption-type.d.ts.map +1 -1
- package/dist/enumerations/ecies-encryption-type.js +5 -4
- package/dist/enumerations/ecies-encryption-type.js.map +1 -1
- package/dist/errors/ecies.d.ts +1 -1
- package/dist/errors/ecies.d.ts.map +1 -1
- package/dist/errors/ecies.js +2 -3
- package/dist/errors/ecies.js.map +1 -1
- package/dist/errors/guid.d.ts +1 -1
- package/dist/errors/guid.d.ts.map +1 -1
- package/dist/errors/guid.js +3 -3
- package/dist/errors/guid.js.map +1 -1
- package/dist/errors/invalid-email.d.ts +1 -1
- package/dist/errors/invalid-email.d.ts.map +1 -1
- package/dist/errors/invalid-email.js +2 -3
- package/dist/errors/invalid-email.js.map +1 -1
- package/dist/errors/length.d.ts +1 -1
- package/dist/errors/length.d.ts.map +1 -1
- package/dist/errors/length.js +2 -3
- package/dist/errors/length.js.map +1 -1
- package/dist/errors/member.d.ts +1 -1
- package/dist/errors/member.d.ts.map +1 -1
- package/dist/errors/member.js +2 -3
- package/dist/errors/member.js.map +1 -1
- package/dist/errors/pbkdf2.d.ts +1 -1
- package/dist/errors/pbkdf2.d.ts.map +1 -1
- package/dist/errors/pbkdf2.js +2 -3
- package/dist/errors/pbkdf2.js.map +1 -1
- package/dist/errors/secure-storage.d.ts +1 -1
- package/dist/errors/secure-storage.d.ts.map +1 -1
- package/dist/errors/secure-storage.js +2 -3
- package/dist/errors/secure-storage.js.map +1 -1
- package/dist/errors/simple-ecies.d.ts +1 -1
- package/dist/errors/simple-ecies.d.ts.map +1 -1
- package/dist/errors/simple-ecies.js +2 -3
- package/dist/errors/simple-ecies.js.map +1 -1
- package/dist/errors/translatable.d.ts +1 -1
- package/dist/errors/translatable.d.ts.map +1 -1
- package/dist/errors/translatable.js +1 -2
- package/dist/errors/translatable.js.map +1 -1
- package/dist/errors/typed-handleable.d.ts +1 -1
- package/dist/errors/typed-handleable.d.ts.map +1 -1
- package/dist/errors/typed-handleable.js +4 -6
- package/dist/errors/typed-handleable.js.map +1 -1
- package/dist/guid.d.ts.map +1 -1
- package/dist/guid.js +32 -26
- package/dist/guid.js.map +1 -1
- package/dist/i18n-setup.d.ts.map +1 -1
- package/dist/i18n-setup.js +0 -1
- package/dist/i18n-setup.js.map +1 -1
- package/dist/member.d.ts.map +1 -1
- package/dist/member.js +16 -15
- package/dist/member.js.map +1 -1
- package/dist/secure-buffer.d.ts.map +1 -1
- package/dist/secure-buffer.js +4 -3
- package/dist/secure-buffer.js.map +1 -1
- package/dist/secure-string.d.ts.map +1 -1
- package/dist/secure-string.js +5 -4
- package/dist/secure-string.js.map +1 -1
- package/dist/services/password-login.d.ts +7 -2
- package/dist/services/password-login.d.ts.map +1 -1
- package/dist/services/password-login.js +11 -8
- package/dist/services/password-login.js.map +1 -1
- package/dist/services/pbkdf2.d.ts +9 -5
- package/dist/services/pbkdf2.d.ts.map +1 -1
- package/dist/services/pbkdf2.js +13 -9
- package/dist/services/pbkdf2.js.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +11 -10
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,eAAO,MAAM,UAAU,EAAE,MAAmB,CAAC;AAC7C,eAAO,MAAM,WAAW,EAAE,MAAmB,CAAC;AAC9C,eAAO,MAAM,UAAU,EAAE,MAAuB,CAAC;AACjD,eAAO,MAAM,WAAW,EAAE,MAAmB,CAAC;AAC9C,eAAO,MAAM,UAAU,EAAE,MAA4B,CAAC;AACtD,eAAO,MAAM,WAAW,EAAE,MAAmB,CAAC;AAC9C,eAAO,MAAM,UAAU,EAAE,MAAuC,CAAC;AACjE;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,MAAoB,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,eAYb,CAAC;AAEX,eAAO,MAAM,MAAM,EAAE,aAQX,CAAC;AAEX,eAAO,MAAM,eAAe,EAAE,cAmB7B,CAAC;AAyBF,eAAO,MAAM,KAAK,EAAE,eAoEnB,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,UA8Cd,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -2,6 +2,7 @@ import { ObjectId } from 'bson';
|
|
|
2
2
|
import { ECIESErrorTypeEnum } from './enumerations';
|
|
3
3
|
import { Pbkdf2ProfileEnum } from './enumerations/pbkdf2-profile';
|
|
4
4
|
import { ECIESError } from './errors/ecies';
|
|
5
|
+
import { getEciesI18nEngine } from './i18n-setup';
|
|
5
6
|
export const UINT8_SIZE = 1;
|
|
6
7
|
export const UINT16_SIZE = 2;
|
|
7
8
|
export const UINT16_MAX = 65535;
|
|
@@ -178,18 +179,18 @@ if (objectIdLength !== 12) {
|
|
|
178
179
|
console.warn('ObjectID length may have changed, breaking encryption', objectIdLength);
|
|
179
180
|
}
|
|
180
181
|
if (ECIES.MULTIPLE.ENCRYPTED_KEY_SIZE !== 129) {
|
|
181
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESMultipleEncryptedKeySize);
|
|
182
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESMultipleEncryptedKeySize, getEciesI18nEngine());
|
|
182
183
|
}
|
|
183
184
|
if (ECIES.PUBLIC_KEY_LENGTH !== ECIES.RAW_PUBLIC_KEY_LENGTH + 1) {
|
|
184
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESPublicKeyLength);
|
|
185
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESPublicKeyLength, getEciesI18nEngine());
|
|
185
186
|
}
|
|
186
187
|
if (ECIES.MULTIPLE.RECIPIENT_COUNT_SIZE !== UINT16_SIZE) {
|
|
187
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESMultipleRecipientCountSize);
|
|
188
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESMultipleRecipientCountSize, getEciesI18nEngine());
|
|
188
189
|
}
|
|
189
190
|
if (ECIES.MULTIPLE.DATA_LENGTH_SIZE !== UINT64_SIZE) {
|
|
190
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESMultipleDataLengthSize);
|
|
191
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESMultipleDataLengthSize, getEciesI18nEngine());
|
|
191
192
|
}
|
|
192
193
|
if (ECIES.MULTIPLE.RECIPIENT_ID_SIZE !== GUID_SIZE) {
|
|
193
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESMultipleRecipientIdSize);
|
|
194
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidECIESMultipleRecipientIdSize, getEciesI18nEngine());
|
|
194
195
|
}
|
|
195
196
|
//# sourceMappingURL=constants.js.map
|
package/dist/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAW,CAAU,CAAC;AAC7C,MAAM,CAAC,MAAM,WAAW,GAAW,CAAU,CAAC;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAW,KAAc,CAAC;AACjD,MAAM,CAAC,MAAM,WAAW,GAAW,CAAU,CAAC;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAW,UAAmB,CAAC;AACtD,MAAM,CAAC,MAAM,WAAW,GAAW,CAAU,CAAC;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAW,qBAA8B,CAAC;AACjE;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAW,EAAW,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAoB;IACvC,iCAAiC;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qBAAqB,GAAG,CAAC,EAAE,CAAC;IAChE,MAAM,IAAI,UAAU,CAAC,kBAAkB,CAAC,2BAA2B,EAAE,kBAAkB,EAAE,CAAC,CAAC;AAC7F,CAAC;AAED,IAAI,KAAK,CAAC,QAAQ,CAAC,oBAAoB,KAAK,WAAW,EAAE,CAAC;IACxD,MAAM,IAAI,UAAU,CAClB,kBAAkB,CAAC,sCAAsC,EAAE,kBAAkB,EAAE,CAChF,CAAC;AACJ,CAAC;AAED,IAAI,KAAK,CAAC,QAAQ,CAAC,gBAAgB,KAAK,WAAW,EAAE,CAAC;IACpD,MAAM,IAAI,UAAU,CAAC,kBAAkB,CAAC,kCAAkC,EAAE,kBAAkB,EAAE,CAAC,CAAC;AACpG,CAAC;AAED,IAAI,KAAK,CAAC,QAAQ,CAAC,iBAAiB,KAAK,SAAS,EAAE,CAAC;IACnD,MAAM,IAAI,UAAU,CAAC,kBAAkB,CAAC,mCAAmC,EAAE,kBAAkB,EAAE,CAAC,CAAC;AACrG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-string.d.ts","sourceRoot":"","sources":["../src/email-string.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-string.d.ts","sourceRoot":"","sources":["../src/email-string.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,qBAAa,WAAW;IACtB,SAAgB,KAAK,EAAE,MAAM,CAAC;IAE9B;;;;OAIG;gBACS,KAAK,EAAE,MAAM;IAczB;;;OAGG;IACI,QAAQ,IAAI,MAAM;IAIzB;;;;OAIG;IACI,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAI1C;;;OAGG;IACI,MAAM,IAAI,MAAM;IAIvB;;;;OAIG;WACW,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;IAIlD;;;OAGG;IACH,IAAW,MAAM,IAAI,MAAM,CAE1B;CACF"}
|
package/dist/email-string.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import validator from 'validator';
|
|
2
2
|
import { InvalidEmailErrorType } from './enumerations/invalid-email-type';
|
|
3
3
|
import { InvalidEmailError } from './errors/invalid-email';
|
|
4
|
+
import { getEciesI18nEngine } from './i18n-setup';
|
|
4
5
|
/**
|
|
5
6
|
* EmailString represents a validated email address.
|
|
6
7
|
* It ensures that the email is not empty, does not have leading or trailing spaces,
|
|
@@ -16,13 +17,13 @@ export class EmailString {
|
|
|
16
17
|
constructor(email) {
|
|
17
18
|
const trimmedEmail = email.trim();
|
|
18
19
|
if (trimmedEmail.length == 0) {
|
|
19
|
-
throw new InvalidEmailError(InvalidEmailErrorType.Missing);
|
|
20
|
+
throw new InvalidEmailError(InvalidEmailErrorType.Missing, getEciesI18nEngine());
|
|
20
21
|
}
|
|
21
22
|
if (trimmedEmail.length != email.length) {
|
|
22
|
-
throw new InvalidEmailError(InvalidEmailErrorType.Whitespace);
|
|
23
|
+
throw new InvalidEmailError(InvalidEmailErrorType.Whitespace, getEciesI18nEngine());
|
|
23
24
|
}
|
|
24
25
|
if (!validator.isEmail(trimmedEmail)) {
|
|
25
|
-
throw new InvalidEmailError(InvalidEmailErrorType.Invalid);
|
|
26
|
+
throw new InvalidEmailError(InvalidEmailErrorType.Invalid, getEciesI18nEngine());
|
|
26
27
|
}
|
|
27
28
|
this.email = trimmedEmail;
|
|
28
29
|
}
|
package/dist/email-string.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-string.js","sourceRoot":"","sources":["../src/email-string.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"email-string.js","sourceRoot":"","sources":["../src/email-string.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,E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C;IAC5C,CAAC;IAED;;;OAGG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecies-encryption-type.d.ts","sourceRoot":"","sources":["../../src/enumerations/ecies-encryption-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecies-encryption-type.d.ts","sourceRoot":"","sources":["../../src/enumerations/ecies-encryption-type.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEnE,oBAAY,uBAAuB;IACjC,MAAM,KAAK;IACX,MAAM,KAAK;IACX,QAAQ,KAAK;CACd;AAED,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,mBAAmB,EACnB,uBAAuB,CAKxB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAK1E,CAAC;AAEJ,eAAO,MAAM,8BAA8B,EAAE,MAAM,CACjD,uBAAuB,EACvB,mBAAmB,CAKpB,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CACnD,uBAAuB,EACvB,MAAM,CAKP,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,mBAAmB,GAAG,uBAAuB,GAClD,MAAM,CAgBR;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,uBAAuB,GAC5B,mBAAmB,CAMrB;AAED,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,uBAAuB,GAC5B,OAAO,CAET;AAED,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,uBAAuB,GAC5B,uBAAuB,CAKzB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEciesI18nEngine } from '../i18n-setup';
|
|
1
2
|
import { ECIESError } from '../errors/ecies';
|
|
2
3
|
import { ECIESErrorTypeEnum } from './ecies-error-type';
|
|
3
4
|
export var EciesEncryptionTypeEnum;
|
|
@@ -32,7 +33,7 @@ export function encryptionTypeToString(type) {
|
|
|
32
33
|
if (typeof type === 'number') {
|
|
33
34
|
resultType = EciesEncryptionTypeEnumTypeMap[type];
|
|
34
35
|
if (resultType === undefined) {
|
|
35
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidEncryptionType);
|
|
36
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidEncryptionType, getEciesI18nEngine());
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
else {
|
|
@@ -40,14 +41,14 @@ export function encryptionTypeToString(type) {
|
|
|
40
41
|
}
|
|
41
42
|
const result = EciesEncryptionTypeStringMap[resultType];
|
|
42
43
|
if (result === undefined) {
|
|
43
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidEncryptionType);
|
|
44
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidEncryptionType, getEciesI18nEngine());
|
|
44
45
|
}
|
|
45
46
|
return result;
|
|
46
47
|
}
|
|
47
48
|
export function encryptionTypeEnumToType(type) {
|
|
48
49
|
const result = EciesEncryptionTypeEnumTypeMap[type];
|
|
49
50
|
if (result === undefined) {
|
|
50
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidEncryptionType);
|
|
51
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidEncryptionType, getEciesI18nEngine());
|
|
51
52
|
}
|
|
52
53
|
return result;
|
|
53
54
|
}
|
|
@@ -56,7 +57,7 @@ export function validateEciesEncryptionTypeEnum(type) {
|
|
|
56
57
|
}
|
|
57
58
|
export function ensureEciesEncryptionTypeEnum(type) {
|
|
58
59
|
if (!validateEciesEncryptionTypeEnum(type)) {
|
|
59
|
-
throw new ECIESError(ECIESErrorTypeEnum.InvalidEncryptionType);
|
|
60
|
+
throw new ECIESError(ECIESErrorTypeEnum.InvalidEncryptionType, getEciesI18nEngine());
|
|
60
61
|
}
|
|
61
62
|
return type;
|
|
62
63
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AAE,CAAC,CAAC;IACvF,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/errors/ecies.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { TypedHandleableError } from './typed-handleable';
|
|
|
4
4
|
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
5
5
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
6
6
|
export declare class ECIESError extends TypedHandleableError<typeof ECIESErrorTypeEnum, EciesStringKey> {
|
|
7
|
-
constructor(type: ECIESErrorTypeEnum,
|
|
7
|
+
constructor(type: ECIESErrorTypeEnum, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=ecies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecies.d.ts","sourceRoot":"","sources":["../../src/errors/ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"ecies.d.ts","sourceRoot":"","sources":["../../src/errors/ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,qBAAa,UAAW,SAAQ,oBAAoB,CAAC,OAAO,kBAAkB,EAAE,cAAc,CAAC;gBACjF,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAIpJ"}
|
package/dist/errors/ecies.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ECIESErrorTypeEnum } from '../enumerations/ecies-error-type';
|
|
2
2
|
import { TypedHandleableError } from './typed-handleable';
|
|
3
3
|
import { buildReasonMap } from '@digitaldefiance/i18n-lib';
|
|
4
|
-
import { EciesI18nEngine } from '../i18n-setup';
|
|
5
4
|
export class ECIESError extends TypedHandleableError {
|
|
6
|
-
constructor(type, options, language
|
|
7
|
-
super(type, buildReasonMap(ECIESErrorTypeEnum, ['Error', 'ECIESError']), language, undefined, options
|
|
5
|
+
constructor(type, engine, options, language) {
|
|
6
|
+
super(type, buildReasonMap(ECIESErrorTypeEnum, ['Error', 'ECIESError']), engine, language, undefined, options);
|
|
8
7
|
this.name = 'ECIESError';
|
|
9
8
|
}
|
|
10
9
|
}
|
package/dist/errors/ecies.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecies.js","sourceRoot":"","sources":["../../src/errors/ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ecies.js","sourceRoot":"","sources":["../../src/errors/ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AAGjF,MAAM,OAAO,UAAW,SAAQ,oBAA+D;IAC7F,YAAY,IAAwB,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QACjJ,KAAK,CAAC,IAAI,EAAE,cAAc,CAA4C,kBAAkB,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC1J,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC3B,CAAC;CACF"}
|
package/dist/errors/guid.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export declare class GuidError extends TypedHandleableError<typeof GuidErrorType
|
|
|
12
12
|
readonly brand?: GuidBrandType;
|
|
13
13
|
readonly length?: number;
|
|
14
14
|
readonly guid?: Uint8Array;
|
|
15
|
-
constructor(type: GuidErrorType, brand?: GuidBrandType, length?: number, guid?: RawGuidUint8Array | Uint8Array, options?: HandleableErrorOptions, language?: Language
|
|
15
|
+
constructor(type: GuidErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, brand?: GuidBrandType, length?: number, guid?: RawGuidUint8Array | Uint8Array, options?: HandleableErrorOptions, language?: Language);
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=guid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guid.d.ts","sourceRoot":"","sources":["../../src/errors/guid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,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Q,EAAE,GAAG,EAAE,GAAG,CAAC,EACtD,KAAK,CAAC,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,iBAAiB,GAAG,UAAU,EACrC,OAAO,CAAC,EAAE,sBAAsB,EAChC,QAAQ,CAAC,EAAE,QAAQ;CAWtB"}
|
package/dist/errors/guid.js
CHANGED
|
@@ -8,12 +8,12 @@ export class GuidError extends TypedHandleableError {
|
|
|
8
8
|
brand;
|
|
9
9
|
length;
|
|
10
10
|
guid;
|
|
11
|
-
constructor(type, brand, length, guid, options, language
|
|
12
|
-
super(type, buildReasonMap(GuidErrorType, ['Error', 'GuidError'], new Set([GuidErrorType.InvalidWithGuid, GuidErrorType.UnknownBrand, GuidErrorType.UnknownLength])), language, {
|
|
11
|
+
constructor(type, engine, brand, length, guid, options, language) {
|
|
12
|
+
super(type, buildReasonMap(GuidErrorType, ['Error', 'GuidError'], new Set([GuidErrorType.InvalidWithGuid, GuidErrorType.UnknownBrand, GuidErrorType.UnknownLength])), engine, language, {
|
|
13
13
|
GUID: guid ? Array.from(guid).map(b => b.toString(16).padStart(2, '0')).join(' ') : '',
|
|
14
14
|
BRAND: String(brand) ?? '',
|
|
15
15
|
LENGTH: String(length) ?? '',
|
|
16
|
-
}, options
|
|
16
|
+
}, options);
|
|
17
17
|
this.brand = brand;
|
|
18
18
|
this.length = length;
|
|
19
19
|
this.guid = guid;
|
package/dist/errors/guid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guid.js","sourceRoot":"","sources":["../../src/errors/guid.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AAGjF;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,oBAA0D;IACvE,KAAK,CAAi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;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -4,6 +4,6 @@ import { TypedHandleableError } from './typed-handleable';
|
|
|
4
4
|
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
5
5
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
6
6
|
export declare class InvalidEmailError extends TypedHandleableError<typeof InvalidEmailErrorType, EciesStringKey> {
|
|
7
|
-
constructor(type: InvalidEmailErrorType,
|
|
7
|
+
constructor(type: InvalidEmailErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=invalid-email.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-email.d.ts","sourceRoot":"","sources":["../../src/errors/invalid-email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"invalid-email.d.ts","sourceRoot":"","sources":["../../src/errors/invalid-email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,qBAAa,iBAAkB,SAAQ,oBAAoB,CAAC,OAAO,qBAAqB,EAAE,cAAc,CAAC;gBAC3F,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAIvJ"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { InvalidEmailErrorType } from '../enumerations/invalid-email-type';
|
|
2
2
|
import { TypedHandleableError } from './typed-handleable';
|
|
3
3
|
import { buildReasonMap } from '@digitaldefiance/i18n-lib';
|
|
4
|
-
import { EciesI18nEngine } from '../i18n-setup';
|
|
5
4
|
export class InvalidEmailError extends TypedHandleableError {
|
|
6
|
-
constructor(type, options, language
|
|
7
|
-
super(type, buildReasonMap(InvalidEmailErrorType, ['Error', 'InvalidEmailError']), language, undefined, options
|
|
5
|
+
constructor(type, engine, options, language) {
|
|
6
|
+
super(type, buildReasonMap(InvalidEmailErrorType, ['Error', 'InvalidEmailError']), engine, language, undefined, options);
|
|
8
7
|
this.name = 'InvalidEmailError';
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-email.js","sourceRoot":"","sources":["../../src/errors/invalid-email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"invalid-email.js","sourceRoot":"","sources":["../../src/errors/invalid-email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AAGjF,MAAM,OAAO,iBAAkB,SAAQ,oBAAkE;IACvG,YAAY,IAA2B,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QACpJ,KAAK,CAAC,IAAI,EAAE,cAAc,CAA+C,qBAAqB,EAAE,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACvK,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF"}
|
package/dist/errors/length.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
|
4
4
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
5
5
|
import { TypedHandleableError } from './typed-handleable';
|
|
6
6
|
export declare class LengthError extends TypedHandleableError<typeof LengthErrorType, EciesStringKey> {
|
|
7
|
-
constructor(type: LengthErrorType,
|
|
7
|
+
constructor(type: LengthErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=length.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"length.d.ts","sourceRoot":"","sources":["../../src/errors/length.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"length.d.ts","sourceRoot":"","sources":["../../src/errors/length.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,qBAAa,WAAY,SAAQ,oBAAoB,CAAC,OAAO,eAAe,EAAE,cAAc,CAAC;gBAC/E,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAIjJ"}
|
package/dist/errors/length.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { LengthErrorType } from '../enumerations/length-error-type';
|
|
2
2
|
import { buildReasonMap } from '@digitaldefiance/i18n-lib';
|
|
3
|
-
import { EciesI18nEngine } from '../i18n-setup';
|
|
4
3
|
import { TypedHandleableError } from './typed-handleable';
|
|
5
4
|
export class LengthError extends TypedHandleableError {
|
|
6
|
-
constructor(type, options, language
|
|
7
|
-
super(type, buildReasonMap(LengthErrorType, ['Error', 'LengthError']), language, undefined, options
|
|
5
|
+
constructor(type, engine, options, language) {
|
|
6
|
+
super(type, buildReasonMap(LengthErrorType, ['Error', 'LengthError']), engine, language, undefined, options);
|
|
8
7
|
this.name = 'LengthError';
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"length.js","sourceRoot":"","sources":["../../src/errors/length.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AAEjF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"length.js","sourceRoot":"","sources":["../../src/errors/length.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AAEjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,OAAO,WAAY,SAAQ,oBAA4D;IAC3F,YAAY,IAAqB,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QAC9I,KAAK,CAAC,IAAI,EAAE,cAAc,CAAyC,eAAe,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACrJ,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;CACF"}
|
package/dist/errors/member.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { TypedHandleableError } from './typed-handleable';
|
|
|
4
4
|
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
5
5
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
6
6
|
export declare class MemberError extends TypedHandleableError<typeof MemberErrorType, EciesStringKey> {
|
|
7
|
-
constructor(type: MemberErrorType,
|
|
7
|
+
constructor(type: MemberErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=member.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../src/errors/member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"member.d.ts","sourceRoot":"","sources":["../../src/errors/member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,qBAAa,WAAY,SAAQ,oBAAoB,CAAC,OAAO,eAAe,EAAE,cAAc,CAAC;gBAE/E,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAIjJ"}
|
package/dist/errors/member.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { MemberErrorType } from '../enumerations/member-error-type';
|
|
2
2
|
import { TypedHandleableError } from './typed-handleable';
|
|
3
3
|
import { buildReasonMap } from '@digitaldefiance/i18n-lib';
|
|
4
|
-
import { getEciesI18nEngine } from '../i18n-setup';
|
|
5
4
|
export class MemberError extends TypedHandleableError {
|
|
6
|
-
constructor(type, options, language
|
|
7
|
-
super(type, buildReasonMap(MemberErrorType, ['Error', 'MemberError']), language, undefined, options
|
|
5
|
+
constructor(type, engine, options, language) {
|
|
6
|
+
super(type, buildReasonMap(MemberErrorType, ['Error', 'MemberError']), engine, language, undefined, options);
|
|
8
7
|
this.name = 'MemberError';
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../src/errors/member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../src/errors/member.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AAGjF,MAAM,OAAO,WAAY,SAAQ,oBAA4D;IAE3F,YAAY,IAAqB,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QAC9I,KAAK,CAAC,IAAI,EAAE,cAAc,CAAyC,eAAe,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACrJ,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;CACF"}
|
package/dist/errors/pbkdf2.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
|
4
4
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
5
5
|
import { TypedHandleableError } from './typed-handleable';
|
|
6
6
|
export declare class Pbkdf2Error extends TypedHandleableError<typeof Pbkdf2ErrorType, EciesStringKey> {
|
|
7
|
-
constructor(type: Pbkdf2ErrorType,
|
|
7
|
+
constructor(type: Pbkdf2ErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=pbkdf2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbkdf2.d.ts","sourceRoot":"","sources":["../../src/errors/pbkdf2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"pbkdf2.d.ts","sourceRoot":"","sources":["../../src/errors/pbkdf2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,qBAAa,WAAY,SAAQ,oBAAoB,CAAC,OAAO,eAAe,EAAE,cAAc,CAAC;gBAE/E,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAIjJ"}
|
package/dist/errors/pbkdf2.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Pbkdf2ErrorType } from '../enumerations/pbkdf2-error-type';
|
|
2
2
|
import { buildReasonMap } from '@digitaldefiance/i18n-lib';
|
|
3
|
-
import { getEciesI18nEngine } from '../i18n-setup';
|
|
4
3
|
import { TypedHandleableError } from './typed-handleable';
|
|
5
4
|
export class Pbkdf2Error extends TypedHandleableError {
|
|
6
|
-
constructor(type, options, language
|
|
7
|
-
super(type, buildReasonMap(Pbkdf2ErrorType, ['Error', 'Pbkdf2Error']), language, undefined, options);
|
|
5
|
+
constructor(type, engine, options, language) {
|
|
6
|
+
super(type, buildReasonMap(Pbkdf2ErrorType, ['Error', 'Pbkdf2Error']), engine, language, undefined, options);
|
|
8
7
|
this.name = 'Pbkdf2Error';
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbkdf2.js","sourceRoot":"","sources":["../../src/errors/pbkdf2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"pbkdf2.js","sourceRoot":"","sources":["../../src/errors/pbkdf2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AAEjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,OAAO,WAAY,SAAQ,oBAA4D;IAE3F,YAAY,IAAqB,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QAC9I,KAAK,CAAC,IAAI,EAAE,cAAc,CAAyC,eAAe,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACrJ,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;CACF"}
|
|
@@ -4,6 +4,6 @@ import { TypedHandleableError } from './typed-handleable';
|
|
|
4
4
|
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
5
5
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
6
6
|
export declare class SecureStorageError extends TypedHandleableError<typeof SecureStorageErrorType, EciesStringKey> {
|
|
7
|
-
constructor(type: SecureStorageErrorType,
|
|
7
|
+
constructor(type: SecureStorageErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=secure-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secure-storage.d.ts","sourceRoot":"","sources":["../../src/errors/secure-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"secure-storage.d.ts","sourceRoot":"","sources":["../../src/errors/secure-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,qBAAa,kBAAmB,SAAQ,oBAAoB,CAAC,OAAO,sBAAsB,EAAE,cAAc,CAAC;gBAC7F,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAMxJ"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { SecureStorageErrorType } from '../enumerations/secure-storage-error-type';
|
|
2
2
|
import { TypedHandleableError } from './typed-handleable';
|
|
3
3
|
import { buildReasonMap } from '@digitaldefiance/i18n-lib';
|
|
4
|
-
import { getEciesI18nEngine } from '../i18n-setup';
|
|
5
4
|
export class SecureStorageError extends TypedHandleableError {
|
|
6
|
-
constructor(type, options, language
|
|
5
|
+
constructor(type, engine, options, language) {
|
|
7
6
|
const reasonMap = buildReasonMap(SecureStorageErrorType, ['Error', 'SecureStorageError']);
|
|
8
|
-
super(type, reasonMap, language, undefined, options
|
|
7
|
+
super(type, reasonMap, engine, language, undefined, options);
|
|
9
8
|
this.name = 'SecureStorageError';
|
|
10
9
|
}
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secure-storage.js","sourceRoot":"","sources":["../../src/errors/secure-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"secure-storage.js","sourceRoot":"","sources":["../../src/errors/secure-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AAGjF,MAAM,OAAO,kBAAmB,SAAQ,oBAAmE;IACzG,YAAY,IAA4B,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QACrJ,MAAM,SAAS,GAAG,cAAc,CAAgD,sBAAsB,EAAE,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC;QAEzI,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC7D,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -3,6 +3,6 @@ import { ECIESErrorTypeEnum, EciesStringKey } from '../enumerations';
|
|
|
3
3
|
import { TypedHandleableError } from './typed-handleable';
|
|
4
4
|
import { HandleableErrorOptions } from '../interfaces/handleable-error-options';
|
|
5
5
|
export declare class SimpleECIESError extends TypedHandleableError<typeof ECIESErrorTypeEnum, EciesStringKey> {
|
|
6
|
-
constructor(type: ECIESErrorTypeEnum, engine
|
|
6
|
+
constructor(type: ECIESErrorTypeEnum, engine: I18nEngine<EciesStringKey, Language, any, any>, language?: any, otherVars?: Record<string, string | number>, options?: HandleableErrorOptions);
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=simple-ecies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-ecies.d.ts","sourceRoot":"","sources":["../../src/errors/simple-ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"simple-ecies.d.ts","sourceRoot":"","sources":["../../src/errors/simple-ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,qBAAa,gBAAiB,SAAQ,oBAAoB,CAAC,OAAO,kBAAkB,EAAE,cAAc,CAAC;gBAEjG,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EACtD,QAAQ,CAAC,EAAE,GAAG,EACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAC3C,OAAO,CAAC,EAAE,sBAAsB;CAOnC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { buildReasonMap } from '@digitaldefiance/i18n-lib';
|
|
2
2
|
import { ECIESErrorTypeEnum } from '../enumerations';
|
|
3
3
|
import { TypedHandleableError } from './typed-handleable';
|
|
4
|
-
import { getEciesI18nEngine } from '../i18n-setup';
|
|
5
4
|
export class SimpleECIESError extends TypedHandleableError {
|
|
6
|
-
constructor(type, engine
|
|
5
|
+
constructor(type, engine, language, otherVars, options) {
|
|
7
6
|
const reasonMap = buildReasonMap(ECIESErrorTypeEnum, ['Error', 'ECIESError']);
|
|
8
|
-
super(type, reasonMap, language, otherVars, options
|
|
7
|
+
super(type, reasonMap, engine, language, otherVars, options);
|
|
9
8
|
this.name = 'SimpleECIESError';
|
|
10
9
|
}
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-ecies.js","sourceRoot":"","sources":["../../src/errors/simple-ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAkB,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"simple-ecies.js","sourceRoot":"","sources":["../../src/errors/simple-ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAkB,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG1D,MAAM,OAAO,gBAAiB,SAAQ,oBAA+D;IACnG,YACE,IAAwB,EACxB,MAAsD,EACtD,QAAc,EACd,SAA2C,EAC3C,OAAgC;QAEhC,MAAM,SAAS,GAAG,cAAc,CAA4C,kBAAkB,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;QAEzH,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC7D,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -4,6 +4,6 @@ import { HandleableError } from './handleable';
|
|
|
4
4
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
5
5
|
export declare class TranslatableError extends HandleableError {
|
|
6
6
|
readonly StringName: string;
|
|
7
|
-
constructor(string: EciesStringKey, otherVars?: Record<string, string | number>, language?: Language, options?: HandleableErrorOptions,
|
|
7
|
+
constructor(string: EciesStringKey, engine: I18nEngine<EciesStringKey, Language, any, any>, otherVars?: Record<string, string | number>, language?: Language, options?: HandleableErrorOptions, source?: Error);
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=translatable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translatable.d.ts","sourceRoot":"","sources":["../../src/errors/translatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"translatable.d.ts","sourceRoot":"","sources":["../../src/errors/translatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,qBAAa,iBAAkB,SAAQ,eAAe;IACpD,SAAgB,UAAU,EAAE,MAAM,CAAC;gBAEjC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EACtD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAC3C,QAAQ,CAAC,EAAE,QAAQ,EACnB,OAAO,CAAC,EAAE,sBAAsB,EAChC,MAAM,CAAC,EAAE,KAAK;CAMjB"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { HandleableError } from './handleable';
|
|
2
|
-
import { getEciesI18nEngine } from '../i18n-setup';
|
|
3
2
|
export class TranslatableError extends HandleableError {
|
|
4
3
|
StringName;
|
|
5
|
-
constructor(string, otherVars, language, options,
|
|
4
|
+
constructor(string, engine, otherVars, language, options, source) {
|
|
6
5
|
super(engine.translate(string, otherVars, language), options, source);
|
|
7
6
|
this.name = 'TranslatableError';
|
|
8
7
|
this.StringName = string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translatable.js","sourceRoot":"","sources":["../../src/errors/translatable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"translatable.js","sourceRoot":"","sources":["../../src/errors/translatable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,OAAO,iBAAkB,SAAQ,eAAe;IACpC,UAAU,CAAS;IACnC,YACE,MAAsB,EACtB,MAAsD,EACtD,SAA2C,EAC3C,QAAmB,EACnB,OAAgC,EAChC,MAAc;QAEd,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACtE,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -7,7 +7,7 @@ export declare class TypedHandleableError<TEnum extends Record<string, string>,
|
|
|
7
7
|
readonly engine: I18nEngine<any, any, any, any>;
|
|
8
8
|
readonly language?: Language;
|
|
9
9
|
readonly otherVars?: Record<string, string | number>;
|
|
10
|
-
constructor(type: TEnum[keyof TEnum], reasonMap: CompleteReasonMap<TEnum, TStringKey>, language?: Language, otherVars?: Record<string, string | number>, options?: HandleableErrorOptions,
|
|
10
|
+
constructor(type: TEnum[keyof TEnum], reasonMap: CompleteReasonMap<TEnum, TStringKey>, engine: I18nEngine<TStringKey, any, any, any>, language?: Language, otherVars?: Record<string, string | number>, options?: HandleableErrorOptions, source?: Error);
|
|
11
11
|
toJSON(): Record<string, unknown>;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=typed-handleable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-handleable.d.ts","sourceRoot":"","sources":["../../src/errors/typed-handleable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,QAAQ,EAAmB,MAAM,2BAA2B,CAAC;AACrG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"typed-handleable.d.ts","sourceRoot":"","sources":["../../src/errors/typed-handleable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,QAAQ,EAAmB,MAAM,2BAA2B,CAAC;AACrG,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAAa,oBAAoB,CAC/B,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,UAAU,SAAS,MAAM,CACzB,SAAQ,eAAe;IACvB,SAAgB,IAAI,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;IACzC,SAAgB,SAAS,EAAE,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAChE,SAAgB,MAAM,EAAE,UAAU,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACvD,SAAgB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpC,SAAgB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;gBAG1D,IAAI,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,EACxB,SAAS,EAAE,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC/C,MAAM,EAAE,UAAU,CAAC,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAC7C,QAAQ,CAAC,EAAE,QAAQ,EACnB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAC3C,OAAO,CAAC,EAAE,sBAAsB,EAChC,MAAM,CAAC,EAAE,KAAK;IAyBT,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAWzC"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import { HandleableError } from './handleable';
|
|
2
|
-
import { getEciesI18nEngine } from '../i18n-setup';
|
|
3
2
|
export class TypedHandleableError extends HandleableError {
|
|
4
3
|
type;
|
|
5
4
|
reasonMap;
|
|
6
5
|
engine;
|
|
7
6
|
language;
|
|
8
7
|
otherVars;
|
|
9
|
-
constructor(type, reasonMap, language, otherVars, options,
|
|
8
|
+
constructor(type, reasonMap, engine, language, otherVars, options, source) {
|
|
10
9
|
const key = reasonMap[type];
|
|
11
10
|
if (!key) {
|
|
12
11
|
throw new Error(`Missing translation key for type: ${type}`);
|
|
13
12
|
}
|
|
14
13
|
let message = String(type);
|
|
15
|
-
const e = engine ?? getEciesI18nEngine();
|
|
16
14
|
try {
|
|
17
|
-
const keyString =
|
|
18
|
-
const translated =
|
|
15
|
+
const keyString = key;
|
|
16
|
+
const translated = engine.translate?.(keyString, otherVars, language);
|
|
19
17
|
message = String(translated || type);
|
|
20
18
|
}
|
|
21
19
|
catch (error) {
|
|
@@ -26,7 +24,7 @@ export class TypedHandleableError extends HandleableError {
|
|
|
26
24
|
this.reasonMap = reasonMap;
|
|
27
25
|
this.language = language;
|
|
28
26
|
this.otherVars = otherVars;
|
|
29
|
-
this.engine =
|
|
27
|
+
this.engine = engine;
|
|
30
28
|
}
|
|
31
29
|
toJSON() {
|
|
32
30
|
const baseJson = super.toJSON();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-handleable.js","sourceRoot":"","sources":["../../src/errors/typed-handleable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"typed-handleable.js","sourceRoot":"","sources":["../../src/errors/typed-handleable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,OAAO,oBAGX,SAAQ,eAAe;IACP,IAAI,CAAqB;IACzB,SAAS,CAAuC;IAChD,MAAM,CAAiC;IACvC,QAAQ,CAAY;IACpB,SAAS,CAAmC;IAE5D,YACE,IAAwB,EACxB,SAA+C,EAC/C,MAA6C,EAC7C,QAAmB,EACnB,SAA2C,EAC3C,OAAgC,EAChC,MAAc;QAEd,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CAAC,qCAAqC,IAAI,EAAE,CAAC,CAAC;QAC/D,CAAC;QAED,IAAI,OAAO,GAAW,MAAM,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,GAAiB,CAAC;YACpC,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,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