@org-quicko/core 1.0.2 → 1.1.0

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.
Files changed (135) hide show
  1. package/dist/browser/beans/BaseObject.js +74 -0
  2. package/dist/browser/beans/BaseObject.js.map +1 -0
  3. package/dist/browser/beans/index.js +2 -0
  4. package/dist/{esm → browser/beans}/index.js.map +1 -1
  5. package/dist/browser/build/browser/index.js +14 -0
  6. package/dist/browser/build/browser/index.js.map +1 -0
  7. package/dist/browser/exceptions/BadRequestException.js +14 -0
  8. package/dist/browser/exceptions/BadRequestException.js.map +1 -0
  9. package/dist/browser/exceptions/BaseException.js +35 -0
  10. package/dist/browser/exceptions/BaseException.js.map +1 -0
  11. package/dist/browser/exceptions/ClientException.js +14 -0
  12. package/dist/browser/exceptions/ClientException.js.map +1 -0
  13. package/dist/browser/exceptions/ConverterException.js +13 -0
  14. package/dist/browser/exceptions/ConverterException.js.map +1 -0
  15. package/dist/browser/exceptions/ForbiddenAccessException.js +14 -0
  16. package/dist/browser/exceptions/ForbiddenAccessException.js.map +1 -0
  17. package/dist/browser/exceptions/HTTPException.js +14 -0
  18. package/dist/browser/exceptions/HTTPException.js.map +1 -0
  19. package/dist/browser/exceptions/IllegalArgumentException.js +13 -0
  20. package/dist/browser/exceptions/IllegalArgumentException.js.map +1 -0
  21. package/dist/browser/exceptions/UnauthorizedException.js +14 -0
  22. package/dist/browser/exceptions/UnauthorizedException.js.map +1 -0
  23. package/dist/browser/exceptions/index.js +9 -0
  24. package/dist/browser/exceptions/index.js.map +1 -0
  25. package/dist/browser/types/JSONObject.js +136 -0
  26. package/dist/browser/types/JSONObject.js.map +1 -0
  27. package/dist/browser/types/LoggingLevel.js +12 -0
  28. package/dist/browser/types/LoggingLevel.js.map +1 -0
  29. package/dist/browser/types/SortOrder.js +12 -0
  30. package/dist/browser/types/SortOrder.js.map +1 -0
  31. package/dist/browser/types/index.js +4 -0
  32. package/dist/browser/types/index.js.map +1 -0
  33. package/dist/browser/utils/date/DateUtil.js +157 -0
  34. package/dist/browser/utils/date/DateUtil.js.map +1 -0
  35. package/dist/browser/utils/date/index.js +2 -0
  36. package/dist/browser/utils/date/index.js.map +1 -0
  37. package/dist/browser/utils/index.js +2 -0
  38. package/dist/browser/utils/index.js.map +1 -0
  39. package/dist/cjs/beans/index.cjs +8 -0
  40. package/dist/cjs/beans/index.cjs.map +1 -0
  41. package/dist/cjs/build/node/index.cjs +42 -0
  42. package/dist/cjs/{index.cjs.map → build/node/index.cjs.map} +1 -1
  43. package/dist/cjs/exceptions/BadRequestException.cjs.map +1 -1
  44. package/dist/cjs/exceptions/ClientException.cjs.map +1 -1
  45. package/dist/cjs/exceptions/ConverterException.cjs.map +1 -1
  46. package/dist/cjs/exceptions/ForbiddenAccessException.cjs.map +1 -1
  47. package/dist/cjs/exceptions/HTTPException.cjs.map +1 -1
  48. package/dist/cjs/exceptions/IllegalArgumentException.cjs.map +1 -1
  49. package/dist/cjs/exceptions/UnauthorizedException.cjs.map +1 -1
  50. package/dist/cjs/exceptions/index.cjs +22 -0
  51. package/dist/cjs/exceptions/index.cjs.map +1 -0
  52. package/dist/cjs/logger/LoggerFactory.cjs +44 -0
  53. package/dist/cjs/logger/LoggerFactory.cjs.map +1 -0
  54. package/dist/cjs/logger/index.cjs +9 -0
  55. package/dist/cjs/logger/index.cjs.map +1 -0
  56. package/dist/cjs/types/JSONObject.cjs +6 -6
  57. package/dist/cjs/types/JSONObject.cjs.map +1 -1
  58. package/dist/cjs/types/index.cjs +19 -0
  59. package/dist/cjs/types/index.cjs.map +1 -0
  60. package/dist/cjs/utils/date/DateUtil.cjs.map +1 -1
  61. package/dist/cjs/utils/date/index.cjs +8 -0
  62. package/dist/cjs/utils/date/index.cjs.map +1 -0
  63. package/dist/cjs/utils/index.cjs +8 -0
  64. package/dist/cjs/utils/index.cjs.map +1 -0
  65. package/dist/esm/beans/index.js +2 -0
  66. package/dist/esm/beans/index.js.map +1 -0
  67. package/dist/esm/build/node/index.js +15 -0
  68. package/dist/esm/build/node/index.js.map +1 -0
  69. package/dist/esm/exceptions/BadRequestException.js.map +1 -1
  70. package/dist/esm/exceptions/ClientException.js.map +1 -1
  71. package/dist/esm/exceptions/ConverterException.js.map +1 -1
  72. package/dist/esm/exceptions/ForbiddenAccessException.js.map +1 -1
  73. package/dist/esm/exceptions/HTTPException.js.map +1 -1
  74. package/dist/esm/exceptions/IllegalArgumentException.js.map +1 -1
  75. package/dist/esm/exceptions/UnauthorizedException.js.map +1 -1
  76. package/dist/esm/exceptions/index.js +9 -0
  77. package/dist/esm/exceptions/index.js.map +1 -0
  78. package/dist/esm/logger/LoggerFactory.js +41 -0
  79. package/dist/esm/logger/LoggerFactory.js.map +1 -0
  80. package/dist/esm/logger/index.js +2 -0
  81. package/dist/esm/logger/index.js.map +1 -0
  82. package/dist/esm/types/JSONObject.js +6 -6
  83. package/dist/esm/types/JSONObject.js.map +1 -1
  84. package/dist/esm/types/index.js +4 -0
  85. package/dist/esm/types/index.js.map +1 -0
  86. package/dist/esm/utils/date/DateUtil.js.map +1 -1
  87. package/dist/esm/utils/date/index.js +2 -0
  88. package/dist/esm/utils/date/index.js.map +1 -0
  89. package/dist/esm/utils/index.js +2 -0
  90. package/dist/esm/utils/index.js.map +1 -0
  91. package/dist/types/index.d.ts +14 -18
  92. package/dist/types/src/beans/index.d.ts +1 -0
  93. package/dist/types/src/exceptions/index.d.ts +8 -0
  94. package/dist/types/src/logger/LoggerFactory.d.ts +19 -0
  95. package/dist/types/src/logger/index.d.ts +1 -0
  96. package/dist/types/src/types/index.d.ts +3 -0
  97. package/dist/types/src/utils/date/index.d.ts +1 -0
  98. package/dist/types/src/utils/index.d.ts +1 -0
  99. package/package.json +33 -63
  100. package/dist/cjs/exceptions/NullPointerException.cjs +0 -15
  101. package/dist/cjs/exceptions/NullPointerException.cjs.map +0 -1
  102. package/dist/cjs/index.cjs +0 -48
  103. package/dist/cjs/logger/MDC.cjs +0 -77
  104. package/dist/cjs/logger/MDC.cjs.map +0 -1
  105. package/dist/cjs/logger/factory/ConsoleLoggerProvider.cjs +0 -43
  106. package/dist/cjs/logger/factory/ConsoleLoggerProvider.cjs.map +0 -1
  107. package/dist/cjs/logger/factory/LoggerFactory.cjs +0 -31
  108. package/dist/cjs/logger/factory/LoggerFactory.cjs.map +0 -1
  109. package/dist/esm/exceptions/NullPointerException.js +0 -13
  110. package/dist/esm/exceptions/NullPointerException.js.map +0 -1
  111. package/dist/esm/index.js +0 -18
  112. package/dist/esm/logger/MDC.js +0 -75
  113. package/dist/esm/logger/MDC.js.map +0 -1
  114. package/dist/esm/logger/factory/ConsoleLoggerProvider.js +0 -41
  115. package/dist/esm/logger/factory/ConsoleLoggerProvider.js.map +0 -1
  116. package/dist/esm/logger/factory/LoggerFactory.js +0 -28
  117. package/dist/esm/logger/factory/LoggerFactory.js.map +0 -1
  118. package/dist/types/exceptions/NullPointerException.d.ts +0 -10
  119. package/dist/types/logger/MDC.d.ts +0 -53
  120. package/dist/types/logger/factory/ConsoleLoggerProvider.d.ts +0 -20
  121. package/dist/types/logger/factory/LoggerFactory.d.ts +0 -25
  122. package/dist/types/logger/factory/LoggerProvider.d.ts +0 -16
  123. /package/dist/types/{beans → src/beans}/BaseObject.d.ts +0 -0
  124. /package/dist/types/{exceptions → src/exceptions}/BadRequestException.d.ts +0 -0
  125. /package/dist/types/{exceptions → src/exceptions}/BaseException.d.ts +0 -0
  126. /package/dist/types/{exceptions → src/exceptions}/ClientException.d.ts +0 -0
  127. /package/dist/types/{exceptions → src/exceptions}/ConverterException.d.ts +0 -0
  128. /package/dist/types/{exceptions → src/exceptions}/ForbiddenAccessException.d.ts +0 -0
  129. /package/dist/types/{exceptions → src/exceptions}/HTTPException.d.ts +0 -0
  130. /package/dist/types/{exceptions → src/exceptions}/IllegalArgumentException.d.ts +0 -0
  131. /package/dist/types/{exceptions → src/exceptions}/UnauthorizedException.d.ts +0 -0
  132. /package/dist/types/{types → src/types}/JSONObject.d.ts +0 -0
  133. /package/dist/types/{types → src/types}/LoggingLevel.d.ts +0 -0
  134. /package/dist/types/{types → src/types}/SortOrder.d.ts +0 -0
  135. /package/dist/types/{utils → src/utils}/date/DateUtil.d.ts +0 -0
@@ -0,0 +1,74 @@
1
+ import { __decorate, __metadata } from 'tslib';
2
+ import { Expose } from 'class-transformer';
3
+ import { IsString, IsNumber } from 'class-validator';
4
+
5
+ /**
6
+ * The `BaseObject` class serves as a base model for objects with common properties
7
+ * such as `id`, `description`, `createdAt`, and `updatedAt`. It includes validation
8
+ * and transformation decorators for serialization and deserialization.
9
+ *
10
+ * Properties:
11
+ * - `id` (string | undefined): A unique identifier for the object.
12
+ * - `description` (string | undefined): A brief description of the object.
13
+ * - `createdAt` (number | undefined): The timestamp when the object was created.
14
+ * - `updatedAt` (number | undefined): The timestamp when the object was last updated.
15
+ *
16
+ * Methods:
17
+ * - `getId()`: Returns the `id` of the object.
18
+ * - `setId(value: string | undefined)`: Sets the `id` of the object.
19
+ * - `getDescription()`: Returns the `description` of the object.
20
+ * - `setDescription(value: string | undefined)`: Sets the `description` of the object.
21
+ * - `getCreatedAt()`: Returns the `createdAt` timestamp of the object.
22
+ * - `setCreatedAt(value?: number)`: Sets the `createdAt` timestamp of the object.
23
+ * - `getUpdatedAt()`: Returns the `updatedAt` timestamp of the object.
24
+ * - `setUpdatedAt(value?: number)`: Sets the `updatedAt` timestamp of the object.
25
+ */
26
+ class BaseObject {
27
+ getId() {
28
+ return this.id;
29
+ }
30
+ setId(value) {
31
+ this.id = value;
32
+ }
33
+ getCreatedAt() {
34
+ return this.createdAt;
35
+ }
36
+ setCreatedAt(value) {
37
+ this.createdAt = value;
38
+ }
39
+ getUpdatedAt() {
40
+ return this.updatedAt;
41
+ }
42
+ setUpdatedAt(value) {
43
+ this.updatedAt = value;
44
+ }
45
+ getDescription() {
46
+ return this.description;
47
+ }
48
+ setDescription(value) {
49
+ this.description = value;
50
+ }
51
+ }
52
+ __decorate([
53
+ Expose({ name: 'id' }),
54
+ IsString(),
55
+ __metadata("design:type", String)
56
+ ], BaseObject.prototype, "id", void 0);
57
+ __decorate([
58
+ Expose({ name: 'description' }),
59
+ IsString(),
60
+ __metadata("design:type", String)
61
+ ], BaseObject.prototype, "description", void 0);
62
+ __decorate([
63
+ Expose({ name: 'created_at' }),
64
+ IsNumber(),
65
+ __metadata("design:type", Number)
66
+ ], BaseObject.prototype, "createdAt", void 0);
67
+ __decorate([
68
+ Expose({ name: 'updated_at' }),
69
+ IsNumber(),
70
+ __metadata("design:type", Number)
71
+ ], BaseObject.prototype, "updatedAt", void 0);
72
+
73
+ export { BaseObject };
74
+ //# sourceMappingURL=BaseObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseObject.js","sources":["../../../src/beans/BaseObject.ts"],"sourcesContent":["import { Expose } from 'class-transformer';\r\nimport { IsNumber, IsString } from 'class-validator';\r\n\r\n/**\r\n * The `BaseObject` class serves as a base model for objects with common properties\r\n * such as `id`, `description`, `createdAt`, and `updatedAt`. It includes validation\r\n * and transformation decorators for serialization and deserialization.\r\n *\r\n * Properties:\r\n * - `id` (string | undefined): A unique identifier for the object.\r\n * - `description` (string | undefined): A brief description of the object.\r\n * - `createdAt` (number | undefined): The timestamp when the object was created.\r\n * - `updatedAt` (number | undefined): The timestamp when the object was last updated.\r\n *\r\n * Methods:\r\n * - `getId()`: Returns the `id` of the object.\r\n * - `setId(value: string | undefined)`: Sets the `id` of the object.\r\n * - `getDescription()`: Returns the `description` of the object.\r\n * - `setDescription(value: string | undefined)`: Sets the `description` of the object.\r\n * - `getCreatedAt()`: Returns the `createdAt` timestamp of the object.\r\n * - `setCreatedAt(value?: number)`: Sets the `createdAt` timestamp of the object.\r\n * - `getUpdatedAt()`: Returns the `updatedAt` timestamp of the object.\r\n * - `setUpdatedAt(value?: number)`: Sets the `updatedAt` timestamp of the object.\r\n */\r\nexport class BaseObject {\r\n\r\n @Expose({ name: 'id' })\r\n @IsString()\r\n private id?: string;\r\n\r\n @Expose({ name: 'description' })\r\n @IsString()\r\n private description?: string;\r\n\r\n @Expose({ name: 'created_at' })\r\n @IsNumber()\r\n private createdAt?: number;\r\n\r\n @Expose({ name: 'updated_at' })\r\n @IsNumber()\r\n private updatedAt?: number;\r\n\r\n getId() {\r\n return this.id;\r\n }\r\n\r\n setId(value: string | undefined) {\r\n this.id = value;\r\n }\r\n\r\n getCreatedAt() {\r\n return this.createdAt;\r\n }\r\n\r\n setCreatedAt(value?: number) {\r\n this.createdAt = value;\r\n }\r\n\r\n getUpdatedAt() {\r\n return this.updatedAt;\r\n }\r\n\r\n setUpdatedAt(value?: number) {\r\n this.updatedAt = value;\r\n }\r\n\r\n getDescription() {\r\n return this.description;\r\n }\r\n\r\n setDescription(value?: string) {\r\n this.description = value;\r\n }\r\n}"],"names":[],"mappings":";;;;AAGA;;;;;;;;;;;;;;;;;;;;AAoBG;MACU,UAAU,CAAA;IAkBnB,KAAK,GAAA;QACD,OAAO,IAAI,CAAC,EAAE;;AAGlB,IAAA,KAAK,CAAC,KAAyB,EAAA;AAC3B,QAAA,IAAI,CAAC,EAAE,GAAG,KAAK;;IAGnB,YAAY,GAAA;QACR,OAAO,IAAI,CAAC,SAAS;;AAGzB,IAAA,YAAY,CAAC,KAAc,EAAA;AACvB,QAAA,IAAI,CAAC,SAAS,GAAG,KAAK;;IAG1B,YAAY,GAAA;QACR,OAAO,IAAI,CAAC,SAAS;;AAGzB,IAAA,YAAY,CAAC,KAAc,EAAA;AACvB,QAAA,IAAI,CAAC,SAAS,GAAG,KAAK;;IAG1B,cAAc,GAAA;QACV,OAAO,IAAI,CAAC,WAAW;;AAG3B,IAAA,cAAc,CAAC,KAAc,EAAA;AACzB,QAAA,IAAI,CAAC,WAAW,GAAG,KAAK;;AAE/B;AA7CW,UAAA,CAAA;AAFP,IAAA,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACtB,IAAA,QAAQ,EAAE;;AACS,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,IAAA,EAAA,MAAA,CAAA;AAIZ,UAAA,CAAA;AAFP,IAAA,MAAM,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;AAC/B,IAAA,QAAQ,EAAE;;AACkB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAIrB,UAAA,CAAA;AAFP,IAAA,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AAC9B,IAAA,QAAQ,EAAE;;AACgB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAInB,UAAA,CAAA;AAFP,IAAA,MAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AAC9B,IAAA,QAAQ,EAAE;;AACgB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ export { BaseObject } from './BaseObject.js';
2
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export { BaseObject } from '../../beans/BaseObject.js';
2
+ export { BadRequestException } from '../../exceptions/BadRequestException.js';
3
+ export { BaseException } from '../../exceptions/BaseException.js';
4
+ export { ClientException } from '../../exceptions/ClientException.js';
5
+ export { ForbiddenAccessException } from '../../exceptions/ForbiddenAccessException.js';
6
+ export { HTTPException } from '../../exceptions/HTTPException.js';
7
+ export { IllegalArgumentException } from '../../exceptions/IllegalArgumentException.js';
8
+ export { UnauthorizedException } from '../../exceptions/UnauthorizedException.js';
9
+ export { ConverterException } from '../../exceptions/ConverterException.js';
10
+ export { JSONArray, JSONObject } from '../../types/JSONObject.js';
11
+ export { LoggingLevel } from '../../types/LoggingLevel.js';
12
+ export { SortOrder } from '../../types/SortOrder.js';
13
+ export { DateUtil } from '../../utils/date/DateUtil.js';
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,14 @@
1
+ import { HTTPException } from './HTTPException.js';
2
+
3
+ /**
4
+ * Exception thrown when a bad request is made to the server.
5
+ * Typically used for HTTP 400 errors.
6
+ */
7
+ class BadRequestException extends HTTPException {
8
+ constructor(message, cause, code = 400) {
9
+ super(message, cause, code);
10
+ }
11
+ }
12
+
13
+ export { BadRequestException };
14
+ //# sourceMappingURL=BadRequestException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BadRequestException.js","sources":["../../../src/exceptions/BadRequestException.ts"],"sourcesContent":["import { HTTPException } from './HTTPException';\r\n\r\n/**\r\n * Exception thrown when a bad request is made to the server.\r\n * Typically used for HTTP 400 errors.\r\n */\r\nexport class BadRequestException extends HTTPException {\r\n\r\n constructor(message: string, cause?: unknown, code: number = 400) {\r\n super(message, cause, code)\r\n }\r\n}\r\n"],"names":[],"mappings":";;AAEA;;;AAGG;AACG,MAAO,mBAAoB,SAAQ,aAAa,CAAA;AAElD,IAAA,WAAA,CAAY,OAAe,EAAE,KAAe,EAAE,OAAe,GAAG,EAAA;AAC5D,QAAA,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC;;AAElC;;;;"}
@@ -0,0 +1,35 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ /**
3
+ * Base class for all custom exceptions in the application.
4
+ * Provides support for error codes and chained exceptions.
5
+ */
6
+ class BaseException extends Error {
7
+ constructor(message, cause, code) {
8
+ super(message);
9
+ this.cause = cause;
10
+ this.code = code;
11
+ this.name = this.constructor.name;
12
+ }
13
+ /**
14
+ * Retrieves the full stack trace of the exception, including causes.
15
+ * @returns A string representation of the stack trace.
16
+ */
17
+ getStackTrace() {
18
+ let stackTrace = `[${this.code}] ${this.stack}\n`;
19
+ let currentCause = this.cause;
20
+ while (currentCause) {
21
+ if (currentCause instanceof Error) {
22
+ stackTrace += `Caused by: ${currentCause.stack || currentCause.message || String(currentCause)}\n`;
23
+ currentCause = currentCause.cause;
24
+ }
25
+ else {
26
+ stackTrace += `Caused by: ${String(currentCause)}\n`;
27
+ currentCause = undefined;
28
+ }
29
+ }
30
+ return stackTrace;
31
+ }
32
+ }
33
+
34
+ export { BaseException };
35
+ //# sourceMappingURL=BaseException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseException.js","sources":["../../../src/exceptions/BaseException.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\r\n/**\r\n * Base class for all custom exceptions in the application.\r\n * Provides support for error codes and chained exceptions.\r\n */\r\nexport class BaseException extends Error {\r\n code?: number;\r\n cause?: unknown;\r\n\r\n constructor(message: string, cause?: unknown, code?: number) {\r\n super(message);\r\n this.cause = cause;\r\n this.code = code;\r\n this.name = this.constructor.name;\r\n }\r\n\r\n /**\r\n * Retrieves the full stack trace of the exception, including causes.\r\n * @returns A string representation of the stack trace.\r\n */\r\n getStackTrace() {\r\n let stackTrace = `[${this.code}] ${this.stack}\\n`;\r\n let currentCause: unknown = this.cause;\r\n while (currentCause) {\r\n if (currentCause instanceof Error) {\r\n stackTrace += `Caused by: ${currentCause.stack || currentCause.message || String(currentCause)}\\n`;\r\n currentCause = (currentCause as any).cause;\r\n } else {\r\n stackTrace += `Caused by: ${String(currentCause)}\\n`;\r\n currentCause = undefined;\r\n }\r\n }\r\n return stackTrace;\r\n }\r\n}"],"names":[],"mappings":"AAAA;AACA;;;AAGG;AACG,MAAO,aAAc,SAAQ,KAAK,CAAA;AAIpC,IAAA,WAAA,CAAY,OAAe,EAAE,KAAe,EAAE,IAAa,EAAA;QACvD,KAAK,CAAC,OAAO,CAAC;AACd,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK;AAClB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI;;AAGrC;;;AAGG;IACH,aAAa,GAAA;QACT,IAAI,UAAU,GAAG,CAAA,CAAA,EAAI,IAAI,CAAC,IAAI,CAAA,EAAA,EAAK,IAAI,CAAC,KAAK,CAAA,EAAA,CAAI;AACjD,QAAA,IAAI,YAAY,GAAY,IAAI,CAAC,KAAK;QACtC,OAAO,YAAY,EAAE;AACjB,YAAA,IAAI,YAAY,YAAY,KAAK,EAAE;AAC/B,gBAAA,UAAU,IAAI,CAAA,WAAA,EAAc,YAAY,CAAC,KAAK,IAAI,YAAY,CAAC,OAAO,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI;AAClG,gBAAA,YAAY,GAAI,YAAoB,CAAC,KAAK;;iBACvC;AACH,gBAAA,UAAU,IAAI,CAAc,WAAA,EAAA,MAAM,CAAC,YAAY,CAAC,IAAI;gBACpD,YAAY,GAAG,SAAS;;;AAGhC,QAAA,OAAO,UAAU;;AAExB;;;;"}
@@ -0,0 +1,14 @@
1
+ import { HTTPException } from './HTTPException.js';
2
+
3
+ /**
4
+ * Exception thrown for client-side errors.
5
+ * Typically used for HTTP 4xx errors.
6
+ */
7
+ class ClientException extends HTTPException {
8
+ constructor(message, cause, code = 500) {
9
+ super(message, cause, code);
10
+ }
11
+ }
12
+
13
+ export { ClientException };
14
+ //# sourceMappingURL=ClientException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientException.js","sources":["../../../src/exceptions/ClientException.ts"],"sourcesContent":["import { HTTPException } from './HTTPException';\r\n\r\n/**\r\n * Exception thrown for client-side errors.\r\n * Typically used for HTTP 4xx errors.\r\n */\r\nexport class ClientException extends HTTPException {\r\n\r\n constructor(message: string, cause?: unknown, code: number = 500) {\r\n super(message, cause, code);\r\n }\r\n}\r\n\r\n"],"names":[],"mappings":";;AAEA;;;AAGG;AACG,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAE9C,IAAA,WAAA,CAAY,OAAe,EAAE,KAAe,EAAE,OAAe,GAAG,EAAA;AAC5D,QAAA,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC;;AAElC;;;;"}
@@ -0,0 +1,13 @@
1
+ import { BaseException } from './BaseException.js';
2
+
3
+ /**
4
+ * Exception thrown when a conversion operation fails.
5
+ */
6
+ class ConverterException extends BaseException {
7
+ constructor(message, cause) {
8
+ super(message, cause, 500);
9
+ }
10
+ }
11
+
12
+ export { ConverterException };
13
+ //# sourceMappingURL=ConverterException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConverterException.js","sources":["../../../src/exceptions/ConverterException.ts"],"sourcesContent":["import { BaseException } from \"./BaseException\";\r\n\r\n/**\r\n * Exception thrown when a conversion operation fails.\r\n */\r\nexport class ConverterException extends BaseException {\r\n\r\n constructor(message: string, cause?: unknown) {\r\n super(message, cause, 500);\r\n }\r\n}\r\n\r\n"],"names":[],"mappings":";;AAEA;;AAEG;AACG,MAAO,kBAAmB,SAAQ,aAAa,CAAA;IAEjD,WAAY,CAAA,OAAe,EAAE,KAAe,EAAA;AACxC,QAAA,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC;;AAEjC;;;;"}
@@ -0,0 +1,14 @@
1
+ import { HTTPException } from './HTTPException.js';
2
+
3
+ /**
4
+ * Exception thrown when access to a resource is forbidden.
5
+ * Typically used for HTTP 403 errors.
6
+ */
7
+ class ForbiddenAccessException extends HTTPException {
8
+ constructor(message, cause) {
9
+ super(message, cause, 403);
10
+ }
11
+ }
12
+
13
+ export { ForbiddenAccessException };
14
+ //# sourceMappingURL=ForbiddenAccessException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForbiddenAccessException.js","sources":["../../../src/exceptions/ForbiddenAccessException.ts"],"sourcesContent":["import { HTTPException } from './HTTPException';\r\n\r\n/**\r\n * Exception thrown when access to a resource is forbidden.\r\n * Typically used for HTTP 403 errors.\r\n */\r\nexport class ForbiddenAccessException extends HTTPException {\r\n\r\n constructor(message: string, cause?: unknown) {\r\n super(message, cause, 403);\r\n }\r\n}\r\n\r\n"],"names":[],"mappings":";;AAEA;;;AAGG;AACG,MAAO,wBAAyB,SAAQ,aAAa,CAAA;IAEvD,WAAY,CAAA,OAAe,EAAE,KAAe,EAAA;AACxC,QAAA,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC;;AAEjC;;;;"}
@@ -0,0 +1,14 @@
1
+ import { BaseException } from './BaseException.js';
2
+
3
+ /**
4
+ * Base class for HTTP-related exceptions.
5
+ * Provides support for HTTP status codes.
6
+ */
7
+ class HTTPException extends BaseException {
8
+ constructor(message, cause, code = 500) {
9
+ super(message, cause, code);
10
+ }
11
+ }
12
+
13
+ export { HTTPException };
14
+ //# sourceMappingURL=HTTPException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HTTPException.js","sources":["../../../src/exceptions/HTTPException.ts"],"sourcesContent":["import { BaseException } from './BaseException';\r\n\r\n/**\r\n * Base class for HTTP-related exceptions.\r\n * Provides support for HTTP status codes.\r\n */\r\nexport abstract class HTTPException extends BaseException {\r\n\r\n constructor(message: string, cause?: unknown, code: number = 500) {\r\n super(message, cause, code);\r\n }\r\n\r\n}"],"names":[],"mappings":";;AAEA;;;AAGG;AACG,MAAgB,aAAc,SAAQ,aAAa,CAAA;AAErD,IAAA,WAAA,CAAY,OAAe,EAAE,KAAe,EAAE,OAAe,GAAG,EAAA;AAC5D,QAAA,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC;;AAGlC;;;;"}
@@ -0,0 +1,13 @@
1
+ import { BaseException } from './BaseException.js';
2
+
3
+ /**
4
+ * Exception thrown when an illegal or inappropriate argument is passed.
5
+ */
6
+ class IllegalArgumentException extends BaseException {
7
+ constructor(message, cause) {
8
+ super(message, cause, 500);
9
+ }
10
+ }
11
+
12
+ export { IllegalArgumentException };
13
+ //# sourceMappingURL=IllegalArgumentException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IllegalArgumentException.js","sources":["../../../src/exceptions/IllegalArgumentException.ts"],"sourcesContent":["import { BaseException } from './BaseException';\r\n\r\n/**\r\n * Exception thrown when an illegal or inappropriate argument is passed.\r\n */\r\nexport class IllegalArgumentException extends BaseException {\r\n\r\n constructor(message: string, cause?: unknown) {\r\n super(message, cause, 500);\r\n }\r\n}\r\n\r\n"],"names":[],"mappings":";;AAEA;;AAEG;AACG,MAAO,wBAAyB,SAAQ,aAAa,CAAA;IAEvD,WAAY,CAAA,OAAe,EAAE,KAAe,EAAA;AACxC,QAAA,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC;;AAEjC;;;;"}
@@ -0,0 +1,14 @@
1
+ import { HTTPException } from './HTTPException.js';
2
+
3
+ /**
4
+ * Exception thrown when a request is unauthorized.
5
+ * Typically used for HTTP 401 errors.
6
+ */
7
+ class UnauthorizedException extends HTTPException {
8
+ constructor(message, cause) {
9
+ super(message, cause, 401);
10
+ }
11
+ }
12
+
13
+ export { UnauthorizedException };
14
+ //# sourceMappingURL=UnauthorizedException.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnauthorizedException.js","sources":["../../../src/exceptions/UnauthorizedException.ts"],"sourcesContent":["import { HTTPException } from './HTTPException';\r\n\r\n/**\r\n * Exception thrown when a request is unauthorized.\r\n * Typically used for HTTP 401 errors.\r\n */\r\nexport class UnauthorizedException extends HTTPException {\r\n\r\n constructor(message: string, cause?: unknown) {\r\n super(message, cause, 401);\r\n }\r\n}\r\n\r\n"],"names":[],"mappings":";;AAEA;;;AAGG;AACG,MAAO,qBAAsB,SAAQ,aAAa,CAAA;IAEpD,WAAY,CAAA,OAAe,EAAE,KAAe,EAAA;AACxC,QAAA,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC;;AAEjC;;;;"}
@@ -0,0 +1,9 @@
1
+ export { BadRequestException } from './BadRequestException.js';
2
+ export { BaseException } from './BaseException.js';
3
+ export { ClientException } from './ClientException.js';
4
+ export { ForbiddenAccessException } from './ForbiddenAccessException.js';
5
+ export { HTTPException } from './HTTPException.js';
6
+ export { IllegalArgumentException } from './IllegalArgumentException.js';
7
+ export { UnauthorizedException } from './UnauthorizedException.js';
8
+ export { ConverterException } from './ConverterException.js';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,136 @@
1
+ import { BaseException } from '../exceptions/BaseException.js';
2
+ import { IllegalArgumentException } from '../exceptions/IllegalArgumentException.js';
3
+
4
+ class JSONObject extends Map {
5
+ constructor(object) {
6
+ super();
7
+ if (object) {
8
+ for (const [key, value] of Object.entries(object)) {
9
+ if (value === null || value === undefined) ;
10
+ else if (value.constructor == Object) {
11
+ this.set(key, new JSONObject(value));
12
+ }
13
+ else if (value.constructor == Array) {
14
+ this.set(key, new JSONArray(value));
15
+ }
16
+ else {
17
+ this.set(key, value);
18
+ }
19
+ }
20
+ }
21
+ }
22
+ getJSONObject(key) {
23
+ if (super.has(key)) {
24
+ if (super.get(key) instanceof JSONObject) {
25
+ return super.get(key);
26
+ }
27
+ else {
28
+ throw new IllegalArgumentException('Value cannot be converted to JSONObject');
29
+ }
30
+ }
31
+ throw new BaseException(`Value for Key: '${key}' not found`);
32
+ }
33
+ getString(key) {
34
+ if (super.has(key)) {
35
+ try {
36
+ if (typeof super.get(key) === 'string') {
37
+ return super.get(key);
38
+ }
39
+ throw new IllegalArgumentException('Value cannot be converted to string');
40
+ }
41
+ catch (e) {
42
+ throw new IllegalArgumentException('Value cannot be converted to string', e);
43
+ }
44
+ }
45
+ throw new BaseException(`Value for Key: '${key}' not found`);
46
+ }
47
+ getNumber(key) {
48
+ if (super.has(key)) {
49
+ const number = Number(super.get(key));
50
+ if (!isNaN(number)) {
51
+ return number;
52
+ }
53
+ throw new IllegalArgumentException('Value cannot be converted to number');
54
+ }
55
+ throw new BaseException(`Value for Key: '${key}' not found`);
56
+ }
57
+ getBoolean(key) {
58
+ if (super.has(key)) {
59
+ if (typeof super.get(key) === 'boolean') {
60
+ return super.get(key);
61
+ }
62
+ else if (super.get(key) === 'true' || super.get(key) === 'false') {
63
+ return Boolean(super.get(key));
64
+ }
65
+ throw new IllegalArgumentException('Value cannot be converted to boolean');
66
+ }
67
+ throw new BaseException(`Value for Key: '${key}' not found`);
68
+ }
69
+ getArray(key) {
70
+ if (super.has(key)) {
71
+ if (super.get(key) instanceof JSONArray) {
72
+ return super.get(key);
73
+ }
74
+ else if (super.get(key) instanceof Array) {
75
+ return new JSONArray(super.get(key));
76
+ }
77
+ throw new IllegalArgumentException('Value cannot be converted to array');
78
+ }
79
+ throw new BaseException(`Value for Key: '${key}' not found`);
80
+ }
81
+ toJSON() {
82
+ const obj = {};
83
+ for (const [key, value] of this.entries()) {
84
+ if (value == null) {
85
+ obj[key] = value;
86
+ }
87
+ else if (value instanceof JSONObject || value instanceof JSONArray) {
88
+ obj[key] = value.toJSON();
89
+ }
90
+ else {
91
+ obj[key] = value;
92
+ }
93
+ }
94
+ return obj;
95
+ }
96
+ }
97
+ class JSONArray extends Array {
98
+ constructor(array) {
99
+ super();
100
+ if (array) {
101
+ for (let item of Object.values(array)) {
102
+ item = JSON.parse(JSON.stringify(item));
103
+ if (item == null) {
104
+ this.push(item);
105
+ }
106
+ else if (item.constructor == Object) {
107
+ this.push(new JSONObject(item));
108
+ }
109
+ else if (item.constructor == Array) {
110
+ this.push(new JSONArray(item));
111
+ }
112
+ else {
113
+ this.push(item);
114
+ }
115
+ }
116
+ }
117
+ }
118
+ toJSON() {
119
+ const arr = [];
120
+ for (const value of this) {
121
+ if (value == null) {
122
+ arr.push(value);
123
+ }
124
+ else if (value instanceof JSONObject || value instanceof JSONArray) {
125
+ arr.push(value.toJSON());
126
+ }
127
+ else {
128
+ arr.push(value);
129
+ }
130
+ }
131
+ return arr;
132
+ }
133
+ }
134
+
135
+ export { JSONArray, JSONObject };
136
+ //# sourceMappingURL=JSONObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JSONObject.js","sources":["../../../src/types/JSONObject.ts"],"sourcesContent":["import { BaseException, IllegalArgumentException } from '../exceptions';\r\n\r\nexport type JSONValue =\r\n | string\r\n | number\r\n | boolean\r\n | null\r\n | undefined\r\n // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\r\n | Object\r\n\r\nexport class JSONObject extends Map<string, JSONValue> {\r\n\r\n\r\n constructor(object?: { [x: string]: JSONValue }) {\r\n super()\r\n if (object) {\r\n for (const [key, value] of Object.entries(object)) {\r\n if (value === null || value === undefined) {\r\n // ignore\r\n } else if (value.constructor == Object) {\r\n this.set(key, new JSONObject(value as { [x: string]: JSONValue }));\r\n } else if (value.constructor == Array) {\r\n this.set(key, new JSONArray(value));\r\n } else {\r\n this.set(key, value)\r\n }\r\n }\r\n }\r\n\r\n\r\n }\r\n\r\n getJSONObject(key: string): JSONObject {\r\n if (super.has(key)) {\r\n if (super.get(key) instanceof JSONObject) {\r\n return super.get(key) as JSONObject\r\n } else {\r\n throw new IllegalArgumentException('Value cannot be converted to JSONObject')\r\n }\r\n }\r\n\r\n throw new BaseException(`Value for Key: '${key}' not found`);\r\n }\r\n\r\n getString(key: string): string {\r\n if (super.has(key)) {\r\n try {\r\n if (typeof super.get(key) === 'string') {\r\n return super.get(key) as string;\r\n }\r\n\r\n throw new IllegalArgumentException('Value cannot be converted to string')\r\n } catch (e) {\r\n throw new IllegalArgumentException('Value cannot be converted to string', e)\r\n }\r\n }\r\n throw new BaseException(`Value for Key: '${key}' not found`);\r\n }\r\n\r\n getNumber(key: string): number {\r\n if (super.has(key)) {\r\n const number = Number(super.get(key));\r\n if (!isNaN(number)) {\r\n return number;\r\n }\r\n throw new IllegalArgumentException('Value cannot be converted to number')\r\n }\r\n throw new BaseException(`Value for Key: '${key}' not found`);\r\n }\r\n\r\n getBoolean(key: string): boolean {\r\n if (super.has(key)) {\r\n if (typeof super.get(key) === 'boolean') {\r\n return super.get(key) as boolean;\r\n } else if (super.get(key) === 'true' || super.get(key) === 'false') {\r\n return Boolean(super.get(key));\r\n }\r\n throw new IllegalArgumentException('Value cannot be converted to boolean')\r\n }\r\n throw new BaseException(`Value for Key: '${key}' not found`);\r\n }\r\n\r\n getArray(key: string): JSONArray {\r\n if (super.has(key)) {\r\n if (super.get(key) instanceof JSONArray) {\r\n return super.get(key) as JSONArray;\r\n }\r\n else if (super.get(key) instanceof Array) {\r\n return new JSONArray(super.get(key) as Array<JSONValue>);\r\n }\r\n throw new IllegalArgumentException('Value cannot be converted to array')\r\n }\r\n throw new BaseException(`Value for Key: '${key}' not found`);\r\n }\r\n\r\n public toJSON(): { [x: string]: JSONValue } {\r\n const obj: { [x: string]: JSONValue } = {};\r\n for (const [key, value] of this.entries()) {\r\n if (value == null) {\r\n obj[key] = value;\r\n } else if (value instanceof JSONObject || value instanceof JSONArray) {\r\n obj[key] = value.toJSON();\r\n } else {\r\n obj[key] = value\r\n }\r\n }\r\n return obj;\r\n }\r\n}\r\n\r\n\r\nexport class JSONArray extends Array<JSONValue> {\r\n\r\n constructor(array?: Array<JSONValue>) {\r\n super();\r\n if (array) {\r\n for (let item of Object.values(array)) {\r\n item = JSON.parse(JSON.stringify(item))\r\n\r\n if (item == null) {\r\n this.push(item);\r\n }\r\n else if (item.constructor == Object) {\r\n this.push(new JSONObject(item as { [x: string]: JSONValue }));\r\n }\r\n else if (item.constructor == Array) {\r\n this.push(new JSONArray(item));\r\n }\r\n else {\r\n this.push(item)\r\n }\r\n }\r\n }\r\n }\r\n\r\n public toJSON(): Array<JSONValue> {\r\n const arr: Array<JSONValue> = [];\r\n for (const value of this) {\r\n if (value == null) {\r\n arr.push(value);\r\n } else if (value instanceof JSONObject || value instanceof JSONArray) {\r\n arr.push(value.toJSON());\r\n } else {\r\n arr.push(value)\r\n }\r\n }\r\n return arr;\r\n }\r\n}"],"names":[],"mappings":";;;AAWM,MAAO,UAAW,SAAQ,GAAs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I,CAAC;;AAEd,qBAAA,IAAI,IAAI,CAAC,WAAW,IAAI,MAAM,EAAE;oBACjC,IAAI,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAkC,CAAC,CAAC;;AAE5D,qBAAA,IAAI,IAAI,CAAC,WAAW,IAAI,KAAK,EAAE;oBAChC,IAAI,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;;qBAE7B;AACD,oBAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;IAMxB,MAAM,GAAA;QACT,MAAM,GAAG,GAAqB,EAAE;AAChC,QAAA,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE;AACtB,YAAA,IAAI,KAAK,IAAI,IAAI,EAAE;AACf,gBAAA,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;;iBACZ,IAAI,KAAK,YAAY,UAAU,IAAI,KAAK,YAAY,SAAS,EAAE;gBAClE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;;iBACrB;AACH,gBAAA,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC;;;AAGvB,QAAA,OAAO,GAAG;;AAEjB;;;;"}
@@ -0,0 +1,12 @@
1
+ var LoggingLevel;
2
+ (function (LoggingLevel) {
3
+ LoggingLevel["silly"] = "silly";
4
+ LoggingLevel["debug"] = "debug";
5
+ LoggingLevel["verbose"] = "verbose";
6
+ LoggingLevel["info"] = "info";
7
+ LoggingLevel["warn"] = "warn";
8
+ LoggingLevel["error"] = "error";
9
+ })(LoggingLevel || (LoggingLevel = {}));
10
+
11
+ export { LoggingLevel };
12
+ //# sourceMappingURL=LoggingLevel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoggingLevel.js","sources":["../../../src/types/LoggingLevel.ts"],"sourcesContent":["export enum LoggingLevel {\r\n silly = 'silly',\r\n debug = 'debug',\r\n verbose = 'verbose',\r\n info = 'info',\r\n warn = 'warn',\r\n error = 'error',\r\n}"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,YAAY,EAAA;AACpB,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,YAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACnB,CAAC,EAPW,YAAY,KAAZ,YAAY,GAOvB,EAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @export
3
+ * @enum {number}
4
+ */
5
+ var SortOrder;
6
+ (function (SortOrder) {
7
+ SortOrder["ASC"] = "asc";
8
+ SortOrder["DESC"] = "desc";
9
+ })(SortOrder || (SortOrder = {}));
10
+
11
+ export { SortOrder };
12
+ //# sourceMappingURL=SortOrder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SortOrder.js","sources":["../../../src/types/SortOrder.ts"],"sourcesContent":["/**\r\n * @export\r\n * @enum {number}\r\n */\r\nexport enum SortOrder {\r\n ASC = 'asc',\r\n DESC = 'desc'\r\n}"],"names":[],"mappings":"AAAA;;;AAGG;IACS;AAAZ,CAAA,UAAY,SAAS,EAAA;AACjB,IAAA,SAAA,CAAA,KAAA,CAAA,GAAA,KAAW;AACX,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACjB,CAAC,EAHW,SAAS,KAAT,SAAS,GAGpB,EAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,4 @@
1
+ export { JSONArray, JSONObject } from './JSONObject.js';
2
+ export { LoggingLevel } from './LoggingLevel.js';
3
+ export { SortOrder } from './SortOrder.js';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}