@puq/error 0.1.0 → 0.2.2
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 +9 -1
- package/dist/index.d.ts +6 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -11
- package/dist/index.js.map +1 -1
- package/dist/lib/common/base.d.ts +8 -0
- package/dist/lib/common/base.d.ts.map +1 -0
- package/dist/lib/{puq-error.js → common/base.js} +2 -2
- package/dist/lib/common/base.js.map +1 -0
- package/dist/lib/common/code.d.ts +47 -0
- package/dist/lib/common/code.d.ts.map +1 -0
- package/dist/lib/common/code.js +53 -0
- package/dist/lib/common/code.js.map +1 -0
- package/dist/lib/common/create-error-thrower.d.ts +11 -0
- package/dist/lib/common/create-error-thrower.d.ts.map +1 -0
- package/dist/lib/common/create-error-thrower.js +14 -0
- package/dist/lib/common/create-error-thrower.js.map +1 -0
- package/dist/lib/common/index.d.ts +5 -0
- package/dist/lib/common/index.d.ts.map +1 -0
- package/dist/lib/common/index.js +7 -0
- package/dist/lib/common/index.js.map +1 -0
- package/dist/lib/common/metadata.d.ts +2 -0
- package/dist/lib/common/metadata.d.ts.map +1 -0
- package/dist/lib/common/metadata.js +3 -0
- package/dist/lib/common/metadata.js.map +1 -0
- package/dist/lib/errors.d.ts +3 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +13 -0
- package/dist/lib/errors.js.map +1 -0
- package/package.json +2 -2
- package/dist/lib/access-denied.d.ts +0 -5
- package/dist/lib/access-denied.d.ts.map +0 -1
- package/dist/lib/access-denied.js +0 -9
- package/dist/lib/access-denied.js.map +0 -1
- package/dist/lib/directory-not-found.d.ts +0 -5
- package/dist/lib/directory-not-found.d.ts.map +0 -1
- package/dist/lib/directory-not-found.js +0 -9
- package/dist/lib/directory-not-found.js.map +0 -1
- package/dist/lib/error-codes.d.ts +0 -12
- package/dist/lib/error-codes.d.ts.map +0 -1
- package/dist/lib/error-codes.js +0 -18
- package/dist/lib/error-codes.js.map +0 -1
- package/dist/lib/file-not-found.d.ts +0 -5
- package/dist/lib/file-not-found.d.ts.map +0 -1
- package/dist/lib/file-not-found.js +0 -9
- package/dist/lib/file-not-found.js.map +0 -1
- package/dist/lib/invalid-value.d.ts +0 -5
- package/dist/lib/invalid-value.d.ts.map +0 -1
- package/dist/lib/invalid-value.js +0 -9
- package/dist/lib/invalid-value.js.map +0 -1
- package/dist/lib/low-latency.d.ts +0 -5
- package/dist/lib/low-latency.d.ts.map +0 -1
- package/dist/lib/low-latency.js +0 -9
- package/dist/lib/low-latency.js.map +0 -1
- package/dist/lib/offline.d.ts +0 -5
- package/dist/lib/offline.d.ts.map +0 -1
- package/dist/lib/offline.js +0 -9
- package/dist/lib/offline.js.map +0 -1
- package/dist/lib/puq-error.d.ts +0 -8
- package/dist/lib/puq-error.d.ts.map +0 -1
- package/dist/lib/puq-error.js.map +0 -1
- package/dist/lib/required-value.d.ts +0 -5
- package/dist/lib/required-value.d.ts.map +0 -1
- package/dist/lib/required-value.js +0 -9
- package/dist/lib/required-value.js.map +0 -1
- package/dist/lib/system-id-down.d.ts +0 -5
- package/dist/lib/system-id-down.d.ts.map +0 -1
- package/dist/lib/system-id-down.js +0 -9
- package/dist/lib/system-id-down.js.map +0 -1
- package/dist/lib/unautorized.d.ts +0 -5
- package/dist/lib/unautorized.d.ts.map +0 -1
- package/dist/lib/unautorized.js +0 -9
- package/dist/lib/unautorized.js.map +0 -1
package/README.md
CHANGED
@@ -6,7 +6,15 @@
|
|
6
6
|
|
7
7
|
## Summary
|
8
8
|
|
9
|
-
|
9
|
+
This library provides a structured collection of error functions for handling various error types in your application. Each error function includes a unique error code, a message, and optional metadata, allowing for efficient error tracking and debugging.
|
10
|
+
|
11
|
+
## Features
|
12
|
+
|
13
|
+
- **Error Categorization**: Each error has a unique numeric code to easily identify and track error types.
|
14
|
+
|
15
|
+
- **Descriptive Messages**: Each error includes a meaningful message for better debugging.
|
16
|
+
|
17
|
+
- **Metadata Support**: Additional context can be attached to each error using metadata records.
|
10
18
|
|
11
19
|
## Install
|
12
20
|
|
package/dist/index.d.ts
CHANGED
@@ -1,12 +1,7 @@
|
|
1
|
-
export * from './lib/
|
2
|
-
export * from './lib/
|
3
|
-
export * from './lib/error-
|
4
|
-
export * from './lib/
|
5
|
-
export * from './lib/
|
6
|
-
export * from './lib/
|
7
|
-
export * from './lib/offline.js';
|
8
|
-
export * from './lib/puq-error.js';
|
9
|
-
export * from './lib/required-value.js';
|
10
|
-
export * from './lib/system-id-down.js';
|
11
|
-
export * from './lib/unautorized.js';
|
1
|
+
export * from './lib/common/base.js';
|
2
|
+
export * from './lib/common/code.js';
|
3
|
+
export * from './lib/common/create-error-thrower.js';
|
4
|
+
export * from './lib/common/index.js';
|
5
|
+
export * from './lib/common/metadata.js';
|
6
|
+
export * from './lib/errors.js';
|
12
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
@@ -1,14 +1,9 @@
|
|
1
1
|
// @index(['./**/*.ts', '!./**/*.{spec,test}.ts'], f => `export * from '${f.path}.js'`)
|
2
|
-
export * from './lib/
|
3
|
-
export * from './lib/
|
4
|
-
export * from './lib/error-
|
5
|
-
export * from './lib/
|
6
|
-
export * from './lib/
|
7
|
-
export * from './lib/
|
8
|
-
export * from './lib/offline.js';
|
9
|
-
export * from './lib/puq-error.js';
|
10
|
-
export * from './lib/required-value.js';
|
11
|
-
export * from './lib/system-id-down.js';
|
12
|
-
export * from './lib/unautorized.js';
|
2
|
+
export * from './lib/common/base.js';
|
3
|
+
export * from './lib/common/code.js';
|
4
|
+
export * from './lib/common/create-error-thrower.js';
|
5
|
+
export * from './lib/common/index.js';
|
6
|
+
export * from './lib/common/metadata.js';
|
7
|
+
export * from './lib/errors.js';
|
13
8
|
|
14
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts'], f => `export * from '${f.path}.js'`)\nexport * from './lib/
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts'], f => `export * from '${f.path}.js'`)\nexport * from './lib/common/base.js';\nexport * from './lib/common/code.js';\nexport * from './lib/common/create-error-thrower.js';\nexport * from './lib/common/index.js';\nexport * from './lib/common/metadata.js';\nexport * from './lib/errors.js';\n"],"names":[],"rangeMappings":";;;;;;","mappings":"AAAA,uFAAuF;AACvF,cAAc,uBAAuB;AACrC,cAAc,uBAAuB;AACrC,cAAc,uCAAuC;AACrD,cAAc,wBAAwB;AACtC,cAAc,2BAA2B;AACzC,cAAc,kBAAkB"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ErrorCode } from './code.js';
|
2
|
+
import { ErrorMetadata } from './metadata.js';
|
3
|
+
export declare class BaseError extends Error {
|
4
|
+
readonly code: ErrorCode;
|
5
|
+
readonly metadata?: ErrorMetadata;
|
6
|
+
constructor(code: ErrorCode, message: string, metadata?: ErrorMetadata);
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=base.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/lib/common/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,qBAAa,SAAU,SAAQ,KAAK;IAClC,SAAgB,IAAI,EAAE,SAAS,CAAC;IAChC,SAAgB,QAAQ,CAAC,EAAE,aAAa,CAAC;gBAE7B,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa;CAavE"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export class
|
1
|
+
export class BaseError extends Error {
|
2
2
|
constructor(code, message, metadata){
|
3
3
|
super(message);
|
4
4
|
this.code = code;
|
@@ -12,4 +12,4 @@ export class PuqError extends Error {
|
|
12
12
|
}
|
13
13
|
}
|
14
14
|
|
15
|
-
//# sourceMappingURL=
|
15
|
+
//# sourceMappingURL=base.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/common/base.ts"],"sourcesContent":["import { ErrorCode } from './code.js';\r\nimport { ErrorMetadata } from './metadata.js';\r\n\r\nexport class BaseError extends Error {\r\n public readonly code: ErrorCode;\r\n public readonly metadata?: ErrorMetadata;\r\n\r\n constructor(code: ErrorCode, message: string, metadata?: ErrorMetadata) {\r\n super(message);\r\n this.code = code;\r\n this.metadata = metadata;\r\n\r\n // Fix prototype chain for proper instanceof checks\r\n Object.setPrototypeOf(this, new.target.prototype);\r\n\r\n // Capture the stack trace (Node.js and Chrome V8 engines)\r\n if (Error.captureStackTrace) {\r\n Error.captureStackTrace(this, this.constructor);\r\n }\r\n }\r\n}\r\n"],"names":["BaseError","Error","constructor","code","message","metadata","Object","setPrototypeOf","prototype","captureStackTrace"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAGA,OAAO,MAAMA,kBAAkBC;IAI7BC,YAAYC,IAAe,EAAEC,OAAe,EAAEC,QAAwB,CAAE;QACtE,KAAK,CAACD;QACN,IAAI,CAACD,IAAI,GAAGA;QACZ,IAAI,CAACE,QAAQ,GAAGA;QAEhB,mDAAmD;QACnDC,OAAOC,cAAc,CAAC,IAAI,EAAE,WAAWC,SAAS;QAEhD,0DAA0D;QAC1D,IAAIP,MAAMQ,iBAAiB,EAAE;YAC3BR,MAAMQ,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAACP,WAAW;QAChD;IACF;AACF"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
export declare enum ErrorCode {
|
2
|
+
UNAUTORIZED = 1000,
|
3
|
+
SESSION_NOT_FOUND = 1001,
|
4
|
+
INVALID_TOKEN = 1002,
|
5
|
+
EXPIRED_TOKEN = 1003,
|
6
|
+
FILE_NOT_FOUND = 1100,
|
7
|
+
DIRECTORY_NOT_FOUND = 1101,
|
8
|
+
OUT_OF_SCOPE = 1102,
|
9
|
+
OFFLINE = 3000,
|
10
|
+
LOW_LATENCY = 3001,
|
11
|
+
REQURIED = 5000,
|
12
|
+
STRING = 5001,
|
13
|
+
NUMBER = 5002,
|
14
|
+
INTEGER = 5003,
|
15
|
+
BOOLEAN = 5004,
|
16
|
+
OBJECT = 5005,
|
17
|
+
ARRAY = 5006,
|
18
|
+
ARRAY_STRING = 5007,
|
19
|
+
ARRAY_NUMBER = 5008,
|
20
|
+
ARRAY_INTEGER = 5009,
|
21
|
+
ARRAY_BOOLEAN = 5010,
|
22
|
+
ARRAY_OBJECT = 5011,
|
23
|
+
REQUIRED_STRING = 5012,
|
24
|
+
REQUIRED_NUMBER = 5013,
|
25
|
+
REQUIRED_INTEGER = 5014,
|
26
|
+
REQUIRED_BOOLEAN = 5015,
|
27
|
+
REQUIRED_OBJECT = 5016,
|
28
|
+
REQUIRED_ARRAY = 5017,
|
29
|
+
EMPTY = 5100,
|
30
|
+
EMPTY_STRING = 5101,
|
31
|
+
EMPTY_NUMBER = 5102,
|
32
|
+
EMPTY_INTEGER = 5103,
|
33
|
+
EMPTY_BOOLEAN = 5104,
|
34
|
+
EMPTY_OBJECT = 5105,
|
35
|
+
EMPTY_ARRAY = 5106,
|
36
|
+
INVALID = 5200,
|
37
|
+
MIN_LENGTH = 5201,
|
38
|
+
MAX_LENGTH = 5202,
|
39
|
+
MIN_NUMBER = 5203,
|
40
|
+
MAX_NUMBER = 5204,
|
41
|
+
MIN_ARRAY_SIZE = 5205,
|
42
|
+
MAX_ARRAY_SIZE = 5206,
|
43
|
+
HAS_PROPERTY = 5207,
|
44
|
+
MIN_PROPERTY = 5208,
|
45
|
+
MAX_PROPERTY = 5209
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=code.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../src/lib/common/code.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IAEnB,WAAW,OAAO;IAClB,iBAAiB,OAAA;IACjB,aAAa,OAAA;IACb,aAAa,OAAA;IAGb,cAAc,OAAO;IACrB,mBAAmB,OAAA;IACnB,YAAY,OAAA;IAGZ,OAAO,OAAO;IACd,WAAW,OAAA;IAGX,QAAQ,OAAO;IACf,MAAM,OAAA;IACN,MAAM,OAAA;IACN,OAAO,OAAA;IACP,OAAO,OAAA;IACP,MAAM,OAAA;IACN,KAAK,OAAA;IACL,YAAY,OAAA;IACZ,YAAY,OAAA;IACZ,aAAa,OAAA;IACb,aAAa,OAAA;IACb,YAAY,OAAA;IACZ,eAAe,OAAA;IACf,eAAe,OAAA;IACf,gBAAgB,OAAA;IAChB,gBAAgB,OAAA;IAChB,eAAe,OAAA;IACf,cAAc,OAAA;IAEd,KAAK,OAAO;IACZ,YAAY,OAAA;IACZ,YAAY,OAAA;IACZ,aAAa,OAAA;IACb,aAAa,OAAA;IACb,YAAY,OAAA;IACZ,WAAW,OAAA;IAEX,OAAO,OAAO;IACd,UAAU,OAAA;IACV,UAAU,OAAA;IACV,UAAU,OAAA;IACV,UAAU,OAAA;IACV,cAAc,OAAA;IACd,cAAc,OAAA;IACd,YAAY,OAAA;IACZ,YAAY,OAAA;IACZ,YAAY,OAAA;CACb"}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
export var ErrorCode;
|
2
|
+
(function(ErrorCode) {
|
3
|
+
// Auth
|
4
|
+
ErrorCode[ErrorCode["UNAUTORIZED"] = 1000] = "UNAUTORIZED";
|
5
|
+
ErrorCode[ErrorCode["SESSION_NOT_FOUND"] = 1001] = "SESSION_NOT_FOUND";
|
6
|
+
ErrorCode[ErrorCode["INVALID_TOKEN"] = 1002] = "INVALID_TOKEN";
|
7
|
+
ErrorCode[ErrorCode["EXPIRED_TOKEN"] = 1003] = "EXPIRED_TOKEN";
|
8
|
+
// IO
|
9
|
+
ErrorCode[ErrorCode["FILE_NOT_FOUND"] = 1100] = "FILE_NOT_FOUND";
|
10
|
+
ErrorCode[ErrorCode["DIRECTORY_NOT_FOUND"] = 1101] = "DIRECTORY_NOT_FOUND";
|
11
|
+
ErrorCode[ErrorCode["OUT_OF_SCOPE"] = 1102] = "OUT_OF_SCOPE";
|
12
|
+
// System
|
13
|
+
ErrorCode[ErrorCode["OFFLINE"] = 3000] = "OFFLINE";
|
14
|
+
ErrorCode[ErrorCode["LOW_LATENCY"] = 3001] = "LOW_LATENCY";
|
15
|
+
// Validation Errors
|
16
|
+
ErrorCode[ErrorCode["REQURIED"] = 5000] = "REQURIED";
|
17
|
+
ErrorCode[ErrorCode["STRING"] = 5001] = "STRING";
|
18
|
+
ErrorCode[ErrorCode["NUMBER"] = 5002] = "NUMBER";
|
19
|
+
ErrorCode[ErrorCode["INTEGER"] = 5003] = "INTEGER";
|
20
|
+
ErrorCode[ErrorCode["BOOLEAN"] = 5004] = "BOOLEAN";
|
21
|
+
ErrorCode[ErrorCode["OBJECT"] = 5005] = "OBJECT";
|
22
|
+
ErrorCode[ErrorCode["ARRAY"] = 5006] = "ARRAY";
|
23
|
+
ErrorCode[ErrorCode["ARRAY_STRING"] = 5007] = "ARRAY_STRING";
|
24
|
+
ErrorCode[ErrorCode["ARRAY_NUMBER"] = 5008] = "ARRAY_NUMBER";
|
25
|
+
ErrorCode[ErrorCode["ARRAY_INTEGER"] = 5009] = "ARRAY_INTEGER";
|
26
|
+
ErrorCode[ErrorCode["ARRAY_BOOLEAN"] = 5010] = "ARRAY_BOOLEAN";
|
27
|
+
ErrorCode[ErrorCode["ARRAY_OBJECT"] = 5011] = "ARRAY_OBJECT";
|
28
|
+
ErrorCode[ErrorCode["REQUIRED_STRING"] = 5012] = "REQUIRED_STRING";
|
29
|
+
ErrorCode[ErrorCode["REQUIRED_NUMBER"] = 5013] = "REQUIRED_NUMBER";
|
30
|
+
ErrorCode[ErrorCode["REQUIRED_INTEGER"] = 5014] = "REQUIRED_INTEGER";
|
31
|
+
ErrorCode[ErrorCode["REQUIRED_BOOLEAN"] = 5015] = "REQUIRED_BOOLEAN";
|
32
|
+
ErrorCode[ErrorCode["REQUIRED_OBJECT"] = 5016] = "REQUIRED_OBJECT";
|
33
|
+
ErrorCode[ErrorCode["REQUIRED_ARRAY"] = 5017] = "REQUIRED_ARRAY";
|
34
|
+
ErrorCode[ErrorCode["EMPTY"] = 5100] = "EMPTY";
|
35
|
+
ErrorCode[ErrorCode["EMPTY_STRING"] = 5101] = "EMPTY_STRING";
|
36
|
+
ErrorCode[ErrorCode["EMPTY_NUMBER"] = 5102] = "EMPTY_NUMBER";
|
37
|
+
ErrorCode[ErrorCode["EMPTY_INTEGER"] = 5103] = "EMPTY_INTEGER";
|
38
|
+
ErrorCode[ErrorCode["EMPTY_BOOLEAN"] = 5104] = "EMPTY_BOOLEAN";
|
39
|
+
ErrorCode[ErrorCode["EMPTY_OBJECT"] = 5105] = "EMPTY_OBJECT";
|
40
|
+
ErrorCode[ErrorCode["EMPTY_ARRAY"] = 5106] = "EMPTY_ARRAY";
|
41
|
+
ErrorCode[ErrorCode["INVALID"] = 5200] = "INVALID";
|
42
|
+
ErrorCode[ErrorCode["MIN_LENGTH"] = 5201] = "MIN_LENGTH";
|
43
|
+
ErrorCode[ErrorCode["MAX_LENGTH"] = 5202] = "MAX_LENGTH";
|
44
|
+
ErrorCode[ErrorCode["MIN_NUMBER"] = 5203] = "MIN_NUMBER";
|
45
|
+
ErrorCode[ErrorCode["MAX_NUMBER"] = 5204] = "MAX_NUMBER";
|
46
|
+
ErrorCode[ErrorCode["MIN_ARRAY_SIZE"] = 5205] = "MIN_ARRAY_SIZE";
|
47
|
+
ErrorCode[ErrorCode["MAX_ARRAY_SIZE"] = 5206] = "MAX_ARRAY_SIZE";
|
48
|
+
ErrorCode[ErrorCode["HAS_PROPERTY"] = 5207] = "HAS_PROPERTY";
|
49
|
+
ErrorCode[ErrorCode["MIN_PROPERTY"] = 5208] = "MIN_PROPERTY";
|
50
|
+
ErrorCode[ErrorCode["MAX_PROPERTY"] = 5209] = "MAX_PROPERTY";
|
51
|
+
})(ErrorCode || (ErrorCode = {}));
|
52
|
+
|
53
|
+
//# sourceMappingURL=code.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/common/code.ts"],"sourcesContent":["export enum ErrorCode {\r\n // Auth\r\n UNAUTORIZED = 1000,\r\n SESSION_NOT_FOUND,\r\n INVALID_TOKEN,\r\n EXPIRED_TOKEN,\r\n\r\n // IO\r\n FILE_NOT_FOUND = 1100,\r\n DIRECTORY_NOT_FOUND,\r\n OUT_OF_SCOPE,\r\n\r\n // System\r\n OFFLINE = 3000,\r\n LOW_LATENCY,\r\n\r\n // Validation Errors\r\n REQURIED = 5000,\r\n STRING,\r\n NUMBER,\r\n INTEGER,\r\n BOOLEAN,\r\n OBJECT,\r\n ARRAY,\r\n ARRAY_STRING,\r\n ARRAY_NUMBER,\r\n ARRAY_INTEGER,\r\n ARRAY_BOOLEAN,\r\n ARRAY_OBJECT,\r\n REQUIRED_STRING,\r\n REQUIRED_NUMBER,\r\n REQUIRED_INTEGER,\r\n REQUIRED_BOOLEAN,\r\n REQUIRED_OBJECT,\r\n REQUIRED_ARRAY,\r\n\r\n EMPTY = 5100,\r\n EMPTY_STRING,\r\n EMPTY_NUMBER,\r\n EMPTY_INTEGER,\r\n EMPTY_BOOLEAN,\r\n EMPTY_OBJECT,\r\n EMPTY_ARRAY,\r\n\r\n INVALID = 5200,\r\n MIN_LENGTH,\r\n MAX_LENGTH,\r\n MIN_NUMBER,\r\n MAX_NUMBER,\r\n MIN_ARRAY_SIZE,\r\n MAX_ARRAY_SIZE,\r\n HAS_PROPERTY,\r\n MIN_PROPERTY,\r\n MAX_PROPERTY,\r\n}\r\n"],"names":["ErrorCode"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";UAAYA;IACV,OAAO;;;;;IAMP,KAAK;;;;IAKL,SAAS;;;IAIT,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAhBVA,cAAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ErrorCode } from './code.js';
|
2
|
+
import { ErrorMetadata } from './metadata.js';
|
3
|
+
export type ErrorThrower = (message?: string, metadata?: ErrorMetadata) => never;
|
4
|
+
/**
|
5
|
+
* Create a function that always throws the desired error code and error message
|
6
|
+
* @param code
|
7
|
+
* @param message
|
8
|
+
* @returns
|
9
|
+
*/
|
10
|
+
export declare function createErrorThrower(code: ErrorCode, message?: string): ErrorThrower;
|
11
|
+
//# sourceMappingURL=create-error-thrower.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create-error-thrower.d.ts","sourceRoot":"","sources":["../../../src/lib/common/create-error-thrower.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG,CACzB,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,aAAa,KACrB,KAAK,CAAC;AAEX;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,SAAS,EACf,OAAO,SAAkB,GACxB,YAAY,CAOd"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { BaseError } from './base.js';
|
2
|
+
import { ErrorCode } from './code.js';
|
3
|
+
/**
|
4
|
+
* Create a function that always throws the desired error code and error message
|
5
|
+
* @param code
|
6
|
+
* @param message
|
7
|
+
* @returns
|
8
|
+
*/ export function createErrorThrower(code, message = ErrorCode[code]) {
|
9
|
+
return function throwError(errorMessage = message, metadata) {
|
10
|
+
throw new BaseError(code, errorMessage, metadata);
|
11
|
+
};
|
12
|
+
}
|
13
|
+
|
14
|
+
//# sourceMappingURL=create-error-thrower.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/common/create-error-thrower.ts"],"sourcesContent":["import { BaseError } from './base.js';\r\nimport { ErrorCode } from './code.js';\r\nimport { ErrorMetadata } from './metadata.js';\r\n\r\nexport type ErrorThrower = (\r\n message?: string,\r\n metadata?: ErrorMetadata\r\n) => never;\r\n\r\n/**\r\n * Create a function that always throws the desired error code and error message\r\n * @param code\r\n * @param message\r\n * @returns\r\n */\r\nexport function createErrorThrower(\r\n code: ErrorCode,\r\n message = ErrorCode[code]\r\n): ErrorThrower {\r\n return function throwError(\r\n errorMessage = message,\r\n metadata?: ErrorMetadata\r\n ): never {\r\n throw new BaseError(code, errorMessage, metadata);\r\n };\r\n}\r\n"],"names":["BaseError","ErrorCode","createErrorThrower","code","message","throwError","errorMessage","metadata"],"rangeMappings":";;;;;;;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,YAAY;AACtC,SAASC,SAAS,QAAQ,YAAY;AAQtC;;;;;CAKC,GACD,OAAO,SAASC,mBACdC,IAAe,EACfC,UAAUH,SAAS,CAACE,KAAK;IAEzB,OAAO,SAASE,WACdC,eAAeF,OAAO,EACtBG,QAAwB;QAExB,MAAM,IAAIP,UAAUG,MAAMG,cAAcC;IAC1C;AACF"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/common/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/common/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts'], f => `export * from '${f.path}.js'`)\r\nexport * from './base.js';\r\nexport * from './code.js';\r\nexport * from './create-error-thrower.js';\r\nexport * from './metadata.js';\r\n"],"names":[],"rangeMappings":";;;;","mappings":"AAAA,uFAAuF;AACvF,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,4BAA4B;AAC1C,cAAc,gBAAgB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/lib/common/metadata.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/lib/common/metadata.ts"],"sourcesContent":["export type ErrorMetadata = Record<string, unknown>;\r\n"],"names":[],"rangeMappings":"","mappings":"AAAA,WAAoD"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { ErrorThrower } from './common/index.js';
|
2
|
+
export declare const throwUnautorizedError: ErrorThrower, throwSessionNotFoundError: ErrorThrower, throwInvalidTokenError: ErrorThrower, throwExpiredTokenError: ErrorThrower, throwFileNotFoundError: ErrorThrower, throwDirectoryNotFoundError: ErrorThrower, throwOutOfScopeError: ErrorThrower, throwOfflineError: ErrorThrower, throwLowLatencyError: ErrorThrower, throwRequriedError: ErrorThrower, throwStringError: ErrorThrower, throwNumberError: ErrorThrower, throwIntegerError: ErrorThrower, throwBooleanError: ErrorThrower, throwObjectError: ErrorThrower, throwArrayError: ErrorThrower, throwArrayStringError: ErrorThrower, throwArrayNumberError: ErrorThrower, throwArrayIntegerError: ErrorThrower, throwArrayBooleanError: ErrorThrower, throwArrayObjectError: ErrorThrower, throwRequiredStringError: ErrorThrower, throwRequiredNumberError: ErrorThrower, throwRequiredIntegerError: ErrorThrower, throwRequiredBooleanError: ErrorThrower, throwRequiredObjectError: ErrorThrower, throwRequiredArrayError: ErrorThrower, throwEmptyError: ErrorThrower, throwEmptyStringError: ErrorThrower, throwEmptyNumberError: ErrorThrower, throwEmptyIntegerError: ErrorThrower, throwEmptyBooleanError: ErrorThrower, throwEmptyObjectError: ErrorThrower, throwEmptyArrayError: ErrorThrower, throwInvalidError: ErrorThrower, throwMinLengthError: ErrorThrower, throwMaxLengthError: ErrorThrower, throwMinNumberError: ErrorThrower, throwMaxNumberError: ErrorThrower, throwMinArraySizeError: ErrorThrower, throwMaxArraySizeError: ErrorThrower, throwHasPropertyError: ErrorThrower, throwMinPropertyError: ErrorThrower, throwMaxPropertyError: ErrorThrower;
|
3
|
+
//# sourceMappingURL=errors.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/lib/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAsB,MAAM,mBAAmB,CAAC;AAEhF,eAAO,MAEQ,qBAAqB,gBACf,yBAAyB,gBAC7B,sBAAsB,gBACtB,sBAAsB,gBACrB,sBAAsB,gBAGjB,2BAA2B,gBAClC,oBAAoB,gBAGzB,iBAAiB,gBACb,oBAAoB,gBAGvB,kBAAkB,gBACpB,gBAAgB,gBAChB,gBAAgB,gBACf,iBAAiB,gBACjB,iBAAiB,gBAClB,gBAAgB,gBACjB,eAAe,gBACR,qBAAqB,gBACrB,qBAAqB,gBACpB,sBAAsB,gBACtB,sBAAsB,gBACvB,qBAAqB,gBAClB,wBAAwB,gBACxB,wBAAwB,gBACvB,yBAAyB,gBACzB,yBAAyB,gBAC1B,wBAAwB,gBACzB,uBAAuB,gBAChC,eAAe,gBACR,qBAAqB,gBACrB,qBAAqB,gBACpB,sBAAsB,gBACtB,sBAAsB,gBACvB,qBAAqB,gBACtB,oBAAoB,gBACxB,iBAAiB,gBACd,mBAAmB,gBACnB,mBAAmB,gBACnB,mBAAmB,gBACnB,mBAAmB,gBACf,sBAAsB,gBACtB,sBAAsB,gBACxB,qBAAqB,gBACrB,qBAAqB,gBACrB,qBAAqB,cAUpC,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { _ as _extends } from "@swc/helpers/_/_extends";
|
2
|
+
import { ErrorCode, createErrorThrower } from './common/index.js';
|
3
|
+
export const { // Auth
|
4
|
+
UNAUTORIZED: throwUnautorizedError, SESSION_NOT_FOUND: throwSessionNotFoundError, INVALID_TOKEN: throwInvalidTokenError, EXPIRED_TOKEN: throwExpiredTokenError, FILE_NOT_FOUND: throwFileNotFoundError, // IO
|
5
|
+
DIRECTORY_NOT_FOUND: throwDirectoryNotFoundError, OUT_OF_SCOPE: throwOutOfScopeError, // System
|
6
|
+
OFFLINE: throwOfflineError, LOW_LATENCY: throwLowLatencyError, // Input Validation
|
7
|
+
REQURIED: throwRequriedError, STRING: throwStringError, NUMBER: throwNumberError, INTEGER: throwIntegerError, BOOLEAN: throwBooleanError, OBJECT: throwObjectError, ARRAY: throwArrayError, ARRAY_STRING: throwArrayStringError, ARRAY_NUMBER: throwArrayNumberError, ARRAY_INTEGER: throwArrayIntegerError, ARRAY_BOOLEAN: throwArrayBooleanError, ARRAY_OBJECT: throwArrayObjectError, REQUIRED_STRING: throwRequiredStringError, REQUIRED_NUMBER: throwRequiredNumberError, REQUIRED_INTEGER: throwRequiredIntegerError, REQUIRED_BOOLEAN: throwRequiredBooleanError, REQUIRED_OBJECT: throwRequiredObjectError, REQUIRED_ARRAY: throwRequiredArrayError, EMPTY: throwEmptyError, EMPTY_STRING: throwEmptyStringError, EMPTY_NUMBER: throwEmptyNumberError, EMPTY_INTEGER: throwEmptyIntegerError, EMPTY_BOOLEAN: throwEmptyBooleanError, EMPTY_OBJECT: throwEmptyObjectError, EMPTY_ARRAY: throwEmptyArrayError, INVALID: throwInvalidError, MIN_LENGTH: throwMinLengthError, MAX_LENGTH: throwMaxLengthError, MIN_NUMBER: throwMinNumberError, MAX_NUMBER: throwMaxNumberError, MIN_ARRAY_SIZE: throwMinArraySizeError, MAX_ARRAY_SIZE: throwMaxArraySizeError, HAS_PROPERTY: throwHasPropertyError, MIN_PROPERTY: throwMinPropertyError, MAX_PROPERTY: throwMaxPropertyError } = Object.keys(ErrorCode).map((e)=>{
|
8
|
+
return {
|
9
|
+
[e]: createErrorThrower(ErrorCode[e])
|
10
|
+
};
|
11
|
+
}).reduce((p, c)=>_extends({}, p, c), {});
|
12
|
+
|
13
|
+
//# sourceMappingURL=errors.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/lib/errors.ts"],"sourcesContent":["import { ErrorCode, ErrorThrower, createErrorThrower } from './common/index.js';\r\n\r\nexport const {\r\n // Auth\r\n UNAUTORIZED: throwUnautorizedError,\r\n SESSION_NOT_FOUND: throwSessionNotFoundError,\r\n INVALID_TOKEN: throwInvalidTokenError,\r\n EXPIRED_TOKEN: throwExpiredTokenError,\r\n FILE_NOT_FOUND: throwFileNotFoundError,\r\n\r\n // IO\r\n DIRECTORY_NOT_FOUND: throwDirectoryNotFoundError,\r\n OUT_OF_SCOPE: throwOutOfScopeError,\r\n\r\n // System\r\n OFFLINE: throwOfflineError,\r\n LOW_LATENCY: throwLowLatencyError,\r\n\r\n // Input Validation\r\n REQURIED: throwRequriedError,\r\n STRING: throwStringError,\r\n NUMBER: throwNumberError,\r\n INTEGER: throwIntegerError,\r\n BOOLEAN: throwBooleanError,\r\n OBJECT: throwObjectError,\r\n ARRAY: throwArrayError,\r\n ARRAY_STRING: throwArrayStringError,\r\n ARRAY_NUMBER: throwArrayNumberError,\r\n ARRAY_INTEGER: throwArrayIntegerError,\r\n ARRAY_BOOLEAN: throwArrayBooleanError,\r\n ARRAY_OBJECT: throwArrayObjectError,\r\n REQUIRED_STRING: throwRequiredStringError,\r\n REQUIRED_NUMBER: throwRequiredNumberError,\r\n REQUIRED_INTEGER: throwRequiredIntegerError,\r\n REQUIRED_BOOLEAN: throwRequiredBooleanError,\r\n REQUIRED_OBJECT: throwRequiredObjectError,\r\n REQUIRED_ARRAY: throwRequiredArrayError,\r\n EMPTY: throwEmptyError,\r\n EMPTY_STRING: throwEmptyStringError,\r\n EMPTY_NUMBER: throwEmptyNumberError,\r\n EMPTY_INTEGER: throwEmptyIntegerError,\r\n EMPTY_BOOLEAN: throwEmptyBooleanError,\r\n EMPTY_OBJECT: throwEmptyObjectError,\r\n EMPTY_ARRAY: throwEmptyArrayError,\r\n INVALID: throwInvalidError,\r\n MIN_LENGTH: throwMinLengthError,\r\n MAX_LENGTH: throwMaxLengthError,\r\n MIN_NUMBER: throwMinNumberError,\r\n MAX_NUMBER: throwMaxNumberError,\r\n MIN_ARRAY_SIZE: throwMinArraySizeError,\r\n MAX_ARRAY_SIZE: throwMaxArraySizeError,\r\n HAS_PROPERTY: throwHasPropertyError,\r\n MIN_PROPERTY: throwMinPropertyError,\r\n MAX_PROPERTY: throwMaxPropertyError,\r\n} = Object.keys(ErrorCode)\r\n .map((e: string) => {\r\n return {\r\n [e]: createErrorThrower(ErrorCode[e as any] as unknown as ErrorCode),\r\n };\r\n })\r\n .reduce((p, c) => ({ ...p, ...c }), {}) as unknown as Record<\r\n string,\r\n ErrorThrower\r\n>;\r\n"],"names":["ErrorCode","createErrorThrower","UNAUTORIZED","throwUnautorizedError","SESSION_NOT_FOUND","throwSessionNotFoundError","INVALID_TOKEN","throwInvalidTokenError","EXPIRED_TOKEN","throwExpiredTokenError","FILE_NOT_FOUND","throwFileNotFoundError","DIRECTORY_NOT_FOUND","throwDirectoryNotFoundError","OUT_OF_SCOPE","throwOutOfScopeError","OFFLINE","throwOfflineError","LOW_LATENCY","throwLowLatencyError","REQURIED","throwRequriedError","STRING","throwStringError","NUMBER","throwNumberError","INTEGER","throwIntegerError","BOOLEAN","throwBooleanError","OBJECT","throwObjectError","ARRAY","throwArrayError","ARRAY_STRING","throwArrayStringError","ARRAY_NUMBER","throwArrayNumberError","ARRAY_INTEGER","throwArrayIntegerError","ARRAY_BOOLEAN","throwArrayBooleanError","ARRAY_OBJECT","throwArrayObjectError","REQUIRED_STRING","throwRequiredStringError","REQUIRED_NUMBER","throwRequiredNumberError","REQUIRED_INTEGER","throwRequiredIntegerError","REQUIRED_BOOLEAN","throwRequiredBooleanError","REQUIRED_OBJECT","throwRequiredObjectError","REQUIRED_ARRAY","throwRequiredArrayError","EMPTY","throwEmptyError","EMPTY_STRING","throwEmptyStringError","EMPTY_NUMBER","throwEmptyNumberError","EMPTY_INTEGER","throwEmptyIntegerError","EMPTY_BOOLEAN","throwEmptyBooleanError","EMPTY_OBJECT","throwEmptyObjectError","EMPTY_ARRAY","throwEmptyArrayError","INVALID","throwInvalidError","MIN_LENGTH","throwMinLengthError","MAX_LENGTH","throwMaxLengthError","MIN_NUMBER","throwMinNumberError","MAX_NUMBER","throwMaxNumberError","MIN_ARRAY_SIZE","throwMinArraySizeError","MAX_ARRAY_SIZE","throwMaxArraySizeError","HAS_PROPERTY","throwHasPropertyError","MIN_PROPERTY","throwMinPropertyError","MAX_PROPERTY","throwMaxPropertyError","Object","keys","map","e","reduce","p","c"],"rangeMappings":";;;;;;;;;;","mappings":";AAAA,SAASA,SAAS,EAAgBC,kBAAkB,QAAQ,oBAAoB;AAEhF,OAAO,MAAM,EACX,OAAO;AACPC,aAAaC,qBAAqB,EAClCC,mBAAmBC,yBAAyB,EAC5CC,eAAeC,sBAAsB,EACrCC,eAAeC,sBAAsB,EACrCC,gBAAgBC,sBAAsB,EAEtC,KAAK;AACLC,qBAAqBC,2BAA2B,EAChDC,cAAcC,oBAAoB,EAElC,SAAS;AACTC,SAASC,iBAAiB,EAC1BC,aAAaC,oBAAoB,EAEjC,mBAAmB;AACnBC,UAAUC,kBAAkB,EAC5BC,QAAQC,gBAAgB,EACxBC,QAAQC,gBAAgB,EACxBC,SAASC,iBAAiB,EAC1BC,SAASC,iBAAiB,EAC1BC,QAAQC,gBAAgB,EACxBC,OAAOC,eAAe,EACtBC,cAAcC,qBAAqB,EACnCC,cAAcC,qBAAqB,EACnCC,eAAeC,sBAAsB,EACrCC,eAAeC,sBAAsB,EACrCC,cAAcC,qBAAqB,EACnCC,iBAAiBC,wBAAwB,EACzCC,iBAAiBC,wBAAwB,EACzCC,kBAAkBC,yBAAyB,EAC3CC,kBAAkBC,yBAAyB,EAC3CC,iBAAiBC,wBAAwB,EACzCC,gBAAgBC,uBAAuB,EACvCC,OAAOC,eAAe,EACtBC,cAAcC,qBAAqB,EACnCC,cAAcC,qBAAqB,EACnCC,eAAeC,sBAAsB,EACrCC,eAAeC,sBAAsB,EACrCC,cAAcC,qBAAqB,EACnCC,aAAaC,oBAAoB,EACjCC,SAASC,iBAAiB,EAC1BC,YAAYC,mBAAmB,EAC/BC,YAAYC,mBAAmB,EAC/BC,YAAYC,mBAAmB,EAC/BC,YAAYC,mBAAmB,EAC/BC,gBAAgBC,sBAAsB,EACtCC,gBAAgBC,sBAAsB,EACtCC,cAAcC,qBAAqB,EACnCC,cAAcC,qBAAqB,EACnCC,cAAcC,qBAAqB,EACpC,GAAGC,OAAOC,IAAI,CAAC3F,WACb4F,GAAG,CAAC,CAACC;IACJ,OAAO;QACL,CAACA,EAAE,EAAE5F,mBAAmBD,SAAS,CAAC6F,EAAS;IAC7C;AACF,GACCC,MAAM,CAAC,CAACC,GAAGC,IAAO,aAAKD,GAAMC,IAAM,CAAC,GAGrC"}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@puq/error",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.2.2",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public",
|
7
7
|
"tag": "latest"
|
8
8
|
},
|
9
|
-
"description": "
|
9
|
+
"description": "This library provides a structured collection of error functions for handling various error types in your application. Each error function includes a unique error code, a message, and optional metadata, allowing for efficient error tracking and debugging.",
|
10
10
|
"author": {
|
11
11
|
"email": "robert.brightline@gmail.com",
|
12
12
|
"name": "Robert Brightline",
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"access-denied.d.ts","sourceRoot":"","sources":["../../src/lib/access-denied.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,iBAAkB,SAAQ,QAAQ;gBACjC,OAAO,SAAkB,EAAE,QAAQ,CAAC,EAAE,aAAa;CAGhE"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class AccessDeniedError extends PuqError {
|
4
|
-
constructor(message = 'ACCESS_DENIED', metadata){
|
5
|
-
super(ErrorCode.ACCESS_DENIED, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=access-denied.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/access-denied.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class AccessDeniedError extends PuqError {\r\n constructor(message = 'ACCESS_DENIED', metadata?: ErrorMetadata) {\r\n super(ErrorCode.ACCESS_DENIED, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","AccessDeniedError","constructor","message","metadata","ACCESS_DENIED"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,0BAA0BD;IACrCE,YAAYC,UAAU,eAAe,EAAEC,QAAwB,CAAE;QAC/D,KAAK,CAACL,UAAUM,aAAa,EAAEF,SAASC;IAC1C;AACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"directory-not-found.d.ts","sourceRoot":"","sources":["../../src/lib/directory-not-found.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,sBAAuB,SAAQ,QAAQ;gBACtC,OAAO,SAAwB,EAAE,QAAQ,CAAC,EAAE,aAAa;CAGtE"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class DirectoryNotFoundError extends PuqError {
|
4
|
-
constructor(message = 'DIRECTORY_NOT_FOUND', metadata){
|
5
|
-
super(ErrorCode.DIRECTORY_NOT_FOUND, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=directory-not-found.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/directory-not-found.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class DirectoryNotFoundError extends PuqError {\r\n constructor(message = 'DIRECTORY_NOT_FOUND', metadata?: ErrorMetadata) {\r\n super(ErrorCode.DIRECTORY_NOT_FOUND, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","DirectoryNotFoundError","constructor","message","metadata","DIRECTORY_NOT_FOUND"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,+BAA+BD;IAC1CE,YAAYC,UAAU,qBAAqB,EAAEC,QAAwB,CAAE;QACrE,KAAK,CAACL,UAAUM,mBAAmB,EAAEF,SAASC;IAChD;AACF"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export declare enum ErrorCode {
|
2
|
-
UNAUTORIZED = 10001,
|
3
|
-
SYSTEM_IS_DOWN = 20001,
|
4
|
-
OFFLINE = 20002,
|
5
|
-
LOW_LATENCY = 20003,
|
6
|
-
REQURIED_VALUE = 50001,
|
7
|
-
INVALID_VALUE = 50002,
|
8
|
-
ACCESS_DENIED = 60001,
|
9
|
-
FILE_NOT_FOUND = 60002,
|
10
|
-
DIRECTORY_NOT_FOUND = 60003
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=error-codes.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"error-codes.d.ts","sourceRoot":"","sources":["../../src/lib/error-codes.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IAEnB,WAAW,QAAQ;IAGnB,cAAc,QAAQ;IACtB,OAAO,QAAA;IACP,WAAW,QAAA;IAGX,cAAc,QAAQ;IACtB,aAAa,QAAA;IAGb,aAAa,QAAQ;IACrB,cAAc,QAAA;IACd,mBAAmB,QAAA;CACpB"}
|
package/dist/lib/error-codes.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
export var ErrorCode;
|
2
|
-
(function(ErrorCode) {
|
3
|
-
// Auth
|
4
|
-
ErrorCode[ErrorCode["UNAUTORIZED"] = 10001] = "UNAUTORIZED";
|
5
|
-
// System
|
6
|
-
ErrorCode[ErrorCode["SYSTEM_IS_DOWN"] = 20001] = "SYSTEM_IS_DOWN";
|
7
|
-
ErrorCode[ErrorCode["OFFLINE"] = 20002] = "OFFLINE";
|
8
|
-
ErrorCode[ErrorCode["LOW_LATENCY"] = 20003] = "LOW_LATENCY";
|
9
|
-
// Validation Errors
|
10
|
-
ErrorCode[ErrorCode["REQURIED_VALUE"] = 50001] = "REQURIED_VALUE";
|
11
|
-
ErrorCode[ErrorCode["INVALID_VALUE"] = 50002] = "INVALID_VALUE";
|
12
|
-
// IO
|
13
|
-
ErrorCode[ErrorCode["ACCESS_DENIED"] = 60001] = "ACCESS_DENIED";
|
14
|
-
ErrorCode[ErrorCode["FILE_NOT_FOUND"] = 60002] = "FILE_NOT_FOUND";
|
15
|
-
ErrorCode[ErrorCode["DIRECTORY_NOT_FOUND"] = 60003] = "DIRECTORY_NOT_FOUND";
|
16
|
-
})(ErrorCode || (ErrorCode = {}));
|
17
|
-
|
18
|
-
//# sourceMappingURL=error-codes.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/error-codes.ts"],"sourcesContent":["export enum ErrorCode {\r\n // Auth\r\n UNAUTORIZED = 10001,\r\n\r\n // System\r\n SYSTEM_IS_DOWN = 20001,\r\n OFFLINE,\r\n LOW_LATENCY,\r\n\r\n // Validation Errors\r\n REQURIED_VALUE = 50001,\r\n INVALID_VALUE,\r\n\r\n // IO\r\n ACCESS_DENIED = 60001,\r\n FILE_NOT_FOUND,\r\n DIRECTORY_NOT_FOUND,\r\n}\r\n"],"names":["ErrorCode"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":";UAAYA;IACV,OAAO;;IAGP,SAAS;;;;IAKT,oBAAoB;;;IAIpB,KAAK;;;;GAbKA,cAAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"file-not-found.d.ts","sourceRoot":"","sources":["../../src/lib/file-not-found.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,iBAAkB,SAAQ,QAAQ;gBACjC,OAAO,SAAmB,EAAE,QAAQ,CAAC,EAAE,aAAa;CAGjE"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class FileNotFoundError extends PuqError {
|
4
|
-
constructor(message = 'FILE_NOT_FOUND', metadata){
|
5
|
-
super(ErrorCode.FILE_NOT_FOUND, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=file-not-found.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/file-not-found.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class FileNotFoundError extends PuqError {\r\n constructor(message = 'FILE_NOT_FOUND', metadata?: ErrorMetadata) {\r\n super(ErrorCode.FILE_NOT_FOUND, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","FileNotFoundError","constructor","message","metadata","FILE_NOT_FOUND"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,0BAA0BD;IACrCE,YAAYC,UAAU,gBAAgB,EAAEC,QAAwB,CAAE;QAChE,KAAK,CAACL,UAAUM,cAAc,EAAEF,SAASC;IAC3C;AACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"invalid-value.d.ts","sourceRoot":"","sources":["../../src/lib/invalid-value.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,iBAAkB,SAAQ,QAAQ;gBACjC,OAAO,SAAkB,EAAE,QAAQ,CAAC,EAAE,aAAa;CAGhE"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class InvalidValueError extends PuqError {
|
4
|
-
constructor(message = 'INVALID_VALUE', metadata){
|
5
|
-
super(ErrorCode.INVALID_VALUE, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=invalid-value.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/invalid-value.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class InvalidValueError extends PuqError {\r\n constructor(message = 'INVALID_VALUE', metadata?: ErrorMetadata) {\r\n super(ErrorCode.INVALID_VALUE, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","InvalidValueError","constructor","message","metadata","INVALID_VALUE"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,0BAA0BD;IACrCE,YAAYC,UAAU,eAAe,EAAEC,QAAwB,CAAE;QAC/D,KAAK,CAACL,UAAUM,aAAa,EAAEF,SAASC;IAC1C;AACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"low-latency.d.ts","sourceRoot":"","sources":["../../src/lib/low-latency.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,eAAgB,SAAQ,QAAQ;gBAC/B,OAAO,SAAgB,EAAE,QAAQ,CAAC,EAAE,aAAa;CAG9D"}
|
package/dist/lib/low-latency.js
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class LowLatencyError extends PuqError {
|
4
|
-
constructor(message = 'LOW_LATENCY', metadata){
|
5
|
-
super(ErrorCode.LOW_LATENCY, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=low-latency.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/low-latency.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class LowLatencyError extends PuqError {\r\n constructor(message = 'LOW_LATENCY', metadata?: ErrorMetadata) {\r\n super(ErrorCode.LOW_LATENCY, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","LowLatencyError","constructor","message","metadata","LOW_LATENCY"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,wBAAwBD;IACnCE,YAAYC,UAAU,aAAa,EAAEC,QAAwB,CAAE;QAC7D,KAAK,CAACL,UAAUM,WAAW,EAAEF,SAASC;IACxC;AACF"}
|
package/dist/lib/offline.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"offline.d.ts","sourceRoot":"","sources":["../../src/lib/offline.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,YAAa,SAAQ,QAAQ;gBAC5B,OAAO,SAAY,EAAE,QAAQ,CAAC,EAAE,aAAa;CAG1D"}
|
package/dist/lib/offline.js
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class OfflineError extends PuqError {
|
4
|
-
constructor(message = 'OFFLINE', metadata){
|
5
|
-
super(ErrorCode.OFFLINE, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=offline.js.map
|
package/dist/lib/offline.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/offline.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class OfflineError extends PuqError {\r\n constructor(message = 'OFFLINE', metadata?: ErrorMetadata) {\r\n super(ErrorCode.OFFLINE, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","OfflineError","constructor","message","metadata","OFFLINE"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,qBAAqBD;IAChCE,YAAYC,UAAU,SAAS,EAAEC,QAAwB,CAAE;QACzD,KAAK,CAACL,UAAUM,OAAO,EAAEF,SAASC;IACpC;AACF"}
|
package/dist/lib/puq-error.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
export type ErrorMetadata = Record<string, unknown>;
|
3
|
-
export declare class PuqError extends Error {
|
4
|
-
readonly code: ErrorCode;
|
5
|
-
readonly metadata?: ErrorMetadata;
|
6
|
-
constructor(code: ErrorCode, message: string, metadata?: ErrorMetadata);
|
7
|
-
}
|
8
|
-
//# sourceMappingURL=puq-error.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"puq-error.d.ts","sourceRoot":"","sources":["../../src/lib/puq-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,IAAI,EAAE,SAAS,CAAC;IAChC,SAAgB,QAAQ,CAAC,EAAE,aAAa,CAAC;gBAE7B,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa;CAavE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/puq-error.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\n\r\nexport type ErrorMetadata = Record<string, unknown>;\r\n\r\nexport class PuqError extends Error {\r\n public readonly code: ErrorCode;\r\n public readonly metadata?: ErrorMetadata;\r\n\r\n constructor(code: ErrorCode, message: string, metadata?: ErrorMetadata) {\r\n super(message);\r\n this.code = code;\r\n this.metadata = metadata;\r\n\r\n // Fix prototype chain for proper instanceof checks\r\n Object.setPrototypeOf(this, new.target.prototype);\r\n\r\n // Capture the stack trace (Node.js and Chrome V8 engines)\r\n if (Error.captureStackTrace) {\r\n Error.captureStackTrace(this, this.constructor);\r\n }\r\n }\r\n}\r\n"],"names":["PuqError","Error","constructor","code","message","metadata","Object","setPrototypeOf","prototype","captureStackTrace"],"rangeMappings":";;;;;;;;;;;;","mappings":"AAIA,OAAO,MAAMA,iBAAiBC;IAI5BC,YAAYC,IAAe,EAAEC,OAAe,EAAEC,QAAwB,CAAE;QACtE,KAAK,CAACD;QACN,IAAI,CAACD,IAAI,GAAGA;QACZ,IAAI,CAACE,QAAQ,GAAGA;QAEhB,mDAAmD;QACnDC,OAAOC,cAAc,CAAC,IAAI,EAAE,WAAWC,SAAS;QAEhD,0DAA0D;QAC1D,IAAIP,MAAMQ,iBAAiB,EAAE;YAC3BR,MAAMQ,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAACP,WAAW;QAChD;IACF;AACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"required-value.d.ts","sourceRoot":"","sources":["../../src/lib/required-value.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,kBAAmB,SAAQ,QAAQ;gBAClC,OAAO,SAAmB,EAAE,QAAQ,CAAC,EAAE,aAAa;CAGjE"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class RequiredValueError extends PuqError {
|
4
|
-
constructor(message = 'REQURIED_VALUE', metadata){
|
5
|
-
super(ErrorCode.REQURIED_VALUE, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=required-value.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/required-value.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class RequiredValueError extends PuqError {\r\n constructor(message = 'REQURIED_VALUE', metadata?: ErrorMetadata) {\r\n super(ErrorCode.REQURIED_VALUE, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","RequiredValueError","constructor","message","metadata","REQURIED_VALUE"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,2BAA2BD;IACtCE,YAAYC,UAAU,gBAAgB,EAAEC,QAAwB,CAAE;QAChE,KAAK,CAACL,UAAUM,cAAc,EAAEF,SAASC;IAC3C;AACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"system-id-down.d.ts","sourceRoot":"","sources":["../../src/lib/system-id-down.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,iBAAkB,SAAQ,QAAQ;gBACjC,OAAO,SAAmB,EAAE,QAAQ,CAAC,EAAE,aAAa;CAGjE"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class SystemIsDownError extends PuqError {
|
4
|
-
constructor(message = 'SYSTEM_IS_DOWN', metadata){
|
5
|
-
super(ErrorCode.SYSTEM_IS_DOWN, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=system-id-down.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/system-id-down.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class SystemIsDownError extends PuqError {\r\n constructor(message = 'SYSTEM_IS_DOWN', metadata?: ErrorMetadata) {\r\n super(ErrorCode.SYSTEM_IS_DOWN, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","SystemIsDownError","constructor","message","metadata","SYSTEM_IS_DOWN"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,0BAA0BD;IACrCE,YAAYC,UAAU,gBAAgB,EAAEC,QAAwB,CAAE;QAChE,KAAK,CAACL,UAAUM,cAAc,EAAEF,SAASC;IAC3C;AACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"unautorized.d.ts","sourceRoot":"","sources":["../../src/lib/unautorized.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEzD,qBAAa,gBAAiB,SAAQ,QAAQ;gBAChC,OAAO,SAAgB,EAAE,QAAQ,CAAC,EAAE,aAAa;CAG9D"}
|
package/dist/lib/unautorized.js
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ErrorCode } from './error-codes.js';
|
2
|
-
import { PuqError } from './puq-error.js';
|
3
|
-
export class UnautorizedError extends PuqError {
|
4
|
-
constructor(message = 'UNAUTORIZED', metadata){
|
5
|
-
super(ErrorCode.UNAUTORIZED, message, metadata);
|
6
|
-
}
|
7
|
-
}
|
8
|
-
|
9
|
-
//# sourceMappingURL=unautorized.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/lib/unautorized.ts"],"sourcesContent":["import { ErrorCode } from './error-codes.js';\r\nimport { ErrorMetadata, PuqError } from './puq-error.js';\r\n\r\nexport class UnautorizedError extends PuqError {\r\n constructor(message = 'UNAUTORIZED', metadata?: ErrorMetadata) {\r\n super(ErrorCode.UNAUTORIZED, message, metadata);\r\n }\r\n}\r\n"],"names":["ErrorCode","PuqError","UnautorizedError","constructor","message","metadata","UNAUTORIZED"],"rangeMappings":";;;;;;","mappings":"AAAA,SAASA,SAAS,QAAQ,mBAAmB;AAC7C,SAAwBC,QAAQ,QAAQ,iBAAiB;AAEzD,OAAO,MAAMC,yBAAyBD;IACpCE,YAAYC,UAAU,aAAa,EAAEC,QAAwB,CAAE;QAC7D,KAAK,CAACL,UAAUM,WAAW,EAAEF,SAASC;IACxC;AACF"}
|