raiton 1.1.1
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/.releaserc.json +39 -0
- package/CHANGELOG.md +90 -0
- package/README.md +2 -0
- package/build/bin/bootstrapper.d.ts +5 -0
- package/build/bin/bootstrapper.mjs +46 -0
- package/build/bin/cli.d.ts +5 -0
- package/build/bin/cli.mjs +6 -0
- package/build/bin/index.d.ts +1 -0
- package/build/bin/index.mjs +50 -0
- package/build/chunk-3PWMRP6G.mjs +16 -0
- package/build/chunk-4OWCGDUD.mjs +0 -0
- package/build/chunk-52JR26TI.mjs +29 -0
- package/build/chunk-5LNOA4SK.mjs +16 -0
- package/build/chunk-AUGL35CF.mjs +24 -0
- package/build/chunk-BYYJRCB4.mjs +10 -0
- package/build/chunk-DIWD7ZCJ.mjs +0 -0
- package/build/chunk-FFRJ4AUA.mjs +16 -0
- package/build/chunk-GPJSLV3Q.mjs +50 -0
- package/build/chunk-HVFHDVAH.mjs +20 -0
- package/build/chunk-IOCHNQMF.mjs +13 -0
- package/build/chunk-JATYBWHL.mjs +36 -0
- package/build/chunk-JWNBO7XV.mjs +53 -0
- package/build/chunk-K4IQQ2KF.mjs +55 -0
- package/build/chunk-K4KLOLSO.mjs +645 -0
- package/build/chunk-M2RZZJQR.mjs +27 -0
- package/build/chunk-MLFGBJDV.mjs +12 -0
- package/build/chunk-NB62GSFI.mjs +27 -0
- package/build/chunk-O7R3NJQN.mjs +19 -0
- package/build/chunk-P2YCCBFR.mjs +14 -0
- package/build/chunk-P3IRIFPT.mjs +53 -0
- package/build/chunk-QFSXFOEN.mjs +56 -0
- package/build/chunk-QHCQ4AUA.mjs +14 -0
- package/build/chunk-QI7OFSXB.mjs +37 -0
- package/build/chunk-RVH2YBNU.mjs +111 -0
- package/build/chunk-RXG7754R.mjs +25 -0
- package/build/chunk-S3ONGVNZ.mjs +11 -0
- package/build/chunk-SRR4467I.mjs +29 -0
- package/build/chunk-T6L55AUG.mjs +32 -0
- package/build/chunk-TOJFTPAY.mjs +83 -0
- package/build/chunk-UAPCBU3J.mjs +12 -0
- package/build/chunk-UCHBN3DV.mjs +52 -0
- package/build/chunk-UWM46HLZ.mjs +18 -0
- package/build/chunk-UZFCGVHP.mjs +8 -0
- package/build/chunk-VQINCGLQ.mjs +59 -0
- package/build/chunk-VRL4S7UF.mjs +74 -0
- package/build/chunk-WAWFDMOH.mjs +72 -0
- package/build/chunk-X3JFRRRQ.mjs +45 -0
- package/build/chunk-XFBLELHI.mjs +34 -0
- package/build/chunk-XIGE72LC.mjs +34 -0
- package/build/chunk-XW7EPAD7.mjs +0 -0
- package/build/chunk-YGIZFKLJ.mjs +20 -0
- package/build/chunk-YRVIAORI.mjs +8 -0
- package/build/chunk-YXU5W2CB.mjs +12 -0
- package/build/commands/artifact.command.d.ts +14 -0
- package/build/commands/artifact.command.mjs +59 -0
- package/build/commands/build.command.d.ts +14 -0
- package/build/commands/build.command.mjs +65 -0
- package/build/commands/develop.command.d.ts +13 -0
- package/build/commands/develop.command.mjs +75 -0
- package/build/commands/grafts.command.d.ts +12 -0
- package/build/commands/grafts.command.mjs +58 -0
- package/build/commands/start.command.d.ts +12 -0
- package/build/commands/start.command.mjs +64 -0
- package/build/core/application.d.ts +27 -0
- package/build/core/application.mjs +124 -0
- package/build/core/artifact.d.ts +19 -0
- package/build/core/artifact.mjs +133 -0
- package/build/core/builder.d.ts +35 -0
- package/build/core/builder.mjs +45 -0
- package/build/core/bytes.util.d.ts +6 -0
- package/build/core/bytes.util.mjs +8 -0
- package/build/core/command.d.ts +15 -0
- package/build/core/command.mjs +6 -0
- package/build/core/commands.d.ts +13 -0
- package/build/core/commands.mjs +7 -0
- package/build/core/config.d.ts +10 -0
- package/build/core/config.mjs +7 -0
- package/build/core/context.d.ts +15 -0
- package/build/core/context.mjs +6 -0
- package/build/core/controller/builder.d.ts +10 -0
- package/build/core/controller/builder.mjs +45 -0
- package/build/core/controller/compiler.d.ts +6 -0
- package/build/core/controller/compiler.mjs +45 -0
- package/build/core/controller/index.d.ts +13 -0
- package/build/core/controller/index.mjs +50 -0
- package/build/core/controller/metadata.d.ts +10 -0
- package/build/core/controller/metadata.mjs +6 -0
- package/build/core/directories.d.ts +11 -0
- package/build/core/directories.mjs +8 -0
- package/build/core/hmr.d.ts +22 -0
- package/build/core/hmr.mjs +6 -0
- package/build/core/hooks.d.ts +12 -0
- package/build/core/hooks.mjs +6 -0
- package/build/core/index.d.ts +41 -0
- package/build/core/index.mjs +100 -0
- package/build/core/middleware/compose.d.ts +8 -0
- package/build/core/middleware/compose.mjs +6 -0
- package/build/core/middleware/index.d.ts +6 -0
- package/build/core/middleware/index.mjs +11 -0
- package/build/core/middleware/pipeline.d.ts +14 -0
- package/build/core/middleware/pipeline.mjs +7 -0
- package/build/core/plugins/index.d.ts +14 -0
- package/build/core/plugins/index.mjs +48 -0
- package/build/core/plugins/plugin.d.ts +17 -0
- package/build/core/plugins/plugin.mjs +6 -0
- package/build/core/plugins/scope.d.ts +24 -0
- package/build/core/plugins/scope.mjs +45 -0
- package/build/core/process.util.d.ts +3 -0
- package/build/core/process.util.mjs +6 -0
- package/build/core/raiton.d.ts +20 -0
- package/build/core/raiton.mjs +6 -0
- package/build/core/router/handler.d.ts +10 -0
- package/build/core/router/handler.mjs +45 -0
- package/build/core/router/index.d.ts +12 -0
- package/build/core/router/index.mjs +54 -0
- package/build/core/router/matcher.d.ts +21 -0
- package/build/core/router/matcher.mjs +6 -0
- package/build/core/router/route.d.ts +20 -0
- package/build/core/router/route.mjs +6 -0
- package/build/core/router/router.d.ts +16 -0
- package/build/core/router/router.mjs +8 -0
- package/build/core/thread.d.ts +30 -0
- package/build/core/thread.mjs +45 -0
- package/build/env.d.d.ts +2 -0
- package/build/env.d.mjs +0 -0
- package/build/raiton-1.1.1.tgz +0 -0
- package/build/requirements.d.ts +2 -0
- package/build/requirements.mjs +19 -0
- package/build/sdk/artifacts.d.ts +13 -0
- package/build/sdk/artifacts.mjs +45 -0
- package/build/sdk/constants/decorators.constant.d.ts +11 -0
- package/build/sdk/constants/decorators.constant.mjs +6 -0
- package/build/sdk/constants/index.d.ts +2 -0
- package/build/sdk/constants/index.mjs +11 -0
- package/build/sdk/constants/microservices.constant.d.ts +5 -0
- package/build/sdk/constants/microservices.constant.mjs +6 -0
- package/build/sdk/controllers.d.ts +4 -0
- package/build/sdk/controllers.mjs +6 -0
- package/build/sdk/data-transfer-object.d.ts +7 -0
- package/build/sdk/data-transfer-object.mjs +7 -0
- package/build/sdk/decorators/access-guard.decorator.d.ts +2 -0
- package/build/sdk/decorators/access-guard.decorator.mjs +0 -0
- package/build/sdk/decorators/controllable.d.ts +3 -0
- package/build/sdk/decorators/controllable.mjs +45 -0
- package/build/sdk/decorators/controllers.decorator.d.ts +2 -0
- package/build/sdk/decorators/controllers.decorator.mjs +0 -0
- package/build/sdk/decorators/grafts.decorator.d.ts +2 -0
- package/build/sdk/decorators/grafts.decorator.mjs +0 -0
- package/build/sdk/decorators/index.d.ts +3 -0
- package/build/sdk/decorators/index.mjs +75 -0
- package/build/sdk/decorators/parameters.decorator.d.ts +2 -0
- package/build/sdk/decorators/parameters.decorator.mjs +0 -0
- package/build/sdk/decorators/parametrable.d.ts +9 -0
- package/build/sdk/decorators/parametrable.mjs +57 -0
- package/build/sdk/decorators/payload.decorator.d.ts +2 -0
- package/build/sdk/decorators/payload.decorator.mjs +0 -0
- package/build/sdk/decorators/routable.d.ts +10 -0
- package/build/sdk/decorators/routable.mjs +59 -0
- package/build/sdk/dependency-container.d.ts +19 -0
- package/build/sdk/dependency-container.mjs +46 -0
- package/build/sdk/encryption.d.ts +27 -0
- package/build/sdk/encryption.mjs +141 -0
- package/build/sdk/enums/encrypted.enum.d.ts +15 -0
- package/build/sdk/enums/encrypted.enum.mjs +6 -0
- package/build/sdk/enums/event.message.enum.d.ts +6 -0
- package/build/sdk/enums/event.message.enum.mjs +6 -0
- package/build/sdk/enums/http-parameters.enum.d.ts +12 -0
- package/build/sdk/enums/http-parameters.enum.mjs +6 -0
- package/build/sdk/enums/http.enum.d.ts +12 -0
- package/build/sdk/enums/http.enum.mjs +6 -0
- package/build/sdk/enums/index.d.ts +6 -0
- package/build/sdk/enums/index.mjs +27 -0
- package/build/sdk/enums/runtime.enum.d.ts +8 -0
- package/build/sdk/enums/runtime.enum.mjs +6 -0
- package/build/sdk/enums/timestamp.enum.d.ts +8 -0
- package/build/sdk/enums/timestamp.enum.mjs +6 -0
- package/build/sdk/env.d.ts +6 -0
- package/build/sdk/env.mjs +74 -0
- package/build/sdk/fastify.d.ts +11 -0
- package/build/sdk/fastify.mjs +9 -0
- package/build/sdk/grafts.d.ts +15 -0
- package/build/sdk/grafts.mjs +71 -0
- package/build/sdk/index.d.ts +34 -0
- package/build/sdk/index.mjs +126 -0
- package/build/sdk/json.d.ts +17 -0
- package/build/sdk/json.mjs +87 -0
- package/build/sdk/plugins/body-parser.plugin.d.ts +17 -0
- package/build/sdk/plugins/body-parser.plugin.mjs +7 -0
- package/build/sdk/plugins/index.d.ts +17 -0
- package/build/sdk/plugins/index.mjs +48 -0
- package/build/sdk/plugins/security/body-limit.d.ts +17 -0
- package/build/sdk/plugins/security/body-limit.mjs +45 -0
- package/build/sdk/plugins/security/cors.d.ts +22 -0
- package/build/sdk/plugins/security/cors.mjs +45 -0
- package/build/sdk/plugins/security/headers.d.ts +17 -0
- package/build/sdk/plugins/security/headers.mjs +45 -0
- package/build/sdk/plugins/security/index.d.ts +25 -0
- package/build/sdk/plugins/security/index.mjs +45 -0
- package/build/sdk/plugins/security/method-guard.d.ts +17 -0
- package/build/sdk/plugins/security/method-guard.mjs +45 -0
- package/build/sdk/plugins/security/rate-limit.d.ts +21 -0
- package/build/sdk/plugins/security/rate-limit.mjs +45 -0
- package/build/sdk/repositories.d.ts +7 -0
- package/build/sdk/repositories.mjs +17 -0
- package/build/sdk/request.d.ts +4 -0
- package/build/sdk/request.mjs +6 -0
- package/build/sdk/responses.d.ts +8 -0
- package/build/sdk/responses.mjs +20 -0
- package/build/sdk/routes.d.ts +7 -0
- package/build/sdk/routes.mjs +61 -0
- package/build/sdk/runtime/bun/server.d.ts +6 -0
- package/build/sdk/runtime/bun/server.mjs +6 -0
- package/build/sdk/runtime/deno/server.d.ts +6 -0
- package/build/sdk/runtime/deno/server.mjs +6 -0
- package/build/sdk/runtime/index.d.ts +15 -0
- package/build/sdk/runtime/index.mjs +11 -0
- package/build/sdk/runtime/node/reply.d.ts +2 -0
- package/build/sdk/runtime/node/reply.mjs +0 -0
- package/build/sdk/runtime/node/request.d.ts +2 -0
- package/build/sdk/runtime/node/request.mjs +0 -0
- package/build/sdk/runtime/node/server.d.ts +6 -0
- package/build/sdk/runtime/node/server.mjs +6 -0
- package/build/sdk/runtime/web/server.d.ts +6 -0
- package/build/sdk/runtime/web/server.mjs +6 -0
- package/build/sdk/schemes.d.ts +120 -0
- package/build/sdk/schemes.mjs +129 -0
- package/build/sdk/services.d.ts +8 -0
- package/build/sdk/services.mjs +10 -0
- package/build/sdk/throwable.d.ts +78 -0
- package/build/sdk/throwable.mjs +14 -0
- package/build/sdk/utilities/alias-path.util.d.ts +9 -0
- package/build/sdk/utilities/alias-path.util.mjs +6 -0
- package/build/sdk/utilities/artifacts.util.d.ts +3 -0
- package/build/sdk/utilities/artifacts.util.mjs +45 -0
- package/build/sdk/utilities/callable.util.d.ts +3 -0
- package/build/sdk/utilities/callable.util.mjs +6 -0
- package/build/sdk/utilities/controller.util.d.ts +3 -0
- package/build/sdk/utilities/controller.util.mjs +6 -0
- package/build/sdk/utilities/index.d.ts +7 -0
- package/build/sdk/utilities/index.mjs +62 -0
- package/build/sdk/utilities/json.util.d.ts +3 -0
- package/build/sdk/utilities/json.util.mjs +6 -0
- package/build/sdk/utilities/parameters-arguments.util.d.ts +2 -0
- package/build/sdk/utilities/parameters-arguments.util.mjs +0 -0
- package/build/sdk/utilities/url.d.ts +3 -0
- package/build/sdk/utilities/url.mjs +7 -0
- package/build/sdk/utilities/utilities.util.d.ts +6 -0
- package/build/sdk/utilities/utilities.util.mjs +8 -0
- package/build/types/access-guards.d.ts +6 -0
- package/build/types/access-guards.mjs +0 -0
- package/build/types/application.d.ts +30 -0
- package/build/types/application.mjs +0 -0
- package/build/types/artifact.d.ts +21 -0
- package/build/types/artifact.mjs +0 -0
- package/build/types/builder.d.ts +32 -0
- package/build/types/builder.mjs +0 -0
- package/build/types/config.d.ts +6 -0
- package/build/types/config.mjs +0 -0
- package/build/types/controller.d.ts +25 -0
- package/build/types/controller.mjs +0 -0
- package/build/types/contruct.d.ts +3 -0
- package/build/types/contruct.mjs +0 -0
- package/build/types/core.d.ts +15 -0
- package/build/types/core.mjs +0 -0
- package/build/types/data-transfer-object.d.ts +5 -0
- package/build/types/data-transfer-object.mjs +0 -0
- package/build/types/dependency-container.d.ts +20 -0
- package/build/types/dependency-container.mjs +0 -0
- package/build/types/directory.d.ts +8 -0
- package/build/types/directory.mjs +0 -0
- package/build/types/encryption.d.ts +16 -0
- package/build/types/encryption.mjs +0 -0
- package/build/types/generic.d.ts +4 -0
- package/build/types/generic.mjs +0 -0
- package/build/types/hmr.d.ts +25 -0
- package/build/types/hmr.mjs +0 -0
- package/build/types/http-responses.d.ts +10 -0
- package/build/types/http-responses.mjs +0 -0
- package/build/types/index.d.ts +45 -0
- package/build/types/index.mjs +0 -0
- package/build/types/middleware.d.ts +12 -0
- package/build/types/middleware.mjs +0 -0
- package/build/types/parameters.d.ts +19 -0
- package/build/types/parameters.mjs +0 -0
- package/build/types/parseable.d.ts +5 -0
- package/build/types/parseable.mjs +0 -0
- package/build/types/payload.d.ts +6 -0
- package/build/types/payload.mjs +0 -0
- package/build/types/plugin.d.ts +20 -0
- package/build/types/plugin.mjs +0 -0
- package/build/types/raiton.d.ts +12 -0
- package/build/types/raiton.mjs +0 -0
- package/build/types/repositories.d.ts +8 -0
- package/build/types/repositories.mjs +0 -0
- package/build/types/router.d.ts +14 -0
- package/build/types/router.mjs +0 -0
- package/build/types/runtime.d.ts +37 -0
- package/build/types/runtime.mjs +0 -0
- package/build/types/scheme.d.ts +128 -0
- package/build/types/scheme.mjs +0 -0
- package/build/types/server.d.ts +57 -0
- package/build/types/server.mjs +0 -0
- package/build/types/services.d.ts +8 -0
- package/build/types/services.mjs +0 -0
- package/build/types/thread.d.ts +24 -0
- package/build/types/thread.mjs +0 -0
- package/build/types/utilities.d.ts +6 -0
- package/build/types/utilities.mjs +0 -0
- package/build/types/values.d.ts +4 -0
- package/build/types/values.mjs +0 -0
- package/package.json +97 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a throwable error that extends the built-in JavaScript Error class.
|
|
3
|
+
* The Throwable class provides utility methods for triggering different levels
|
|
4
|
+
* of error notifications, including error, warning, and critical errors.
|
|
5
|
+
*
|
|
6
|
+
* The class dispatches error notifications via the EventBus and optionally
|
|
7
|
+
* throws an exception or exits the application depending on the severity level
|
|
8
|
+
* or the provided parameters.
|
|
9
|
+
*/
|
|
10
|
+
declare class Throwable extends Error {
|
|
11
|
+
protected statusCode: number;
|
|
12
|
+
constructor(message: string, statusCode?: number, label?: string);
|
|
13
|
+
/**
|
|
14
|
+
* Dispatches a system server error event and optionally throws an error.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} message - The error message to be dispatched and potentially thrown.
|
|
17
|
+
* @param {boolean} [soft=true] - Determines whether the error should be thrown. If true, the error is only dispatched. If false, the error is dispatched and then thrown.
|
|
18
|
+
* @param statusCode
|
|
19
|
+
* @return {void} This method does not return a value.
|
|
20
|
+
*/
|
|
21
|
+
static error(message: string, soft?: boolean, statusCode?: number): void;
|
|
22
|
+
/**
|
|
23
|
+
* Emits a system server warning event and optionally throws an error based on the severity of the warning.
|
|
24
|
+
*
|
|
25
|
+
* @param {string} message - The warning message to be dispatched and possibly thrown as an error.
|
|
26
|
+
* @param {boolean} [soft=true] - Determines whether the warning should be treated as non-critical (soft). If false, an error is thrown.
|
|
27
|
+
* @param statusCode
|
|
28
|
+
* @return {void} This method does not return a value.
|
|
29
|
+
*/
|
|
30
|
+
static warning(message: string, soft?: boolean, statusCode?: number): void;
|
|
31
|
+
/**
|
|
32
|
+
* Triggers a critical system event, dispatching an alert message and terminating the process.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} message - The critical error message to be dispatched with the event.
|
|
35
|
+
* @return {void} This method does not return a value as it terminates the process.
|
|
36
|
+
*/
|
|
37
|
+
static critical(message: string): void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A function that throws an error with a provided message and a specified error type.
|
|
41
|
+
*
|
|
42
|
+
* @param {string} message - The error message to be used when throwing the error.
|
|
43
|
+
* @param {boolean} [soft=true] - Determines whether the error is categorized as "soft".
|
|
44
|
+
* If true, it will be treated as a soft error. Defaults to true.
|
|
45
|
+
* @param statusCode
|
|
46
|
+
* @returns {void}
|
|
47
|
+
*/
|
|
48
|
+
declare const throwError: (message: string, soft?: boolean, statusCode?: number) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Function to throw an error with a specified message.
|
|
51
|
+
*
|
|
52
|
+
* @param {string} message - The error message to be used in the thrown error.
|
|
53
|
+
* @param statusCode
|
|
54
|
+
* @throws {Throwable} always throw an error with the provided message.
|
|
55
|
+
*/
|
|
56
|
+
declare const throwException: (message: string, statusCode?: number) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Emits a warning with the specified message and behavior.
|
|
59
|
+
*
|
|
60
|
+
* @param {string} message - The warning message to be displayed.
|
|
61
|
+
* @param {boolean} [soft=true] - Indicates whether the warning should be soft (true)
|
|
62
|
+
* or treated as a harder warning (false). Defaults to true.
|
|
63
|
+
* @param statusCode
|
|
64
|
+
* @returns {void} This function does not return any value.
|
|
65
|
+
*/
|
|
66
|
+
declare const throwWarning: (message: string, soft?: boolean, statusCode?: number) => void;
|
|
67
|
+
/**
|
|
68
|
+
* A variable representing a function that throws a critical error.
|
|
69
|
+
*
|
|
70
|
+
* This function is used to trigger a critical error by providing a specific message.
|
|
71
|
+
* It encapsulates the logic for generating a throwable critical error through the `Throwable.critical` method.
|
|
72
|
+
*
|
|
73
|
+
* @param {string} message - The error message describing the critical error to be thrown.
|
|
74
|
+
* @returns {Throwable} The critical throwable generated with the provided message.
|
|
75
|
+
*/
|
|
76
|
+
declare const throwCritical: (message: string) => void;
|
|
77
|
+
|
|
78
|
+
export { Throwable, throwCritical, throwError, throwException, throwWarning };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves the provided pathname to its corresponding alias path based on the configured TypeScript paths and output directories.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} pathname - The input path to resolve as per the alias configurations in the TypeScript configuration.
|
|
5
|
+
* @return {string | null} - The resolved alias path if it exists, or null if no matching alias is found.
|
|
6
|
+
*/
|
|
7
|
+
declare function aliasPath(pathname: string): string | null;
|
|
8
|
+
|
|
9
|
+
export { aliasPath };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
generateArtifacts
|
|
3
|
+
} from "../../chunk-K4KLOLSO.mjs";
|
|
4
|
+
import "../../chunk-RXG7754R.mjs";
|
|
5
|
+
import "../../chunk-IOCHNQMF.mjs";
|
|
6
|
+
import "../../chunk-M2RZZJQR.mjs";
|
|
7
|
+
import "../../chunk-RVH2YBNU.mjs";
|
|
8
|
+
import "../../chunk-MLFGBJDV.mjs";
|
|
9
|
+
import "../../chunk-GPJSLV3Q.mjs";
|
|
10
|
+
import "../../chunk-QFSXFOEN.mjs";
|
|
11
|
+
import "../../chunk-JWNBO7XV.mjs";
|
|
12
|
+
import "../../chunk-K4IQQ2KF.mjs";
|
|
13
|
+
import "../../chunk-UCHBN3DV.mjs";
|
|
14
|
+
import "../../chunk-VRL4S7UF.mjs";
|
|
15
|
+
import "../../chunk-XW7EPAD7.mjs";
|
|
16
|
+
import "../../chunk-QHCQ4AUA.mjs";
|
|
17
|
+
import "../../chunk-YRVIAORI.mjs";
|
|
18
|
+
import "../../chunk-UZFCGVHP.mjs";
|
|
19
|
+
import "../../chunk-XIGE72LC.mjs";
|
|
20
|
+
import "../../chunk-X3JFRRRQ.mjs";
|
|
21
|
+
import "../../chunk-P3IRIFPT.mjs";
|
|
22
|
+
import "../../chunk-S3ONGVNZ.mjs";
|
|
23
|
+
import "../../chunk-DIWD7ZCJ.mjs";
|
|
24
|
+
import "../../chunk-52JR26TI.mjs";
|
|
25
|
+
import "../../chunk-JATYBWHL.mjs";
|
|
26
|
+
import "../../chunk-VQINCGLQ.mjs";
|
|
27
|
+
import "../../chunk-4OWCGDUD.mjs";
|
|
28
|
+
import "../../chunk-YXU5W2CB.mjs";
|
|
29
|
+
import "../../chunk-UAPCBU3J.mjs";
|
|
30
|
+
import "../../chunk-O7R3NJQN.mjs";
|
|
31
|
+
import "../../chunk-BYYJRCB4.mjs";
|
|
32
|
+
import "../../chunk-FFRJ4AUA.mjs";
|
|
33
|
+
import "../../chunk-3PWMRP6G.mjs";
|
|
34
|
+
import "../../chunk-T6L55AUG.mjs";
|
|
35
|
+
import "../../chunk-QI7OFSXB.mjs";
|
|
36
|
+
import "../../chunk-TOJFTPAY.mjs";
|
|
37
|
+
import "../../chunk-NB62GSFI.mjs";
|
|
38
|
+
import "../../chunk-5LNOA4SK.mjs";
|
|
39
|
+
import "../../chunk-YGIZFKLJ.mjs";
|
|
40
|
+
import "../../chunk-UWM46HLZ.mjs";
|
|
41
|
+
import "../../chunk-XFBLELHI.mjs";
|
|
42
|
+
import "../../chunk-HVFHDVAH.mjs";
|
|
43
|
+
export {
|
|
44
|
+
generateArtifacts
|
|
45
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { aliasPath } from './alias-path.util.js';
|
|
2
|
+
export { generateArtifacts } from './artifacts.util.js';
|
|
3
|
+
export { retryCallable } from './callable.util.js';
|
|
4
|
+
export { getType, stabilizeJson } from './utilities.util.js';
|
|
5
|
+
export { isControllerFile } from './controller.util.js';
|
|
6
|
+
export { tryParseJson } from './json.util.js';
|
|
7
|
+
import '../../types/generic.js';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
generateArtifacts
|
|
3
|
+
} from "../../chunk-K4KLOLSO.mjs";
|
|
4
|
+
import {
|
|
5
|
+
retryCallable
|
|
6
|
+
} from "../../chunk-RXG7754R.mjs";
|
|
7
|
+
import {
|
|
8
|
+
isControllerFile
|
|
9
|
+
} from "../../chunk-IOCHNQMF.mjs";
|
|
10
|
+
import {
|
|
11
|
+
getType,
|
|
12
|
+
stabilizeJson
|
|
13
|
+
} from "../../chunk-M2RZZJQR.mjs";
|
|
14
|
+
import "../../chunk-RVH2YBNU.mjs";
|
|
15
|
+
import {
|
|
16
|
+
tryParseJson
|
|
17
|
+
} from "../../chunk-MLFGBJDV.mjs";
|
|
18
|
+
import "../../chunk-GPJSLV3Q.mjs";
|
|
19
|
+
import "../../chunk-QFSXFOEN.mjs";
|
|
20
|
+
import "../../chunk-JWNBO7XV.mjs";
|
|
21
|
+
import "../../chunk-K4IQQ2KF.mjs";
|
|
22
|
+
import "../../chunk-UCHBN3DV.mjs";
|
|
23
|
+
import {
|
|
24
|
+
aliasPath
|
|
25
|
+
} from "../../chunk-VRL4S7UF.mjs";
|
|
26
|
+
import "../../chunk-XW7EPAD7.mjs";
|
|
27
|
+
import "../../chunk-QHCQ4AUA.mjs";
|
|
28
|
+
import "../../chunk-YRVIAORI.mjs";
|
|
29
|
+
import "../../chunk-UZFCGVHP.mjs";
|
|
30
|
+
import "../../chunk-XIGE72LC.mjs";
|
|
31
|
+
import "../../chunk-X3JFRRRQ.mjs";
|
|
32
|
+
import "../../chunk-P3IRIFPT.mjs";
|
|
33
|
+
import "../../chunk-S3ONGVNZ.mjs";
|
|
34
|
+
import "../../chunk-DIWD7ZCJ.mjs";
|
|
35
|
+
import "../../chunk-52JR26TI.mjs";
|
|
36
|
+
import "../../chunk-JATYBWHL.mjs";
|
|
37
|
+
import "../../chunk-VQINCGLQ.mjs";
|
|
38
|
+
import "../../chunk-4OWCGDUD.mjs";
|
|
39
|
+
import "../../chunk-YXU5W2CB.mjs";
|
|
40
|
+
import "../../chunk-UAPCBU3J.mjs";
|
|
41
|
+
import "../../chunk-O7R3NJQN.mjs";
|
|
42
|
+
import "../../chunk-BYYJRCB4.mjs";
|
|
43
|
+
import "../../chunk-FFRJ4AUA.mjs";
|
|
44
|
+
import "../../chunk-3PWMRP6G.mjs";
|
|
45
|
+
import "../../chunk-T6L55AUG.mjs";
|
|
46
|
+
import "../../chunk-QI7OFSXB.mjs";
|
|
47
|
+
import "../../chunk-TOJFTPAY.mjs";
|
|
48
|
+
import "../../chunk-NB62GSFI.mjs";
|
|
49
|
+
import "../../chunk-5LNOA4SK.mjs";
|
|
50
|
+
import "../../chunk-YGIZFKLJ.mjs";
|
|
51
|
+
import "../../chunk-UWM46HLZ.mjs";
|
|
52
|
+
import "../../chunk-XFBLELHI.mjs";
|
|
53
|
+
import "../../chunk-HVFHDVAH.mjs";
|
|
54
|
+
export {
|
|
55
|
+
aliasPath,
|
|
56
|
+
generateArtifacts,
|
|
57
|
+
getType,
|
|
58
|
+
isControllerFile,
|
|
59
|
+
retryCallable,
|
|
60
|
+
stabilizeJson,
|
|
61
|
+
tryParseJson
|
|
62
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { HttpMethod } from '../sdk/enums/http.enum.js';
|
|
2
|
+
|
|
3
|
+
interface ApplicationConfig {
|
|
4
|
+
workdir?: string;
|
|
5
|
+
hostname?: string;
|
|
6
|
+
port?: number;
|
|
7
|
+
protocole?: 'http' | 'https';
|
|
8
|
+
pathname?: string;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
develop?: boolean;
|
|
11
|
+
verbose?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface ApplicationInterface {
|
|
14
|
+
readonly config: ApplicationConfig;
|
|
15
|
+
get hostname(): string;
|
|
16
|
+
register(plugin: any): this;
|
|
17
|
+
use(mw: any): this;
|
|
18
|
+
route(method: HttpMethod, path: string, handler: any, version?: string): this;
|
|
19
|
+
get(path: string, handler: any, version?: string): this;
|
|
20
|
+
post(path: string, handler: any, version?: string): this;
|
|
21
|
+
patch(path: string, handler: any, version?: string): this;
|
|
22
|
+
put(path: string, handler: any, version?: string): this;
|
|
23
|
+
delete(path: string, handler: any, version?: string): this;
|
|
24
|
+
options(path: string, handler: any, version?: string): this;
|
|
25
|
+
head(path: string, handler: any, version?: string): this;
|
|
26
|
+
trace(path: string, handler: any, version?: string): this;
|
|
27
|
+
handle(req: any, reply: any): Promise<any>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type { ApplicationConfig, ApplicationInterface };
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface ArtifactEntry {
|
|
2
|
+
id: string;
|
|
3
|
+
timestamp: Date;
|
|
4
|
+
size: number;
|
|
5
|
+
}
|
|
6
|
+
type ArtifactDecoratorHandler = () => void;
|
|
7
|
+
interface ArtifactDecorator {
|
|
8
|
+
syntax: RegExp;
|
|
9
|
+
handler: ArtifactDecoratorHandler;
|
|
10
|
+
}
|
|
11
|
+
interface ArtifactOptions {
|
|
12
|
+
artifact: string;
|
|
13
|
+
provider: string;
|
|
14
|
+
decorator: ArtifactDecorator;
|
|
15
|
+
verbose?: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface ArtifactInterface {
|
|
18
|
+
readonly options: ArtifactOptions;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type { ArtifactDecorator, ArtifactDecoratorHandler, ArtifactEntry, ArtifactInterface, ArtifactOptions };
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BuildContext, BuildOptions } from 'esbuild';
|
|
2
|
+
import { HmrInterface } from './hmr.js';
|
|
3
|
+
|
|
4
|
+
interface BuildCommandOptions {
|
|
5
|
+
develop?: boolean;
|
|
6
|
+
bootstrap?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface BuilderConfig {
|
|
9
|
+
development?: boolean;
|
|
10
|
+
}
|
|
11
|
+
type BuilderBootCallable = (builder: BuilderInterface) => Promise<void>;
|
|
12
|
+
interface BuilderInterface {
|
|
13
|
+
readonly workdir: string;
|
|
14
|
+
readonly options: BuilderConfig;
|
|
15
|
+
readonly hmr: HmrInterface;
|
|
16
|
+
get context(): BuildContext<BuildOptions> | null;
|
|
17
|
+
get source(): string | null;
|
|
18
|
+
get out(): string | null;
|
|
19
|
+
get bootstrapper(): string | null;
|
|
20
|
+
get bootstrapperIndex(): string | null;
|
|
21
|
+
get baseConfig(): BuildOptions;
|
|
22
|
+
prepare(): Promise<this>;
|
|
23
|
+
boot(): Promise<any>;
|
|
24
|
+
start(callable?: BuilderBootCallable): Promise<this>;
|
|
25
|
+
}
|
|
26
|
+
interface BuilderHMRDeclaration {
|
|
27
|
+
filename: string;
|
|
28
|
+
timestamp?: number;
|
|
29
|
+
version?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type { BuildCommandOptions, BuilderBootCallable, BuilderConfig, BuilderHMRDeclaration, BuilderInterface };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HttpMethod } from '../sdk/enums/http.enum.js';
|
|
2
|
+
import { Parametrable } from '../sdk/enums/http-parameters.enum.js';
|
|
3
|
+
import { Context } from './core.js';
|
|
4
|
+
import './runtime.js';
|
|
5
|
+
import '../sdk/enums/runtime.enum.js';
|
|
6
|
+
|
|
7
|
+
interface ControllerMeta {
|
|
8
|
+
prefix?: string;
|
|
9
|
+
routes: RouteMeta[];
|
|
10
|
+
params: Record<string, ParamMeta[]>;
|
|
11
|
+
}
|
|
12
|
+
interface RouteMeta {
|
|
13
|
+
method: HttpMethod;
|
|
14
|
+
path: string;
|
|
15
|
+
propertyKey: string;
|
|
16
|
+
params: ParamMeta[];
|
|
17
|
+
}
|
|
18
|
+
interface ParamMeta {
|
|
19
|
+
index: number;
|
|
20
|
+
type: Parametrable;
|
|
21
|
+
key?: string;
|
|
22
|
+
callable?: (ctx: Context) => any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type { ControllerMeta, ParamMeta, RouteMeta };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RuntimeRequest, RuntimeReply } from './runtime.js';
|
|
2
|
+
import '../sdk/enums/runtime.enum.js';
|
|
3
|
+
|
|
4
|
+
type HookName = 'onRequest' | 'preParsing' | 'preHandler' | 'onSend' | 'onResponse';
|
|
5
|
+
type HookHandler = (ctx: Context) => Promise<void> | void;
|
|
6
|
+
interface Context {
|
|
7
|
+
req: RuntimeRequest;
|
|
8
|
+
reply: RuntimeReply;
|
|
9
|
+
state: Record<string, any>;
|
|
10
|
+
decorate<T = any>(key: string, value: T): void;
|
|
11
|
+
get<T = any>(key: string): T;
|
|
12
|
+
send(body: any): void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type { Context, HookHandler, HookName };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IConstructor } from './contruct.js';
|
|
2
|
+
import { LifetimeEnum } from '@protorians/core';
|
|
3
|
+
|
|
4
|
+
interface IDependencyContainerDefinition<T = any> {
|
|
5
|
+
name: string;
|
|
6
|
+
construct: IConstructor<T>;
|
|
7
|
+
lifetime: LifetimeEnum;
|
|
8
|
+
instance?: any;
|
|
9
|
+
}
|
|
10
|
+
interface IDependencyContainer<T extends IDependencyContainerDefinition<E>, E = any> {
|
|
11
|
+
readonly artifact: string;
|
|
12
|
+
get classes(): Map<string, T>;
|
|
13
|
+
get instances(): Map<string, E>;
|
|
14
|
+
register(name: string, construct: IConstructor<E>, lifetime: LifetimeEnum): this;
|
|
15
|
+
resolveArguments(definition: T): any[];
|
|
16
|
+
get<T>(name: string): T | undefined;
|
|
17
|
+
imports(): Promise<string[]>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type { IDependencyContainer, IDependencyContainerDefinition };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type IEncryptionResult = string;
|
|
2
|
+
interface IDerivationOptions {
|
|
3
|
+
salt?: string;
|
|
4
|
+
iterations?: number;
|
|
5
|
+
keylen?: number;
|
|
6
|
+
digest?: string;
|
|
7
|
+
}
|
|
8
|
+
interface IScryptOptions {
|
|
9
|
+
salt?: string;
|
|
10
|
+
keylen?: number;
|
|
11
|
+
cost?: number;
|
|
12
|
+
blockSize?: number;
|
|
13
|
+
parallelization?: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type { IDerivationOptions, IEncryptionResult, IScryptOptions };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface HMRMetadataInterface {
|
|
2
|
+
version: number;
|
|
3
|
+
timestamp: number;
|
|
4
|
+
filename: string;
|
|
5
|
+
size: number;
|
|
6
|
+
}
|
|
7
|
+
interface HmrInterface {
|
|
8
|
+
entries(): Record<string, HMRMetadataInterface>;
|
|
9
|
+
set(key: string, filename: string, size: number): this;
|
|
10
|
+
get(key: string): HMRMetadataInterface | undefined;
|
|
11
|
+
getKeys(): string[];
|
|
12
|
+
getValues(): Array<HMRMetadataInterface>;
|
|
13
|
+
getEntries(): Array<[string, HMRMetadataInterface]>;
|
|
14
|
+
each(callable: (value: HMRMetadataInterface, key: string, map: Map<string, HMRMetadataInterface>) => void | Promise<void>): Promise<this>;
|
|
15
|
+
unset(key: string): this;
|
|
16
|
+
clear(): this;
|
|
17
|
+
load<T>(key: string): Promise<T | undefined>;
|
|
18
|
+
reload<T>(key: string): Promise<T | undefined>;
|
|
19
|
+
has(key: string): boolean;
|
|
20
|
+
upsert<T>(key: string, filename: string, size: number): Promise<T | undefined>;
|
|
21
|
+
size(): number;
|
|
22
|
+
refresh(): Promise<this>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type { HMRMetadataInterface, HmrInterface };
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export { Configurable } from './config.js';
|
|
2
|
+
export { BuildCommandOptions, BuilderBootCallable, BuilderConfig, BuilderHMRDeclaration, BuilderInterface } from './builder.js';
|
|
3
|
+
export { ThreadInterface, ThreadSetupOptions, ThreadWaitCallable } from './thread.js';
|
|
4
|
+
export { IAccessGuardDeclaration } from './access-guards.js';
|
|
5
|
+
export { IConstructor } from './contruct.js';
|
|
6
|
+
export { IDataTransferObject } from './data-transfer-object.js';
|
|
7
|
+
export { IDependencyContainer, IDependencyContainerDefinition } from './dependency-container.js';
|
|
8
|
+
export { IFileStatInfo } from './directory.js';
|
|
9
|
+
export { IDerivationOptions, IEncryptionResult, IScryptOptions } from './encryption.js';
|
|
10
|
+
export { IGenericValue, IGenericValueType } from './generic.js';
|
|
11
|
+
export { IHttpResponse } from './http-responses.js';
|
|
12
|
+
export { IParseableEntries, IParseableEntry, IParseablePrimitiveEntry } from './parseable.js';
|
|
13
|
+
export { IPayload } from './payload.js';
|
|
14
|
+
export { IRepositoryDefinition } from './repositories.js';
|
|
15
|
+
export { IScheme, ISchemeConfig, ISchemeOptions, ISchemePropertyOptions } from './scheme.js';
|
|
16
|
+
export { IGraftDefinition } from './services.js';
|
|
17
|
+
export { IString, IStringable } from './values.js';
|
|
18
|
+
export { ServerControllerInterface, ServerFeaturesUsed, ServerHMRDeclaration, ServerInterface, ServerOptions, ServerRouteInterface, ServerSignalMap } from './server.js';
|
|
19
|
+
export { FileSizeFormated } from './utilities.js';
|
|
20
|
+
export { ArtifactDecorator, ArtifactDecoratorHandler, ArtifactEntry, ArtifactInterface, ArtifactOptions } from './artifact.js';
|
|
21
|
+
export { RouteParametersMetadataCallable, RouteParametersMetadataInterface, RouteParametersMetadataPayload } from './parameters.js';
|
|
22
|
+
export { HMRMetadataInterface, HmrInterface } from './hmr.js';
|
|
23
|
+
export { Middleware, MiddlewareStepped, Next } from './middleware.js';
|
|
24
|
+
export { Context, HookHandler, HookName } from './core.js';
|
|
25
|
+
export { Plugin, PluginFn } from './plugin.js';
|
|
26
|
+
export { RuntimeAdapter, RuntimeHandlerCallable, RuntimeInterface, RuntimeReply, RuntimeRequest, RuntimeServer } from './runtime.js';
|
|
27
|
+
export { RouteDefinition, RouteHandler } from './router.js';
|
|
28
|
+
export { ControllerMeta, ParamMeta, RouteMeta } from './controller.js';
|
|
29
|
+
export { RaitonSignalMap } from './raiton.js';
|
|
30
|
+
import 'esbuild';
|
|
31
|
+
import './application.js';
|
|
32
|
+
import '../sdk/enums/http.enum.js';
|
|
33
|
+
import '../sdk/enums/runtime.enum.js';
|
|
34
|
+
import '@protorians/parameters';
|
|
35
|
+
import '@protorians/core';
|
|
36
|
+
import 'fastify/types/schema';
|
|
37
|
+
import '@sinclair/typebox';
|
|
38
|
+
import 'fastify';
|
|
39
|
+
import '../sdk/enums/http-parameters.enum.js';
|
|
40
|
+
import '../core/context.js';
|
|
41
|
+
import '../core/plugins/scope.js';
|
|
42
|
+
import '../core/hooks.js';
|
|
43
|
+
import '../core/middleware/pipeline.js';
|
|
44
|
+
import '../core/router/route.js';
|
|
45
|
+
import '../core/router/router.js';
|
|
File without changes
|