@digitaldefiance/ecies-lib 1.1.18 → 1.1.20
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/README.md +8 -0
- package/dist/errors/ecies.d.ts +1 -3
- package/dist/errors/ecies.d.ts.map +1 -1
- package/dist/errors/ecies.js +1 -2
- package/dist/errors/ecies.js.map +1 -1
- package/dist/errors/guid.d.ts +1 -3
- package/dist/errors/guid.d.ts.map +1 -1
- package/dist/errors/guid.js +1 -2
- package/dist/errors/guid.js.map +1 -1
- package/dist/errors/index.d.ts +0 -3
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +0 -3
- package/dist/errors/index.js.map +1 -1
- package/dist/errors/invalid-email.d.ts +1 -3
- package/dist/errors/invalid-email.d.ts.map +1 -1
- package/dist/errors/invalid-email.js +1 -2
- package/dist/errors/invalid-email.js.map +1 -1
- package/dist/errors/length.d.ts +1 -3
- package/dist/errors/length.d.ts.map +1 -1
- package/dist/errors/length.js +1 -2
- package/dist/errors/length.js.map +1 -1
- package/dist/errors/member.d.ts +1 -3
- package/dist/errors/member.d.ts.map +1 -1
- package/dist/errors/member.js +1 -2
- package/dist/errors/member.js.map +1 -1
- package/dist/errors/pbkdf2.d.ts +1 -3
- package/dist/errors/pbkdf2.d.ts.map +1 -1
- package/dist/errors/pbkdf2.js +1 -2
- package/dist/errors/pbkdf2.js.map +1 -1
- package/dist/errors/secure-storage.d.ts +1 -3
- package/dist/errors/secure-storage.d.ts.map +1 -1
- package/dist/errors/secure-storage.js +1 -2
- package/dist/errors/secure-storage.js.map +1 -1
- package/dist/errors/simple-ecies.d.ts +1 -3
- package/dist/errors/simple-ecies.d.ts.map +1 -1
- package/dist/errors/simple-ecies.js +1 -2
- package/dist/errors/simple-ecies.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces/index.d.ts +0 -2
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/index.js +0 -2
- package/dist/interfaces/index.js.map +1 -1
- package/dist/services/password-login.d.ts.map +1 -1
- package/dist/services/password-login.js +4 -5
- package/dist/services/password-login.js.map +1 -1
- package/package.json +2 -2
- package/dist/errors/handleable.d.ts +0 -14
- package/dist/errors/handleable.d.ts.map +0 -1
- package/dist/errors/handleable.js +0 -61
- package/dist/errors/handleable.js.map +0 -1
- package/dist/errors/translatable.d.ts +0 -9
- package/dist/errors/translatable.d.ts.map +0 -1
- package/dist/errors/translatable.js +0 -14
- package/dist/errors/translatable.js.map +0 -1
- package/dist/errors/typed-handleable.d.ts +0 -14
- package/dist/errors/typed-handleable.d.ts.map +0 -1
- package/dist/errors/typed-handleable.js +0 -45
- package/dist/errors/typed-handleable.js.map +0 -1
- package/dist/interfaces/handleable-error-options.d.ts +0 -7
- package/dist/interfaces/handleable-error-options.d.ts.map +0 -1
- package/dist/interfaces/handleable-error-options.js +0 -3
- package/dist/interfaces/handleable-error-options.js.map +0 -1
- package/dist/interfaces/handleable.d.ts +0 -6
- package/dist/interfaces/handleable.d.ts.map +0 -1
- package/dist/interfaces/handleable.js +0 -3
- package/dist/interfaces/handleable.js.map +0 -1
package/README.md
CHANGED
|
@@ -600,6 +600,14 @@ MIT © Digital Defiance
|
|
|
600
600
|
|
|
601
601
|
## ChangeLog
|
|
602
602
|
|
|
603
|
+
### v1.1.20
|
|
604
|
+
|
|
605
|
+
- Use typed/handleable from i18n, remove local copies
|
|
606
|
+
|
|
607
|
+
### v1.1.19
|
|
608
|
+
|
|
609
|
+
- Actually export PhoneNumber class
|
|
610
|
+
|
|
603
611
|
### v1.1.18
|
|
604
612
|
|
|
605
613
|
- Add PhoneNumber class
|
package/dist/errors/ecies.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Language, TranslationEngine } from '@digitaldefiance/i18n-lib';
|
|
1
|
+
import { HandleableErrorOptions, Language, TranslationEngine, TypedHandleableError } from '@digitaldefiance/i18n-lib';
|
|
2
2
|
import { ECIESErrorTypeEnum } from '../enumerations/ecies-error-type';
|
|
3
3
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
4
|
-
import { HandleableErrorOptions } from '../interfaces/handleable-error-options';
|
|
5
|
-
import { TypedHandleableError } from './typed-handleable';
|
|
6
4
|
export declare class ECIESError extends TypedHandleableError<typeof ECIESErrorTypeEnum, EciesStringKey> {
|
|
7
5
|
constructor(type: ECIESErrorTypeEnum, engine?: TranslationEngine<EciesStringKey>, options?: HandleableErrorOptions, language?: Language, otherVars?: Record<string, string | number>);
|
|
8
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecies.d.ts","sourceRoot":"","sources":["../../src/errors/ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ecies.d.ts","sourceRoot":"","sources":["../../src/errors/ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtI,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGlE,qBAAa,UAAW,SAAQ,oBAAoB,CAClD,OAAO,kBAAkB,EACzB,cAAc,CACf;gBAEG,IAAI,EAAE,kBAAkB,EACxB,MAAM,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,EAC1C,OAAO,CAAC,EAAE,sBAAsB,EAChC,QAAQ,CAAC,EAAE,QAAQ,EACnB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAgB9C"}
|
package/dist/errors/ecies.js
CHANGED
|
@@ -4,8 +4,7 @@ exports.ECIESError = void 0;
|
|
|
4
4
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
5
5
|
const ecies_error_type_1 = require("../enumerations/ecies-error-type");
|
|
6
6
|
const i18n_setup_1 = require("../i18n-setup");
|
|
7
|
-
|
|
8
|
-
class ECIESError extends typed_handleable_1.TypedHandleableError {
|
|
7
|
+
class ECIESError extends i18n_lib_1.TypedHandleableError {
|
|
9
8
|
constructor(type, engine, options, language, otherVars) {
|
|
10
9
|
const engineAdapter = engine || (0, i18n_setup_1.getCompatibleEciesEngine)();
|
|
11
10
|
super(type, (0, i18n_lib_1.buildReasonMap)(ecies_error_type_1.ECIESErrorTypeEnum, ['Error', 'ECIESError']), engineAdapter, language, otherVars, options);
|
package/dist/errors/ecies.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecies.js","sourceRoot":"","sources":["../../src/errors/ecies.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"ecies.js","sourceRoot":"","sources":["../../src/errors/ecies.ts"],"names":[],"mappings":";;;AAAA,wDAAsI;AACtI,uEAAsE;AAEtE,8CAAyD;AAEzD,MAAa,UAAW,SAAQ,+BAG/B;IACC,YACE,IAAwB,EACxB,MAA0C,EAC1C,OAAgC,EAChC,QAAmB,EACnB,SAA2C;QAE3C,MAAM,aAAa,GAAG,MAAM,IAAI,IAAA,qCAAwB,GAAE,CAAC;QAC3D,KAAK,CACH,IAAI,EACJ,IAAA,yBAAc,EACZ,qCAAkB,EAClB,CAAC,OAAO,EAAE,YAAY,CAAC,CACxB,EACD,aAAa,EACb,QAAQ,EACR,SAAS,EACT,OAAO,CACR,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC3B,CAAC;CACF;AAzBD,gCAyBC"}
|
package/dist/errors/guid.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { GuidBrandType } from '../enumerations/guid-brand-type';
|
|
2
2
|
import { GuidErrorType } from '../enumerations/guid-error-type';
|
|
3
3
|
import { RawGuidUint8Array } from '../types';
|
|
4
|
-
import { HandleableErrorOptions } from '
|
|
5
|
-
import { TypedHandleableError } from './typed-handleable';
|
|
6
|
-
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
4
|
+
import { HandleableErrorOptions, I18nEngine, Language, TypedHandleableError } from '@digitaldefiance/i18n-lib';
|
|
7
5
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
8
6
|
/**
|
|
9
7
|
* Error class for handling GUID-related errors.
|
|
@@ -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,
|
|
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,EAAkB,sBAAsB,EAAE,UAAU,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/H,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE;;GAEG;AACH,qBAAa,SAAU,SAAQ,oBAAoB,CAAC,OAAO,aAAa,EAAE,cAAc,CAAC;IACvF,SAAgB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtC,SAAgB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChC,SAAgB,IAAI,CAAC,EAAE,UAAU,CAAC;gBAGhC,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,UAAU,CAAC,cAAc,EAAE,QAAQ,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
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GuidError = void 0;
|
|
4
4
|
const guid_error_type_1 = require("../enumerations/guid-error-type");
|
|
5
|
-
const typed_handleable_1 = require("./typed-handleable");
|
|
6
5
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
7
6
|
/**
|
|
8
7
|
* Error class for handling GUID-related errors.
|
|
9
8
|
*/
|
|
10
|
-
class GuidError extends
|
|
9
|
+
class GuidError extends i18n_lib_1.TypedHandleableError {
|
|
11
10
|
brand;
|
|
12
11
|
length;
|
|
13
12
|
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,qEAAgE;
|
|
1
|
+
{"version":3,"file":"guid.js","sourceRoot":"","sources":["../../src/errors/guid.ts"],"names":[],"mappings":";;;AACA,qEAAgE;AAEhE,wDAA+H;AAG/H;;GAEG;AACH,MAAa,SAAU,SAAQ,+BAA0D;IACvE,KAAK,CAAiB;IACtB,MAAM,CAAU;IAChB,IAAI,CAAc;IAElC,YACE,IAAmB,EACnB,MAAsD,EACtD,KAAqB,EACrB,MAAe,EACf,IAAqC,EACrC,OAAgC,EAChC,QAAmB;QAEnB,KAAK,CAAC,IAAI,EAAE,IAAA,yBAAc,EAAuC,+BAAa,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,+BAAa,CAAC,eAAe,EAAE,+BAAa,CAAC,YAAY,EAAE,+BAAa,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE;YAC5N,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE;YACtF,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE;YAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;SAC7B,EAAE,OAAO,CAAC,CAAC;QACZ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAvBD,8BAuBC"}
|
package/dist/errors/index.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export * from './disposed';
|
|
2
2
|
export * from './ecies';
|
|
3
3
|
export * from './guid';
|
|
4
|
-
export * from './handleable';
|
|
5
4
|
export * from './invalid-email';
|
|
6
5
|
export * from './length';
|
|
7
6
|
export * from './member';
|
|
8
7
|
export * from './pbkdf2';
|
|
9
8
|
export * from './secure-storage';
|
|
10
|
-
export * from './translatable';
|
|
11
|
-
export * from './typed-handleable';
|
|
12
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
|
package/dist/errors/index.js
CHANGED
|
@@ -17,12 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./disposed"), exports);
|
|
18
18
|
__exportStar(require("./ecies"), exports);
|
|
19
19
|
__exportStar(require("./guid"), exports);
|
|
20
|
-
__exportStar(require("./handleable"), exports);
|
|
21
20
|
__exportStar(require("./invalid-email"), exports);
|
|
22
21
|
__exportStar(require("./length"), exports);
|
|
23
22
|
__exportStar(require("./member"), exports);
|
|
24
23
|
__exportStar(require("./pbkdf2"), exports);
|
|
25
24
|
__exportStar(require("./secure-storage"), exports);
|
|
26
|
-
__exportStar(require("./translatable"), exports);
|
|
27
|
-
__exportStar(require("./typed-handleable"), exports);
|
|
28
25
|
//# sourceMappingURL=index.js.map
|
package/dist/errors/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,yCAAuB;AACvB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,yCAAuB;AACvB,kDAAgC;AAChC,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,mDAAiC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { InvalidEmailErrorType } from '../enumerations/invalid-email-type';
|
|
2
|
-
import { HandleableErrorOptions } from '
|
|
3
|
-
import { TypedHandleableError } from './typed-handleable';
|
|
4
|
-
import { Language, TranslationEngine } from '@digitaldefiance/i18n-lib';
|
|
2
|
+
import { HandleableErrorOptions, Language, TranslationEngine, TypedHandleableError } from '@digitaldefiance/i18n-lib';
|
|
5
3
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
6
4
|
export declare class InvalidEmailError extends TypedHandleableError<typeof InvalidEmailErrorType, EciesStringKey> {
|
|
7
5
|
constructor(type: InvalidEmailErrorType, engine: TranslationEngine<EciesStringKey>, options?: HandleableErrorOptions, language?: Language);
|
|
@@ -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,
|
|
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,EAAkB,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtI,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,iBAAiB,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAI1I"}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidEmailError = void 0;
|
|
4
4
|
const invalid_email_type_1 = require("../enumerations/invalid-email-type");
|
|
5
|
-
const typed_handleable_1 = require("./typed-handleable");
|
|
6
5
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
7
|
-
class InvalidEmailError extends
|
|
6
|
+
class InvalidEmailError extends i18n_lib_1.TypedHandleableError {
|
|
8
7
|
constructor(type, engine, options, language) {
|
|
9
8
|
super(type, (0, i18n_lib_1.buildReasonMap)(invalid_email_type_1.InvalidEmailErrorType, ['Error', 'InvalidEmailError']), engine, language, undefined, options);
|
|
10
9
|
this.name = 'InvalidEmailError';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-email.js","sourceRoot":"","sources":["../../src/errors/invalid-email.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;
|
|
1
|
+
{"version":3,"file":"invalid-email.js","sourceRoot":"","sources":["../../src/errors/invalid-email.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;AAC3E,wDAAsI;AAGtI,MAAa,iBAAkB,SAAQ,+BAAkE;IACvG,YAAY,IAA2B,EAAE,MAAyC,EAAE,OAAgC,EAAE,QAAmB;QACvI,KAAK,CAAC,IAAI,EAAE,IAAA,yBAAc,EAA+C,0CAAqB,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;AALD,8CAKC"}
|
package/dist/errors/length.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { LengthErrorType } from '../enumerations/length-error-type';
|
|
2
|
-
import { HandleableErrorOptions } from '
|
|
3
|
-
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
2
|
+
import { HandleableErrorOptions, I18nEngine, Language, TypedHandleableError } from '@digitaldefiance/i18n-lib';
|
|
4
3
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
5
|
-
import { TypedHandleableError } from './typed-handleable';
|
|
6
4
|
export declare class LengthError extends TypedHandleableError<typeof LengthErrorType, EciesStringKey> {
|
|
7
5
|
constructor(type: LengthErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
8
6
|
}
|
|
@@ -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,
|
|
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,EAAkB,sBAAsB,EAAE,UAAU,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/H,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,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
|
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LengthError = void 0;
|
|
4
4
|
const length_error_type_1 = require("../enumerations/length-error-type");
|
|
5
5
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
6
|
-
|
|
7
|
-
class LengthError extends typed_handleable_1.TypedHandleableError {
|
|
6
|
+
class LengthError extends i18n_lib_1.TypedHandleableError {
|
|
8
7
|
constructor(type, engine, options, language) {
|
|
9
8
|
super(type, (0, i18n_lib_1.buildReasonMap)(length_error_type_1.LengthErrorType, ['Error', 'LengthError']), engine, language, undefined, options);
|
|
10
9
|
this.name = 'LengthError';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"length.js","sourceRoot":"","sources":["../../src/errors/length.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;
|
|
1
|
+
{"version":3,"file":"length.js","sourceRoot":"","sources":["../../src/errors/length.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AACpE,wDAA+H;AAG/H,MAAa,WAAY,SAAQ,+BAA4D;IAC3F,YAAY,IAAqB,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QAC9I,KAAK,CAAC,IAAI,EAAE,IAAA,yBAAc,EAAyC,mCAAe,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;AALD,kCAKC"}
|
package/dist/errors/member.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { MemberErrorType } from '../enumerations/member-error-type';
|
|
2
|
-
import { HandleableErrorOptions } from '
|
|
3
|
-
import { TypedHandleableError } from './typed-handleable';
|
|
4
|
-
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
2
|
+
import { HandleableErrorOptions, I18nEngine, Language, TypedHandleableError } from '@digitaldefiance/i18n-lib';
|
|
5
3
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
6
4
|
export declare class MemberError extends TypedHandleableError<typeof MemberErrorType, EciesStringKey> {
|
|
7
5
|
constructor(type: MemberErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
@@ -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,
|
|
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,EAAkB,sBAAsB,EAAE,UAAU,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/H,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
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MemberError = void 0;
|
|
4
4
|
const member_error_type_1 = require("../enumerations/member-error-type");
|
|
5
|
-
const typed_handleable_1 = require("./typed-handleable");
|
|
6
5
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
7
|
-
class MemberError extends
|
|
6
|
+
class MemberError extends i18n_lib_1.TypedHandleableError {
|
|
8
7
|
constructor(type, engine, options, language) {
|
|
9
8
|
super(type, (0, i18n_lib_1.buildReasonMap)(member_error_type_1.MemberErrorType, ['Error', 'MemberError']), engine, language, undefined, options);
|
|
10
9
|
this.name = 'MemberError';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../src/errors/member.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;
|
|
1
|
+
{"version":3,"file":"member.js","sourceRoot":"","sources":["../../src/errors/member.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AACpE,wDAA+H;AAG/H,MAAa,WAAY,SAAQ,+BAA4D;IAE3F,YAAY,IAAqB,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QAC9I,KAAK,CAAC,IAAI,EAAE,IAAA,yBAAc,EAAyC,mCAAe,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;AAND,kCAMC"}
|
package/dist/errors/pbkdf2.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Pbkdf2ErrorType } from '../enumerations/pbkdf2-error-type';
|
|
2
|
-
import { HandleableErrorOptions } from '
|
|
3
|
-
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
2
|
+
import { HandleableErrorOptions, I18nEngine, Language, TypedHandleableError } from '@digitaldefiance/i18n-lib';
|
|
4
3
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
5
|
-
import { TypedHandleableError } from './typed-handleable';
|
|
6
4
|
export declare class Pbkdf2Error extends TypedHandleableError<typeof Pbkdf2ErrorType, EciesStringKey> {
|
|
7
5
|
constructor(type: Pbkdf2ErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
8
6
|
}
|
|
@@ -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,
|
|
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,EAAkB,sBAAsB,EAAE,UAAU,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/H,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/pbkdf2.js
CHANGED
|
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Pbkdf2Error = void 0;
|
|
4
4
|
const pbkdf2_error_type_1 = require("../enumerations/pbkdf2-error-type");
|
|
5
5
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
6
|
-
|
|
7
|
-
class Pbkdf2Error extends typed_handleable_1.TypedHandleableError {
|
|
6
|
+
class Pbkdf2Error extends i18n_lib_1.TypedHandleableError {
|
|
8
7
|
constructor(type, engine, options, language) {
|
|
9
8
|
super(type, (0, i18n_lib_1.buildReasonMap)(pbkdf2_error_type_1.Pbkdf2ErrorType, ['Error', 'Pbkdf2Error']), engine, language, undefined, options);
|
|
10
9
|
this.name = 'Pbkdf2Error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbkdf2.js","sourceRoot":"","sources":["../../src/errors/pbkdf2.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;
|
|
1
|
+
{"version":3,"file":"pbkdf2.js","sourceRoot":"","sources":["../../src/errors/pbkdf2.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AACpE,wDAA+H;AAG/H,MAAa,WAAY,SAAQ,+BAA4D;IAE3F,YAAY,IAAqB,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QAC9I,KAAK,CAAC,IAAI,EAAE,IAAA,yBAAc,EAAyC,mCAAe,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;AAND,kCAMC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { SecureStorageErrorType } from '../enumerations/secure-storage-error-type';
|
|
2
|
-
import { HandleableErrorOptions } from '
|
|
3
|
-
import { TypedHandleableError } from './typed-handleable';
|
|
4
|
-
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
2
|
+
import { HandleableErrorOptions, I18nEngine, Language, TypedHandleableError } from '@digitaldefiance/i18n-lib';
|
|
5
3
|
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
6
4
|
export declare class SecureStorageError extends TypedHandleableError<typeof SecureStorageErrorType, EciesStringKey> {
|
|
7
5
|
constructor(type: SecureStorageErrorType, engine: I18nEngine<EciesStringKey, Language, any, any>, options?: HandleableErrorOptions, language?: Language);
|
|
@@ -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,
|
|
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,EAAkB,sBAAsB,EAAE,UAAU,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/H,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"}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SecureStorageError = void 0;
|
|
4
4
|
const secure_storage_error_type_1 = require("../enumerations/secure-storage-error-type");
|
|
5
|
-
const typed_handleable_1 = require("./typed-handleable");
|
|
6
5
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
7
|
-
class SecureStorageError extends
|
|
6
|
+
class SecureStorageError extends i18n_lib_1.TypedHandleableError {
|
|
8
7
|
constructor(type, engine, options, language) {
|
|
9
8
|
const reasonMap = (0, i18n_lib_1.buildReasonMap)(secure_storage_error_type_1.SecureStorageErrorType, ['Error', 'SecureStorageError']);
|
|
10
9
|
super(type, reasonMap, engine, language, undefined, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secure-storage.js","sourceRoot":"","sources":["../../src/errors/secure-storage.ts"],"names":[],"mappings":";;;AAAA,yFAAmF;
|
|
1
|
+
{"version":3,"file":"secure-storage.js","sourceRoot":"","sources":["../../src/errors/secure-storage.ts"],"names":[],"mappings":";;;AAAA,yFAAmF;AACnF,wDAA+H;AAG/H,MAAa,kBAAmB,SAAQ,+BAAmE;IACzG,YAAY,IAA4B,EAAE,MAAsD,EAAE,OAAgC,EAAE,QAAmB;QACrJ,MAAM,SAAS,GAAG,IAAA,yBAAc,EAAgD,kDAAsB,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;AAPD,gDAOC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
1
|
+
import { HandleableErrorOptions, I18nEngine, Language, TypedHandleableError } from '@digitaldefiance/i18n-lib';
|
|
2
2
|
import { ECIESErrorTypeEnum, EciesStringKey } from '../enumerations';
|
|
3
|
-
import { TypedHandleableError } from './typed-handleable';
|
|
4
|
-
import { HandleableErrorOptions } from '../interfaces/handleable-error-options';
|
|
5
3
|
export declare class SimpleECIESError extends TypedHandleableError<typeof ECIESErrorTypeEnum, EciesStringKey> {
|
|
6
4
|
constructor(type: ECIESErrorTypeEnum, engine: I18nEngine<EciesStringKey, Language, any, any>, language?: any, otherVars?: Record<string, string | number>, options?: HandleableErrorOptions);
|
|
7
5
|
}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"simple-ecies.d.ts","sourceRoot":"","sources":["../../src/errors/simple-ecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,sBAAsB,EAAE,UAAU,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC/H,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAErE,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"}
|
|
@@ -3,8 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SimpleECIESError = void 0;
|
|
4
4
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
5
5
|
const enumerations_1 = require("../enumerations");
|
|
6
|
-
|
|
7
|
-
class SimpleECIESError extends typed_handleable_1.TypedHandleableError {
|
|
6
|
+
class SimpleECIESError extends i18n_lib_1.TypedHandleableError {
|
|
8
7
|
constructor(type, engine, language, otherVars, options) {
|
|
9
8
|
const reasonMap = (0, i18n_lib_1.buildReasonMap)(enumerations_1.ECIESErrorTypeEnum, ['Error', 'ECIESError']);
|
|
10
9
|
super(type, reasonMap, engine, language, otherVars, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-ecies.js","sourceRoot":"","sources":["../../src/errors/simple-ecies.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"simple-ecies.js","sourceRoot":"","sources":["../../src/errors/simple-ecies.ts"],"names":[],"mappings":";;;AAAA,wDAA+H;AAC/H,kDAAqE;AAErE,MAAa,gBAAiB,SAAQ,+BAA+D;IACnG,YACE,IAAwB,EACxB,MAAsD,EACtD,QAAc,EACd,SAA2C,EAC3C,OAAgC;QAEhC,MAAM,SAAS,GAAG,IAAA,yBAAc,EAA4C,iCAAkB,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;AAbD,4CAaC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./i18n-setup"), exports);
|
|
|
23
23
|
__exportStar(require("./interfaces"), exports);
|
|
24
24
|
__exportStar(require("./member"), exports);
|
|
25
25
|
__exportStar(require("./pbkdf2-profiles"), exports);
|
|
26
|
+
__exportStar(require("./phone-number"), exports);
|
|
26
27
|
__exportStar(require("./secure-buffer"), exports);
|
|
27
28
|
__exportStar(require("./secure-string"), exports);
|
|
28
29
|
__exportStar(require("./services"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B;AAC/B,2CAAyB;AACzB,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,oDAAkC;AAClC,kDAAgC;AAChC,kDAAgC;AAChC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B;AAC/B,2CAAyB;AACzB,yCAAuB;AACvB,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -5,8 +5,6 @@ export * from './ecies-config';
|
|
|
5
5
|
export * from './ecies-consts';
|
|
6
6
|
export * from './ecies-file-service';
|
|
7
7
|
export * from './guid';
|
|
8
|
-
export * from './handleable';
|
|
9
|
-
export * from './handleable-error-options';
|
|
10
8
|
export * from './member-operational';
|
|
11
9
|
export * from './member-storage';
|
|
12
10
|
export * from './member-with-mnemonic';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
package/dist/interfaces/index.js
CHANGED
|
@@ -21,8 +21,6 @@ __exportStar(require("./ecies-config"), exports);
|
|
|
21
21
|
__exportStar(require("./ecies-consts"), exports);
|
|
22
22
|
__exportStar(require("./ecies-file-service"), exports);
|
|
23
23
|
__exportStar(require("./guid"), exports);
|
|
24
|
-
__exportStar(require("./handleable"), exports);
|
|
25
|
-
__exportStar(require("./handleable-error-options"), exports);
|
|
26
24
|
__exportStar(require("./member-operational"), exports);
|
|
27
25
|
__exportStar(require("./member-storage"), exports);
|
|
28
26
|
__exportStar(require("./member-with-mnemonic"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC;AACrC,yCAAuB;AACvB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC;AACrC,yCAAuB;AACvB,uDAAqC;AACrC,mDAAiC;AACjC,yDAAuC;AACvC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-login.d.ts","sourceRoot":"","sources":["../../src/services/password-login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,E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AE,UAAU,CAAC,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,WAAW,GAAE,eAAiC;IAO/J,yBAAyB,CACpC,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,YAAY,EACtB,OAAO,GAAE,iBAAsD,GAC9D,OAAO,CAAC;QACT,IAAI,EAAE,UAAU,CAAC;QACjB,mBAAmB,EAAE,UAAU,CAAC;QAChC,iBAAiB,EAAE,UAAU,CAAC;QAC9B,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAwCF;;;;OAIG;IACU,oCAAoC,CAC/C,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,YAAY,EACtB,OAAO,GAAE,iBAAsD,GAC9D,OAAO,CAAC,MAAM,CAAC;IA4BL,+CAA+C,CAC1D,IAAI,EAAE,UAAU,EAChB,mBAAmB,EAAE,UAAU,EAC/B,iBAAiB,EAAE,UAAU,EAC7B,QAAQ,EAAE,YAAY,EACtB,OAAO,GAAE,iBAAsD,GAC9D,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IAuCtD;;;;OAIG;IACU,0CAA0C,CACrD,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;IAmCtD;;;OAGG;WACW,oBAAoB,IAAI,OAAO;CAkB9C"}
|
|
@@ -7,7 +7,6 @@ const pbkdf2_profile_1 = require("../enumerations/pbkdf2-profile");
|
|
|
7
7
|
const secure_string_1 = require("../secure-string");
|
|
8
8
|
const utils_1 = require("../utils");
|
|
9
9
|
const aes_gcm_1 = require("./aes-gcm");
|
|
10
|
-
const errors_1 = require("../errors");
|
|
11
10
|
const enumerations_1 = require("../enumerations");
|
|
12
11
|
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
13
12
|
const constants_1 = require("../constants");
|
|
@@ -33,7 +32,7 @@ class PasswordLoginService {
|
|
|
33
32
|
const privateKeyBytes = wallet.getPrivateKey();
|
|
34
33
|
const { encrypted, iv, tag } = await aes_gcm_1.AESGCMService.encrypt(privateKeyBytes, derivedKey.hash, true);
|
|
35
34
|
if (!tag) {
|
|
36
|
-
throw new
|
|
35
|
+
throw new i18n_lib_1.TranslatableError(this.engine, enumerations_1.EciesStringKey.Error_Utils_EncryptionFailedNoAuthTag);
|
|
37
36
|
}
|
|
38
37
|
const encryptedPrivateKey = aes_gcm_1.AESGCMService.combineIvTagAndEncryptedData(iv, encrypted, tag);
|
|
39
38
|
// now use the public key to encrypt the mnemonic and store it
|
|
@@ -60,13 +59,13 @@ class PasswordLoginService {
|
|
|
60
59
|
localStorage.setItem(PasswordLoginService.profileStorageKey, profile);
|
|
61
60
|
}
|
|
62
61
|
catch (error) {
|
|
63
|
-
throw new
|
|
62
|
+
throw new i18n_lib_1.TypedHandleableError(enumerations_1.PasswordLoginErrorTypeEnum.FailedToStoreLoginData, (0, i18n_lib_1.buildReasonMap)(enumerations_1.PasswordLoginErrorTypeEnum, ['Error', 'PasswordLoginError']), this.engine, undefined, undefined, { cause: error instanceof Error ? error : undefined });
|
|
64
63
|
}
|
|
65
64
|
return wallet;
|
|
66
65
|
}
|
|
67
66
|
async getWalletAndMnemonicFromEncryptedPasswordBundle(salt, encryptedPrivateKey, encryptedMnemonic, password, profile = pbkdf2_profile_1.Pbkdf2ProfileEnum.BROWSER_PASSWORD) {
|
|
68
67
|
if (!salt || !encryptedPrivateKey || !encryptedMnemonic) {
|
|
69
|
-
throw new
|
|
68
|
+
throw new i18n_lib_1.TypedHandleableError(enumerations_1.PasswordLoginErrorTypeEnum.PasswordLoginNotSetUp, (0, i18n_lib_1.buildReasonMap)(enumerations_1.PasswordLoginErrorTypeEnum, ['Error', 'PasswordLoginError']), this.engine);
|
|
70
69
|
}
|
|
71
70
|
const derivedKey = await this.pbkdf2Service.deriveKeyFromPasswordWithProfileAsync(password.valueAsUint8Array, profile, salt);
|
|
72
71
|
// Decrypt private key with derived key
|
|
@@ -93,7 +92,7 @@ class PasswordLoginService {
|
|
|
93
92
|
saltHex === '' ||
|
|
94
93
|
encryptedPrivateKeyHex === '' ||
|
|
95
94
|
encryptedMnemonicHex === '') {
|
|
96
|
-
throw new
|
|
95
|
+
throw new i18n_lib_1.TypedHandleableError(enumerations_1.PasswordLoginErrorTypeEnum.PasswordLoginNotSetUp, (0, i18n_lib_1.buildReasonMap)(enumerations_1.PasswordLoginErrorTypeEnum, ['Error', 'PasswordLoginError']), this.engine);
|
|
97
96
|
}
|
|
98
97
|
const salt = (0, utils_1.hexToUint8Array)(saltHex);
|
|
99
98
|
const encryptedPrivateKey = (0, utils_1.hexToUint8Array)(encryptedPrivateKeyHex);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-login.js","sourceRoot":"","sources":["../../src/services/password-login.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,iFAAgF;AAChF,mEAAmE;AACnE,oDAAgD;AAChD,oCAA4D;AAC5D,uCAA0C;AAG1C,
|
|
1
|
+
{"version":3,"file":"password-login.js","sourceRoot":"","sources":["../../src/services/password-login.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAC5C,iFAAgF;AAChF,mEAAmE;AACnE,oDAAgD;AAChD,oCAA4D;AAC5D,uCAA0C;AAG1C,kDAA6E;AAC7E,wDAA0H;AAE1H,4CAAyC;AAIzC,MAAa,oBAAoB;IACZ,YAAY,CAAe;IAC3B,aAAa,CAAgB;IAC7B,MAAM,CAAiD;IACvD,WAAW,CAAkB;IACzC,MAAM,CAAU,oBAAoB,GAAG,qBAAqB,CAAC;IAC7D,MAAM,CAAU,cAAc,GAAG,mBAAmB,CAAC;IACrD,MAAM,CAAU,2BAA2B,GAAG,mBAAmB,CAAC;IAClE,MAAM,CAAU,iBAAiB,GAAG,eAAe,CAAC;IAE3D,YAAY,YAA0B,EAAE,aAA4B,EAAE,MAAsD,E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sBAAsB;YACtB,oBAAoB;YACpB,OAAO,KAAK,EAAE;YACd,sBAAsB,KAAK,EAAE;YAC7B,oBAAoB,KAAK,EAAE,CAC5B,CAAC;IACJ,CAAC;;AAnNH,oDAoNC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitaldefiance/ecies-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"description": "Digital Defiance ECIES Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"packageManager": "yarn@4.10.3",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@digitaldefiance/i18n-lib": "1.3.
|
|
54
|
+
"@digitaldefiance/i18n-lib": "1.3.9",
|
|
55
55
|
"@ethereumjs/wallet": "^10.0.0",
|
|
56
56
|
"@noble/curves": "^2.0.1",
|
|
57
57
|
"@noble/hashes": "^2.0.1",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HandleableErrorOptions } from '../interfaces/handleable-error-options';
|
|
2
|
-
import { IHandleable } from '../interfaces/handleable';
|
|
3
|
-
export declare class HandleableError extends Error implements IHandleable {
|
|
4
|
-
readonly cause?: Error;
|
|
5
|
-
readonly statusCode: number;
|
|
6
|
-
readonly sourceData?: unknown;
|
|
7
|
-
private _handled;
|
|
8
|
-
constructor(source: Error, options?: HandleableErrorOptions);
|
|
9
|
-
get handled(): boolean;
|
|
10
|
-
set handled(value: boolean);
|
|
11
|
-
private serializeValue;
|
|
12
|
-
toJSON(): Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=handleable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handleable.d.ts","sourceRoot":"","sources":["../../src/errors/handleable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,qBAAa,eAAgB,SAAQ,KAAM,YAAW,WAAW;IAC/D,SAAgB,KAAK,CAAC,EAAE,KAAK,CAAC;IAC9B,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,QAAQ,CAAU;gBAEd,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,sBAAsB;IAkB3D,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,OAAO,EAEhC;IAED,OAAO,CAAC,cAAc;IAkBf,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAWzC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HandleableError = void 0;
|
|
4
|
-
class HandleableError extends Error {
|
|
5
|
-
cause;
|
|
6
|
-
statusCode;
|
|
7
|
-
sourceData;
|
|
8
|
-
_handled;
|
|
9
|
-
constructor(source, options) {
|
|
10
|
-
super(source.message);
|
|
11
|
-
this.name = this.constructor.name;
|
|
12
|
-
this.cause = options?.cause ?? source;
|
|
13
|
-
this.statusCode = options?.statusCode ?? 500;
|
|
14
|
-
this._handled = options?.handled ?? false;
|
|
15
|
-
this.sourceData = options?.sourceData;
|
|
16
|
-
// Capture stack trace - prioritize source stack, then capture new one
|
|
17
|
-
if (source.stack) {
|
|
18
|
-
this.stack = source.stack;
|
|
19
|
-
}
|
|
20
|
-
else if (Error.captureStackTrace) {
|
|
21
|
-
Error.captureStackTrace(this, this.constructor);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
this.stack = new Error().stack;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
get handled() {
|
|
28
|
-
return this._handled;
|
|
29
|
-
}
|
|
30
|
-
set handled(value) {
|
|
31
|
-
this._handled = value;
|
|
32
|
-
}
|
|
33
|
-
serializeValue(value) {
|
|
34
|
-
if (value && typeof value === 'object' && 'toJSON' in value && typeof value.toJSON === 'function') {
|
|
35
|
-
return value.toJSON();
|
|
36
|
-
}
|
|
37
|
-
if (value instanceof Error) {
|
|
38
|
-
return value.message;
|
|
39
|
-
}
|
|
40
|
-
if (Array.isArray(value)) {
|
|
41
|
-
return value.map(item => this.serializeValue(item));
|
|
42
|
-
}
|
|
43
|
-
if (value && typeof value === 'object') {
|
|
44
|
-
return Object.fromEntries(Object.entries(value).map(([k, v]) => [k, this.serializeValue(v)]));
|
|
45
|
-
}
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
toJSON() {
|
|
49
|
-
return {
|
|
50
|
-
name: this.name,
|
|
51
|
-
message: this.message,
|
|
52
|
-
statusCode: this.statusCode,
|
|
53
|
-
handled: this.handled,
|
|
54
|
-
stack: this.stack,
|
|
55
|
-
cause: this.serializeValue(this.cause),
|
|
56
|
-
...(this.sourceData ? { sourceData: this.serializeValue(this.sourceData) } : {}),
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.HandleableError = HandleableError;
|
|
61
|
-
//# sourceMappingURL=handleable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handleable.js","sourceRoot":"","sources":["../../src/errors/handleable.ts"],"names":[],"mappings":";;;AAGA,MAAa,eAAgB,SAAQ,KAAK;IACxB,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,UAAU,CAAW;IAC7B,QAAQ,CAAU;IAE1B,YAAY,MAAa,EAAE,OAAgC;QACzD,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,OAAO,EAAE,K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KAAK,QAAQ,EAAE,CAAC;YACvC,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CACnE,CAAC;QACJ,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,MAAM;QACX,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;YACtC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACjF,CAAC;IACJ,CAAC;CACF;AA7DD,0CA6DC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { I18nEngine, Language } from '@digitaldefiance/i18n-lib';
|
|
2
|
-
import { HandleableErrorOptions } from '../interfaces/handleable-error-options';
|
|
3
|
-
import { HandleableError } from './handleable';
|
|
4
|
-
import { EciesStringKey } from '../enumerations/ecies-string-key';
|
|
5
|
-
export declare class TranslatableError extends HandleableError {
|
|
6
|
-
readonly StringName: string;
|
|
7
|
-
constructor(string: EciesStringKey, engine: I18nEngine<EciesStringKey, Language, any, any>, otherVars?: Record<string, string | number>, language?: Language, options?: HandleableErrorOptions);
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=translatable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;CAMnC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TranslatableError = void 0;
|
|
4
|
-
const handleable_1 = require("./handleable");
|
|
5
|
-
class TranslatableError extends handleable_1.HandleableError {
|
|
6
|
-
StringName;
|
|
7
|
-
constructor(string, engine, otherVars, language, options) {
|
|
8
|
-
super(new Error(engine.translate(string, otherVars, language)), options);
|
|
9
|
-
this.name = 'TranslatableError';
|
|
10
|
-
this.StringName = string;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.TranslatableError = TranslatableError;
|
|
14
|
-
//# sourceMappingURL=translatable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translatable.js","sourceRoot":"","sources":["../../src/errors/translatable.ts"],"names":[],"mappings":";;;AAEA,6CAA+C;AAG/C,MAAa,iBAAkB,SAAQ,4BAAe;IACpC,UAAU,CAAS;IACnC,YACE,MAAsB,EACtB,MAAsD,EACtD,SAA2C,EAC3C,QAAmB,EACnB,OAAgC;QAEhC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QACzE,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC3B,CAAC;CACF;AAbD,8CAaC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CompleteReasonMap, Language, TranslationEngine } from '@digitaldefiance/i18n-lib';
|
|
2
|
-
import { HandleableErrorOptions } from '../interfaces/handleable-error-options';
|
|
3
|
-
import { IHandleable } from '../interfaces/handleable';
|
|
4
|
-
import { HandleableError } from './handleable';
|
|
5
|
-
export declare class TypedHandleableError<TEnum extends Record<string, string>, TStringKey extends string> extends HandleableError implements IHandleable {
|
|
6
|
-
readonly type: TEnum[keyof TEnum];
|
|
7
|
-
readonly reasonMap: CompleteReasonMap<TEnum, TStringKey>;
|
|
8
|
-
readonly engine: TranslationEngine<TStringKey>;
|
|
9
|
-
readonly language?: Language;
|
|
10
|
-
readonly otherVars?: Record<string, string | number>;
|
|
11
|
-
constructor(type: TEnum[keyof TEnum], reasonMap: CompleteReasonMap<TEnum, TStringKey>, engine: TranslationEngine<TStringKey>, language?: Language, otherVars?: Record<string, string | number>, options?: HandleableErrorOptions);
|
|
12
|
-
toJSON(): Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=typed-handleable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typed-handleable.d.ts","sourceRoot":"","sources":["../../src/errors/typed-handleable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,QAAQ,EAAsC,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC3I,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,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,eAAgB,YAAW,WAAW;IAC9C,SAAgB,IAAI,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;IACzC,SAAgB,SAAS,EAAE,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAChE,SAAgB,MAAM,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACtD,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,iBAAiB,CAAC,UAAU,CAAC,EACrC,QAAQ,CAAC,EAAE,QAAQ,EACnB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAC3C,OAAO,CAAC,EAAE,sBAAsB;IA4B3B,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAOzC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TypedHandleableError = void 0;
|
|
4
|
-
const i18n_lib_1 = require("@digitaldefiance/i18n-lib");
|
|
5
|
-
const handleable_1 = require("./handleable");
|
|
6
|
-
class TypedHandleableError extends handleable_1.HandleableError {
|
|
7
|
-
type;
|
|
8
|
-
reasonMap;
|
|
9
|
-
engine;
|
|
10
|
-
language;
|
|
11
|
-
otherVars;
|
|
12
|
-
constructor(type, reasonMap, engine, language, otherVars, options) {
|
|
13
|
-
const key = reasonMap[type];
|
|
14
|
-
if (!key) {
|
|
15
|
-
const coreEngine = i18n_lib_1.I18nEngine.getInstance();
|
|
16
|
-
throw new Error(coreEngine.translate(i18n_lib_1.CoreStringKey.Error_MissingTranslationKeyTemplate, {
|
|
17
|
-
stringKey: key,
|
|
18
|
-
}));
|
|
19
|
-
}
|
|
20
|
-
let message = String(type);
|
|
21
|
-
try {
|
|
22
|
-
const keyString = key;
|
|
23
|
-
const translated = engine.translate(keyString, otherVars, language);
|
|
24
|
-
message = String(translated || type);
|
|
25
|
-
}
|
|
26
|
-
catch (error) {
|
|
27
|
-
message = String(type);
|
|
28
|
-
}
|
|
29
|
-
super(new Error(message), options);
|
|
30
|
-
this.type = type;
|
|
31
|
-
this.reasonMap = reasonMap;
|
|
32
|
-
this.language = language;
|
|
33
|
-
this.otherVars = otherVars;
|
|
34
|
-
this.engine = engine;
|
|
35
|
-
}
|
|
36
|
-
toJSON() {
|
|
37
|
-
const baseJson = super.toJSON();
|
|
38
|
-
return {
|
|
39
|
-
...baseJson,
|
|
40
|
-
type: this.type,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.TypedHandleableError = TypedHandleableError;
|
|
45
|
-
//# sourceMappingURL=typed-handleable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typed-handleable.js","sourceRoot":"","sources":["../../src/errors/typed-handleable.ts"],"names":[],"mappings":";;;AAAA,wDAA2I;AAG3I,6CAA+C;AAE/C,MAAa,oBAGX,SAAQ,4BAAe;IACP,IAAI,CAAqB;IACzB,SAAS,CAAuC;IAChD,MAAM,CAAgC;IACtC,QAAQ,CAAY;IACpB,SAAS,CAAmC;IAE5D,YACE,IAAwB,EACxB,SAA+C,EAC/C,MAAqC,EACrC,QAAmB,EACnB,SAA2C,EAC3C,OAAgC;QAEhC,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,UAAU,GAAG,qBAAU,CAAC,WAAW,EAA4D,CAAC;YACtG,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,wBAAa,CAAC,mCAAmC,EAAE;gBACtF,SAAS,EAAE,GAAa;aACzB,CAAC,CAAC,CAAC;QACN,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,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;YACpE,OAAO,GAAG,MAAM,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC;QACvC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;QAED,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;QAEnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,MAAM;QACX,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAChC,OAAO;YACL,GAAG,QAAQ;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;CACF;AAnDD,oDAmDC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handleable-error-options.d.ts","sourceRoot":"","sources":["../../src/interfaces/handleable-error-options.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handleable-error-options.js","sourceRoot":"","sources":["../../src/interfaces/handleable-error-options.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handleable.d.ts","sourceRoot":"","sources":["../../src/interfaces/handleable.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,OAAO,IAAI,OAAO,CAAC;IACvB,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handleable.js","sourceRoot":"","sources":["../../src/interfaces/handleable.ts"],"names":[],"mappings":""}
|