@forinda/kickjs 10.14.1 → 10.15.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.
- package/dist/{adapter-DL9JPcvC.d.mts → adapter-D_nUmKEQ.d.mts} +175 -77
- package/dist/adapter-D_nUmKEQ.d.mts.map +1 -0
- package/dist/{allowed-hosts-BpKwviq5.d.mts → allowed-hosts-BQlQFt-1.d.mts} +7 -4
- package/dist/allowed-hosts-BQlQFt-1.d.mts.map +1 -0
- package/dist/{app-module-Dk2Wenqx.d.mts → app-module-BmViGLgj.d.mts} +7 -13
- package/dist/app-module-BmViGLgj.d.mts.map +1 -0
- package/dist/application-B16ltRnC.mjs +14 -0
- package/dist/application-B16ltRnC.mjs.map +1 -0
- package/dist/{application-D921r4MW.d.mts → application-ClCq0AgY.d.mts} +200 -115
- package/dist/application-ClCq0AgY.d.mts.map +1 -0
- package/dist/{body-policy-CwgUYBw7.mjs → body-policy-D8LveWmO.mjs} +2 -2
- package/dist/{body-policy-CwgUYBw7.mjs.map → body-policy-D8LveWmO.mjs.map} +1 -1
- package/dist/{bootstrap-CY0v5VVF.mjs → bootstrap-C5NvsxHQ.mjs} +3 -3
- package/dist/bootstrap-C5NvsxHQ.mjs.map +1 -0
- package/dist/{bounded-counters-CF8EnVUm.mjs → bounded-counters-BtvB2daV.mjs} +2 -2
- package/dist/{bounded-counters-CF8EnVUm.mjs.map → bounded-counters-BtvB2daV.mjs.map} +1 -1
- package/dist/{breach-padding-FBVGmcBb.d.mts → breach-padding-BUuc21Eu.d.mts} +7 -4
- package/dist/breach-padding-BUuc21Eu.d.mts.map +1 -0
- package/dist/{cache-CdRHSXow.d.mts → cache-ByX5O2Hp.d.mts} +26 -3
- package/dist/cache-ByX5O2Hp.d.mts.map +1 -0
- package/dist/{client-ip-CpEuptqr.mjs → client-ip-CWvyHmqt.mjs} +2 -2
- package/dist/{client-ip-CpEuptqr.mjs.map → client-ip-CWvyHmqt.mjs.map} +1 -1
- package/dist/config/index.d.mts +6 -1
- package/dist/config/index.mjs +2 -2
- package/dist/{config-Djisd0f5.mjs → config-BIQoDNil.mjs} +3 -3
- package/dist/{config-Djisd0f5.mjs.map → config-BIQoDNil.mjs.map} +1 -1
- package/dist/{connect-BlIamapT.d.mts → connect-DamOelO8.d.mts} +1 -3
- package/dist/connect-DamOelO8.d.mts.map +1 -0
- package/dist/container-DtdUiRwr.d.mts +3 -0
- package/dist/{context-Cgr5dtIZ.mjs → context-BzFNflxV.mjs} +3 -3
- package/dist/context-BzFNflxV.mjs.map +1 -0
- package/dist/{context-errors-6x0bjldv.mjs → context-errors-BmaG4vwd.mjs} +2 -2
- package/dist/context-errors-BmaG4vwd.mjs.map +1 -0
- package/dist/{contributor-runner-DQ2fXJ29.mjs → contributor-runner-BnJzu2GI.mjs} +3 -3
- package/dist/contributor-runner-BnJzu2GI.mjs.map +1 -0
- package/dist/core/adapter.d.mts +1 -1
- package/dist/core/adapter.mjs +1 -1
- package/dist/core/app-module.d.mts +1 -1
- package/dist/core/app-module.mjs +1 -1
- package/dist/core/cache.d.mts +1 -1
- package/dist/core/cache.mjs +1 -1
- package/dist/core/cache.mjs.map +1 -1
- package/dist/core/container.d.mts +1 -1
- package/dist/core/container.mjs +2 -2
- package/dist/core/cron.d.mts +1 -1
- package/dist/core/cron.mjs +2 -2
- package/dist/core/cron.mjs.map +1 -1
- package/dist/core/decorators.d.mts +1 -1
- package/dist/core/decorators.mjs +2 -2
- package/dist/core/decorators.mjs.map +1 -1
- package/dist/core/errors.d.mts +1 -1
- package/dist/core/errors.mjs +1 -1
- package/dist/core/errors.mjs.map +1 -1
- package/dist/core/interfaces.d.mts +1 -1
- package/dist/core/interfaces.mjs +1 -1
- package/dist/core/interfaces.mjs.map +1 -1
- package/dist/core/logger.d.mts +1 -1
- package/dist/core/logger.mjs +1 -1
- package/dist/core/logger.mjs.map +1 -1
- package/dist/core/path.d.mts +1 -1
- package/dist/core/path.mjs +1 -1
- package/dist/core/path.mjs.map +1 -1
- package/dist/core/plugin.d.mts +1 -1
- package/dist/core/plugin.mjs +1 -1
- package/dist/core/reactivity.d.mts +1 -1
- package/dist/core/reactivity.mjs +2 -2
- package/dist/core/reactivity.mjs.map +1 -1
- package/dist/core-Dqzah_BX.mjs +12 -0
- package/dist/core-Dqzah_BX.mjs.map +1 -0
- package/dist/{cors-BlR_b0Qb.d.mts → cors-u1OwTxQ8.d.mts} +7 -4
- package/dist/cors-u1OwTxQ8.d.mts.map +1 -0
- package/dist/{cron-BTGytNg-.d.mts → cron-Bxm2MY8u.d.mts} +10 -3
- package/dist/cron-Bxm2MY8u.d.mts.map +1 -0
- package/dist/{csrf-DOAaYozG.d.mts → csrf-8-Jknvmc.d.mts} +14 -6
- package/dist/csrf-8-Jknvmc.d.mts.map +1 -0
- package/dist/decorate-C3to8dG-.mjs +13 -0
- package/dist/decorate-C3to8dG-.mjs.map +1 -0
- package/dist/{decorators-DxNb5mWw.d.mts → decorators-Bflncyz6.d.mts} +122 -10
- package/dist/decorators-Bflncyz6.d.mts.map +1 -0
- package/dist/{define-adapter-CZCFyDp5.mjs → define-adapter-DCjNTP6m.mjs} +2 -2
- package/dist/define-adapter-DCjNTP6m.mjs.map +1 -0
- package/dist/{di-hooks-ZfnBZMDp.mjs → di-hooks-DTDy7ABs.mjs} +2 -2
- package/dist/di-hooks-DTDy7ABs.mjs.map +1 -0
- package/dist/{disposables-DFZXQuVg.mjs → disposables-BC291ukb.mjs} +1 -1
- package/dist/{driver-D_bUSW7N.mjs → driver-D59oWDec.mjs} +3 -3
- package/dist/{driver-D_bUSW7N.mjs.map → driver-D59oWDec.mjs.map} +1 -1
- package/dist/{error-handler-D7DLWe1Q.d.mts → error-handler-gZLQFHeE.d.mts} +2 -4
- package/dist/error-handler-gZLQFHeE.d.mts.map +1 -0
- package/dist/{errors-By6UueCm.d.mts → errors-CppqPy0A.d.mts} +2 -3
- package/dist/{errors-By6UueCm.d.mts.map → errors-CppqPy0A.d.mts.map} +1 -1
- package/dist/{express-31o4SoCz.mjs → express-JAXx9MK0.mjs} +3 -3
- package/dist/{express-31o4SoCz.mjs.map → express-JAXx9MK0.mjs.map} +1 -1
- package/dist/{express-lazy-GCgYyykt.mjs → express-lazy-jIFBeDpY.mjs} +3 -3
- package/dist/{express-lazy-GCgYyykt.mjs.map → express-lazy-jIFBeDpY.mjs.map} +1 -1
- package/dist/{handler-Bvs0gx1o.mjs → handler-C8iAD_xz.mjs} +3 -3
- package/dist/{handler-Bvs0gx1o.mjs.map → handler-C8iAD_xz.mjs.map} +1 -1
- package/dist/{helmet-BVuVBl-D.d.mts → helmet-1H0LKr6y.d.mts} +7 -4
- package/dist/helmet-1H0LKr6y.d.mts.map +1 -0
- package/dist/{host-CKz7eCtO.mjs → host-Crxmi91N.mjs} +2 -2
- package/dist/{host-CKz7eCtO.mjs.map → host-Crxmi91N.mjs.map} +1 -1
- package/dist/http/application.d.mts +1 -1
- package/dist/http/application.mjs +2 -2
- package/dist/http/bootstrap.d.mts +1 -1
- package/dist/http/bootstrap.mjs +2 -2
- package/dist/http/context.d.mts +2 -2
- package/dist/http/context.mjs +2 -2
- package/dist/http/middleware/allowed-hosts.d.mts +1 -1
- package/dist/http/middleware/allowed-hosts.mjs +2 -2
- package/dist/http/middleware/allowed-hosts.mjs.map +1 -1
- package/dist/http/middleware/breach-padding.d.mts +1 -1
- package/dist/http/middleware/breach-padding.mjs +1 -1
- package/dist/http/middleware/breach-padding.mjs.map +1 -1
- package/dist/http/middleware/cors.d.mts +1 -1
- package/dist/http/middleware/cors.mjs +1 -1
- package/dist/http/middleware/cors.mjs.map +1 -1
- package/dist/http/middleware/csrf.d.mts +1 -1
- package/dist/http/middleware/csrf.mjs +2 -2
- package/dist/http/middleware/csrf.mjs.map +1 -1
- package/dist/http/middleware/error-handler.d.mts +1 -1
- package/dist/http/middleware/error-handler.mjs +2 -2
- package/dist/http/middleware/error-handler.mjs.map +1 -1
- package/dist/http/middleware/helmet.d.mts +1 -1
- package/dist/http/middleware/helmet.mjs +1 -1
- package/dist/http/middleware/helmet.mjs.map +1 -1
- package/dist/http/middleware/rate-limit.d.mts +1 -1
- package/dist/http/middleware/rate-limit.mjs +2 -2
- package/dist/http/middleware/rate-limit.mjs.map +1 -1
- package/dist/http/middleware/request-id.d.mts +1 -1
- package/dist/http/middleware/request-id.mjs +1 -1
- package/dist/http/middleware/request-id.mjs.map +1 -1
- package/dist/http/middleware/request-logger.d.mts +1 -1
- package/dist/http/middleware/request-logger.mjs +2 -2
- package/dist/http/middleware/request-logger.mjs.map +1 -1
- package/dist/http/middleware/session.d.mts +1 -1
- package/dist/http/middleware/session.mjs +2 -2
- package/dist/http/middleware/session.mjs.map +1 -1
- package/dist/http/middleware/spa.d.mts +1 -1
- package/dist/http/middleware/spa.mjs +2 -2
- package/dist/http/middleware/spa.mjs.map +1 -1
- package/dist/http/middleware/upload.d.mts +2 -2
- package/dist/http/middleware/upload.mjs +2 -2
- package/dist/http/middleware/upload.mjs.map +1 -1
- package/dist/http/middleware/validate.d.mts +1 -1
- package/dist/http/middleware/validate.mjs +1 -1
- package/dist/http/middleware/validate.mjs.map +1 -1
- package/dist/http/middleware/views.d.mts +1 -1
- package/dist/http/middleware/views.mjs +2 -2
- package/dist/http/middleware/views.mjs.map +1 -1
- package/dist/http/query/index.d.mts +1 -1
- package/dist/http/query/index.mjs +2 -2
- package/dist/http/router-builder.d.mts +1 -1
- package/dist/http/router-builder.mjs +2 -2
- package/dist/http/runtimes/express.d.mts +4 -7
- package/dist/http/runtimes/express.d.mts.map +1 -1
- package/dist/http/runtimes/express.mjs +2 -2
- package/dist/http/runtimes/fastify.d.mts +3 -5
- package/dist/http/runtimes/fastify.d.mts.map +1 -1
- package/dist/http/runtimes/fastify.mjs +2 -2
- package/dist/http/runtimes/fastify.mjs.map +1 -1
- package/dist/http/runtimes/h3-web.mjs +1 -1
- package/dist/http/runtimes/h3.d.mts +1 -3
- package/dist/http/runtimes/h3.d.mts.map +1 -1
- package/dist/http/runtimes/h3.mjs +2 -2
- package/dist/http/runtimes/h3.mjs.map +1 -1
- package/dist/{index-Blgka75E.d.mts → index-CtjmSXFy.d.mts} +11 -5
- package/dist/index-CtjmSXFy.d.mts.map +1 -0
- package/dist/{index-DP_I4puv.d.mts → index-DoukvKwh.d.mts} +3 -7
- package/dist/index-DoukvKwh.d.mts.map +1 -0
- package/dist/index.d.mts +38 -32
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{interfaces-C6LHcYsg.d.mts → interfaces-CvO9sAea.d.mts} +3 -5
- package/dist/interfaces-CvO9sAea.d.mts.map +1 -0
- package/dist/{is-production-6wpWSGvS.mjs → is-production-LziEMGrc.mjs} +2 -2
- package/dist/{is-production-6wpWSGvS.mjs.map → is-production-LziEMGrc.mjs.map} +1 -1
- package/dist/{jobs-BTnyyRY1.mjs → jobs-D7ToA0yF.mjs} +3 -3
- package/dist/jobs-D7ToA0yF.mjs.map +1 -0
- package/dist/{kv-stores-CwJdsMln.d.mts → kv-stores-DdGPLXQG.d.mts} +33 -20
- package/dist/kv-stores-DdGPLXQG.d.mts.map +1 -0
- package/dist/{kv-stores-HUdUibOx.mjs → kv-stores-DpM57Xr5.mjs} +3 -3
- package/dist/kv-stores-DpM57Xr5.mjs.map +1 -0
- package/dist/{lazy-serve-static-CZBn-40v.mjs → lazy-serve-static-DxI2K-zs.mjs} +3 -3
- package/dist/{lazy-serve-static-CZBn-40v.mjs.map → lazy-serve-static-DxI2K-zs.mjs.map} +1 -1
- package/dist/{logger-xE9qI_FS.d.mts → logger-ByJsVwqY.d.mts} +3 -5
- package/dist/logger-ByJsVwqY.d.mts.map +1 -0
- package/dist/{metadata-UjLEzS06.mjs → metadata-nTTSnVTO.mjs} +1 -1
- package/dist/{observers-C4bWQTop.mjs → observers-fQtCIKLq.mjs} +2 -2
- package/dist/observers-fQtCIKLq.mjs.map +1 -0
- package/dist/{path-CMwIHsdv.d.mts → path-DsenzqJ7.d.mts} +1 -3
- package/dist/path-DsenzqJ7.d.mts.map +1 -0
- package/dist/{precompressed-BNkw1Vrz.mjs → precompressed-BtwmgzyS.mjs} +2 -2
- package/dist/{precompressed-BNkw1Vrz.mjs.map → precompressed-BtwmgzyS.mjs.map} +1 -1
- package/dist/{query-DXIo1mII.mjs → query-Dr28oT30.mjs} +2 -2
- package/dist/query-Dr28oT30.mjs.map +1 -0
- package/dist/{rate-limit-DQDk6bAH.d.mts → rate-limit-BQx_P6gG.d.mts} +13 -5
- package/dist/rate-limit-BQx_P6gG.d.mts.map +1 -0
- package/dist/{reactivity-DZrc3Yhu.d.mts → reactivity-KZOrwVeK.d.mts} +32 -3
- package/dist/reactivity-KZOrwVeK.d.mts.map +1 -0
- package/dist/{reply-CpMbB8uH.mjs → reply-ChoI5SvM.mjs} +3 -3
- package/dist/{reply-CpMbB8uH.mjs.map → reply-ChoI5SvM.mjs.map} +1 -1
- package/dist/{request-id-Dn64nEHK.d.mts → request-id-B9Myiv75.d.mts} +3 -4
- package/dist/request-id-B9Myiv75.d.mts.map +1 -0
- package/dist/{request-logger-TgcKRNDD.d.mts → request-logger-CYyAuPmo.d.mts} +6 -3
- package/dist/request-logger-CYyAuPmo.d.mts.map +1 -0
- package/dist/{request-scope-DZQceiLY.mjs → request-scope-BfSNdmz9.mjs} +3 -3
- package/dist/{request-scope-DZQceiLY.mjs.map → request-scope-BfSNdmz9.mjs.map} +1 -1
- package/dist/{respond-Bc71p7sN.mjs → respond-1BjaDME9.mjs} +2 -2
- package/dist/{respond-Bc71p7sN.mjs.map → respond-1BjaDME9.mjs.map} +1 -1
- package/dist/rolldown-runtime-B5KeNctS.mjs +11 -0
- package/dist/{route-flag-DWNbpMIE.mjs → route-flag-B6ZmhkfI.mjs} +3 -3
- package/dist/{route-flag-DWNbpMIE.mjs.map → route-flag-B6ZmhkfI.mjs.map} +1 -1
- package/dist/{route-flag-B1lQht6v.d.mts → route-flag-CjXQl-oX.d.mts} +1 -3
- package/dist/route-flag-CjXQl-oX.d.mts.map +1 -0
- package/dist/{route-policy-DsdJx3bk.mjs → route-policy-BG--gAcF.mjs} +2 -2
- package/dist/route-policy-BG--gAcF.mjs.map +1 -0
- package/dist/{router-builder-C5EtcFSL.d.mts → router-builder-BkIW_qjz.d.mts} +4 -5
- package/dist/router-builder-BkIW_qjz.d.mts.map +1 -0
- package/dist/{router-builder-CiwYhiUM.mjs → router-builder-DHKtp4I8.mjs} +3 -3
- package/dist/router-builder-DHKtp4I8.mjs.map +1 -0
- package/dist/{runtime-Bus9RVyU.mjs → runtime-CUfFIHiC.mjs} +3 -3
- package/dist/runtime-CUfFIHiC.mjs.map +1 -0
- package/dist/{session-DQG72vCf.d.mts → session-DPTbfwKO.d.mts} +41 -4
- package/dist/session-DPTbfwKO.d.mts.map +1 -0
- package/dist/{settings-DgZLgcNU.d.mts → settings-CB6lh6_s.d.mts} +1 -3
- package/dist/settings-CB6lh6_s.d.mts.map +1 -0
- package/dist/{settings-CNZ7iRli.mjs → settings-I7GUX5ps.mjs} +4 -4
- package/dist/settings-I7GUX5ps.mjs.map +1 -0
- package/dist/{token-CroYM4Lm.mjs → token-uWfhVlfe.mjs} +1 -1
- package/dist/{upload-DnwvZQyi.d.mts → upload-O3VTcODy.d.mts} +4 -6
- package/dist/upload-O3VTcODy.d.mts.map +1 -0
- package/dist/{upload-config-Bq3qcDel.mjs → upload-config-BXqBuyza.mjs} +2 -2
- package/dist/{upload-config-Bq3qcDel.mjs.map → upload-config-BXqBuyza.mjs.map} +1 -1
- package/dist/url-for-CuMaQ2wS.mjs +12 -0
- package/dist/url-for-CuMaQ2wS.mjs.map +1 -0
- package/dist/{validate-D4Poe2EE.d.mts → validate-CTgfm7oE.d.mts} +3 -5
- package/dist/validate-CTgfm7oE.d.mts.map +1 -0
- package/dist/{view-renderer-Dbha_94K.mjs → view-renderer-Bf1Wy-DQ.mjs} +3 -3
- package/dist/view-renderer-Bf1Wy-DQ.mjs.map +1 -0
- package/dist/{web-crypto-CJiyfQrv.mjs → web-crypto-JzoGmiG0.mjs} +2 -2
- package/dist/{web-crypto-CJiyfQrv.mjs.map → web-crypto-JzoGmiG0.mjs.map} +1 -1
- package/dist/web.d.mts +7 -13
- package/dist/web.d.mts.map +1 -1
- package/dist/web.mjs +2 -2
- package/dist/web.mjs.map +1 -1
- package/package.json +13 -13
- package/dist/adapter-DL9JPcvC.d.mts.map +0 -1
- package/dist/allowed-hosts-BpKwviq5.d.mts.map +0 -1
- package/dist/app-module-Dk2Wenqx.d.mts.map +0 -1
- package/dist/application-BosHcuBZ.mjs +0 -14
- package/dist/application-BosHcuBZ.mjs.map +0 -1
- package/dist/application-D921r4MW.d.mts.map +0 -1
- package/dist/bootstrap-CY0v5VVF.mjs.map +0 -1
- package/dist/breach-padding-FBVGmcBb.d.mts.map +0 -1
- package/dist/cache-CdRHSXow.d.mts.map +0 -1
- package/dist/connect-BlIamapT.d.mts.map +0 -1
- package/dist/container-4iJdDkRH.d.mts +0 -3
- package/dist/context-Cgr5dtIZ.mjs.map +0 -1
- package/dist/context-errors-6x0bjldv.mjs.map +0 -1
- package/dist/contributor-runner-DQ2fXJ29.mjs.map +0 -1
- package/dist/core-g3y9VDwr.mjs +0 -12
- package/dist/core-g3y9VDwr.mjs.map +0 -1
- package/dist/cors-BlR_b0Qb.d.mts.map +0 -1
- package/dist/cron-BTGytNg-.d.mts.map +0 -1
- package/dist/csrf-DOAaYozG.d.mts.map +0 -1
- package/dist/decorate-LMK39Sn6.mjs +0 -13
- package/dist/decorate-LMK39Sn6.mjs.map +0 -1
- package/dist/decorators-DxNb5mWw.d.mts.map +0 -1
- package/dist/define-adapter-CZCFyDp5.mjs.map +0 -1
- package/dist/di-hooks-ZfnBZMDp.mjs.map +0 -1
- package/dist/error-handler-D7DLWe1Q.d.mts.map +0 -1
- package/dist/helmet-BVuVBl-D.d.mts.map +0 -1
- package/dist/index-Blgka75E.d.mts.map +0 -1
- package/dist/index-DP_I4puv.d.mts.map +0 -1
- package/dist/interfaces-C6LHcYsg.d.mts.map +0 -1
- package/dist/jobs-BTnyyRY1.mjs.map +0 -1
- package/dist/kv-stores-CwJdsMln.d.mts.map +0 -1
- package/dist/kv-stores-HUdUibOx.mjs.map +0 -1
- package/dist/logger-xE9qI_FS.d.mts.map +0 -1
- package/dist/observers-C4bWQTop.mjs.map +0 -1
- package/dist/path-CMwIHsdv.d.mts.map +0 -1
- package/dist/query-DXIo1mII.mjs.map +0 -1
- package/dist/rate-limit-DQDk6bAH.d.mts.map +0 -1
- package/dist/reactivity-DZrc3Yhu.d.mts.map +0 -1
- package/dist/request-id-Dn64nEHK.d.mts.map +0 -1
- package/dist/request-logger-TgcKRNDD.d.mts.map +0 -1
- package/dist/rolldown-runtime-Z3gdyCfQ.mjs +0 -11
- package/dist/route-flag-B1lQht6v.d.mts.map +0 -1
- package/dist/route-policy-DsdJx3bk.mjs.map +0 -1
- package/dist/router-builder-C5EtcFSL.d.mts.map +0 -1
- package/dist/router-builder-CiwYhiUM.mjs.map +0 -1
- package/dist/runtime-Bus9RVyU.mjs.map +0 -1
- package/dist/session-DQG72vCf.d.mts.map +0 -1
- package/dist/settings-CNZ7iRli.mjs.map +0 -1
- package/dist/settings-DgZLgcNU.d.mts.map +0 -1
- package/dist/upload-DnwvZQyi.d.mts.map +0 -1
- package/dist/url-for-BCQLTEJj.mjs +0 -12
- package/dist/url-for-BCQLTEJj.mjs.map +0 -1
- package/dist/validate-D4Poe2EE.d.mts.map +0 -1
- package/dist/view-renderer-Dbha_94K.mjs.map +0 -1
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
import { a as SettingsDeclaration } from "./settings-CB6lh6_s.mjs";
|
|
3
|
+
import { a as ConnectRequest, i as ConnectNext, n as ConnectHandler, o as ConnectResponse, r as ConnectMiddleware, t as ConnectErrorHandler } from "./connect-DamOelO8.mjs";
|
|
4
|
+
import { t as Container$1 } from "./container-DtdUiRwr.mjs";
|
|
5
|
+
import { C as MetaValue, S as ExecutionContext, m as ContributorRegistrations, o as AnyContributorRegistration, r as AppModuleEntry, t as AppModule, x as ContextMetaKey } from "./app-module-BmViGLgj.mjs";
|
|
6
|
+
import { i as Constructor, s as MaybePromise } from "./interfaces-CvO9sAea.mjs";
|
|
7
|
+
import { p as RouteFlags } from "./route-flag-CjXQl-oX.mjs";
|
|
2
8
|
import "./token-0ZP--xsp.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { C as MetaValue, S as ExecutionContext, m as ContributorRegistrations, o as AnyContributorRegistration, r as AppModuleEntry, t as AppModule, x as ContextMetaKey } from "./app-module-Dk2Wenqx.mjs";
|
|
10
|
-
import "./cache-CdRHSXow.mjs";
|
|
11
|
-
import { i as ProblemDetails } from "./errors-By6UueCm.mjs";
|
|
12
|
-
import { n as Session } from "./session-DQG72vCf.mjs";
|
|
13
|
-
import { A as TypedParsedQuery, C as PaginatedResponse, D as QueryFieldConfig, _ as CursorQuery, h as CursorPaginatedResponse, m as CursorPaginateOptions, t as ParseQueryOptions } from "./index-Blgka75E.mjs";
|
|
14
|
-
import { t as ValidationErrorFactory } from "./validate-D4Poe2EE.mjs";
|
|
9
|
+
import { g as FileUploadConfig, k as RouteDefinition, o as BaseUploadOptions, x as MiddlewareHandler } from "./decorators-Bflncyz6.mjs";
|
|
10
|
+
import "./cache-ByX5O2Hp.mjs";
|
|
11
|
+
import { i as ProblemDetails } from "./errors-CppqPy0A.mjs";
|
|
12
|
+
import { n as Session } from "./session-DPTbfwKO.mjs";
|
|
13
|
+
import { A as TypedParsedQuery, C as PaginatedResponse, D as QueryFieldConfig, _ as CursorQuery, h as CursorPaginatedResponse, m as CursorPaginateOptions, t as ParseQueryOptions } from "./index-CtjmSXFy.mjs";
|
|
14
|
+
import { t as ValidationErrorFactory } from "./validate-CTgfm7oE.mjs";
|
|
15
15
|
import "reflect-metadata";
|
|
16
16
|
import { Disposable, disposeAll, getClassMeta, getClassMetaOrUndefined, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, hasClassMeta, pushClassMeta, pushMethodMeta, registerDisposable, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta } from "@forinda/kickjs-di";
|
|
17
17
|
import http, { IncomingMessage, ServerResponse } from "node:http";
|
|
18
18
|
import https from "node:https";
|
|
19
19
|
import http2 from "node:http2";
|
|
20
|
-
//#region src/core/adapter-conditions.d.ts
|
|
21
20
|
/**
|
|
22
21
|
* `true` keeps the adapter; `false` or a string (the reason) leaves it out.
|
|
23
22
|
* Runs once at startup — keep it synchronous and free of side effects.
|
|
@@ -46,8 +45,6 @@ declare function onEnv(name: string, value?: string): AdapterCondition;
|
|
|
46
45
|
declare function onPackage(name: string): AdapterCondition;
|
|
47
46
|
/** On only when every condition is — the first that fails gives the reason. */
|
|
48
47
|
declare function allOf(...conditions: AdapterCondition[]): AdapterCondition;
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region src/core/failure-analysis.d.ts
|
|
51
48
|
/**
|
|
52
49
|
* Turn a startup failure into advice: what went wrong in words, and what to
|
|
53
50
|
* change — instead of a driver's stack trace that names a socket.
|
|
@@ -60,10 +57,13 @@ interface FailureAdvice {
|
|
|
60
57
|
cause?: string;
|
|
61
58
|
fix: string;
|
|
62
59
|
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/core/observers.d.ts
|
|
65
60
|
/** Where an error came from. Integrations may report their own sources. */
|
|
66
61
|
type ErrorSource = 'request' | 'uncaught' | 'unhandled-rejection' | 'background' | 'job' | (string & {});
|
|
62
|
+
/**
|
|
63
|
+
* Where an error came from, passed to every observer's `onError`.
|
|
64
|
+
*
|
|
65
|
+
* @see https://kickjs.app/guide/observability
|
|
66
|
+
*/
|
|
67
67
|
interface ErrorInfo {
|
|
68
68
|
source: ErrorSource;
|
|
69
69
|
requestId?: string;
|
|
@@ -77,6 +77,11 @@ interface ErrorInfo {
|
|
|
77
77
|
/** Anything else the reporter knows — a queue and job name, a cron schedule. */
|
|
78
78
|
context?: Record<string, unknown>;
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* One finished response, passed to every observer's `onResponse`.
|
|
82
|
+
*
|
|
83
|
+
* @see https://kickjs.app/guide/observability
|
|
84
|
+
*/
|
|
80
85
|
interface ResponseInfo {
|
|
81
86
|
method: string;
|
|
82
87
|
path: string;
|
|
@@ -95,8 +100,6 @@ interface ResponseInfo {
|
|
|
95
100
|
declare function reportError(error: unknown, info: ErrorInfo): void;
|
|
96
101
|
/** Report a finished response to every observer. Never throws. */
|
|
97
102
|
declare function reportResponse(info: ResponseInfo): void;
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region src/core/introspect.d.ts
|
|
100
103
|
/**
|
|
101
104
|
* Per-primitive introspection snapshot — the JSON shape an adapter or
|
|
102
105
|
* plugin's optional `introspect()` hook returns for DevTools.
|
|
@@ -163,14 +166,11 @@ type IntrospectionKind = 'plugin' | 'adapter' | 'middleware' | 'contributor';
|
|
|
163
166
|
* `AppAdapter` and `KickPlugin`.
|
|
164
167
|
*/
|
|
165
168
|
type IntrospectFn = () => IntrospectionSnapshot | Promise<IntrospectionSnapshot>;
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region src/core/augmentation.d.ts
|
|
168
169
|
/**
|
|
169
170
|
* The canonical `KickJsPluginRegistry` interface that `kick typegen`
|
|
170
171
|
* augments, for typed `dependsOn` between plugins and adapters.
|
|
171
172
|
*
|
|
172
|
-
* See
|
|
173
|
-
* (standardized augmentation registry) for the design rationale.
|
|
173
|
+
* See https://kickjs.app/guide/plugins#plugin-ordering-dependson for `dependsOn`.
|
|
174
174
|
*
|
|
175
175
|
* @module @forinda/kickjs/core/augmentation
|
|
176
176
|
*/
|
|
@@ -195,8 +195,6 @@ interface KickJsPluginRegistry {}
|
|
|
195
195
|
* narrowing is a progressive enhancement, not a hard prerequisite.
|
|
196
196
|
*/
|
|
197
197
|
type KickJsPluginName = keyof KickJsPluginRegistry extends never ? string : keyof KickJsPluginRegistry & string;
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region src/core/module-registry.d.ts
|
|
200
198
|
/**
|
|
201
199
|
* Imperative receiver passed to {@link KickPlugin.setup} and the
|
|
202
200
|
* top-level `bootstrap({ setup })` callback so adopters can register
|
|
@@ -254,8 +252,6 @@ declare class MutableModuleRegistry implements ModuleRegistry {
|
|
|
254
252
|
readonly entries: AppModuleEntry[];
|
|
255
253
|
mount(module: AppModuleEntry): void;
|
|
256
254
|
}
|
|
257
|
-
//#endregion
|
|
258
|
-
//#region src/core/plugin.d.ts
|
|
259
255
|
/**
|
|
260
256
|
* Plugin interface for extending KickJS applications.
|
|
261
257
|
*
|
|
@@ -400,7 +396,7 @@ interface KickPlugin {
|
|
|
400
396
|
* Use when a plugin wants to ship a typed contributor without standing
|
|
401
397
|
* up an accompanying adapter. For full coverage of the precedence
|
|
402
398
|
* matrix (method > class > module > adapter > global) see
|
|
403
|
-
*
|
|
399
|
+
* https://kickjs.app/guide/context-decorators.
|
|
404
400
|
*
|
|
405
401
|
* @example
|
|
406
402
|
* ```ts
|
|
@@ -456,7 +452,7 @@ interface KickPlugin {
|
|
|
456
452
|
*/
|
|
457
453
|
shutdown?(): void | Promise<void>;
|
|
458
454
|
/**
|
|
459
|
-
* Optional DevTools introspection hook (
|
|
455
|
+
* Optional DevTools introspection hook (https://kickjs.app/guide/devtools). Returns
|
|
460
456
|
* a snapshot describing this plugin's current state, metrics, and DI
|
|
461
457
|
* tokens. DevTools awaits the result, so async work is fine — but keep
|
|
462
458
|
* the implementation cheap (counters + flags, no DB round trips) since
|
|
@@ -470,26 +466,25 @@ interface KickPlugin {
|
|
|
470
466
|
*/
|
|
471
467
|
introspect?(): IntrospectionSnapshot | Promise<IntrospectionSnapshot>;
|
|
472
468
|
/**
|
|
473
|
-
* Optional DevTools tabs this plugin contributes
|
|
469
|
+
* Optional DevTools tabs this plugin contributes.
|
|
474
470
|
* Same shape as {@link AppAdapter.devtoolsTabs}; the kit's
|
|
475
471
|
* `DevtoolsTabDescriptor` types it for plugin authors.
|
|
476
472
|
*/
|
|
477
473
|
devtoolsTabs?(): readonly unknown[];
|
|
478
474
|
}
|
|
479
|
-
//#endregion
|
|
480
|
-
//#region src/core/define-plugin.d.ts
|
|
481
475
|
/**
|
|
482
|
-
* Options passed to {@link definePlugin}.
|
|
483
|
-
*
|
|
476
|
+
* Options passed to {@link definePlugin}.
|
|
477
|
+
*
|
|
478
|
+
* @see https://kickjs.app/guide/plugins#the-defineplugin-options
|
|
484
479
|
*/
|
|
485
480
|
interface DefinePluginOptions<TConfig> {
|
|
486
481
|
/** Stable identity used for logging, `dependsOn` lookups, and `.scoped()` namespacing. */
|
|
487
482
|
name: string;
|
|
488
|
-
/** Optional plugin version
|
|
483
|
+
/** Optional plugin version, recorded on the factory's `definition`. */
|
|
489
484
|
version?: string;
|
|
490
485
|
/**
|
|
491
486
|
* Peer-version ranges this plugin needs from the framework or other
|
|
492
|
-
* plugins. Recorded as metadata;
|
|
487
|
+
* plugins. Recorded as metadata; not enforced at runtime yet.
|
|
493
488
|
*/
|
|
494
489
|
requires?: {
|
|
495
490
|
kickjs?: string;
|
|
@@ -536,7 +531,7 @@ interface PluginFactory<TConfig> {
|
|
|
536
531
|
}
|
|
537
532
|
/**
|
|
538
533
|
* Build a {@link KickPlugin} factory from a typed definition. See
|
|
539
|
-
*
|
|
534
|
+
* https://kickjs.app/guide/plugins for the design rationale.
|
|
540
535
|
*
|
|
541
536
|
* @example
|
|
542
537
|
* ```ts
|
|
@@ -556,8 +551,6 @@ interface PluginFactory<TConfig> {
|
|
|
556
551
|
* ```
|
|
557
552
|
*/
|
|
558
553
|
declare function definePlugin<TConfig = Record<string, unknown>>(options: DefinePluginOptions<TConfig>): PluginFactory<TConfig>;
|
|
559
|
-
//#endregion
|
|
560
|
-
//#region src/core/define-module.d.ts
|
|
561
554
|
/**
|
|
562
555
|
* Options passed to {@link defineModule}. Mirrors {@link DefineAdapterOptions}
|
|
563
556
|
* and {@link DefinePluginOptions} so adopters learn one mental model
|
|
@@ -664,8 +657,6 @@ interface ModuleFactory<TConfig, TExtra = unknown> {
|
|
|
664
657
|
* ```
|
|
665
658
|
*/
|
|
666
659
|
declare function defineModule<TConfig = Record<string, unknown>, TExtra = unknown>(options: DefineModuleOptions<TConfig, TExtra>): ModuleFactory<TConfig, TExtra>;
|
|
667
|
-
//#endregion
|
|
668
|
-
//#region src/core/define-modules.d.ts
|
|
669
660
|
/**
|
|
670
661
|
* Chainable registry returned by {@link defineModules}. Extends
|
|
671
662
|
* `Array<AppModuleEntry>` so it drops into `bootstrap({ modules })`
|
|
@@ -731,11 +722,9 @@ declare class ModuleList extends Array<AppModuleEntry> {
|
|
|
731
722
|
* instead — both surfaces compose.
|
|
732
723
|
*/
|
|
733
724
|
declare function defineModules(...initial: AppModuleEntry[]): ModuleList;
|
|
734
|
-
//#endregion
|
|
735
|
-
//#region src/core/contributor-pipeline.d.ts
|
|
736
725
|
/**
|
|
737
726
|
* Where a contributor was registered, ordered by precedence
|
|
738
|
-
* (lower index wins).
|
|
727
|
+
* (lower index wins). See https://kickjs.app/guide/context-decorators
|
|
739
728
|
*
|
|
740
729
|
* Levels (highest → lowest precedence):
|
|
741
730
|
* - `'method'` — `@LoadX` on a controller method.
|
|
@@ -777,6 +766,7 @@ interface ContributorPipeline {
|
|
|
777
766
|
readonly contributors: readonly AnyContributorRegistration[];
|
|
778
767
|
readonly keys: ReadonlySet<string>;
|
|
779
768
|
}
|
|
769
|
+
/** Options for building a contributor pipeline; `route` labels its error messages. */
|
|
780
770
|
interface BuildPipelineOptions {
|
|
781
771
|
/** Optional route identifier surfaced in diagnostic errors (e.g., 'GET /projects/:id'). */
|
|
782
772
|
route?: string;
|
|
@@ -802,8 +792,7 @@ interface BuildPipelineOptions {
|
|
|
802
792
|
* route and cache the result.
|
|
803
793
|
*/
|
|
804
794
|
declare function buildPipeline(sources: readonly SourcedRegistration[], options?: BuildPipelineOptions): ContributorPipeline;
|
|
805
|
-
|
|
806
|
-
//#region src/core/contributor-runner.d.ts
|
|
795
|
+
/** Inputs for running a contributor pipeline against one execution context. */
|
|
807
796
|
interface RunContributorsOptions {
|
|
808
797
|
/** Pre-built, validated, topo-sorted pipeline. */
|
|
809
798
|
pipeline: ContributorPipeline;
|
|
@@ -822,11 +811,11 @@ interface RunContributorsOptions {
|
|
|
822
811
|
* Execute a built {@link ContributorPipeline} against an {@link ExecutionContext}.
|
|
823
812
|
*
|
|
824
813
|
* Sequential — one contributor at a time, in the topo order chosen at
|
|
825
|
-
* pipeline-build time. Per
|
|
814
|
+
* pipeline-build time. Per https://kickjs.app/guide/context-decorators, V1 does not run
|
|
826
815
|
* contributors in parallel even within the same topo level; that is a
|
|
827
816
|
* V2 follow-up gated on profiling.
|
|
828
817
|
*
|
|
829
|
-
* ## Error matrix
|
|
818
|
+
* ## Error matrix
|
|
830
819
|
*
|
|
831
820
|
* | resolve outcome | optional | onError defined | runner behaviour |
|
|
832
821
|
* |-----------------|----------|-----------------|--------------------------------------------------|
|
|
@@ -843,11 +832,9 @@ interface RunContributorsOptions {
|
|
|
843
832
|
* wrap the container access inside their own `resolve()`.
|
|
844
833
|
*/
|
|
845
834
|
declare function runContributors(options: RunContributorsOptions): Promise<void>;
|
|
846
|
-
//#endregion
|
|
847
|
-
//#region src/core/define-adapter.d.ts
|
|
848
835
|
/**
|
|
849
836
|
* Options passed to {@link defineAdapter}. Mirrors {@link DefinePluginOptions}
|
|
850
|
-
* exactly — see
|
|
837
|
+
* exactly — see https://kickjs.app/guide/adapters for the definePlugin/defineAdapter
|
|
851
838
|
* symmetry rationale.
|
|
852
839
|
*
|
|
853
840
|
* The optional `TExtra` generic lets an adapter ship public methods
|
|
@@ -896,7 +883,7 @@ interface AdapterFactory<TConfig, TExtra = unknown> {
|
|
|
896
883
|
}
|
|
897
884
|
/**
|
|
898
885
|
* Build an {@link AppAdapter} factory from a typed definition. See
|
|
899
|
-
*
|
|
886
|
+
* https://kickjs.app/guide/migration-v3-to-v4 for migration guidance — most first-party
|
|
900
887
|
* adapter packages collapse to a single `defineAdapter()` call after this
|
|
901
888
|
* lands.
|
|
902
889
|
*
|
|
@@ -920,23 +907,132 @@ interface AdapterFactory<TConfig, TExtra = unknown> {
|
|
|
920
907
|
* ```
|
|
921
908
|
*/
|
|
922
909
|
declare function defineAdapter<TConfig = Record<string, unknown>, TExtra = unknown>(options: DefineAdapterOptions<TConfig, TExtra>): AdapterFactory<TConfig, TExtra>;
|
|
923
|
-
|
|
924
|
-
|
|
910
|
+
/**
|
|
911
|
+
* The slot a view engine fills so `ctx.render()` works on every runtime.
|
|
912
|
+
* An adapter binds a renderer onto each request; `ctx.render` asks it first
|
|
913
|
+
* and falls back to the runtime's own engine (Express + ViewAdapter) when it
|
|
914
|
+
* doesn't own the name. `Symbol.for`, so an engine binds it without
|
|
915
|
+
* importing this module.
|
|
916
|
+
*/
|
|
925
917
|
declare const VIEW_RENDERER: unique symbol;
|
|
918
|
+
/**
|
|
919
|
+
* Per-render options for `ctx.render()`: status, headers, layout, locale and time zone.
|
|
920
|
+
*
|
|
921
|
+
* @see https://kickjs.app/guide/views
|
|
922
|
+
*/
|
|
926
923
|
interface ViewRenderOptions {
|
|
927
924
|
status?: number;
|
|
928
925
|
headers?: Record<string, string>;
|
|
929
926
|
/** A layout for this render, or `false` for none — a partial response. */
|
|
930
927
|
layout?: boolean | string;
|
|
928
|
+
/**
|
|
929
|
+
* Render only these `@fragment`s of the template, without layouts — an htmx
|
|
930
|
+
* swap, or several for out-of-band swaps. `.kick` views only.
|
|
931
|
+
*
|
|
932
|
+
* @see https://kickjs.app/guide/views/htmx#fragments
|
|
933
|
+
*/
|
|
934
|
+
fragment?: string | readonly string[];
|
|
931
935
|
locale?: string;
|
|
932
936
|
timeZone?: string;
|
|
933
937
|
}
|
|
934
938
|
/** Resolves to the HTML, or to `undefined` when the name isn't this engine's. */
|
|
935
939
|
type ViewRenderer = (name: string, data: Record<string, unknown>, opts: ViewRenderOptions, ctx: RequestContext) => Promise<string | undefined>;
|
|
940
|
+
/** Attach a view renderer to a request, for {@link viewRendererFor} to find later. */
|
|
936
941
|
declare function bindViewRenderer(req: object, renderer: ViewRenderer): void;
|
|
942
|
+
/** The view renderer bound to this request by {@link bindViewRenderer}, or `undefined`. */
|
|
937
943
|
declare function viewRendererFor(req: unknown): ViewRenderer | undefined;
|
|
938
|
-
|
|
939
|
-
|
|
944
|
+
/**
|
|
945
|
+
* Every `.kick` page by name: the data it reads and its fragments' needs.
|
|
946
|
+
* Filled by `kick typegen`; don't write entries by hand.
|
|
947
|
+
*
|
|
948
|
+
* @see https://kickjs.app/guide/views/typed-render-data
|
|
949
|
+
*/
|
|
950
|
+
interface KickViews {}
|
|
951
|
+
/**
|
|
952
|
+
* Names `createViews({ share })` supplies to every page, so a controller
|
|
953
|
+
* needn't pass them. Declare them once:
|
|
954
|
+
*
|
|
955
|
+
* ```ts
|
|
956
|
+
* declare module '@forinda/kickjs' {
|
|
957
|
+
* interface KickViewShared { user: User | undefined; csrfToken: string }
|
|
958
|
+
* }
|
|
959
|
+
* ```
|
|
960
|
+
*
|
|
961
|
+
* @see https://kickjs.app/guide/views/typed-render-data
|
|
962
|
+
*/
|
|
963
|
+
interface KickViewShared {}
|
|
964
|
+
/**
|
|
965
|
+
* Switches for the render types. `otherEngines: true` lets names outside
|
|
966
|
+
* {@link KickViews} through — for an app that also renders EJS or Pug with
|
|
967
|
+
* `ViewAdapter` (a misspelled `.kick` name then compiles too).
|
|
968
|
+
*
|
|
969
|
+
* @see https://kickjs.app/guide/views/typed-render-data
|
|
970
|
+
*/
|
|
971
|
+
interface KickViewTypeOptions {}
|
|
972
|
+
type Opts = Omit<ViewRenderOptions, 'fragment'>;
|
|
973
|
+
/** Template names `R` knows, `string` while it's empty or other engines are on. */
|
|
974
|
+
type ViewNameOf<R, O> = [keyof R] extends [never] ? string : O extends {
|
|
975
|
+
otherEngines: true;
|
|
976
|
+
} ? string : Extract<keyof R, string>;
|
|
977
|
+
type DataOf<R, N> = N extends keyof R ? (R[N] extends {
|
|
978
|
+
data: infer D;
|
|
979
|
+
} ? D : never) : never;
|
|
980
|
+
type Intersect<U> = (U extends unknown ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
|
|
981
|
+
/**
|
|
982
|
+
* Shared names may be left out; extra keys are fine. The union keeps an
|
|
983
|
+
* interface or class instance assignable (they have no index signature),
|
|
984
|
+
* while an object literal's extra keys are allowed by the second member.
|
|
985
|
+
*/
|
|
986
|
+
type Shaped<D, S> = Omit<D, keyof S> & Partial<Pick<D, Extract<keyof D, keyof S>>>;
|
|
987
|
+
type WithShared<D, S> = Shaped<D, S> | (Shaped<D, S> & Record<string, unknown>);
|
|
988
|
+
/** The data `ctx.render(N, data)` takes; for a union of names, what every one of those pages needs. */
|
|
989
|
+
type ViewDataOf<R, S, N> = [DataOf<R, N>] extends [never] ? Record<string, any> : WithShared<Intersect<DataOf<R, N>>, S>;
|
|
990
|
+
type FragmentsOf<R, N> = N extends keyof R ? (R[N] extends {
|
|
991
|
+
fragments: infer F;
|
|
992
|
+
} ? F : {}) : never;
|
|
993
|
+
/** A fragment name of page `N` (any string for names the registry doesn't know). */
|
|
994
|
+
type ViewFragmentNameOf<R, N> = [FragmentsOf<R, N>] extends [never] ? string : Extract<keyof FragmentsOf<R, N>, string>;
|
|
995
|
+
/** What `opts.fragment` may be: one fragment of page `N`, or a list of them. */
|
|
996
|
+
type FragmentNames<R, N> = ViewFragmentNameOf<R, N> | readonly ViewFragmentNameOf<R, N>[];
|
|
997
|
+
type Part<R, N, K, P extends 'needs' | 'reads'> = K extends keyof FragmentsOf<R, N> ? FragmentsOf<R, N>[K] extends Record<P, infer X> ? X : never : never;
|
|
998
|
+
type Listed<F> = F extends readonly (infer X)[] ? X : F;
|
|
999
|
+
/**
|
|
1000
|
+
* The data a fragment render takes: for every fragment named, its needs
|
|
1001
|
+
* exactly (the controller passes them; `share()` doesn't count at render),
|
|
1002
|
+
* plus the page data it reads.
|
|
1003
|
+
*/
|
|
1004
|
+
type ViewFragmentDataOf<R, S, N, F> = [FragmentsOf<R, N>] extends [never] ? Record<string, any> : Intersect<Part<R, N, Listed<F>, 'needs'>> & WithShared<Intersect<Part<R, N, Listed<F>, 'reads'>>, S>;
|
|
1005
|
+
/**
|
|
1006
|
+
* The arguments after the name, without a fragment: `data` (required when
|
|
1007
|
+
* the page needs any) and options. Fragment renders have their own overload.
|
|
1008
|
+
*/
|
|
1009
|
+
type RenderArgs<R, S, N> = [DataOf<R, N>] extends [never] ? [data?: Record<string, any>, opts?: Opts & {
|
|
1010
|
+
fragment?: string | readonly string[];
|
|
1011
|
+
}] : {} extends ViewDataOf<R, S, N> ? [data?: ViewDataOf<R, S, N>, opts?: Opts & {
|
|
1012
|
+
fragment?: undefined;
|
|
1013
|
+
}] : [data: ViewDataOf<R, S, N>, opts?: Opts & {
|
|
1014
|
+
fragment?: undefined;
|
|
1015
|
+
}];
|
|
1016
|
+
/**
|
|
1017
|
+
* What name `N` the loose overload takes: any string while the registry is
|
|
1018
|
+
* empty (so generic helpers compile); with other engines on, any name but a
|
|
1019
|
+
* registered one — a known page can't skip its data through it; else none.
|
|
1020
|
+
*/
|
|
1021
|
+
type LooseViewNameOf<R, O, N> = [keyof R] extends [never] ? string : O extends {
|
|
1022
|
+
otherEngines: true;
|
|
1023
|
+
} ? [Extract<N, keyof R>] extends [never] ? string : never : never;
|
|
1024
|
+
/** The app's template names. */
|
|
1025
|
+
type ViewName = ViewNameOf<KickViews, KickViewTypeOptions>;
|
|
1026
|
+
/** The data page `N` takes. */
|
|
1027
|
+
type ViewData<N> = ViewDataOf<KickViews, KickViewShared, N>;
|
|
1028
|
+
/** Arguments after the name, for the app's registry. */
|
|
1029
|
+
type ViewRenderArgs<N> = RenderArgs<KickViews, KickViewShared, N>;
|
|
1030
|
+
/** `opts.fragment` for page `N`. */
|
|
1031
|
+
type ViewFragmentNames<N> = FragmentNames<KickViews, N>;
|
|
1032
|
+
/** The data a fragment render of page `N` takes. */
|
|
1033
|
+
type ViewFragmentData<N, F> = ViewFragmentDataOf<KickViews, KickViewShared, N, F>;
|
|
1034
|
+
/** The loose overload's name, for the app's registry. */
|
|
1035
|
+
type LooseViewName<N> = LooseViewNameOf<KickViews, KickViewTypeOptions, N>;
|
|
940
1036
|
/**
|
|
941
1037
|
* Build a route's URL from its name — `'UsersController.show'` — instead of
|
|
942
1038
|
* spelling the path where you link to it, so a moved route can't leave a
|
|
@@ -956,6 +1052,7 @@ type ParamsOf<N> = N extends keyof KickRoutes.Named ? KickRoutes.Named[N] extend
|
|
|
956
1052
|
type PositionalParams = ReadonlyArray<string | number>;
|
|
957
1053
|
/** `params` is optional when the route has none, required otherwise. */
|
|
958
1054
|
type UrlForArgs<N> = Record<string, never> extends ParamsOf<N> ? [params?: ParamsOf<N> | PositionalParams, query?: UrlQuery] : [params: ParamsOf<N> | PositionalParams, query?: UrlQuery];
|
|
1055
|
+
/** Query values `urlFor()` appends to a route URL. An array value repeats the key once per item. */
|
|
959
1056
|
type UrlQuery = Record<string, string | number | boolean | Array<string | number>>;
|
|
960
1057
|
/** Builds route URLs by name — what `ROUTE_URLS` resolves to. */
|
|
961
1058
|
interface UrlBuilder {
|
|
@@ -994,8 +1091,6 @@ declare global {
|
|
|
994
1091
|
interface Named {}
|
|
995
1092
|
}
|
|
996
1093
|
}
|
|
997
|
-
//#endregion
|
|
998
|
-
//#region src/http/conditional.d.ts
|
|
999
1094
|
/**
|
|
1000
1095
|
* Conditional requests (RFC 9110 §13): answer `304 Not Modified` when the
|
|
1001
1096
|
* client's copy is current, and `412 Precondition Failed` when a write was
|
|
@@ -1022,8 +1117,6 @@ type Headers = Record<string, string | string[] | undefined>;
|
|
|
1022
1117
|
* evaluated in RFC 9110 §13.2.2 order.
|
|
1023
1118
|
*/
|
|
1024
1119
|
declare function evaluatePreconditions(method: string, headers: Headers, validators: Validators): ConditionalOutcome;
|
|
1025
|
-
//#endregion
|
|
1026
|
-
//#region src/http/middleware/upload-config.d.ts
|
|
1027
1120
|
/**
|
|
1028
1121
|
* Resolves a list of file type identifiers to MIME type strings.
|
|
1029
1122
|
* Accepts short extensions (`'jpg'`, `'pdf'`) or full MIME types (`'image/jpeg'`).
|
|
@@ -1095,8 +1188,6 @@ declare function applyUploadConfig(parts: RawUploadPart[], config: FileUploadCon
|
|
|
1095
1188
|
file?: UploadedFileLike;
|
|
1096
1189
|
files?: UploadedFileLike[];
|
|
1097
1190
|
};
|
|
1098
|
-
//#endregion
|
|
1099
|
-
//#region src/http/context.d.ts
|
|
1100
1191
|
/**
|
|
1101
1192
|
* Input shape for the typed problem-detail convenience methods on
|
|
1102
1193
|
* {@link ProblemSender} (`ctx.problem.notFound`, `.badRequest`, etc.) —
|
|
@@ -1463,7 +1554,7 @@ TKeys extends ContextMetaKey = ContextMetaKey> implements ExecutionContext<TKeys
|
|
|
1463
1554
|
* decorator fails the build. `TKeys` stays `string` (no narrowing) for
|
|
1464
1555
|
* a plain `RequestContext` and for any route typegen couldn't prove
|
|
1465
1556
|
* complete; there this is a runtime guarantee only.
|
|
1466
|
-
* See
|
|
1557
|
+
* See https://kickjs.app/guide/context-decorators
|
|
1467
1558
|
*
|
|
1468
1559
|
* `null` counts as present; only `undefined` (or a missing entry)
|
|
1469
1560
|
* throws. A contributor that deliberately resolves to `null` is
|
|
@@ -1658,7 +1749,11 @@ TKeys extends ContextMetaKey = ContextMetaKey> implements ExecutionContext<TKeys
|
|
|
1658
1749
|
* await ctx.render('users/row', { user }, { layout: false })
|
|
1659
1750
|
* ```
|
|
1660
1751
|
*/
|
|
1661
|
-
render(template:
|
|
1752
|
+
render<N extends ViewName>(template: N, ...args: ViewRenderArgs<N>): Promise<void> | void;
|
|
1753
|
+
render<N extends ViewName, const F extends ViewFragmentNames<N>>(template: N, data: ViewFragmentData<N, F>, opts: ViewRenderOptions & {
|
|
1754
|
+
fragment: F;
|
|
1755
|
+
}): Promise<void> | void;
|
|
1756
|
+
render<N extends string>(template: N & LooseViewName<N>, data?: Record<string, any>, opts?: ViewRenderOptions): Promise<void> | void;
|
|
1662
1757
|
/**
|
|
1663
1758
|
* Parse query params and return a standardized paginated response.
|
|
1664
1759
|
* Calls `ctx.qs()` internally, then wraps your data with pagination meta.
|
|
@@ -1836,8 +1931,6 @@ declare global {
|
|
|
1836
1931
|
}
|
|
1837
1932
|
/** `attachment; filename="…"; filename*=UTF-8''…` for any file name (RFC 6266 / RFC 8187). */
|
|
1838
1933
|
declare function contentDisposition(filename: string): string;
|
|
1839
|
-
//#endregion
|
|
1840
|
-
//#region src/http/runtime.d.ts
|
|
1841
1934
|
/** HTTP verbs the router emits. Mirrors the decorator surface (@Get/@Post/...). */
|
|
1842
1935
|
type RouteMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
1843
1936
|
/**
|
|
@@ -1910,6 +2003,7 @@ interface RouteContributor {
|
|
|
1910
2003
|
label?: string;
|
|
1911
2004
|
}>;
|
|
1912
2005
|
}
|
|
2006
|
+
/** Per-route data a runtime keeps alongside the handler: controller, handler name, contributors, validation, upload config and flags. */
|
|
1913
2007
|
interface RouteMeta {
|
|
1914
2008
|
/**
|
|
1915
2009
|
* Owning controller class — for DI resolution and adapter introspection.
|
|
@@ -1938,6 +2032,7 @@ interface RouteMeta {
|
|
|
1938
2032
|
*/
|
|
1939
2033
|
pattern?: string;
|
|
1940
2034
|
}
|
|
2035
|
+
/** The route a request matched, as `ctx.route`: method, declared path, full pattern, controller, handler and flags. */
|
|
1941
2036
|
interface MatchedRoute {
|
|
1942
2037
|
readonly method: RouteMethod;
|
|
1943
2038
|
/** Path as declared on the handler, e.g. `/:id`. */
|
|
@@ -1960,6 +2055,7 @@ type RouteTable = {
|
|
|
1960
2055
|
mountPath: string;
|
|
1961
2056
|
routes: RouteEntry[];
|
|
1962
2057
|
}[];
|
|
2058
|
+
/** The engine-neutral response object that runtimes, `onError` and `onNotFound` write to. */
|
|
1963
2059
|
interface RuntimeResponse {
|
|
1964
2060
|
status(code: number): RuntimeResponse;
|
|
1965
2061
|
json(data: unknown): RuntimeResponse;
|
|
@@ -2025,7 +2121,7 @@ interface RuntimeAppOptions {
|
|
|
2025
2121
|
/**
|
|
2026
2122
|
* Express `trust proxy` setting (and the equivalent on other engines). The
|
|
2027
2123
|
* function form is Express-specific; other runtimes interpret the simpler
|
|
2028
|
-
* shapes (or normalize X-Forwarded-For themselves
|
|
2124
|
+
* shapes (or normalize X-Forwarded-For themselves).
|
|
2029
2125
|
*/
|
|
2030
2126
|
trustProxy?: boolean | string | number | string[] | ((ip: string, hopIndex: number) => boolean);
|
|
2031
2127
|
/**
|
|
@@ -2118,7 +2214,7 @@ interface HttpRuntime<TApp = unknown> {
|
|
|
2118
2214
|
/**
|
|
2119
2215
|
* The supported surface adapters use to add HTTP routes, mounts, static dirs,
|
|
2120
2216
|
* and middleware — engine-agnostic, in place of reaching for the raw Express
|
|
2121
|
-
* `app
|
|
2217
|
+
* `app`. Exposed as {@link AdapterContext.http}. Built by the
|
|
2122
2218
|
* Application over the active {@link HttpRuntime}, so an adapter written against
|
|
2123
2219
|
* this works under any runtime; the raw `app` escape hatch stays available for
|
|
2124
2220
|
* the rare engine-specific need.
|
|
@@ -2133,8 +2229,6 @@ interface AdapterHttp {
|
|
|
2133
2229
|
/** Register a connect-style middleware (optionally path-scoped). */
|
|
2134
2230
|
use(mw: ConnectMiddleware, opts?: UseConnectOptions): void;
|
|
2135
2231
|
}
|
|
2136
|
-
//#endregion
|
|
2137
|
-
//#region src/core/adapter.d.ts
|
|
2138
2232
|
/**
|
|
2139
2233
|
* Where in the middleware pipeline an adapter's middleware should be inserted.
|
|
2140
2234
|
*
|
|
@@ -2207,16 +2301,21 @@ interface AdapterMiddleware {
|
|
|
2207
2301
|
*/
|
|
2208
2302
|
/** The Node server behind the app — see `ApplicationOptions.server`. */
|
|
2209
2303
|
type KickServer = http.Server | https.Server | http2.Http2SecureServer | http2.Http2Server;
|
|
2304
|
+
/**
|
|
2305
|
+
* What adapter lifecycle hooks receive: the HTTP surface, the engine app, the DI container and, after start, the server.
|
|
2306
|
+
*
|
|
2307
|
+
* @see https://kickjs.app/guide/adapters
|
|
2308
|
+
*/
|
|
2210
2309
|
interface AdapterContext {
|
|
2211
2310
|
/**
|
|
2212
2311
|
* Engine-agnostic HTTP surface — the supported way to add routes, mounts,
|
|
2213
|
-
* static dirs, and middleware
|
|
2312
|
+
* static dirs, and middleware. Prefer this over {@link app}:
|
|
2214
2313
|
* an adapter written against `http` works under any runtime.
|
|
2215
2314
|
*/
|
|
2216
2315
|
http: AdapterHttp;
|
|
2217
2316
|
/**
|
|
2218
2317
|
* Engine-native application instance — Express under the default runtime,
|
|
2219
|
-
* typed from the active runtime via {@link ActiveRuntime}
|
|
2318
|
+
* typed from the active runtime via {@link ActiveRuntime}.
|
|
2220
2319
|
* Escape hatch for genuinely engine-specific needs; for everything else use
|
|
2221
2320
|
* {@link http}.
|
|
2222
2321
|
*/
|
|
@@ -2438,7 +2537,7 @@ interface AppAdapter {
|
|
|
2438
2537
|
*/
|
|
2439
2538
|
shutdown?(): MaybePromise;
|
|
2440
2539
|
/**
|
|
2441
|
-
* Optional DevTools introspection hook (
|
|
2540
|
+
* Optional DevTools introspection hook (https://kickjs.app/guide/devtools). Returns
|
|
2442
2541
|
* a snapshot describing this adapter's current state, metrics, and DI
|
|
2443
2542
|
* tokens. DevTools awaits the result, so async work is fine — but keep
|
|
2444
2543
|
* the implementation cheap (counters + flags, no DB round trips) since
|
|
@@ -2451,7 +2550,7 @@ interface AppAdapter {
|
|
|
2451
2550
|
*/
|
|
2452
2551
|
introspect?(): IntrospectionSnapshot | Promise<IntrospectionSnapshot>;
|
|
2453
2552
|
/**
|
|
2454
|
-
* Optional DevTools tabs this adapter contributes
|
|
2553
|
+
* Optional DevTools tabs this adapter contributes.
|
|
2455
2554
|
* Returns an array of `DevtoolsTabDescriptor` shapes — typically one
|
|
2456
2555
|
* entry per adapter-owned panel (iframe / launch / html view).
|
|
2457
2556
|
*
|
|
@@ -2464,6 +2563,5 @@ interface AppAdapter {
|
|
|
2464
2563
|
}
|
|
2465
2564
|
/** Constructor type for AppAdapter classes */
|
|
2466
2565
|
type AppAdapterClass = new () => AppAdapter;
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
//# sourceMappingURL=adapter-DL9JPcvC.d.mts.map
|
|
2566
|
+
export { ViewRenderer as $, AdapterCondition as $t, RawUploadPart as A, defineModules as At, PositionalParams as B, ModuleRegistry as Bt, UseConnectOptions as C, setInMetaMap as Ct, RouteShape as D, disposeAll as Dt, RequestContext as E, Disposable as Et, buildFileTypeFilter as F, DefinePluginOptions as Ft, UrlQuery as G, IntrospectionKind as Gt, RouteName as H, KickJsPluginName as Ht, resolveMimeTypes as I, PluginAsyncOptions as It, KickViews as J, ErrorSource as Jt, KickViewShared as K, IntrospectionSnapshot as Kt, ConditionalOutcome as L, PluginFactory as Lt, UploadedFile as M, ModuleFactory as Mt, UploadedFileLike as N, defineModule as Nt, SseHandler as O, registerDisposable as Ot, applyUploadConfig as P, BuildContext as Pt, ViewRenderOptions as Q, FailureAdvice as Qt, Validators as R, definePlugin as Rt, RuntimeTypeMap as S, setClassMeta as St, DeepReadonly as T, setMethodMeta as Tt, UrlBuilder as U, KickJsPluginRegistry as Ut, ROUTE_URLS as V, MutableModuleRegistry as Vt, UrlForArgs as W, IntrospectFn as Wt, ViewName as X, reportError as Xt, ViewData as Y, ResponseInfo as Yt, VIEW_RENDERER as Z, reportResponse as Zt, RouteMethod as _, getMethodMeta as _t, KickServer as a, defineAdapter as at, RuntimeCapabilities as b, pushClassMeta as bt, ActiveRuntime as c, BuildPipelineOptions as ct, HttpRuntime as d, SourcedRegistration as dt, ConditionOutcome as en, bindViewRenderer as et, KickRuntimeRegister as f, buildPipeline as ft, RouteMeta as g, getMetaRecord as gt, RouteEntry as h, getMetaMap as ht, AppAdapterClass as i, DefineAdapterOptions as it, UploadStorageEngine as j, DefineModuleOptions as jt, contentDisposition as k, ModuleList as kt, AdapterHttp as l, ContributorPipeline as lt, RouteContributor as m, getClassMetaOrUndefined as mt, AdapterMiddleware as n, onEnv as nn, AdapterAsyncOptions as nt, MiddlewarePath as o, RunContributorsOptions as ot, MatchedRoute as p, getClassMeta as pt, KickViewTypeOptions as q, ErrorInfo as qt, AppAdapter as r, onPackage as rn, AdapterFactory as rt, MiddlewarePhase as s, runContributors as st, AdapterContext as t, allOf as tn, viewRendererFor as tt, CtxHandler as u, ContributorSource as ut, RouteTable as v, getMethodMetaOrUndefined as vt, Ctx as w, setInMetaRecord as wt, RuntimeResponse as x, pushMethodMeta as xt, RuntimeAppOptions as y, hasClassMeta as yt, evaluatePreconditions as z, KickPlugin as zt };
|
|
2567
|
+
//# sourceMappingURL=adapter-D_nUmKEQ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter-D_nUmKEQ.d.mts","names":["Container","Container","_0","NextFunction","Request","RequestHandler","ErrorRequestHandler","Container"],"sources":["../src/core/adapter-conditions.ts","../src/core/failure-analysis.ts","../src/core/observers.ts","../src/core/introspect.ts","../src/core/augmentation.ts","../src/core/module-registry.ts","../src/core/plugin.ts","../src/core/define-plugin.ts","../src/core/define-module.ts","../src/core/define-modules.ts","../src/core/contributor-pipeline.ts","../src/core/contributor-runner.ts","../src/core/define-adapter.ts","../src/http/view-renderer.ts","../src/http/view-types.ts","../src/http/url-for.ts","../src/http/conditional.ts","../src/http/middleware/upload-config.ts","../src/http/context.ts","../src/http/runtime.ts","../src/core/adapter.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAcY;;UAGK;EACf;EACA;;EAEA;;;;;;;;iBASc,MAAM,cAAc,iBAAiB;;;;;;;iBAiBrC,UAAU,eAAe;;iBAqBzB,SAAS,YAAY,qBAAqB;;;;;;;;UC5DzC;EACf;EACA;EACA;;;KCSU;;;;;;UAaK;EACf,QAAQ;EACR;EACA;;EAEA;;EAEA;;EAEA;;EAEA,UAAU;;;;;;;UAQK;EACf;EACA;;EAEA;EACA;EACA;EACA;;;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;;;;;;;;;EAiBxC,aAAa;;;;;;;;;;;;;EAcb,eAAe,wBAAwB,QAAQ;;;;;;;;;;;EAY/C;;;KAIU,4BAA4B"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as ConnectRequest, i as ConnectNext, o as ConnectResponse } from "./connect-
|
|
3
|
-
|
|
2
|
+
import { a as ConnectRequest, i as ConnectNext, o as ConnectResponse } from "./connect-DamOelO8.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Options for {@link allowedHosts}.
|
|
5
|
+
*
|
|
6
|
+
* @see https://kickjs.app/guide/security-headers
|
|
7
|
+
*/
|
|
4
8
|
interface AllowedHostsOptions {
|
|
5
9
|
/**
|
|
6
10
|
* Hosts this app answers for. `'example.com'` matches exactly;
|
|
@@ -41,6 +45,5 @@ interface AllowedHostsOptions {
|
|
|
41
45
|
* ```
|
|
42
46
|
*/
|
|
43
47
|
declare function allowedHosts(options: string[] | AllowedHostsOptions): (req: ConnectRequest, res: ConnectResponse, next: ConnectNext) => void;
|
|
44
|
-
//#endregion
|
|
45
48
|
export { allowedHosts as n, AllowedHostsOptions as t };
|
|
46
|
-
//# sourceMappingURL=allowed-hosts-
|
|
49
|
+
//# sourceMappingURL=allowed-hosts-BQlQFt-1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allowed-hosts-BQlQFt-1.d.mts","names":["Request","Response","NextFunction"],"sources":["../src/http/middleware/allowed-hosts.ts"],"mappings":";;;;;;;UAciB;;;;;;;EAOf;;;;;;;;;;;EAWA;;;;;;;EAOA;;;;;;;;;;;;;;iBAsDc,aAAa,oBAAoB,uBAAmB,KASrDA,gBAAO,KAAOC,iBAAQ,MAAQC"}
|