@puq/error 0.4.11 → 0.4.50

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.
@@ -9,7 +9,7 @@ export declare class BaseError extends Error {
9
9
  */
10
10
  readonly code: ErrorCode;
11
11
  /**
12
- * Metadata to clearify the cuase
12
+ * Detailed metadata for the error
13
13
  */
14
14
  readonly metadata?: ErrorMetadata;
15
15
  constructor(code: ErrorCode, message: string, metadata?: ErrorMetadata);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/common/base-error.ts"],"sourcesContent":["import type { ErrorCode } from './error-code.js';\r\nimport type { ErrorMetadata } from './error-metadata.js';\r\n\r\n/**\r\n * Error class to create errors\r\n */\r\nexport class BaseError extends Error {\r\n /**\r\n * Unique error code to identify the cause of the error\r\n */\r\n public readonly code: ErrorCode;\r\n\r\n /**\r\n * Metadata to clearify the cuase\r\n */\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 this.cause = this.metadata?.cause;\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","cause","Object","setPrototypeOf","prototype","captureStackTrace"],"mappings":";AAMA,OAAO,MAAMA,kBAAkBC;IAW7BC,YAAYC,CAAe,EAAEC,CAAe,EAAEC,CAAwB,CAAE;YAIzD;QAHb,KAAK,CAACD,IARR,QAAgBD,QAAhB,KAAA,IAKA,QAAgBE,YAAhB,KAAA,IAIE,IAAI,CAACF,IAAI,GAAGA,GACZ,IAAI,CAACE,QAAQ,GAAGA,GAChB,IAAI,CAACC,KAAK,aAAG,IAAA,IAAI,CAACD,QAAQ,gBAAb,aAAA,EAAeC,KAAK,EAGjCC,OAAOC,cAAc,CAAC,IAAI,EAAE,WAAWC,SAAS,GAG5CR,MAAMS,iBAAiB,IACzBT,MAAMS,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAACR,WAAW;IAElD;AACF"}
1
+ {"version":3,"sources":["../../../src/lib/common/base-error.ts"],"sourcesContent":["import type { ErrorCode } from './error-code.js';\r\nimport type { ErrorMetadata } from './error-metadata.js';\r\n\r\n/**\r\n * Error class to create errors\r\n */\r\nexport class BaseError extends Error {\r\n /**\r\n * Unique error code to identify the cause of the error\r\n */\r\n public readonly code: ErrorCode;\r\n\r\n /**\r\n * Detailed metadata for the error\r\n */\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 this.cause = this.metadata?.cause;\r\n\r\n // Fix prototype chain for proper instance of 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","cause","Object","setPrototypeOf","prototype","captureStackTrace"],"mappings":";AAMA,OAAO,MAAMA,kBAAkBC;IAW7BC,YAAYC,CAAe,EAAEC,CAAe,EAAEC,CAAwB,CAAE;YAIzD;QAHb,KAAK,CAACD,IARR,QAAgBD,QAAhB,KAAA,IAKA,QAAgBE,YAAhB,KAAA,IAIE,IAAI,CAACF,IAAI,GAAGA,GACZ,IAAI,CAACE,QAAQ,GAAGA,GAChB,IAAI,CAACC,KAAK,aAAG,IAAA,IAAI,CAACD,QAAQ,gBAAb,aAAA,EAAeC,KAAK,EAGjCC,OAAOC,cAAc,CAAC,IAAI,EAAE,WAAWC,SAAS,GAG5CR,MAAMS,iBAAiB,IACzBT,MAAMS,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAACR,WAAW;IAElD;AACF"}
@@ -11,7 +11,7 @@ export declare enum ErrorCode {
11
11
  */
12
12
  SessionNotFound = 1001,
13
13
  /**
14
- * Invalid token provided
14
+ * Invalid token
15
15
  */
16
16
  InvalidToken = 1002,
17
17
  /**
@@ -43,73 +43,81 @@ export declare enum ErrorCode {
43
43
  */
44
44
  RequiredFieldMissing = 5000,
45
45
  /**
46
- * Invalid string value provided
46
+ * Invalid parameter
47
47
  */
48
- InvalidString = 5001,
48
+ InvalidParameter = 5001,
49
49
  /**
50
- * Invalid number provided
50
+ * Invalid type
51
51
  */
52
- InvalidNumber = 5002,
52
+ InvalidType = 5002,
53
53
  /**
54
- * Invalid integer value provided
54
+ * Invalid string
55
55
  */
56
- InvalidInteger = 5003,
56
+ InvalidString = 5003,
57
57
  /**
58
- * Invalid boolean value provided
58
+ * Invalid number
59
59
  */
60
- InvalidBoolean = 5004,
60
+ InvalidNumber = 5004,
61
61
  /**
62
- * Invalid object provided
62
+ * Invalid integer
63
63
  */
64
- InvalidObject = 5005,
64
+ InvalidInteger = 5005,
65
65
  /**
66
- * Invalid array provided
66
+ * Invalid boolean
67
67
  */
68
- InvalidArray = 5006,
68
+ InvalidBoolean = 5006,
69
+ /**
70
+ * Invalid object
71
+ */
72
+ InvalidObject = 5007,
73
+ /**
74
+ * Invalid array
75
+ */
76
+ InvalidArray = 5008,
69
77
  /**
70
78
  * Invalid array of strings
71
79
  */
72
- InvalidArrayString = 5007,
80
+ InvalidArrayString = 5009,
73
81
  /**
74
82
  * Invalid array of numbers
75
83
  */
76
- InvalidArrayNumber = 5008,
84
+ InvalidArrayNumber = 5010,
77
85
  /**
78
86
  * Invalid array of integers
79
87
  */
80
- InvalidArrayInteger = 5009,
88
+ InvalidArrayInteger = 5011,
81
89
  /**
82
- * Invalid array of booleans
90
+ * Invalid array of array boolean
83
91
  */
84
- InvalidArrayBoolean = 5010,
92
+ InvalidArrayBoolean = 5012,
85
93
  /**
86
94
  * Invalid array of objects
87
95
  */
88
- InvalidArrayObject = 5011,
96
+ InvalidArrayObject = 5013,
89
97
  /**
90
98
  * Missing required string field
91
99
  */
92
- RequiredString = 5012,
100
+ RequiredString = 5014,
93
101
  /**
94
102
  * Missing required number field
95
103
  */
96
- RequiredNumber = 5013,
104
+ RequiredNumber = 5015,
97
105
  /**
98
106
  * Missing required integer field
99
107
  */
100
- RequiredInteger = 5014,
108
+ RequiredInteger = 5016,
101
109
  /**
102
110
  * Missing required boolean field
103
111
  */
104
- RequiredBoolean = 5015,
112
+ RequiredBoolean = 5017,
105
113
  /**
106
114
  * Missing required object field
107
115
  */
108
- RequiredObject = 5016,
116
+ RequiredObject = 5018,
109
117
  /**
110
118
  * Missing required array field
111
119
  */
112
- RequiredArray = 5017,
120
+ RequiredArray = 5019,
113
121
  /**
114
122
  * Field cannot be empty
115
123
  */
@@ -177,6 +185,10 @@ export declare enum ErrorCode {
177
185
  /**
178
186
  * Object exceeds the maximum number of properties
179
187
  */
180
- MaxProperties = 5209
188
+ MaxProperties = 5209,
189
+ /**
190
+ * The injectable is only allowed in constructor
191
+ */
192
+ ConstructorInjection = 6000
181
193
  }
182
194
  //# sourceMappingURL=error-code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-code.d.ts","sourceRoot":"","sources":["../../../src/lib/common/error-code.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,YAAY,OAAO;IAEnB;;OAEG;IACH,eAAe,OAAA;IAEf;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,YAAY,OAAO;IAEnB;;OAEG;IACH,iBAAiB,OAAA;IAEjB;;OAEG;IACH,UAAU,OAAA;IAEV;;OAEG;IACH,aAAa,OAAO;IAEpB;;OAEG;IACH,UAAU,OAAA;IAEV;;OAEG;IACH,oBAAoB,OAAO;IAE3B;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,kBAAkB,OAAA;IAElB;;OAEG;IACH,kBAAkB,OAAA;IAElB;;OAEG;IACH,mBAAmB,OAAA;IAEnB;;OAEG;IACH,mBAAmB,OAAA;IAEnB;;OAEG;IACH,kBAAkB,OAAA;IAElB;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,eAAe,OAAA;IAEf;;OAEG;IACH,eAAe,OAAA;IAEf;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,UAAU,OAAO;IAEjB;;OAEG;IACH,WAAW,OAAA;IAEX;;OAEG;IACH,WAAW,OAAA;IAEX;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,WAAW,OAAA;IAEX;;OAEG;IACH,UAAU,OAAA;IAEV;;OAEG;IACH,YAAY,OAAO;IAEnB;;OAEG;IACH,SAAS,OAAA;IAET;;OAEG;IACH,SAAS,OAAA;IAET;;OAEG;IACH,SAAS,OAAA;IAET;;OAEG;IACH,SAAS,OAAA;IAET;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,eAAe,OAAA;IAEf;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,aAAa,OAAA;CACd"}
1
+ {"version":3,"file":"error-code.d.ts","sourceRoot":"","sources":["../../../src/lib/common/error-code.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,YAAY,OAAO;IAEnB;;OAEG;IACH,eAAe,OAAA;IAEf;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,YAAY,OAAO;IAEnB;;OAEG;IACH,iBAAiB,OAAA;IAEjB;;OAEG;IACH,UAAU,OAAA;IAEV;;OAEG;IACH,aAAa,OAAO;IAEpB;;OAEG;IACH,UAAU,OAAA;IAEV;;OAEG;IACH,oBAAoB,OAAO;IAE3B;;OAEG;IACH,gBAAgB,OAAA;IAEhB;;OAEG;IACH,WAAW,OAAA;IAEX;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,kBAAkB,OAAA;IAElB;;OAEG;IACH,kBAAkB,OAAA;IAElB;;OAEG;IACH,mBAAmB,OAAA;IAEnB;;OAEG;IACH,mBAAmB,OAAA;IAEnB;;OAEG;IACH,kBAAkB,OAAA;IAElB;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,eAAe,OAAA;IAEf;;OAEG;IACH,eAAe,OAAA;IAEf;;OAEG;IACH,cAAc,OAAA;IAEd;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,UAAU,OAAO;IAEjB;;OAEG;IACH,WAAW,OAAA;IAEX;;OAEG;IACH,WAAW,OAAA;IAEX;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,WAAW,OAAA;IAEX;;OAEG;IACH,UAAU,OAAA;IAEV;;OAEG;IACH,YAAY,OAAO;IAEnB;;OAEG;IACH,SAAS,OAAA;IAET;;OAEG;IACH,SAAS,OAAA;IAET;;OAEG;IACH,SAAS,OAAA;IAET;;OAEG;IACH,SAAS,OAAA;IAET;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,YAAY,OAAA;IAEZ;;OAEG;IACH,eAAe,OAAA;IAEf;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,aAAa,OAAA;IAEb;;OAEG;IACH,oBAAoB,OAAO;CAC5B"}
@@ -1,4 +1,4 @@
1
1
  var e;
2
- export var ErrorCode = ((e = {})[e.Unauthorized = 1000] = "Unauthorized", e[e.SessionNotFound = 1001] = "SessionNotFound", e[e.InvalidToken = 1002] = "InvalidToken", e[e.ExpiredToken = 1003] = "ExpiredToken", e[e.FileNotFound = 1100] = "FileNotFound", e[e.DirectoryNotFound = 1101] = "DirectoryNotFound", e[e.OutOfScope = 1102] = "OutOfScope", e[e.SystemOffline = 3000] = "SystemOffline", e[e.LowLatency = 3001] = "LowLatency", e[e.RequiredFieldMissing = 5000] = "RequiredFieldMissing", e[e.InvalidString = 5001] = "InvalidString", e[e.InvalidNumber = 5002] = "InvalidNumber", e[e.InvalidInteger = 5003] = "InvalidInteger", e[e.InvalidBoolean = 5004] = "InvalidBoolean", e[e.InvalidObject = 5005] = "InvalidObject", e[e.InvalidArray = 5006] = "InvalidArray", e[e.InvalidArrayString = 5007] = "InvalidArrayString", e[e.InvalidArrayNumber = 5008] = "InvalidArrayNumber", e[e.InvalidArrayInteger = 5009] = "InvalidArrayInteger", e[e.InvalidArrayBoolean = 5010] = "InvalidArrayBoolean", e[e.InvalidArrayObject = 5011] = "InvalidArrayObject", e[e.RequiredString = 5012] = "RequiredString", e[e.RequiredNumber = 5013] = "RequiredNumber", e[e.RequiredInteger = 5014] = "RequiredInteger", e[e.RequiredBoolean = 5015] = "RequiredBoolean", e[e.RequiredObject = 5016] = "RequiredObject", e[e.RequiredArray = 5017] = "RequiredArray", e[e.EmptyField = 5100] = "EmptyField", e[e.EmptyString = 5101] = "EmptyString", e[e.EmptyNumber = 5102] = "EmptyNumber", e[e.EmptyInteger = 5103] = "EmptyInteger", e[e.EmptyBoolean = 5104] = "EmptyBoolean", e[e.EmptyObject = 5105] = "EmptyObject", e[e.EmptyArray = 5106] = "EmptyArray", e[e.InvalidField = 5200] = "InvalidField", e[e.MinLength = 5201] = "MinLength", e[e.MaxLength = 5202] = "MaxLength", e[e.MinNumber = 5203] = "MinNumber", e[e.MaxNumber = 5204] = "MaxNumber", e[e.MinArraySize = 5205] = "MinArraySize", e[e.MaxArraySize = 5206] = "MaxArraySize", e[e.MissingProperty = 5207] = "MissingProperty", e[e.MinProperties = 5208] = "MinProperties", e[e.MaxProperties = 5209] = "MaxProperties", e);
2
+ export var ErrorCode = ((e = {})[e.Unauthorized = 1000] = "Unauthorized", e[e.SessionNotFound = 1001] = "SessionNotFound", e[e.InvalidToken = 1002] = "InvalidToken", e[e.ExpiredToken = 1003] = "ExpiredToken", e[e.FileNotFound = 1100] = "FileNotFound", e[e.DirectoryNotFound = 1101] = "DirectoryNotFound", e[e.OutOfScope = 1102] = "OutOfScope", e[e.SystemOffline = 3000] = "SystemOffline", e[e.LowLatency = 3001] = "LowLatency", e[e.RequiredFieldMissing = 5000] = "RequiredFieldMissing", e[e.InvalidParameter = 5001] = "InvalidParameter", e[e.InvalidType = 5002] = "InvalidType", e[e.InvalidString = 5003] = "InvalidString", e[e.InvalidNumber = 5004] = "InvalidNumber", e[e.InvalidInteger = 5005] = "InvalidInteger", e[e.InvalidBoolean = 5006] = "InvalidBoolean", e[e.InvalidObject = 5007] = "InvalidObject", e[e.InvalidArray = 5008] = "InvalidArray", e[e.InvalidArrayString = 5009] = "InvalidArrayString", e[e.InvalidArrayNumber = 5010] = "InvalidArrayNumber", e[e.InvalidArrayInteger = 5011] = "InvalidArrayInteger", e[e.InvalidArrayBoolean = 5012] = "InvalidArrayBoolean", e[e.InvalidArrayObject = 5013] = "InvalidArrayObject", e[e.RequiredString = 5014] = "RequiredString", e[e.RequiredNumber = 5015] = "RequiredNumber", e[e.RequiredInteger = 5016] = "RequiredInteger", e[e.RequiredBoolean = 5017] = "RequiredBoolean", e[e.RequiredObject = 5018] = "RequiredObject", e[e.RequiredArray = 5019] = "RequiredArray", e[e.EmptyField = 5100] = "EmptyField", e[e.EmptyString = 5101] = "EmptyString", e[e.EmptyNumber = 5102] = "EmptyNumber", e[e.EmptyInteger = 5103] = "EmptyInteger", e[e.EmptyBoolean = 5104] = "EmptyBoolean", e[e.EmptyObject = 5105] = "EmptyObject", e[e.EmptyArray = 5106] = "EmptyArray", e[e.InvalidField = 5200] = "InvalidField", e[e.MinLength = 5201] = "MinLength", e[e.MaxLength = 5202] = "MaxLength", e[e.MinNumber = 5203] = "MinNumber", e[e.MaxNumber = 5204] = "MaxNumber", e[e.MinArraySize = 5205] = "MinArraySize", e[e.MaxArraySize = 5206] = "MaxArraySize", e[e.MissingProperty = 5207] = "MissingProperty", e[e.MinProperties = 5208] = "MinProperties", e[e.MaxProperties = 5209] = "MaxProperties", e[e.ConstructorInjection = 6000] = "ConstructorInjection", e);
3
3
 
4
4
  //# sourceMappingURL=error-code.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/common/error-code.ts"],"sourcesContent":["/**\r\n * Error codes\r\n */\r\nexport enum ErrorCode {\r\n /**\r\n * Unauthorized access attempt\r\n */\r\n Unauthorized = 1000,\r\n\r\n /**\r\n * Session does not exist or expired\r\n */\r\n SessionNotFound,\r\n\r\n /**\r\n * Invalid token provided\r\n */\r\n InvalidToken,\r\n\r\n /**\r\n * Token has expired\r\n */\r\n ExpiredToken,\r\n\r\n /**\r\n * File could not be found\r\n */\r\n FileNotFound = 1100,\r\n\r\n /**\r\n * Directory does not exist\r\n */\r\n DirectoryNotFound,\r\n\r\n /**\r\n * Attempted operation is out of allowable scope\r\n */\r\n OutOfScope,\r\n\r\n /**\r\n * System is offline or unreachable\r\n */\r\n SystemOffline = 3000,\r\n\r\n /**\r\n * System is experiencing low latency issues\r\n */\r\n LowLatency,\r\n\r\n /**\r\n * A required field is missing\r\n */\r\n RequiredFieldMissing = 5000,\r\n\r\n /**\r\n * Invalid string value provided\r\n */\r\n InvalidString,\r\n\r\n /**\r\n * Invalid number provided\r\n */\r\n InvalidNumber,\r\n\r\n /**\r\n * Invalid integer value provided\r\n */\r\n InvalidInteger,\r\n\r\n /**\r\n * Invalid boolean value provided\r\n */\r\n InvalidBoolean,\r\n\r\n /**\r\n * Invalid object provided\r\n */\r\n InvalidObject,\r\n\r\n /**\r\n * Invalid array provided\r\n */\r\n InvalidArray,\r\n\r\n /**\r\n * Invalid array of strings\r\n */\r\n InvalidArrayString,\r\n\r\n /**\r\n * Invalid array of numbers\r\n */\r\n InvalidArrayNumber,\r\n\r\n /**\r\n * Invalid array of integers\r\n */\r\n InvalidArrayInteger,\r\n\r\n /**\r\n * Invalid array of booleans\r\n */\r\n InvalidArrayBoolean,\r\n\r\n /**\r\n * Invalid array of objects\r\n */\r\n InvalidArrayObject,\r\n\r\n /**\r\n * Missing required string field\r\n */\r\n RequiredString,\r\n\r\n /**\r\n * Missing required number field\r\n */\r\n RequiredNumber,\r\n\r\n /**\r\n * Missing required integer field\r\n */\r\n RequiredInteger,\r\n\r\n /**\r\n * Missing required boolean field\r\n */\r\n RequiredBoolean,\r\n\r\n /**\r\n * Missing required object field\r\n */\r\n RequiredObject,\r\n\r\n /**\r\n * Missing required array field\r\n */\r\n RequiredArray,\r\n\r\n /**\r\n * Field cannot be empty\r\n */\r\n EmptyField = 5100,\r\n\r\n /**\r\n * String field is empty\r\n */\r\n EmptyString,\r\n\r\n /**\r\n * Number field is empty\r\n */\r\n EmptyNumber,\r\n\r\n /**\r\n * Integer field is empty\r\n */\r\n EmptyInteger,\r\n\r\n /**\r\n * Boolean field is empty\r\n */\r\n EmptyBoolean,\r\n\r\n /**\r\n * Object field is empty\r\n */\r\n EmptyObject,\r\n\r\n /**\r\n * Array field is empty\r\n */\r\n EmptyArray,\r\n\r\n /**\r\n * Field value is invalid\r\n */\r\n InvalidField = 5200,\r\n\r\n /**\r\n * Value is shorter than minimum length\r\n */\r\n MinLength,\r\n\r\n /**\r\n * Value exceeds maximum length\r\n */\r\n MaxLength,\r\n\r\n /**\r\n * Number is less than the minimum\r\n */\r\n MinNumber,\r\n\r\n /**\r\n * Number exceeds the maximum\r\n */\r\n MaxNumber,\r\n\r\n /**\r\n * Array has fewer items than the minimum\r\n */\r\n MinArraySize,\r\n\r\n /**\r\n * Array exceeds the maximum size\r\n */\r\n MaxArraySize,\r\n\r\n /**\r\n * Missing required property in object\r\n */\r\n MissingProperty,\r\n\r\n /**\r\n * Object has fewer properties than the minimum\r\n */\r\n MinProperties,\r\n\r\n /**\r\n * Object exceeds the maximum number of properties\r\n */\r\n MaxProperties,\r\n}\r\n"],"names":["ErrorCode"],"mappings":"IAGYA;AAAZ,OAAO,IAAA,AAAKA,cAAAA,g9DAAAA,GA4NX"}
1
+ {"version":3,"sources":["../../../src/lib/common/error-code.ts"],"sourcesContent":["/**\r\n * Error codes\r\n */\r\nexport enum ErrorCode {\r\n /**\r\n * Unauthorized access attempt\r\n */\r\n Unauthorized = 1000,\r\n\r\n /**\r\n * Session does not exist or expired\r\n */\r\n SessionNotFound,\r\n\r\n /**\r\n * Invalid token\r\n */\r\n InvalidToken,\r\n\r\n /**\r\n * Token has expired\r\n */\r\n ExpiredToken,\r\n\r\n /**\r\n * File could not be found\r\n */\r\n FileNotFound = 1100,\r\n\r\n /**\r\n * Directory does not exist\r\n */\r\n DirectoryNotFound,\r\n\r\n /**\r\n * Attempted operation is out of allowable scope\r\n */\r\n OutOfScope,\r\n\r\n /**\r\n * System is offline or unreachable\r\n */\r\n SystemOffline = 3000,\r\n\r\n /**\r\n * System is experiencing low latency issues\r\n */\r\n LowLatency,\r\n\r\n /**\r\n * A required field is missing\r\n */\r\n RequiredFieldMissing = 5000,\r\n\r\n /**\r\n * Invalid parameter\r\n */\r\n InvalidParameter,\r\n\r\n /**\r\n * Invalid type\r\n */\r\n InvalidType,\r\n\r\n /**\r\n * Invalid string\r\n */\r\n InvalidString,\r\n\r\n /**\r\n * Invalid number\r\n */\r\n InvalidNumber,\r\n\r\n /**\r\n * Invalid integer\r\n */\r\n InvalidInteger,\r\n\r\n /**\r\n * Invalid boolean\r\n */\r\n InvalidBoolean,\r\n\r\n /**\r\n * Invalid object\r\n */\r\n InvalidObject,\r\n\r\n /**\r\n * Invalid array\r\n */\r\n InvalidArray,\r\n\r\n /**\r\n * Invalid array of strings\r\n */\r\n InvalidArrayString,\r\n\r\n /**\r\n * Invalid array of numbers\r\n */\r\n InvalidArrayNumber,\r\n\r\n /**\r\n * Invalid array of integers\r\n */\r\n InvalidArrayInteger,\r\n\r\n /**\r\n * Invalid array of array boolean\r\n */\r\n InvalidArrayBoolean,\r\n\r\n /**\r\n * Invalid array of objects\r\n */\r\n InvalidArrayObject,\r\n\r\n /**\r\n * Missing required string field\r\n */\r\n RequiredString,\r\n\r\n /**\r\n * Missing required number field\r\n */\r\n RequiredNumber,\r\n\r\n /**\r\n * Missing required integer field\r\n */\r\n RequiredInteger,\r\n\r\n /**\r\n * Missing required boolean field\r\n */\r\n RequiredBoolean,\r\n\r\n /**\r\n * Missing required object field\r\n */\r\n RequiredObject,\r\n\r\n /**\r\n * Missing required array field\r\n */\r\n RequiredArray,\r\n\r\n /**\r\n * Field cannot be empty\r\n */\r\n EmptyField = 5100,\r\n\r\n /**\r\n * String field is empty\r\n */\r\n EmptyString,\r\n\r\n /**\r\n * Number field is empty\r\n */\r\n EmptyNumber,\r\n\r\n /**\r\n * Integer field is empty\r\n */\r\n EmptyInteger,\r\n\r\n /**\r\n * Boolean field is empty\r\n */\r\n EmptyBoolean,\r\n\r\n /**\r\n * Object field is empty\r\n */\r\n EmptyObject,\r\n\r\n /**\r\n * Array field is empty\r\n */\r\n EmptyArray,\r\n\r\n /**\r\n * Field value is invalid\r\n */\r\n InvalidField = 5200,\r\n\r\n /**\r\n * Value is shorter than minimum length\r\n */\r\n MinLength,\r\n\r\n /**\r\n * Value exceeds maximum length\r\n */\r\n MaxLength,\r\n\r\n /**\r\n * Number is less than the minimum\r\n */\r\n MinNumber,\r\n\r\n /**\r\n * Number exceeds the maximum\r\n */\r\n MaxNumber,\r\n\r\n /**\r\n * Array has fewer items than the minimum\r\n */\r\n MinArraySize,\r\n\r\n /**\r\n * Array exceeds the maximum size\r\n */\r\n MaxArraySize,\r\n\r\n /**\r\n * Missing required property in object\r\n */\r\n MissingProperty,\r\n\r\n /**\r\n * Object has fewer properties than the minimum\r\n */\r\n MinProperties,\r\n\r\n /**\r\n * Object exceeds the maximum number of properties\r\n */\r\n MaxProperties,\r\n\r\n /**\r\n * The injectable is only allowed in constructor\r\n */\r\n ConstructorInjection = 6000,\r\n}\r\n"],"names":["ErrorCode"],"mappings":"IAGYA;AAAZ,OAAO,IAAA,AAAKA,cAAAA,umEAAAA,GA2OX"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Mapped throwers
3
3
  */
4
- export declare const throwUnauthorizedError: import("./common/error-thrower.js").ErrorThrower, throwSessionNotFoundError: import("./common/error-thrower.js").ErrorThrower, throwInvalidTokenError: import("./common/error-thrower.js").ErrorThrower, throwExpiredTokenError: import("./common/error-thrower.js").ErrorThrower, throwFileNotFoundError: import("./common/error-thrower.js").ErrorThrower, throwDirectoryNotFoundError: import("./common/error-thrower.js").ErrorThrower, throwOutOfScopeError: import("./common/error-thrower.js").ErrorThrower, throwSystemOfflineError: import("./common/error-thrower.js").ErrorThrower, throwLowLatencyError: import("./common/error-thrower.js").ErrorThrower, throwRequiredFieldMissingError: import("./common/error-thrower.js").ErrorThrower, throwInvalidStringError: import("./common/error-thrower.js").ErrorThrower, throwInvalidNumberError: import("./common/error-thrower.js").ErrorThrower, throwInvalidIntegerError: import("./common/error-thrower.js").ErrorThrower, throwInvalidBooleanError: import("./common/error-thrower.js").ErrorThrower, throwInvalidObjectError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayStringError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayNumberError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayIntegerError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayBooleanError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayObjectError: import("./common/error-thrower.js").ErrorThrower, throwRequiredStringError: import("./common/error-thrower.js").ErrorThrower, throwRequiredNumberError: import("./common/error-thrower.js").ErrorThrower, throwRequiredIntegerError: import("./common/error-thrower.js").ErrorThrower, throwRequiredBooleanError: import("./common/error-thrower.js").ErrorThrower, throwRequiredObjectError: import("./common/error-thrower.js").ErrorThrower, throwRequiredArrayError: import("./common/error-thrower.js").ErrorThrower, throwEmptyFieldError: import("./common/error-thrower.js").ErrorThrower, throwEmptyStringError: import("./common/error-thrower.js").ErrorThrower, throwEmptyNumberError: import("./common/error-thrower.js").ErrorThrower, throwEmptyIntegerError: import("./common/error-thrower.js").ErrorThrower, throwEmptyBooleanError: import("./common/error-thrower.js").ErrorThrower, throwEmptyObjectError: import("./common/error-thrower.js").ErrorThrower, throwEmptyArrayError: import("./common/error-thrower.js").ErrorThrower, throwInvalidFieldError: import("./common/error-thrower.js").ErrorThrower, throwMinLengthError: import("./common/error-thrower.js").ErrorThrower, throwMaxLengthError: import("./common/error-thrower.js").ErrorThrower, throwMinNumberError: import("./common/error-thrower.js").ErrorThrower, throwMaxNumberError: import("./common/error-thrower.js").ErrorThrower, throwMinArraySizeError: import("./common/error-thrower.js").ErrorThrower, throwMaxArraySizeError: import("./common/error-thrower.js").ErrorThrower, throwMissingPropertyError: import("./common/error-thrower.js").ErrorThrower, throwMinPropertiesError: import("./common/error-thrower.js").ErrorThrower, throwMaxPropertiesError: import("./common/error-thrower.js").ErrorThrower;
4
+ export declare const throwUnauthorizedError: import("./common/error-thrower.js").ErrorThrower, throwSessionNotFoundError: import("./common/error-thrower.js").ErrorThrower, throwInvalidTokenError: import("./common/error-thrower.js").ErrorThrower, throwExpiredTokenError: import("./common/error-thrower.js").ErrorThrower, throwFileNotFoundError: import("./common/error-thrower.js").ErrorThrower, throwDirectoryNotFoundError: import("./common/error-thrower.js").ErrorThrower, throwOutOfScopeError: import("./common/error-thrower.js").ErrorThrower, throwSystemOfflineError: import("./common/error-thrower.js").ErrorThrower, throwLowLatencyError: import("./common/error-thrower.js").ErrorThrower, throwRequiredFieldMissingError: import("./common/error-thrower.js").ErrorThrower, throwInvalidTypeError: import("./common/error-thrower.js").ErrorThrower, throwInvalidParameterError: import("./common/error-thrower.js").ErrorThrower, throwInvalidStringError: import("./common/error-thrower.js").ErrorThrower, throwInvalidNumberError: import("./common/error-thrower.js").ErrorThrower, throwInvalidIntegerError: import("./common/error-thrower.js").ErrorThrower, throwInvalidBooleanError: import("./common/error-thrower.js").ErrorThrower, throwInvalidObjectError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayStringError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayNumberError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayIntegerError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayBooleanError: import("./common/error-thrower.js").ErrorThrower, throwInvalidArrayObjectError: import("./common/error-thrower.js").ErrorThrower, throwRequiredStringError: import("./common/error-thrower.js").ErrorThrower, throwRequiredNumberError: import("./common/error-thrower.js").ErrorThrower, throwRequiredIntegerError: import("./common/error-thrower.js").ErrorThrower, throwRequiredBooleanError: import("./common/error-thrower.js").ErrorThrower, throwRequiredObjectError: import("./common/error-thrower.js").ErrorThrower, throwRequiredArrayError: import("./common/error-thrower.js").ErrorThrower, throwEmptyFieldError: import("./common/error-thrower.js").ErrorThrower, throwEmptyStringError: import("./common/error-thrower.js").ErrorThrower, throwEmptyNumberError: import("./common/error-thrower.js").ErrorThrower, throwEmptyIntegerError: import("./common/error-thrower.js").ErrorThrower, throwEmptyBooleanError: import("./common/error-thrower.js").ErrorThrower, throwEmptyObjectError: import("./common/error-thrower.js").ErrorThrower, throwEmptyArrayError: import("./common/error-thrower.js").ErrorThrower, throwInvalidFieldError: import("./common/error-thrower.js").ErrorThrower, throwMinLengthError: import("./common/error-thrower.js").ErrorThrower, throwMaxLengthError: import("./common/error-thrower.js").ErrorThrower, throwMinNumberError: import("./common/error-thrower.js").ErrorThrower, throwMaxNumberError: import("./common/error-thrower.js").ErrorThrower, throwMinArraySizeError: import("./common/error-thrower.js").ErrorThrower, throwMaxArraySizeError: import("./common/error-thrower.js").ErrorThrower, throwMissingPropertyError: import("./common/error-thrower.js").ErrorThrower, throwMinPropertiesError: import("./common/error-thrower.js").ErrorThrower, throwMaxPropertiesError: import("./common/error-thrower.js").ErrorThrower, throwConstructorInjectionError: import("./common/error-thrower.js").ErrorThrower;
5
5
  //# sourceMappingURL=throwers-map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"throwers-map.d.ts","sourceRoot":"","sources":["../../src/lib/throwers-map.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MACS,sBAAsB,oDACnB,yBAAyB,oDAC5B,sBAAsB,oDACtB,sBAAsB,oDACtB,sBAAsB,oDACjB,2BAA2B,oDAClC,oBAAoB,oDACjB,uBAAuB,oDAC1B,oBAAoB,oDACV,8BAA8B,oDACrC,uBAAuB,oDACvB,uBAAuB,oDACtB,wBAAwB,oDACxB,wBAAwB,oDACzB,uBAAuB,oDACxB,sBAAsB,oDAChB,4BAA4B,oDAC5B,4BAA4B,oDAC3B,6BAA6B,oDAC7B,6BAA6B,oDAC9B,4BAA4B,oDAChC,wBAAwB,oDACxB,wBAAwB,oDACvB,yBAAyB,oDACzB,yBAAyB,oDAC1B,wBAAwB,oDACzB,uBAAuB,oDAC1B,oBAAoB,oDACnB,qBAAqB,oDACrB,qBAAqB,oDACpB,sBAAsB,oDACtB,sBAAsB,oDACvB,qBAAqB,oDACtB,oBAAoB,oDAClB,sBAAsB,oDACzB,mBAAmB,oDACnB,mBAAmB,oDACnB,mBAAmB,oDACnB,mBAAmB,oDAChB,sBAAsB,oDACtB,sBAAsB,oDACnB,yBAAyB,oDAC3B,uBAAuB,oDACvB,uBAAuB,kDACpB,CAAC"}
1
+ {"version":3,"file":"throwers-map.d.ts","sourceRoot":"","sources":["../../src/lib/throwers-map.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MACS,sBAAsB,oDACnB,yBAAyB,oDAC5B,sBAAsB,oDACtB,sBAAsB,oDACtB,sBAAsB,oDACjB,2BAA2B,oDAClC,oBAAoB,oDACjB,uBAAuB,oDAC1B,oBAAoB,oDACV,8BAA8B,oDACvC,qBAAqB,oDAChB,0BAA0B,oDAC7B,uBAAuB,oDACvB,uBAAuB,oDACtB,wBAAwB,oDACxB,wBAAwB,oDACzB,uBAAuB,oDACxB,sBAAsB,oDAChB,4BAA4B,oDAC5B,4BAA4B,oDAC3B,6BAA6B,oDAC7B,6BAA6B,oDAC9B,4BAA4B,oDAChC,wBAAwB,oDACxB,wBAAwB,oDACvB,yBAAyB,oDACzB,yBAAyB,oDAC1B,wBAAwB,oDACzB,uBAAuB,oDAC1B,oBAAoB,oDACnB,qBAAqB,oDACrB,qBAAqB,oDACpB,sBAAsB,oDACtB,sBAAsB,oDACvB,qBAAqB,oDACtB,oBAAoB,oDAClB,sBAAsB,oDACzB,mBAAmB,oDACnB,mBAAmB,oDACnB,mBAAmB,oDACnB,mBAAmB,oDAChB,sBAAsB,oDACtB,sBAAsB,oDACnB,yBAAyB,oDAC3B,uBAAuB,oDACvB,uBAAuB,oDAChB,8BAA8B,kDAClC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { createThrowers as r } from './common/create-throwers.js';
2
- export const { Unauthorized: throwUnauthorizedError, SessionNotFound: throwSessionNotFoundError, InvalidToken: throwInvalidTokenError, ExpiredToken: throwExpiredTokenError, FileNotFound: throwFileNotFoundError, DirectoryNotFound: throwDirectoryNotFoundError, OutOfScope: throwOutOfScopeError, SystemOffline: throwSystemOfflineError, LowLatency: throwLowLatencyError, RequiredFieldMissing: throwRequiredFieldMissingError, InvalidString: throwInvalidStringError, InvalidNumber: throwInvalidNumberError, InvalidInteger: throwInvalidIntegerError, InvalidBoolean: throwInvalidBooleanError, InvalidObject: throwInvalidObjectError, InvalidArray: throwInvalidArrayError, InvalidArrayString: throwInvalidArrayStringError, InvalidArrayNumber: throwInvalidArrayNumberError, InvalidArrayInteger: throwInvalidArrayIntegerError, InvalidArrayBoolean: throwInvalidArrayBooleanError, InvalidArrayObject: throwInvalidArrayObjectError, RequiredString: throwRequiredStringError, RequiredNumber: throwRequiredNumberError, RequiredInteger: throwRequiredIntegerError, RequiredBoolean: throwRequiredBooleanError, RequiredObject: throwRequiredObjectError, RequiredArray: throwRequiredArrayError, EmptyField: throwEmptyFieldError, EmptyString: throwEmptyStringError, EmptyNumber: throwEmptyNumberError, EmptyInteger: throwEmptyIntegerError, EmptyBoolean: throwEmptyBooleanError, EmptyObject: throwEmptyObjectError, EmptyArray: throwEmptyArrayError, InvalidField: throwInvalidFieldError, MinLength: throwMinLengthError, MaxLength: throwMaxLengthError, MinNumber: throwMinNumberError, MaxNumber: throwMaxNumberError, MinArraySize: throwMinArraySizeError, MaxArraySize: throwMaxArraySizeError, MissingProperty: throwMissingPropertyError, MinProperties: throwMinPropertiesError, MaxProperties: throwMaxPropertiesError } = r();
2
+ export const { Unauthorized: throwUnauthorizedError, SessionNotFound: throwSessionNotFoundError, InvalidToken: throwInvalidTokenError, ExpiredToken: throwExpiredTokenError, FileNotFound: throwFileNotFoundError, DirectoryNotFound: throwDirectoryNotFoundError, OutOfScope: throwOutOfScopeError, SystemOffline: throwSystemOfflineError, LowLatency: throwLowLatencyError, RequiredFieldMissing: throwRequiredFieldMissingError, InvalidType: throwInvalidTypeError, InvalidParameter: throwInvalidParameterError, InvalidString: throwInvalidStringError, InvalidNumber: throwInvalidNumberError, InvalidInteger: throwInvalidIntegerError, InvalidBoolean: throwInvalidBooleanError, InvalidObject: throwInvalidObjectError, InvalidArray: throwInvalidArrayError, InvalidArrayString: throwInvalidArrayStringError, InvalidArrayNumber: throwInvalidArrayNumberError, InvalidArrayInteger: throwInvalidArrayIntegerError, InvalidArrayBoolean: throwInvalidArrayBooleanError, InvalidArrayObject: throwInvalidArrayObjectError, RequiredString: throwRequiredStringError, RequiredNumber: throwRequiredNumberError, RequiredInteger: throwRequiredIntegerError, RequiredBoolean: throwRequiredBooleanError, RequiredObject: throwRequiredObjectError, RequiredArray: throwRequiredArrayError, EmptyField: throwEmptyFieldError, EmptyString: throwEmptyStringError, EmptyNumber: throwEmptyNumberError, EmptyInteger: throwEmptyIntegerError, EmptyBoolean: throwEmptyBooleanError, EmptyObject: throwEmptyObjectError, EmptyArray: throwEmptyArrayError, InvalidField: throwInvalidFieldError, MinLength: throwMinLengthError, MaxLength: throwMaxLengthError, MinNumber: throwMinNumberError, MaxNumber: throwMaxNumberError, MinArraySize: throwMinArraySizeError, MaxArraySize: throwMaxArraySizeError, MissingProperty: throwMissingPropertyError, MinProperties: throwMinPropertiesError, MaxProperties: throwMaxPropertiesError, ConstructorInjection: throwConstructorInjectionError } = r();
3
3
 
4
4
  //# sourceMappingURL=throwers-map.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/throwers-map.ts"],"sourcesContent":["import { createThrowers } from './common/create-throwers.js';\r\n\r\n/**\r\n * Mapped throwers\r\n */\r\nexport const {\r\n Unauthorized: throwUnauthorizedError,\r\n SessionNotFound: throwSessionNotFoundError,\r\n InvalidToken: throwInvalidTokenError,\r\n ExpiredToken: throwExpiredTokenError,\r\n FileNotFound: throwFileNotFoundError,\r\n DirectoryNotFound: throwDirectoryNotFoundError,\r\n OutOfScope: throwOutOfScopeError,\r\n SystemOffline: throwSystemOfflineError,\r\n LowLatency: throwLowLatencyError,\r\n RequiredFieldMissing: throwRequiredFieldMissingError,\r\n InvalidString: throwInvalidStringError,\r\n InvalidNumber: throwInvalidNumberError,\r\n InvalidInteger: throwInvalidIntegerError,\r\n InvalidBoolean: throwInvalidBooleanError,\r\n InvalidObject: throwInvalidObjectError,\r\n InvalidArray: throwInvalidArrayError,\r\n InvalidArrayString: throwInvalidArrayStringError,\r\n InvalidArrayNumber: throwInvalidArrayNumberError,\r\n InvalidArrayInteger: throwInvalidArrayIntegerError,\r\n InvalidArrayBoolean: throwInvalidArrayBooleanError,\r\n InvalidArrayObject: throwInvalidArrayObjectError,\r\n RequiredString: throwRequiredStringError,\r\n RequiredNumber: throwRequiredNumberError,\r\n RequiredInteger: throwRequiredIntegerError,\r\n RequiredBoolean: throwRequiredBooleanError,\r\n RequiredObject: throwRequiredObjectError,\r\n RequiredArray: throwRequiredArrayError,\r\n EmptyField: throwEmptyFieldError,\r\n EmptyString: throwEmptyStringError,\r\n EmptyNumber: throwEmptyNumberError,\r\n EmptyInteger: throwEmptyIntegerError,\r\n EmptyBoolean: throwEmptyBooleanError,\r\n EmptyObject: throwEmptyObjectError,\r\n EmptyArray: throwEmptyArrayError,\r\n InvalidField: throwInvalidFieldError,\r\n MinLength: throwMinLengthError,\r\n MaxLength: throwMaxLengthError,\r\n MinNumber: throwMinNumberError,\r\n MaxNumber: throwMaxNumberError,\r\n MinArraySize: throwMinArraySizeError,\r\n MaxArraySize: throwMaxArraySizeError,\r\n MissingProperty: throwMissingPropertyError,\r\n MinProperties: throwMinPropertiesError,\r\n MaxProperties: throwMaxPropertiesError,\r\n} = createThrowers();\r\n"],"names":["createThrowers","Unauthorized","throwUnauthorizedError","SessionNotFound","throwSessionNotFoundError","InvalidToken","throwInvalidTokenError","ExpiredToken","throwExpiredTokenError","FileNotFound","throwFileNotFoundError","DirectoryNotFound","throwDirectoryNotFoundError","OutOfScope","throwOutOfScopeError","SystemOffline","throwSystemOfflineError","LowLatency","throwLowLatencyError","RequiredFieldMissing","throwRequiredFieldMissingError","InvalidString","throwInvalidStringError","InvalidNumber","throwInvalidNumberError","InvalidInteger","throwInvalidIntegerError","InvalidBoolean","throwInvalidBooleanError","InvalidObject","throwInvalidObjectError","InvalidArray","throwInvalidArrayError","InvalidArrayString","throwInvalidArrayStringError","InvalidArrayNumber","throwInvalidArrayNumberError","InvalidArrayInteger","throwInvalidArrayIntegerError","InvalidArrayBoolean","throwInvalidArrayBooleanError","InvalidArrayObject","throwInvalidArrayObjectError","RequiredString","throwRequiredStringError","RequiredNumber","throwRequiredNumberError","RequiredInteger","throwRequiredIntegerError","RequiredBoolean","throwRequiredBooleanError","RequiredObject","throwRequiredObjectError","RequiredArray","throwRequiredArrayError","EmptyField","throwEmptyFieldError","EmptyString","throwEmptyStringError","EmptyNumber","throwEmptyNumberError","EmptyInteger","throwEmptyIntegerError","EmptyBoolean","throwEmptyBooleanError","EmptyObject","throwEmptyObjectError","EmptyArray","throwEmptyArrayError","InvalidField","throwInvalidFieldError","MinLength","throwMinLengthError","MaxLength","throwMaxLengthError","MinNumber","throwMinNumberError","MaxNumber","throwMaxNumberError","MinArraySize","throwMinArraySizeError","MaxArraySize","throwMaxArraySizeError","MissingProperty","throwMissingPropertyError","MinProperties","throwMinPropertiesError","MaxProperties","throwMaxPropertiesError"],"mappings":"AAAA,SAASA,kBAAAA,CAAc,QAAQ,8BAA8B;AAK7D,OAAO,MAAM,EACXC,cAAcC,sBAAsB,EACpCC,iBAAiBC,yBAAyB,EAC1CC,cAAcC,sBAAsB,EACpCC,cAAcC,sBAAsB,EACpCC,cAAcC,sBAAsB,EACpCC,mBAAmBC,2BAA2B,EAC9CC,YAAYC,oBAAoB,EAChCC,eAAeC,uBAAuB,EACtCC,YAAYC,oBAAoB,EAChCC,sBAAsBC,8BAA8B,EACpDC,eAAeC,uBAAuB,EACtCC,eAAeC,uBAAuB,EACtCC,gBAAgBC,wBAAwB,EACxCC,gBAAgBC,wBAAwB,EACxCC,eAAeC,uBAAuB,EACtCC,cAAcC,sBAAsB,EACpCC,oBAAoBC,4BAA4B,EAChDC,oBAAoBC,4BAA4B,EAChDC,qBAAqBC,6BAA6B,EAClDC,qBAAqBC,6BAA6B,EAClDC,oBAAoBC,4BAA4B,EAChDC,gBAAgBC,wBAAwB,EACxCC,gBAAgBC,wBAAwB,EACxCC,iBAAiBC,yBAAyB,EAC1CC,iBAAiBC,yBAAyB,EAC1CC,gBAAgBC,wBAAwB,EACxCC,eAAeC,uBAAuB,EACtCC,YAAYC,oBAAoB,EAChCC,aAAaC,qBAAqB,EAClCC,aAAaC,qBAAqB,EAClCC,cAAcC,sBAAsB,EACpCC,cAAcC,sBAAsB,EACpCC,aAAaC,qBAAqB,EAClCC,YAAYC,oBAAoB,EAChCC,cAAcC,sBAAsB,EACpCC,WAAWC,mBAAmB,EAC9BC,WAAWC,mBAAmB,EAC9BC,WAAWC,mBAAmB,EAC9BC,WAAWC,mBAAmB,EAC9BC,cAAcC,sBAAsB,EACpCC,cAAcC,sBAAsB,EACpCC,iBAAiBC,yBAAyB,EAC1CC,eAAeC,uBAAuB,EACtCC,eAAeC,uBAAuB,EACvC,GAAGxF,IAAiB"}
1
+ {"version":3,"sources":["../../src/lib/throwers-map.ts"],"sourcesContent":["import { createThrowers } from './common/create-throwers.js';\r\n\r\n/**\r\n * Mapped throwers\r\n */\r\nexport const {\r\n Unauthorized: throwUnauthorizedError,\r\n SessionNotFound: throwSessionNotFoundError,\r\n InvalidToken: throwInvalidTokenError,\r\n ExpiredToken: throwExpiredTokenError,\r\n FileNotFound: throwFileNotFoundError,\r\n DirectoryNotFound: throwDirectoryNotFoundError,\r\n OutOfScope: throwOutOfScopeError,\r\n SystemOffline: throwSystemOfflineError,\r\n LowLatency: throwLowLatencyError,\r\n RequiredFieldMissing: throwRequiredFieldMissingError,\r\n InvalidType: throwInvalidTypeError,\r\n InvalidParameter: throwInvalidParameterError,\r\n InvalidString: throwInvalidStringError,\r\n InvalidNumber: throwInvalidNumberError,\r\n InvalidInteger: throwInvalidIntegerError,\r\n InvalidBoolean: throwInvalidBooleanError,\r\n InvalidObject: throwInvalidObjectError,\r\n InvalidArray: throwInvalidArrayError,\r\n InvalidArrayString: throwInvalidArrayStringError,\r\n InvalidArrayNumber: throwInvalidArrayNumberError,\r\n InvalidArrayInteger: throwInvalidArrayIntegerError,\r\n InvalidArrayBoolean: throwInvalidArrayBooleanError,\r\n InvalidArrayObject: throwInvalidArrayObjectError,\r\n RequiredString: throwRequiredStringError,\r\n RequiredNumber: throwRequiredNumberError,\r\n RequiredInteger: throwRequiredIntegerError,\r\n RequiredBoolean: throwRequiredBooleanError,\r\n RequiredObject: throwRequiredObjectError,\r\n RequiredArray: throwRequiredArrayError,\r\n EmptyField: throwEmptyFieldError,\r\n EmptyString: throwEmptyStringError,\r\n EmptyNumber: throwEmptyNumberError,\r\n EmptyInteger: throwEmptyIntegerError,\r\n EmptyBoolean: throwEmptyBooleanError,\r\n EmptyObject: throwEmptyObjectError,\r\n EmptyArray: throwEmptyArrayError,\r\n InvalidField: throwInvalidFieldError,\r\n MinLength: throwMinLengthError,\r\n MaxLength: throwMaxLengthError,\r\n MinNumber: throwMinNumberError,\r\n MaxNumber: throwMaxNumberError,\r\n MinArraySize: throwMinArraySizeError,\r\n MaxArraySize: throwMaxArraySizeError,\r\n MissingProperty: throwMissingPropertyError,\r\n MinProperties: throwMinPropertiesError,\r\n MaxProperties: throwMaxPropertiesError,\r\n ConstructorInjection: throwConstructorInjectionError,\r\n} = createThrowers();\r\n"],"names":["createThrowers","Unauthorized","throwUnauthorizedError","SessionNotFound","throwSessionNotFoundError","InvalidToken","throwInvalidTokenError","ExpiredToken","throwExpiredTokenError","FileNotFound","throwFileNotFoundError","DirectoryNotFound","throwDirectoryNotFoundError","OutOfScope","throwOutOfScopeError","SystemOffline","throwSystemOfflineError","LowLatency","throwLowLatencyError","RequiredFieldMissing","throwRequiredFieldMissingError","InvalidType","throwInvalidTypeError","InvalidParameter","throwInvalidParameterError","InvalidString","throwInvalidStringError","InvalidNumber","throwInvalidNumberError","InvalidInteger","throwInvalidIntegerError","InvalidBoolean","throwInvalidBooleanError","InvalidObject","throwInvalidObjectError","InvalidArray","throwInvalidArrayError","InvalidArrayString","throwInvalidArrayStringError","InvalidArrayNumber","throwInvalidArrayNumberError","InvalidArrayInteger","throwInvalidArrayIntegerError","InvalidArrayBoolean","throwInvalidArrayBooleanError","InvalidArrayObject","throwInvalidArrayObjectError","RequiredString","throwRequiredStringError","RequiredNumber","throwRequiredNumberError","RequiredInteger","throwRequiredIntegerError","RequiredBoolean","throwRequiredBooleanError","RequiredObject","throwRequiredObjectError","RequiredArray","throwRequiredArrayError","EmptyField","throwEmptyFieldError","EmptyString","throwEmptyStringError","EmptyNumber","throwEmptyNumberError","EmptyInteger","throwEmptyIntegerError","EmptyBoolean","throwEmptyBooleanError","EmptyObject","throwEmptyObjectError","EmptyArray","throwEmptyArrayError","InvalidField","throwInvalidFieldError","MinLength","throwMinLengthError","MaxLength","throwMaxLengthError","MinNumber","throwMinNumberError","MaxNumber","throwMaxNumberError","MinArraySize","throwMinArraySizeError","MaxArraySize","throwMaxArraySizeError","MissingProperty","throwMissingPropertyError","MinProperties","throwMinPropertiesError","MaxProperties","throwMaxPropertiesError","ConstructorInjection","throwConstructorInjectionError"],"mappings":"AAAA,SAASA,kBAAAA,CAAc,QAAQ,8BAA8B;AAK7D,OAAO,MAAM,EACXC,cAAcC,sBAAsB,EACpCC,iBAAiBC,yBAAyB,EAC1CC,cAAcC,sBAAsB,EACpCC,cAAcC,sBAAsB,EACpCC,cAAcC,sBAAsB,EACpCC,mBAAmBC,2BAA2B,EAC9CC,YAAYC,oBAAoB,EAChCC,eAAeC,uBAAuB,EACtCC,YAAYC,oBAAoB,EAChCC,sBAAsBC,8BAA8B,EACpDC,aAAaC,qBAAqB,EAClCC,kBAAkBC,0BAA0B,EAC5CC,eAAeC,uBAAuB,EACtCC,eAAeC,uBAAuB,EACtCC,gBAAgBC,wBAAwB,EACxCC,gBAAgBC,wBAAwB,EACxCC,eAAeC,uBAAuB,EACtCC,cAAcC,sBAAsB,EACpCC,oBAAoBC,4BAA4B,EAChDC,oBAAoBC,4BAA4B,EAChDC,qBAAqBC,6BAA6B,EAClDC,qBAAqBC,6BAA6B,EAClDC,oBAAoBC,4BAA4B,EAChDC,gBAAgBC,wBAAwB,EACxCC,gBAAgBC,wBAAwB,EACxCC,iBAAiBC,yBAAyB,EAC1CC,iBAAiBC,yBAAyB,EAC1CC,gBAAgBC,wBAAwB,EACxCC,eAAeC,uBAAuB,EACtCC,YAAYC,oBAAoB,EAChCC,aAAaC,qBAAqB,EAClCC,aAAaC,qBAAqB,EAClCC,cAAcC,sBAAsB,EACpCC,cAAcC,sBAAsB,EACpCC,aAAaC,qBAAqB,EAClCC,YAAYC,oBAAoB,EAChCC,cAAcC,sBAAsB,EACpCC,WAAWC,mBAAmB,EAC9BC,WAAWC,mBAAmB,EAC9BC,WAAWC,mBAAmB,EAC9BC,WAAWC,mBAAmB,EAC9BC,cAAcC,sBAAsB,EACpCC,cAAcC,sBAAsB,EACpCC,iBAAiBC,yBAAyB,EAC1CC,eAAeC,uBAAuB,EACtCC,eAAeC,uBAAuB,EACtCC,sBAAsBC,8BAA8B,EACrD,GAAG9F,IAAiB"}
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@puq/error",
3
3
  "license": "MIT",
4
- "version": "0.4.6",
4
+ "version": "0.4.50",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "tag": "latest"
@@ -79,5 +79,8 @@
79
79
  "command": "cd libs/error && npx compodoc -d ../../public/error -p tsconfig.lib.json -n error"
80
80
  }
81
81
  }
82
+ },
83
+ "dependencies": {
84
+ "@swc/helpers": "^0.5.15"
82
85
  }
83
86
  }
package/package.json CHANGED
@@ -1,83 +1,86 @@
1
- {
2
- "name": "@puq/error",
3
- "license": "MIT",
4
- "version": "0.4.11",
5
- "publishConfig": {
6
- "access": "public",
7
- "tag": "latest"
8
- },
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
- "author": {
11
- "email": "robert.brightline@gmail.com",
12
- "name": "Robert Brightline",
13
- "url": "https://rbrightline.github.io"
14
- },
15
- "keywords": [
16
- "puq",
17
- "error"
18
- ],
19
- "repository": {
20
- "directory": "libs/error",
21
- "url": "https://github.com/rbrightline/puq/tree/main",
22
- "type": "github"
23
- },
24
- "homepage": "https://rbrightline.github.io/puq/error",
25
- "bugs": {
26
- "email": "robert.brightline@gmail.com",
27
- "url": "https://rbrightline.github.io"
28
- },
29
- "categories": [
30
- "Other"
31
- ],
32
- "contributors": [
33
- {
34
- "email": "robert.brightline@gmail.com",
35
- "name": "Robert Brightline",
36
- "url": "https://rbrightline.github.io"
37
- }
38
- ],
39
- "funding": [
40
- "https://cash.app/$puqlib"
41
- ],
42
- "icon": "https://raw.githubusercontent.com/rbrightline/puq/refs/heads/main/libs/error/favicon.png",
43
- "type": "module",
44
- "main": "./dist/index.js",
45
- "module": "./dist/index.js",
46
- "types": "./dist/index.d.ts",
47
- "exports": {
48
- "./package.json": "./package.json",
49
- ".": {
50
- "types": "./dist/index.d.ts",
51
- "import": "./dist/index.js",
52
- "default": "./dist/index.js"
53
- }
54
- },
55
- "files": [
56
- "dist",
57
- "!**/*.tsbuildinfo"
58
- ],
59
- "nx": {
60
- "sourceRoot": "libs/error/src",
61
- "targets": {
62
- "build": {
63
- "executor": "@nx/js:swc",
64
- "outputs": [
65
- "{options.outputPath}"
66
- ],
67
- "options": {
68
- "outputPath": "libs/error/dist",
69
- "main": "libs/error/src/index.ts",
70
- "tsConfig": "libs/error/tsconfig.lib.json",
71
- "skipTypeCheck": false,
72
- "stripLeadingPaths": true
73
- },
74
- "dependsOn": [
75
- "lint"
76
- ]
77
- },
78
- "doc": {
79
- "command": "cd libs/error && npx compodoc -d ../../public/error -p tsconfig.lib.json -n error"
80
- }
81
- }
82
- }
1
+ {
2
+ "name": "@puq/error",
3
+ "license": "MIT",
4
+ "version": "0.4.50",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "tag": "latest"
8
+ },
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
+ "author": {
11
+ "email": "robert.brightline@gmail.com",
12
+ "name": "Robert Brightline",
13
+ "url": "https://rbrightline.github.io"
14
+ },
15
+ "keywords": [
16
+ "puq",
17
+ "error"
18
+ ],
19
+ "repository": {
20
+ "directory": "libs/error",
21
+ "url": "https://github.com/rbrightline/puq/tree/main",
22
+ "type": "github"
23
+ },
24
+ "homepage": "https://rbrightline.github.io/puq/error",
25
+ "bugs": {
26
+ "email": "robert.brightline@gmail.com",
27
+ "url": "https://rbrightline.github.io"
28
+ },
29
+ "categories": [
30
+ "Other"
31
+ ],
32
+ "contributors": [
33
+ {
34
+ "email": "robert.brightline@gmail.com",
35
+ "name": "Robert Brightline",
36
+ "url": "https://rbrightline.github.io"
37
+ }
38
+ ],
39
+ "funding": [
40
+ "https://cash.app/$puqlib"
41
+ ],
42
+ "icon": "https://raw.githubusercontent.com/rbrightline/puq/refs/heads/main/libs/error/favicon.png",
43
+ "type": "module",
44
+ "main": "./dist/index.js",
45
+ "module": "./dist/index.js",
46
+ "types": "./dist/index.d.ts",
47
+ "exports": {
48
+ "./package.json": "./package.json",
49
+ ".": {
50
+ "types": "./dist/index.d.ts",
51
+ "import": "./dist/index.js",
52
+ "default": "./dist/index.js"
53
+ }
54
+ },
55
+ "files": [
56
+ "dist",
57
+ "!**/*.tsbuildinfo"
58
+ ],
59
+ "nx": {
60
+ "sourceRoot": "libs/error/src",
61
+ "targets": {
62
+ "build": {
63
+ "executor": "@nx/js:swc",
64
+ "outputs": [
65
+ "{options.outputPath}"
66
+ ],
67
+ "options": {
68
+ "outputPath": "libs/error/dist",
69
+ "main": "libs/error/src/index.ts",
70
+ "tsConfig": "libs/error/tsconfig.lib.json",
71
+ "skipTypeCheck": false,
72
+ "stripLeadingPaths": true
73
+ },
74
+ "dependsOn": [
75
+ "lint"
76
+ ]
77
+ },
78
+ "doc": {
79
+ "command": "cd libs/error && npx compodoc -d ../../public/error -p tsconfig.lib.json -n error"
80
+ }
81
+ }
82
+ },
83
+ "dependencies": {
84
+ "@swc/helpers": "^0.5.15"
85
+ }
83
86
  }