raiton 0.0.2 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +98 -1
- package/build/bin/index.mjs +6816 -47
- package/build/raiton-1.0.0-alpha.2.tgz +0 -0
- package/package.json +22 -35
- package/source/bin/bootstrapper.ts +15 -0
- package/source/bin/cli-tools.ts +73 -0
- package/source/bin/cli.ts +12 -0
- package/source/bin/index.ts +6 -0
- package/source/commands/artifact.command.ts +28 -0
- package/source/commands/build.command.ts +31 -0
- package/source/commands/develop.command.ts +47 -0
- package/source/commands/grafts.command.ts +27 -0
- package/source/commands/start.command.ts +28 -0
- package/source/core/application.ts +115 -0
- package/source/core/artifacts/artifact.ts +109 -0
- package/source/core/artifacts/artifacts.ts +10 -0
- package/source/core/artifacts/index.ts +1 -0
- package/source/core/artifacts/runner.ts +3 -0
- package/source/core/builder.ts +138 -0
- package/source/core/bytes.util.ts +17 -0
- package/source/core/command.ts +24 -0
- package/source/core/commands.ts +44 -0
- package/source/core/config/config.ts +51 -0
- package/source/core/config/define.ts +13 -0
- package/source/core/config/index.ts +2 -0
- package/source/core/context.ts +33 -0
- package/source/core/controller/builder.ts +38 -0
- package/source/core/controller/compiler.ts +22 -0
- package/source/core/controller/index.ts +3 -0
- package/source/core/controller/metadata.ts +13 -0
- package/source/core/directories.ts +30 -0
- package/source/core/helpers/index.ts +1 -0
- package/source/core/helpers/raiton.ts +3 -0
- package/source/core/hmr.ts +106 -0
- package/source/core/hooks.ts +28 -0
- package/source/core/index.ts +13 -0
- package/source/core/injection/index.ts +1 -0
- package/source/core/injection/injection.ts +157 -0
- package/source/core/middleware/compose.ts +40 -0
- package/source/core/middleware/index.ts +2 -0
- package/source/core/middleware/pipeline.ts +27 -0
- package/source/core/plugins/index.ts +2 -0
- package/source/core/plugins/plugin.ts +8 -0
- package/source/core/plugins/scope.ts +46 -0
- package/source/core/process.util.ts +12 -0
- package/source/core/raiton.ts +21 -0
- package/source/core/router/handler.ts +59 -0
- package/source/core/router/index.ts +4 -0
- package/source/core/router/matcher.ts +51 -0
- package/source/core/router/route.ts +63 -0
- package/source/core/router/router.ts +31 -0
- package/source/core/server.ts +26 -0
- package/source/core/thread.ts +87 -0
- package/source/env.d.ts +3 -0
- package/source/requirements.ts +27 -0
- package/source/sdk/artifacts.ts +55 -0
- package/source/sdk/constants/decorators.constant.ts +7 -0
- package/source/sdk/constants/index.ts +2 -0
- package/source/sdk/constants/microservices.constant.ts +4 -0
- package/source/sdk/controllers.ts +4 -0
- package/source/sdk/data-transfer-object.ts +7 -0
- package/source/sdk/decorators/access-guard.decorator.ts +9 -0
- package/source/sdk/decorators/controllable.decorator.ts +20 -0
- package/source/sdk/decorators/index.ts +5 -0
- package/source/sdk/decorators/injection.decorator.ts +46 -0
- package/source/sdk/decorators/middleware.decorator.ts +15 -0
- package/source/sdk/decorators/parametrable.ts +24 -0
- package/source/sdk/decorators/payload.decorator.ts +77 -0
- package/source/sdk/decorators/routable.decorator.ts +48 -0
- package/source/sdk/encryption.ts +155 -0
- package/source/sdk/enums/encrypted.enum.ts +13 -0
- package/source/sdk/enums/event.message.enum.ts +4 -0
- package/{build/sdk/enums/http-parameters.enum.d.ts → source/sdk/enums/http-parameters.enum.ts} +3 -5
- package/source/sdk/enums/http.enum.ts +10 -0
- package/source/sdk/enums/index.ts +6 -0
- package/{build/sdk/enums/runtime.enum.d.ts → source/sdk/enums/runtime.enum.ts} +2 -4
- package/{build/sdk/enums/timestamp.enum.d.ts → source/sdk/enums/timestamp.enum.ts} +2 -4
- package/source/sdk/env.ts +40 -0
- package/source/sdk/index.ts +6 -0
- package/source/sdk/json.ts +55 -0
- package/source/sdk/plugins/body-parser.plugin.ts +119 -0
- package/source/sdk/plugins/index.ts +2 -0
- package/source/sdk/plugins/security/body-limit.ts +19 -0
- package/source/sdk/plugins/security/cors.ts +44 -0
- package/source/sdk/plugins/security/headers.ts +14 -0
- package/source/sdk/plugins/security/index.ts +13 -0
- package/source/sdk/plugins/security/method-guard.ts +14 -0
- package/source/sdk/plugins/security/rate-limit.ts +42 -0
- package/source/sdk/repositories.ts +14 -0
- package/source/sdk/request.ts +3 -0
- package/source/sdk/responses.ts +45 -0
- package/source/sdk/runtime/bun/server.ts +72 -0
- package/source/sdk/runtime/deno/server.ts +53 -0
- package/source/sdk/runtime/index.ts +47 -0
- package/source/sdk/runtime/node/server.ts +60 -0
- package/source/sdk/runtime/web/server.ts +57 -0
- package/{build/sdk/schemes.d.ts → source/sdk/schemes.ts} +91 -33
- package/source/sdk/services.ts +9 -0
- package/{build/sdk/throwable.d.ts → source/sdk/throwable.ts} +35 -12
- package/source/sdk/utilities/alias-path.util.ts +49 -0
- package/source/sdk/utilities/artifacts.util.ts +62 -0
- package/source/sdk/utilities/callable.util.ts +27 -0
- package/source/sdk/utilities/controller.util.ts +8 -0
- package/source/sdk/utilities/index.ts +7 -0
- package/source/sdk/utilities/json.util.ts +21 -0
- package/source/sdk/utilities/path.util.ts +19 -0
- package/source/sdk/utilities/url.ts +5 -0
- package/source/sdk/utilities/utilities.util.ts +25 -0
- package/source/types/access-guards.ts +4 -0
- package/{build/types/application.d.ts → source/types/application.ts} +23 -7
- package/source/types/artifact.ts +40 -0
- package/source/types/builder.ts +48 -0
- package/source/types/config.ts +7 -0
- package/source/types/controller.ts +34 -0
- package/source/types/contruct.ts +3 -0
- package/source/types/core.ts +28 -0
- package/source/types/data-transfer-object.ts +4 -0
- package/{build/types/directory.d.ts → source/types/directory.ts} +4 -4
- package/source/types/encryption.ts +17 -0
- package/source/types/generic.ts +3 -0
- package/{build/types/hmr.d.ts → source/types/hmr.ts} +19 -5
- package/source/types/http-responses.ts +8 -0
- package/source/types/index.ts +26 -0
- package/source/types/injection.ts +13 -0
- package/source/types/middleware.ts +18 -0
- package/source/types/parseable.ts +7 -0
- package/source/types/plugin.ts +10 -0
- package/source/types/raiton.ts +9 -0
- package/source/types/responses.ts +10 -0
- package/source/types/router.ts +11 -0
- package/source/types/runtime.ts +53 -0
- package/{build/types/scheme.d.ts → source/types/scheme.ts} +33 -8
- package/source/types/server.ts +12 -0
- package/source/types/thread.ts +31 -0
- package/source/types/utilities.ts +4 -0
- package/source/types/values.ts +3 -0
- package/.releaserc.json +0 -45
- package/build/bin/bootstrapper.d.ts +0 -5
- package/build/bin/bootstrapper.mjs +0 -46
- package/build/bin/cli.d.ts +0 -5
- package/build/bin/cli.mjs +0 -6
- package/build/bin/index.d.ts +0 -1
- package/build/chunk-3PWMRP6G.mjs +0 -16
- package/build/chunk-52JR26TI.mjs +0 -29
- package/build/chunk-5LNOA4SK.mjs +0 -16
- package/build/chunk-AUGL35CF.mjs +0 -24
- package/build/chunk-BVILWYAP.mjs +0 -14
- package/build/chunk-BYYJRCB4.mjs +0 -10
- package/build/chunk-FFRJ4AUA.mjs +0 -16
- package/build/chunk-GPJSLV3Q.mjs +0 -50
- package/build/chunk-HVFHDVAH.mjs +0 -20
- package/build/chunk-IOCHNQMF.mjs +0 -13
- package/build/chunk-JATYBWHL.mjs +0 -36
- package/build/chunk-JWNBO7XV.mjs +0 -53
- package/build/chunk-K4IQQ2KF.mjs +0 -55
- package/build/chunk-K4KLOLSO.mjs +0 -645
- package/build/chunk-M2RZZJQR.mjs +0 -27
- package/build/chunk-MLFGBJDV.mjs +0 -12
- package/build/chunk-NB62GSFI.mjs +0 -27
- package/build/chunk-O7R3NJQN.mjs +0 -19
- package/build/chunk-P3IRIFPT.mjs +0 -53
- package/build/chunk-QFSXFOEN.mjs +0 -56
- package/build/chunk-QHCQ4AUA.mjs +0 -14
- package/build/chunk-QI7OFSXB.mjs +0 -37
- package/build/chunk-RVH2YBNU.mjs +0 -111
- package/build/chunk-RXG7754R.mjs +0 -25
- package/build/chunk-S3ONGVNZ.mjs +0 -11
- package/build/chunk-SRR4467I.mjs +0 -29
- package/build/chunk-T6L55AUG.mjs +0 -32
- package/build/chunk-TOJFTPAY.mjs +0 -83
- package/build/chunk-UAPCBU3J.mjs +0 -12
- package/build/chunk-UCHBN3DV.mjs +0 -52
- package/build/chunk-UWM46HLZ.mjs +0 -18
- package/build/chunk-UZFCGVHP.mjs +0 -8
- package/build/chunk-VQINCGLQ.mjs +0 -59
- package/build/chunk-VRL4S7UF.mjs +0 -74
- package/build/chunk-WAWFDMOH.mjs +0 -72
- package/build/chunk-X3JFRRRQ.mjs +0 -45
- package/build/chunk-XFBLELHI.mjs +0 -34
- package/build/chunk-XIGE72LC.mjs +0 -34
- package/build/chunk-XW7EPAD7.mjs +0 -0
- package/build/chunk-YGIZFKLJ.mjs +0 -20
- package/build/chunk-YRVIAORI.mjs +0 -8
- package/build/chunk-YXU5W2CB.mjs +0 -12
- package/build/commands/artifact.command.d.ts +0 -14
- package/build/commands/artifact.command.mjs +0 -59
- package/build/commands/build.command.d.ts +0 -14
- package/build/commands/build.command.mjs +0 -65
- package/build/commands/develop.command.d.ts +0 -13
- package/build/commands/develop.command.mjs +0 -75
- package/build/commands/grafts.command.d.ts +0 -12
- package/build/commands/grafts.command.mjs +0 -58
- package/build/commands/start.command.d.ts +0 -12
- package/build/commands/start.command.mjs +0 -64
- package/build/core/application.d.ts +0 -27
- package/build/core/application.mjs +0 -124
- package/build/core/artifact.d.ts +0 -19
- package/build/core/artifact.mjs +0 -133
- package/build/core/builder.d.ts +0 -35
- package/build/core/builder.mjs +0 -45
- package/build/core/bytes.util.d.ts +0 -6
- package/build/core/bytes.util.mjs +0 -8
- package/build/core/command.d.ts +0 -15
- package/build/core/command.mjs +0 -6
- package/build/core/commands.d.ts +0 -13
- package/build/core/commands.mjs +0 -7
- package/build/core/config.d.ts +0 -10
- package/build/core/config.mjs +0 -7
- package/build/core/context.d.ts +0 -15
- package/build/core/context.mjs +0 -6
- package/build/core/controller/builder.d.ts +0 -10
- package/build/core/controller/builder.mjs +0 -45
- package/build/core/controller/compiler.d.ts +0 -6
- package/build/core/controller/compiler.mjs +0 -45
- package/build/core/controller/index.d.ts +0 -13
- package/build/core/controller/index.mjs +0 -50
- package/build/core/controller/metadata.d.ts +0 -10
- package/build/core/controller/metadata.mjs +0 -6
- package/build/core/directories.d.ts +0 -11
- package/build/core/directories.mjs +0 -8
- package/build/core/hmr.d.ts +0 -22
- package/build/core/hmr.mjs +0 -6
- package/build/core/hooks.d.ts +0 -12
- package/build/core/hooks.mjs +0 -6
- package/build/core/index.d.ts +0 -41
- package/build/core/index.mjs +0 -100
- package/build/core/middleware/compose.d.ts +0 -8
- package/build/core/middleware/compose.mjs +0 -6
- package/build/core/middleware/index.d.ts +0 -6
- package/build/core/middleware/index.mjs +0 -11
- package/build/core/middleware/pipeline.d.ts +0 -14
- package/build/core/middleware/pipeline.mjs +0 -7
- package/build/core/plugins/index.d.ts +0 -14
- package/build/core/plugins/index.mjs +0 -48
- package/build/core/plugins/plugin.d.ts +0 -17
- package/build/core/plugins/plugin.mjs +0 -6
- package/build/core/plugins/scope.d.ts +0 -24
- package/build/core/plugins/scope.mjs +0 -45
- package/build/core/process.util.d.ts +0 -3
- package/build/core/process.util.mjs +0 -6
- package/build/core/raiton.d.ts +0 -20
- package/build/core/raiton.mjs +0 -6
- package/build/core/router/handler.d.ts +0 -10
- package/build/core/router/handler.mjs +0 -45
- package/build/core/router/index.d.ts +0 -12
- package/build/core/router/index.mjs +0 -54
- package/build/core/router/matcher.d.ts +0 -21
- package/build/core/router/matcher.mjs +0 -6
- package/build/core/router/route.d.ts +0 -20
- package/build/core/router/route.mjs +0 -6
- package/build/core/router/router.d.ts +0 -16
- package/build/core/router/router.mjs +0 -8
- package/build/core/thread.d.ts +0 -30
- package/build/core/thread.mjs +0 -45
- package/build/env.d.d.ts +0 -2
- package/build/env.d.mjs +0 -0
- package/build/raiton-0.0.2.tgz +0 -0
- package/build/requirements.d.ts +0 -2
- package/build/requirements.mjs +0 -19
- package/build/sdk/artifacts.d.ts +0 -13
- package/build/sdk/artifacts.mjs +0 -45
- package/build/sdk/constants/decorators.constant.d.ts +0 -11
- package/build/sdk/constants/decorators.constant.mjs +0 -6
- package/build/sdk/constants/index.d.ts +0 -2
- package/build/sdk/constants/index.mjs +0 -11
- package/build/sdk/constants/microservices.constant.d.ts +0 -5
- package/build/sdk/constants/microservices.constant.mjs +0 -6
- package/build/sdk/controllers.d.ts +0 -4
- package/build/sdk/controllers.mjs +0 -6
- package/build/sdk/data-transfer-object.d.ts +0 -7
- package/build/sdk/data-transfer-object.mjs +0 -7
- package/build/sdk/decorators/access-guard.decorator.d.ts +0 -2
- package/build/sdk/decorators/access-guard.decorator.mjs +0 -0
- package/build/sdk/decorators/controllable.d.ts +0 -3
- package/build/sdk/decorators/controllable.mjs +0 -45
- package/build/sdk/decorators/controllers.decorator.d.ts +0 -2
- package/build/sdk/decorators/controllers.decorator.mjs +0 -0
- package/build/sdk/decorators/grafts.decorator.d.ts +0 -2
- package/build/sdk/decorators/grafts.decorator.mjs +0 -0
- package/build/sdk/decorators/index.d.ts +0 -3
- package/build/sdk/decorators/index.mjs +0 -75
- package/build/sdk/decorators/parameters.decorator.d.ts +0 -2
- package/build/sdk/decorators/parameters.decorator.mjs +0 -0
- package/build/sdk/decorators/parametrable.d.ts +0 -9
- package/build/sdk/decorators/parametrable.mjs +0 -57
- package/build/sdk/decorators/payload.decorator.d.ts +0 -2
- package/build/sdk/decorators/payload.decorator.mjs +0 -0
- package/build/sdk/decorators/routable.d.ts +0 -10
- package/build/sdk/decorators/routable.mjs +0 -59
- package/build/sdk/dependency-container.d.ts +0 -19
- package/build/sdk/dependency-container.mjs +0 -46
- package/build/sdk/encryption.d.ts +0 -27
- package/build/sdk/encryption.mjs +0 -141
- package/build/sdk/enums/encrypted.enum.d.ts +0 -15
- package/build/sdk/enums/encrypted.enum.mjs +0 -6
- package/build/sdk/enums/event.message.enum.d.ts +0 -6
- package/build/sdk/enums/event.message.enum.mjs +0 -6
- package/build/sdk/enums/http-parameters.enum.mjs +0 -6
- package/build/sdk/enums/http.enum.d.ts +0 -12
- package/build/sdk/enums/http.enum.mjs +0 -6
- package/build/sdk/enums/index.d.ts +0 -6
- package/build/sdk/enums/index.mjs +0 -27
- package/build/sdk/enums/runtime.enum.mjs +0 -6
- package/build/sdk/enums/timestamp.enum.mjs +0 -6
- package/build/sdk/env.d.ts +0 -6
- package/build/sdk/env.mjs +0 -74
- package/build/sdk/fastify.d.ts +0 -11
- package/build/sdk/fastify.mjs +0 -9
- package/build/sdk/grafts.d.ts +0 -15
- package/build/sdk/grafts.mjs +0 -71
- package/build/sdk/index.d.ts +0 -34
- package/build/sdk/index.mjs +0 -126
- package/build/sdk/json.d.ts +0 -17
- package/build/sdk/json.mjs +0 -87
- package/build/sdk/plugins/body-parser.plugin.d.ts +0 -17
- package/build/sdk/plugins/body-parser.plugin.mjs +0 -7
- package/build/sdk/plugins/index.d.ts +0 -17
- package/build/sdk/plugins/index.mjs +0 -48
- package/build/sdk/plugins/security/body-limit.d.ts +0 -17
- package/build/sdk/plugins/security/body-limit.mjs +0 -45
- package/build/sdk/plugins/security/cors.d.ts +0 -22
- package/build/sdk/plugins/security/cors.mjs +0 -45
- package/build/sdk/plugins/security/headers.d.ts +0 -17
- package/build/sdk/plugins/security/headers.mjs +0 -45
- package/build/sdk/plugins/security/index.d.ts +0 -25
- package/build/sdk/plugins/security/index.mjs +0 -45
- package/build/sdk/plugins/security/method-guard.d.ts +0 -17
- package/build/sdk/plugins/security/method-guard.mjs +0 -45
- package/build/sdk/plugins/security/rate-limit.d.ts +0 -21
- package/build/sdk/plugins/security/rate-limit.mjs +0 -45
- package/build/sdk/repositories.d.ts +0 -7
- package/build/sdk/repositories.mjs +0 -17
- package/build/sdk/request.d.ts +0 -4
- package/build/sdk/request.mjs +0 -6
- package/build/sdk/responses.d.ts +0 -8
- package/build/sdk/responses.mjs +0 -20
- package/build/sdk/routes.d.ts +0 -7
- package/build/sdk/routes.mjs +0 -61
- package/build/sdk/runtime/bun/server.d.ts +0 -6
- package/build/sdk/runtime/bun/server.mjs +0 -6
- package/build/sdk/runtime/deno/server.d.ts +0 -6
- package/build/sdk/runtime/deno/server.mjs +0 -6
- package/build/sdk/runtime/index.d.ts +0 -15
- package/build/sdk/runtime/index.mjs +0 -11
- package/build/sdk/runtime/node/reply.d.ts +0 -2
- package/build/sdk/runtime/node/reply.mjs +0 -0
- package/build/sdk/runtime/node/request.d.ts +0 -2
- package/build/sdk/runtime/node/request.mjs +0 -0
- package/build/sdk/runtime/node/server.d.ts +0 -6
- package/build/sdk/runtime/node/server.mjs +0 -6
- package/build/sdk/runtime/web/server.d.ts +0 -6
- package/build/sdk/runtime/web/server.mjs +0 -6
- package/build/sdk/schemes.mjs +0 -129
- package/build/sdk/services.d.ts +0 -8
- package/build/sdk/services.mjs +0 -10
- package/build/sdk/throwable.mjs +0 -14
- package/build/sdk/utilities/alias-path.util.d.ts +0 -9
- package/build/sdk/utilities/alias-path.util.mjs +0 -6
- package/build/sdk/utilities/artifacts.util.d.ts +0 -3
- package/build/sdk/utilities/artifacts.util.mjs +0 -45
- package/build/sdk/utilities/callable.util.d.ts +0 -3
- package/build/sdk/utilities/callable.util.mjs +0 -6
- package/build/sdk/utilities/controller.util.d.ts +0 -3
- package/build/sdk/utilities/controller.util.mjs +0 -6
- package/build/sdk/utilities/index.d.ts +0 -7
- package/build/sdk/utilities/index.mjs +0 -62
- package/build/sdk/utilities/json.util.d.ts +0 -3
- package/build/sdk/utilities/json.util.mjs +0 -6
- package/build/sdk/utilities/parameters-arguments.util.d.ts +0 -2
- package/build/sdk/utilities/parameters-arguments.util.mjs +0 -0
- package/build/sdk/utilities/url.d.ts +0 -3
- package/build/sdk/utilities/url.mjs +0 -7
- package/build/sdk/utilities/utilities.util.d.ts +0 -6
- package/build/sdk/utilities/utilities.util.mjs +0 -8
- package/build/types/access-guards.d.ts +0 -6
- package/build/types/access-guards.mjs +0 -0
- package/build/types/application.mjs +0 -0
- package/build/types/artifact.d.ts +0 -21
- package/build/types/artifact.mjs +0 -0
- package/build/types/builder.d.ts +0 -32
- package/build/types/builder.mjs +0 -0
- package/build/types/config.d.ts +0 -6
- package/build/types/config.mjs +0 -0
- package/build/types/controller.d.ts +0 -25
- package/build/types/controller.mjs +0 -0
- package/build/types/contruct.d.ts +0 -3
- package/build/types/contruct.mjs +0 -0
- package/build/types/core.d.ts +0 -15
- package/build/types/core.mjs +0 -0
- package/build/types/data-transfer-object.d.ts +0 -5
- package/build/types/data-transfer-object.mjs +0 -0
- package/build/types/dependency-container.d.ts +0 -20
- package/build/types/dependency-container.mjs +0 -0
- package/build/types/directory.mjs +0 -0
- package/build/types/encryption.d.ts +0 -16
- package/build/types/encryption.mjs +0 -0
- package/build/types/generic.d.ts +0 -4
- package/build/types/generic.mjs +0 -0
- package/build/types/hmr.mjs +0 -0
- package/build/types/http-responses.d.ts +0 -10
- package/build/types/http-responses.mjs +0 -0
- package/build/types/index.d.ts +0 -45
- package/build/types/index.mjs +0 -0
- package/build/types/middleware.d.ts +0 -12
- package/build/types/middleware.mjs +0 -0
- package/build/types/parameters.d.ts +0 -19
- package/build/types/parameters.mjs +0 -0
- package/build/types/parseable.d.ts +0 -5
- package/build/types/parseable.mjs +0 -0
- package/build/types/payload.d.ts +0 -6
- package/build/types/payload.mjs +0 -0
- package/build/types/plugin.d.ts +0 -20
- package/build/types/plugin.mjs +0 -0
- package/build/types/raiton.d.ts +0 -12
- package/build/types/raiton.mjs +0 -0
- package/build/types/repositories.d.ts +0 -8
- package/build/types/repositories.mjs +0 -0
- package/build/types/router.d.ts +0 -14
- package/build/types/router.mjs +0 -0
- package/build/types/runtime.d.ts +0 -37
- package/build/types/runtime.mjs +0 -0
- package/build/types/scheme.mjs +0 -0
- package/build/types/server.d.ts +0 -57
- package/build/types/server.mjs +0 -0
- package/build/types/services.d.ts +0 -8
- package/build/types/services.mjs +0 -0
- package/build/types/thread.d.ts +0 -24
- package/build/types/thread.mjs +0 -0
- package/build/types/utilities.d.ts +0 -6
- package/build/types/utilities.mjs +0 -0
- package/build/types/values.d.ts +0 -4
- package/build/types/values.mjs +0 -0
- /package/{build/chunk-4OWCGDUD.mjs → source/sdk/runtime/node/reply.ts} +0 -0
- /package/{build/chunk-DIWD7ZCJ.mjs → source/sdk/runtime/node/request.ts} +0 -0
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import "../chunk-K4KLOLSO.mjs";
|
|
2
|
-
import "../chunk-RXG7754R.mjs";
|
|
3
|
-
import "../chunk-IOCHNQMF.mjs";
|
|
4
|
-
import "../chunk-M2RZZJQR.mjs";
|
|
5
|
-
import "../chunk-RVH2YBNU.mjs";
|
|
6
|
-
import "../chunk-MLFGBJDV.mjs";
|
|
7
|
-
import "../chunk-GPJSLV3Q.mjs";
|
|
8
|
-
import "../chunk-QFSXFOEN.mjs";
|
|
9
|
-
import "../chunk-JWNBO7XV.mjs";
|
|
10
|
-
import "../chunk-K4IQQ2KF.mjs";
|
|
11
|
-
import "../chunk-UCHBN3DV.mjs";
|
|
12
|
-
import "../chunk-VRL4S7UF.mjs";
|
|
13
|
-
import "../chunk-XW7EPAD7.mjs";
|
|
14
|
-
import "../chunk-QHCQ4AUA.mjs";
|
|
15
|
-
import "../chunk-YRVIAORI.mjs";
|
|
16
|
-
import "../chunk-UZFCGVHP.mjs";
|
|
17
|
-
import "../chunk-XIGE72LC.mjs";
|
|
18
|
-
import "../chunk-X3JFRRRQ.mjs";
|
|
19
|
-
import "../chunk-P3IRIFPT.mjs";
|
|
20
|
-
import "../chunk-S3ONGVNZ.mjs";
|
|
21
|
-
import "../chunk-DIWD7ZCJ.mjs";
|
|
22
|
-
import "../chunk-52JR26TI.mjs";
|
|
23
|
-
import "../chunk-JATYBWHL.mjs";
|
|
24
|
-
import "../chunk-VQINCGLQ.mjs";
|
|
25
|
-
import "../chunk-4OWCGDUD.mjs";
|
|
26
|
-
import "../chunk-YXU5W2CB.mjs";
|
|
27
|
-
import "../chunk-UAPCBU3J.mjs";
|
|
28
|
-
import "../chunk-O7R3NJQN.mjs";
|
|
29
|
-
import "../chunk-BYYJRCB4.mjs";
|
|
30
|
-
import "../chunk-FFRJ4AUA.mjs";
|
|
31
|
-
import "../chunk-3PWMRP6G.mjs";
|
|
32
|
-
import "../chunk-T6L55AUG.mjs";
|
|
33
|
-
import "../chunk-QI7OFSXB.mjs";
|
|
34
|
-
import "../chunk-TOJFTPAY.mjs";
|
|
35
|
-
import "../chunk-NB62GSFI.mjs";
|
|
36
|
-
import "../chunk-5LNOA4SK.mjs";
|
|
37
|
-
import {
|
|
38
|
-
Raiton
|
|
39
|
-
} from "../chunk-YGIZFKLJ.mjs";
|
|
40
|
-
import "../chunk-UWM46HLZ.mjs";
|
|
41
|
-
import "../chunk-XFBLELHI.mjs";
|
|
42
|
-
import {
|
|
43
|
-
RaitonCommand
|
|
44
|
-
} from "../chunk-HVFHDVAH.mjs";
|
|
45
|
-
|
|
46
|
-
// source/commands/start.command.ts
|
|
47
|
-
import { spawn } from "child_process";
|
|
48
|
-
var StartCommand = class extends RaitonCommand {
|
|
49
|
-
name = "start";
|
|
50
|
-
description = "Run the application in production mode";
|
|
51
|
-
child = null;
|
|
52
|
-
register() {
|
|
53
|
-
this.cli.command(this.name).alias("run").description("Start the application in production mode").action(this.run.bind(this));
|
|
54
|
-
}
|
|
55
|
-
async run() {
|
|
56
|
-
this.child = spawn(Raiton.identifier, ["build", "--bootstrap"], {
|
|
57
|
-
stdio: "inherit",
|
|
58
|
-
cwd: this.workdir
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
export {
|
|
63
|
-
StartCommand as default
|
|
64
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ApplicationInterface, ApplicationConfig } from '../types/application.js';
|
|
2
|
-
import { HttpMethod } from '../sdk/enums/http.enum.js';
|
|
3
|
-
import { RouteHandler } from '../types/router.js';
|
|
4
|
-
import './context.js';
|
|
5
|
-
import '../types/runtime.js';
|
|
6
|
-
import '../sdk/enums/runtime.enum.js';
|
|
7
|
-
|
|
8
|
-
declare class Application implements ApplicationInterface {
|
|
9
|
-
readonly config: ApplicationConfig;
|
|
10
|
-
private root;
|
|
11
|
-
constructor(config: ApplicationConfig);
|
|
12
|
-
get hostname(): string;
|
|
13
|
-
register(plugin: any): this;
|
|
14
|
-
use(mw: any): this;
|
|
15
|
-
route(method: HttpMethod, path: string, handler: RouteHandler, version?: string): this;
|
|
16
|
-
get(path: string, handler: RouteHandler, version?: string): this;
|
|
17
|
-
post(path: string, handler: RouteHandler, version?: string): this;
|
|
18
|
-
patch(path: string, handler: RouteHandler, version?: string): this;
|
|
19
|
-
put(path: string, handler: RouteHandler, version?: string): this;
|
|
20
|
-
delete(path: string, handler: RouteHandler, version?: string): this;
|
|
21
|
-
options(path: string, handler: RouteHandler, version?: string): this;
|
|
22
|
-
head(path: string, handler: RouteHandler, version?: string): this;
|
|
23
|
-
trace(path: string, handler: RouteHandler, version?: string): this;
|
|
24
|
-
handle(req: any, reply: any): Promise<any>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { Application };
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
RequestContext
|
|
3
|
-
} from "../chunk-SRR4467I.mjs";
|
|
4
|
-
import {
|
|
5
|
-
PluginScope
|
|
6
|
-
} from "../chunk-K4KLOLSO.mjs";
|
|
7
|
-
import "../chunk-RXG7754R.mjs";
|
|
8
|
-
import "../chunk-IOCHNQMF.mjs";
|
|
9
|
-
import "../chunk-M2RZZJQR.mjs";
|
|
10
|
-
import "../chunk-RVH2YBNU.mjs";
|
|
11
|
-
import "../chunk-MLFGBJDV.mjs";
|
|
12
|
-
import "../chunk-GPJSLV3Q.mjs";
|
|
13
|
-
import "../chunk-QFSXFOEN.mjs";
|
|
14
|
-
import "../chunk-JWNBO7XV.mjs";
|
|
15
|
-
import "../chunk-K4IQQ2KF.mjs";
|
|
16
|
-
import "../chunk-UCHBN3DV.mjs";
|
|
17
|
-
import "../chunk-VRL4S7UF.mjs";
|
|
18
|
-
import "../chunk-XW7EPAD7.mjs";
|
|
19
|
-
import "../chunk-QHCQ4AUA.mjs";
|
|
20
|
-
import "../chunk-YRVIAORI.mjs";
|
|
21
|
-
import "../chunk-UZFCGVHP.mjs";
|
|
22
|
-
import "../chunk-XIGE72LC.mjs";
|
|
23
|
-
import "../chunk-X3JFRRRQ.mjs";
|
|
24
|
-
import "../chunk-P3IRIFPT.mjs";
|
|
25
|
-
import "../chunk-S3ONGVNZ.mjs";
|
|
26
|
-
import "../chunk-DIWD7ZCJ.mjs";
|
|
27
|
-
import "../chunk-52JR26TI.mjs";
|
|
28
|
-
import "../chunk-JATYBWHL.mjs";
|
|
29
|
-
import "../chunk-VQINCGLQ.mjs";
|
|
30
|
-
import "../chunk-4OWCGDUD.mjs";
|
|
31
|
-
import "../chunk-YXU5W2CB.mjs";
|
|
32
|
-
import "../chunk-UAPCBU3J.mjs";
|
|
33
|
-
import "../chunk-O7R3NJQN.mjs";
|
|
34
|
-
import "../chunk-BYYJRCB4.mjs";
|
|
35
|
-
import "../chunk-FFRJ4AUA.mjs";
|
|
36
|
-
import "../chunk-3PWMRP6G.mjs";
|
|
37
|
-
import "../chunk-T6L55AUG.mjs";
|
|
38
|
-
import "../chunk-QI7OFSXB.mjs";
|
|
39
|
-
import "../chunk-TOJFTPAY.mjs";
|
|
40
|
-
import "../chunk-NB62GSFI.mjs";
|
|
41
|
-
import "../chunk-5LNOA4SK.mjs";
|
|
42
|
-
import "../chunk-YGIZFKLJ.mjs";
|
|
43
|
-
import "../chunk-UWM46HLZ.mjs";
|
|
44
|
-
import "../chunk-XFBLELHI.mjs";
|
|
45
|
-
import "../chunk-HVFHDVAH.mjs";
|
|
46
|
-
|
|
47
|
-
// source/core/application.ts
|
|
48
|
-
var Application = class {
|
|
49
|
-
constructor(config) {
|
|
50
|
-
this.config = config;
|
|
51
|
-
this.root = new PluginScope();
|
|
52
|
-
}
|
|
53
|
-
root;
|
|
54
|
-
get hostname() {
|
|
55
|
-
return `${this.config.protocole || "http"}://${this.config.hostname || "localhost"}${this.config.port ? `:${this.config.port}` : ""}${this.config.pathname || "/"}`;
|
|
56
|
-
}
|
|
57
|
-
// public setOption<K extends keyof ApplicationConfig>(key: K, value: ApplicationConfig[K]): this {
|
|
58
|
-
// this.config[key] = value;
|
|
59
|
-
// return this;
|
|
60
|
-
// }
|
|
61
|
-
//
|
|
62
|
-
// public setOptions(options: ApplicationConfig): this {
|
|
63
|
-
// Object.assign(this.config, options);
|
|
64
|
-
// return this;
|
|
65
|
-
// }
|
|
66
|
-
register(plugin) {
|
|
67
|
-
this.root.register(plugin);
|
|
68
|
-
return this;
|
|
69
|
-
}
|
|
70
|
-
use(mw) {
|
|
71
|
-
this.root.use(mw);
|
|
72
|
-
return this;
|
|
73
|
-
}
|
|
74
|
-
route(method, path, handler, version) {
|
|
75
|
-
this.root.route(method, path, handler, version);
|
|
76
|
-
return this;
|
|
77
|
-
}
|
|
78
|
-
get(path, handler, version) {
|
|
79
|
-
return this.route("GET" /* GET */, path, handler, version);
|
|
80
|
-
}
|
|
81
|
-
post(path, handler, version) {
|
|
82
|
-
return this.route("POST" /* POST */, path, handler, version);
|
|
83
|
-
}
|
|
84
|
-
patch(path, handler, version) {
|
|
85
|
-
return this.route("PATCH" /* PATCH */, path, handler, version);
|
|
86
|
-
}
|
|
87
|
-
put(path, handler, version) {
|
|
88
|
-
return this.route("PUT" /* PUT */, path, handler, version);
|
|
89
|
-
}
|
|
90
|
-
delete(path, handler, version) {
|
|
91
|
-
return this.route("DELETE" /* DELETE */, path, handler, version);
|
|
92
|
-
}
|
|
93
|
-
options(path, handler, version) {
|
|
94
|
-
return this.route("OPTIONS" /* OPTIONS */, path, handler, version);
|
|
95
|
-
}
|
|
96
|
-
head(path, handler, version) {
|
|
97
|
-
return this.route("HEAD" /* HEAD */, path, handler, version);
|
|
98
|
-
}
|
|
99
|
-
trace(path, handler, version) {
|
|
100
|
-
return this.route("TRACE" /* TRACE */, path, handler, version);
|
|
101
|
-
}
|
|
102
|
-
async handle(req, reply) {
|
|
103
|
-
const ctx = new RequestContext(req, reply);
|
|
104
|
-
await this.root.hooks.run("onRequest", ctx);
|
|
105
|
-
const route = this.root.router.match(
|
|
106
|
-
req.method,
|
|
107
|
-
new URL(req.url, this.hostname).pathname
|
|
108
|
-
);
|
|
109
|
-
if (!route) {
|
|
110
|
-
reply.status(404);
|
|
111
|
-
return reply.send({ error: false, statusCode: 404 });
|
|
112
|
-
}
|
|
113
|
-
const pipeline = this.root.middleware.clone();
|
|
114
|
-
pipeline.use(async (ctx2) => {
|
|
115
|
-
ctx2.params = route.parameters;
|
|
116
|
-
ctx2.reply.send(await route.handler(ctx2));
|
|
117
|
-
});
|
|
118
|
-
await pipeline.run(ctx);
|
|
119
|
-
await this.root.hooks.run("onResponse", ctx);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
export {
|
|
123
|
-
Application
|
|
124
|
-
};
|
package/build/core/artifact.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ArtifactInterface, ArtifactOptions } from '../types/artifact.js';
|
|
2
|
-
|
|
3
|
-
declare class Artifact implements ArtifactInterface {
|
|
4
|
-
readonly options: ArtifactOptions;
|
|
5
|
-
readonly directory: string;
|
|
6
|
-
readonly file: string;
|
|
7
|
-
readonly workdir: string;
|
|
8
|
-
protected _files: string[];
|
|
9
|
-
constructor(options: ArtifactOptions);
|
|
10
|
-
get files(): string[];
|
|
11
|
-
get extensions(): string[];
|
|
12
|
-
/**
|
|
13
|
-
* Finds all files with end 'artifact.EXT'
|
|
14
|
-
*/
|
|
15
|
-
scan(): string[];
|
|
16
|
-
generate(): void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { Artifact };
|
package/build/core/artifact.mjs
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ArtifactFactory
|
|
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 {
|
|
27
|
-
Throwable
|
|
28
|
-
} from "../chunk-VQINCGLQ.mjs";
|
|
29
|
-
import "../chunk-4OWCGDUD.mjs";
|
|
30
|
-
import "../chunk-YXU5W2CB.mjs";
|
|
31
|
-
import "../chunk-UAPCBU3J.mjs";
|
|
32
|
-
import "../chunk-O7R3NJQN.mjs";
|
|
33
|
-
import "../chunk-BYYJRCB4.mjs";
|
|
34
|
-
import "../chunk-FFRJ4AUA.mjs";
|
|
35
|
-
import "../chunk-3PWMRP6G.mjs";
|
|
36
|
-
import {
|
|
37
|
-
RaitonDirectories
|
|
38
|
-
} from "../chunk-T6L55AUG.mjs";
|
|
39
|
-
import "../chunk-QI7OFSXB.mjs";
|
|
40
|
-
import "../chunk-TOJFTPAY.mjs";
|
|
41
|
-
import "../chunk-NB62GSFI.mjs";
|
|
42
|
-
import "../chunk-5LNOA4SK.mjs";
|
|
43
|
-
import {
|
|
44
|
-
Raiton
|
|
45
|
-
} from "../chunk-YGIZFKLJ.mjs";
|
|
46
|
-
import "../chunk-UWM46HLZ.mjs";
|
|
47
|
-
import "../chunk-XFBLELHI.mjs";
|
|
48
|
-
import "../chunk-HVFHDVAH.mjs";
|
|
49
|
-
|
|
50
|
-
// source/core/artifact.ts
|
|
51
|
-
import path from "path";
|
|
52
|
-
import fs from "fs";
|
|
53
|
-
import { LBadge, Logger } from "@protorians/logger";
|
|
54
|
-
var Artifact = class {
|
|
55
|
-
constructor(options) {
|
|
56
|
-
this.options = options;
|
|
57
|
-
this.options.verbose = typeof options.verbose === "undefined" ? false : options.verbose;
|
|
58
|
-
if (!Raiton.thread.builder?.source)
|
|
59
|
-
throw new Throwable("Artifact need project source");
|
|
60
|
-
this.directory = RaitonDirectories.artifacts(Raiton.thread.builder?.workdir);
|
|
61
|
-
this.workdir = Raiton.thread.builder.source;
|
|
62
|
-
this.file = path.join(this.directory, `${this.options.artifact}.d.ts`);
|
|
63
|
-
}
|
|
64
|
-
directory;
|
|
65
|
-
file;
|
|
66
|
-
workdir;
|
|
67
|
-
_files = [];
|
|
68
|
-
get files() {
|
|
69
|
-
return this._files;
|
|
70
|
-
}
|
|
71
|
-
get extensions() {
|
|
72
|
-
return [
|
|
73
|
-
`${this.options.artifact}.ts`,
|
|
74
|
-
`${this.options.artifact}.js`,
|
|
75
|
-
`${this.options.artifact}.mjs`,
|
|
76
|
-
`${this.options.artifact}.cjs`
|
|
77
|
-
];
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Finds all files with end 'artifact.EXT'
|
|
81
|
-
*/
|
|
82
|
-
scan() {
|
|
83
|
-
this._files = [];
|
|
84
|
-
fs.readdirSync(this.workdir, { recursive: true }).forEach((f) => {
|
|
85
|
-
this._files = [
|
|
86
|
-
...this._files,
|
|
87
|
-
...this.extensions.filter((ext) => f.toString().endsWith(ext))
|
|
88
|
-
];
|
|
89
|
-
});
|
|
90
|
-
return this._files;
|
|
91
|
-
}
|
|
92
|
-
generate() {
|
|
93
|
-
try {
|
|
94
|
-
let mappings = "";
|
|
95
|
-
for (const file of this._files) {
|
|
96
|
-
const filename = path.join(this.workdir, file);
|
|
97
|
-
const content2 = fs.readFileSync(filename, "utf-8");
|
|
98
|
-
const match = content2.match(this.options.decorator?.syntax);
|
|
99
|
-
if (!match) continue;
|
|
100
|
-
let name = match[3] || match[1] || "";
|
|
101
|
-
if (!name) {
|
|
102
|
-
const classMatch = content2.match(/export\s+default\s+class\s+([A-Za-z0-9_]+)/);
|
|
103
|
-
name = classMatch?.[1] || path.parse(filename).name;
|
|
104
|
-
}
|
|
105
|
-
mappings += ` ${name}: InstanceType<typeof import("@/${file}").default>;
|
|
106
|
-
`;
|
|
107
|
-
if (this.options.verbose) Logger.info(LBadge.debug(name), `artifact detected`);
|
|
108
|
-
ArtifactFactory.add(
|
|
109
|
-
this.options.artifact,
|
|
110
|
-
{
|
|
111
|
-
file,
|
|
112
|
-
dir: this.workdir,
|
|
113
|
-
relative: file,
|
|
114
|
-
absolute: filename
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
const content = `// AUTO-GENERATED FILE \u2014 DO NOT EDIT MANUALLY
|
|
119
|
-
declare global {
|
|
120
|
-
interface ${this.options.provider} {
|
|
121
|
-
${mappings} }
|
|
122
|
-
}
|
|
123
|
-
export {};`;
|
|
124
|
-
fs.writeFileSync(this.file, content, "utf-8");
|
|
125
|
-
if (!ArtifactFactory.save(this.options.artifact)) Logger.error(`Failed to save artifacts for ${this.options.artifact}`);
|
|
126
|
-
} catch (e) {
|
|
127
|
-
Logger.error(`Failed to resolve artifacts for ${this.options.artifact}`, e.message ?? e);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
export {
|
|
132
|
-
Artifact
|
|
133
|
-
};
|
package/build/core/builder.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BuildContext, BuildOptions, Plugin } from 'esbuild';
|
|
2
|
-
import { BuilderInterface, BuilderConfig, BuilderBootCallable } from '../types/builder.js';
|
|
3
|
-
import { HmrInterface } from '../types/hmr.js';
|
|
4
|
-
|
|
5
|
-
declare class RaitonBuilder implements BuilderInterface {
|
|
6
|
-
readonly workdir: string;
|
|
7
|
-
readonly options: BuilderConfig;
|
|
8
|
-
protected _context: BuildContext<BuildOptions> | null;
|
|
9
|
-
protected _source: string | null;
|
|
10
|
-
protected _out: string | null;
|
|
11
|
-
protected _bootstrapper: string | null;
|
|
12
|
-
protected _bootstrapperIndex: string | null;
|
|
13
|
-
protected config: BuildOptions | null;
|
|
14
|
-
protected _compiledVersionNumber: number;
|
|
15
|
-
protected _importPattern: RegExp;
|
|
16
|
-
readonly hmr: HmrInterface;
|
|
17
|
-
constructor(workdir: string, options?: BuilderConfig);
|
|
18
|
-
get context(): BuildContext<BuildOptions> | null;
|
|
19
|
-
get source(): string | null;
|
|
20
|
-
get out(): string | null;
|
|
21
|
-
get bootstrapper(): string | null;
|
|
22
|
-
get bootstrapperIndex(): string | null;
|
|
23
|
-
get baseConfig(): BuildOptions;
|
|
24
|
-
protected generateUniqueModuleUrl(filename: string): string;
|
|
25
|
-
protected refreshFileCached(filename: string): Promise<any>;
|
|
26
|
-
protected fixImports(pathname: string): Promise<void>;
|
|
27
|
-
protected watcher(): Plugin;
|
|
28
|
-
protected developmentBuild(callable?: BuilderBootCallable): Promise<this>;
|
|
29
|
-
protected productionBuild(callable?: BuilderBootCallable): Promise<this>;
|
|
30
|
-
prepare(): Promise<this>;
|
|
31
|
-
boot(): Promise<any>;
|
|
32
|
-
start(callable?: BuilderBootCallable): Promise<this>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { RaitonBuilder };
|
package/build/core/builder.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
RaitonBuilder
|
|
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
|
-
RaitonBuilder
|
|
45
|
-
};
|
package/build/core/command.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
|
|
3
|
-
declare class RaitonCommand {
|
|
4
|
-
readonly cli: Command;
|
|
5
|
-
readonly workdir: string;
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly description?: string;
|
|
8
|
-
readonly version: string;
|
|
9
|
-
readonly enabled: boolean;
|
|
10
|
-
constructor(cli: Command, workdir: string);
|
|
11
|
-
construct(): void;
|
|
12
|
-
register(): void;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { RaitonCommand };
|
package/build/core/command.mjs
DELETED
package/build/core/commands.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
import { RaitonCommand } from './command.js';
|
|
3
|
-
|
|
4
|
-
declare class RaitonCommands {
|
|
5
|
-
readonly cli: Command;
|
|
6
|
-
readonly appdir: string;
|
|
7
|
-
readonly workdir: string;
|
|
8
|
-
readonly stack: Set<RaitonCommand>;
|
|
9
|
-
constructor(cli: Command, appdir: string, workdir: string);
|
|
10
|
-
harvest(): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { RaitonCommands };
|
package/build/core/commands.mjs
DELETED
package/build/core/config.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Configurable } from '../types/config.js';
|
|
2
|
-
|
|
3
|
-
declare class RaitonConfig {
|
|
4
|
-
static readonly current: Map<keyof Configurable, Configurable[keyof Configurable]>;
|
|
5
|
-
static get(key: keyof Configurable): Configurable[keyof Configurable];
|
|
6
|
-
static defaultConfig: Configurable;
|
|
7
|
-
static load(workdir: string): Map<keyof Configurable, string>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { RaitonConfig };
|
package/build/core/config.mjs
DELETED
package/build/core/context.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RuntimeRequest, RuntimeReply } from '../types/runtime.js';
|
|
2
|
-
import '../sdk/enums/runtime.enum.js';
|
|
3
|
-
|
|
4
|
-
declare class RequestContext {
|
|
5
|
-
req: RuntimeRequest;
|
|
6
|
-
reply: RuntimeReply;
|
|
7
|
-
state: Record<string, any>;
|
|
8
|
-
private decorations;
|
|
9
|
-
constructor(req: RuntimeRequest, reply: RuntimeReply);
|
|
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 { RequestContext };
|
package/build/core/context.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BuilderHMRDeclaration } from '../../types/builder.js';
|
|
2
|
-
import 'esbuild';
|
|
3
|
-
import '../../types/hmr.js';
|
|
4
|
-
|
|
5
|
-
declare class ControllerBuilder {
|
|
6
|
-
static scan(workdir: string): Promise<any[]>;
|
|
7
|
-
static build<T>({ filename, version, timestamp }: BuilderHMRDeclaration): Promise<T | undefined>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { ControllerBuilder };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ControllerBuilder
|
|
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
|
-
ControllerBuilder
|
|
45
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
compileController
|
|
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
|
-
compileController
|
|
45
|
-
};
|