@forinda/kickjs 5.13.1 → 5.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-D1NzavIt.d.mts → adapter-EaDb0yXA.d.mts} +4 -4
- package/dist/{adapter-D1NzavIt.d.mts.map → adapter-EaDb0yXA.d.mts.map} +1 -1
- package/dist/{app-module-iAA20Cc6.d.mts → app-module-CFhn1C8b.d.mts} +3 -3
- package/dist/{app-module-iAA20Cc6.d.mts.map → app-module-CFhn1C8b.d.mts.map} +1 -1
- package/dist/{application-ChL6ufgq.d.mts → application-BEGxObrr.d.mts} +6 -6
- package/dist/{application-ChL6ufgq.d.mts.map → application-BEGxObrr.d.mts.map} +1 -1
- package/dist/{application-BTlWEKp2.mjs → application-DGTMRqB5.mjs} +3 -3
- package/dist/{application-BTlWEKp2.mjs.map → application-DGTMRqB5.mjs.map} +1 -1
- package/dist/{bootstrap-Cgt_j-0Q.d.mts → bootstrap-Cdofwou7.d.mts} +2 -2
- package/dist/{bootstrap-Cgt_j-0Q.d.mts.map → bootstrap-Cdofwou7.d.mts.map} +1 -1
- package/dist/{bootstrap-DoEPezno.mjs → bootstrap-DJYEnmqz.mjs} +3 -3
- package/dist/{bootstrap-DoEPezno.mjs.map → bootstrap-DJYEnmqz.mjs.map} +1 -1
- package/dist/{cache-XrNWj1KQ.d.mts → cache-BSFDtsEG.d.mts} +1 -1
- package/dist/{cache-XrNWj1KQ.d.mts.map → cache-BSFDtsEG.d.mts.map} +1 -1
- package/dist/config/index.d.mts +2 -2
- package/dist/config/index.mjs +2 -2
- package/dist/{config-Bbk1PLGo.mjs → config-BoRD-DF3.mjs} +3 -3
- package/dist/{config-Bbk1PLGo.mjs.map → config-BoRD-DF3.mjs.map} +1 -1
- package/dist/{container-Bq8VjG_Y.mjs → container-DziUYitn.mjs} +3 -3
- package/dist/{container-Bq8VjG_Y.mjs.map → container-DziUYitn.mjs.map} +1 -1
- package/dist/{container-B51bkskE.d.mts → container-TWOUyR_0.d.mts} +2 -2
- package/dist/container-TWOUyR_0.d.mts.map +1 -0
- package/dist/{context-D7sGbb8E.d.mts → context-BqxbiEPD.d.mts} +4 -4
- package/dist/context-BqxbiEPD.d.mts.map +1 -0
- package/dist/{context-CnyTYykn.mjs → context-DgFUi-PJ.mjs} +3 -3
- package/dist/{context-CnyTYykn.mjs.map → context-DgFUi-PJ.mjs.map} +1 -1
- package/dist/{context-decorator-BzcOhlej.d.mts → context-decorator--tgS3nKW.d.mts} +55 -21
- package/dist/{context-decorator-BzcOhlej.d.mts.map → context-decorator--tgS3nKW.d.mts.map} +1 -1
- 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/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/decorators.d.mts +1 -1
- package/dist/core/decorators.mjs +2 -2
- package/dist/core/errors.d.mts +1 -1
- package/dist/core/errors.mjs +1 -1
- package/dist/core/interfaces.d.mts +1 -1
- package/dist/core/interfaces.mjs +1 -1
- package/dist/core/logger.d.mts +1 -1
- package/dist/core/logger.mjs +1 -1
- package/dist/core/path.d.mts +1 -1
- package/dist/core/path.mjs +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 +1 -1
- package/dist/{core-CGEbLIPv.mjs → core-BjXLPPbZ.mjs} +4 -4
- package/dist/core-BjXLPPbZ.mjs.map +1 -0
- package/dist/{cors-BfgqfLPd.d.mts → cors-C4aSCD3J.d.mts} +1 -1
- package/dist/{cors-BfgqfLPd.d.mts.map → cors-C4aSCD3J.d.mts.map} +1 -1
- package/dist/{cron-GNoYydfg.d.mts → cron-DOOtTY4q.d.mts} +1 -1
- package/dist/{cron-GNoYydfg.d.mts.map → cron-DOOtTY4q.d.mts.map} +1 -1
- package/dist/{csrf-DiK9zept.d.mts → csrf-7nUXGTuz.d.mts} +1 -1
- package/dist/{csrf-DiK9zept.d.mts.map → csrf-7nUXGTuz.d.mts.map} +1 -1
- package/dist/{decorators-KbaPUBXd.d.mts → decorators-ejABLo9H.d.mts} +3 -3
- package/dist/decorators-ejABLo9H.d.mts.map +1 -0
- package/dist/env-CtLvHIeZ.mjs +13 -0
- package/dist/env-CtLvHIeZ.mjs.map +1 -0
- package/dist/{error-handler-C4SG5o_i.d.mts → error-handler-3ih4E-QZ.d.mts} +1 -1
- package/dist/error-handler-3ih4E-QZ.d.mts.map +1 -0
- package/dist/{errors-DytV77Hb.d.mts → errors-CRCTjEUK.d.mts} +1 -1
- package/dist/{errors-DytV77Hb.d.mts.map → errors-CRCTjEUK.d.mts.map} +1 -1
- package/dist/{execution-context-DKnt61pY.d.mts → execution-context-J97mWtz4.d.mts} +1 -1
- package/dist/{execution-context-DKnt61pY.d.mts.map → execution-context-J97mWtz4.d.mts.map} +1 -1
- package/dist/{helmet-CaMbjzBG.d.mts → helmet-CKzZzeNl.d.mts} +1 -1
- package/dist/{helmet-CaMbjzBG.d.mts.map → helmet-CKzZzeNl.d.mts.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 +3 -3
- package/dist/http/context.mjs +2 -2
- package/dist/http/middleware/cors.d.mts +1 -1
- package/dist/http/middleware/cors.mjs +1 -1
- package/dist/http/middleware/csrf.d.mts +1 -1
- package/dist/http/middleware/csrf.mjs +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/helmet.d.mts +1 -1
- package/dist/http/middleware/helmet.mjs +1 -1
- package/dist/http/middleware/rate-limit.d.mts +1 -1
- package/dist/http/middleware/rate-limit.mjs +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-logger.d.mts +1 -1
- package/dist/http/middleware/request-logger.mjs +2 -2
- package/dist/http/middleware/session.d.mts +1 -1
- package/dist/http/middleware/session.mjs +1 -1
- package/dist/http/middleware/spa.d.mts +1 -1
- package/dist/http/middleware/spa.mjs +2 -2
- package/dist/http/middleware/upload.d.mts +1 -1
- package/dist/http/middleware/upload.mjs +1 -1
- package/dist/http/middleware/validate.d.mts +1 -1
- package/dist/http/middleware/validate.mjs +2 -2
- 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/query/index.d.mts +2 -2
- 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/{index-BM32LMqZ.d.mts → index-CFM7HDaD.d.mts} +38 -3
- package/dist/index-CFM7HDaD.d.mts.map +1 -0
- package/dist/{index-BYLVLFA8.d.mts → index-UpQwKBR3.d.mts} +7 -7
- package/dist/index-UpQwKBR3.d.mts.map +1 -0
- package/dist/{index-B9cyOQAe.d.mts → index-kEmG8nWU.d.mts} +1 -1
- package/dist/{index-B9cyOQAe.d.mts.map → index-kEmG8nWU.d.mts.map} +1 -1
- package/dist/index.d.mts +34 -34
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{interfaces-ClcFeDhd.d.mts → interfaces-DbTyKGdS.d.mts} +1 -1
- package/dist/{interfaces-ClcFeDhd.d.mts.map → interfaces-DbTyKGdS.d.mts.map} +1 -1
- package/dist/{logger-DyTCk-v1.d.mts → logger-BnBVjmDa.d.mts} +1 -1
- package/dist/{logger-DyTCk-v1.d.mts.map → logger-BnBVjmDa.d.mts.map} +1 -1
- package/dist/{metadata-pbYET01G.mjs → metadata-DT5FDNSJ.mjs} +2 -2
- package/dist/{metadata-pbYET01G.mjs.map → metadata-DT5FDNSJ.mjs.map} +1 -1
- package/dist/{path-Diviu6hv.d.mts → path-BVA9MfN1.d.mts} +1 -1
- package/dist/path-BVA9MfN1.d.mts.map +1 -0
- package/dist/{plugin-DG_jFA6h.d.mts → plugin-DEKMU50e.d.mts} +5 -5
- package/dist/{plugin-DG_jFA6h.d.mts.map → plugin-DEKMU50e.d.mts.map} +1 -1
- package/dist/{query-NrahUI9e.mjs → query-D7n-dt3m.mjs} +2 -2
- package/dist/{query-NrahUI9e.mjs.map → query-D7n-dt3m.mjs.map} +1 -1
- package/dist/{rate-limit-DUwoICtI.d.mts → rate-limit-oLL5EPUf.d.mts} +1 -1
- package/dist/{rate-limit-DUwoICtI.d.mts.map → rate-limit-oLL5EPUf.d.mts.map} +1 -1
- package/dist/{reactivity-BRvj7bdG.d.mts → reactivity-DWmLcN0A.d.mts} +1 -1
- package/dist/reactivity-DWmLcN0A.d.mts.map +1 -0
- package/dist/{request-id-BgglvZHN.d.mts → request-id-IDobbxU-.d.mts} +1 -1
- package/dist/request-id-IDobbxU-.d.mts.map +1 -0
- package/dist/{request-logger-CWHbAzTE.d.mts → request-logger-DZVW6VNI.d.mts} +1 -1
- package/dist/{request-logger-CWHbAzTE.d.mts.map → request-logger-DZVW6VNI.d.mts.map} +1 -1
- package/dist/{router-builder-CSAOc9MR.d.mts → router-builder-YUcLLArX.d.mts} +2 -2
- package/dist/{router-builder-CSAOc9MR.d.mts.map → router-builder-YUcLLArX.d.mts.map} +1 -1
- package/dist/{session-N0hActOO.d.mts → session-DSRA-PUX.d.mts} +1 -1
- package/dist/{session-N0hActOO.d.mts.map → session-DSRA-PUX.d.mts.map} +1 -1
- package/dist/{spa-DNOAvuFy.d.mts → spa-Cf2c2g7x.d.mts} +2 -2
- package/dist/{spa-DNOAvuFy.d.mts.map → spa-Cf2c2g7x.d.mts.map} +1 -1
- package/dist/{upload-7RRWSKkI.d.mts → upload-D6edAELH.d.mts} +2 -2
- package/dist/{upload-7RRWSKkI.d.mts.map → upload-D6edAELH.d.mts.map} +1 -1
- package/dist/{validate-HwAyWTwH.d.mts → validate-DoZDOhCi.d.mts} +8 -5
- package/dist/validate-DoZDOhCi.d.mts.map +1 -0
- package/dist/{views-srW0E4Ll.d.mts → views-D8Awr9tc.d.mts} +38 -6
- package/dist/views-D8Awr9tc.d.mts.map +1 -0
- package/package.json +10 -6
- package/dist/container-B51bkskE.d.mts.map +0 -1
- package/dist/context-D7sGbb8E.d.mts.map +0 -1
- package/dist/core-CGEbLIPv.mjs.map +0 -1
- package/dist/decorators-KbaPUBXd.d.mts.map +0 -1
- package/dist/env-BvCyDZYf.mjs +0 -12
- package/dist/env-BvCyDZYf.mjs.map +0 -1
- package/dist/error-handler-C4SG5o_i.d.mts.map +0 -1
- package/dist/index-BM32LMqZ.d.mts.map +0 -1
- package/dist/index-BYLVLFA8.d.mts.map +0 -1
- package/dist/path-Diviu6hv.d.mts.map +0 -1
- package/dist/reactivity-BRvj7bdG.d.mts.map +0 -1
- package/dist/request-id-BgglvZHN.d.mts.map +0 -1
- package/dist/validate-HwAyWTwH.d.mts.map +0 -1
- package/dist/views-srW0E4Ll.d.mts.map +0 -1
package/dist/http/context.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import { t as ContextMeta } from "../execution-context-
|
|
3
|
-
import { i as RouteShape, n as DeepReadonly, r as RequestContext, t as Ctx } from "../context-
|
|
4
|
-
export { ContextMeta, Ctx, DeepReadonly, RequestContext, RouteShape };
|
|
2
|
+
import { t as ContextMeta } from "../execution-context-J97mWtz4.mjs";
|
|
3
|
+
import { i as RouteShape, n as DeepReadonly, r as RequestContext, t as Ctx } from "../context-BqxbiEPD.mjs";
|
|
4
|
+
export { type ContextMeta, Ctx, DeepReadonly, RequestContext, RouteShape };
|
package/dist/http/context.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v5.
|
|
2
|
+
* @forinda/kickjs v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import{t as RequestContext}from"../context-
|
|
11
|
+
import{t as RequestContext}from"../context-DgFUi-PJ.mjs";export{RequestContext};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v5.
|
|
2
|
+
* @forinda/kickjs v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import{createLogger}from"../../core/logger.mjs";import"../../core-
|
|
11
|
+
import{createLogger}from"../../core/logger.mjs";import"../../core-BjXLPPbZ.mjs";import{HttpException,ProblemException,normalizeProblem}from"../../core/errors.mjs";const log=createLogger(`ErrorHandler`);function notFoundHandler(){return(_req,res,_next)=>{res.status(404).json({message:`Not Found`})}}function errorHandler(){let isProduction=process.env.NODE_ENV===`production`;return(err,req,res,_next)=>{if(res.headersSent){log.warn(`Error after headers sent: ${err?.message||`Unknown`}`);return}if(err instanceof ProblemException){if(err.problem.status>=500&&log.error(err,err.message),err.headers)for(let[k,v]of Object.entries(err.headers))res.setHeader(k,v);let body=normalizeProblem(err.problem);return res.setHeader(`Content-Type`,`application/problem+json`),res.status(body.status).json(body)}if(err?.name===`ZodError`){let firstIssue=err.issues?.[0];return res.status(422).json({message:firstIssue?.message||`Validation failed`,...isProduction?{}:{errors:err.issues}})}if(err instanceof HttpException){if(err.status>=500&&log.error(err,err.message),err.headers)for(let[k,v]of Object.entries(err.headers))res.setHeader(k,v);let exposeDetails=!isProduction&&err.details!==void 0;return res.status(err.status).json({message:err.message,...exposeDetails?{errors:err.details}:{}})}let status=err.status||err.statusCode||500;log.error(err,`${req.method} ${req.originalUrl} — ${err.message||`Unhandled error`}`);let message=status===500?`Internal Server Error`:err.message||`Error`;res.status(status).json({message})}}export{errorHandler,notFoundHandler};
|
|
12
12
|
//# sourceMappingURL=error-handler.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as RateLimitStore, r as rateLimit, t as RateLimitOptions } from "../../rate-limit-
|
|
2
|
+
import { n as RateLimitStore, r as rateLimit, t as RateLimitOptions } from "../../rate-limit-oLL5EPUf.mjs";
|
|
3
3
|
export { RateLimitOptions, RateLimitStore, rateLimit };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v5.
|
|
2
|
+
* @forinda/kickjs v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import{createLogger}from"../../core/logger.mjs";import"../../core-
|
|
11
|
+
import{createLogger}from"../../core/logger.mjs";import"../../core-BjXLPPbZ.mjs";function requestLogger(options={}){let log=createLogger(options.name??`HTTP`),level=options.level??`info`,skip=options.skip??[];return(req,res,next)=>{if(skip.some(prefix=>req.path.startsWith(prefix)))return next();let start=Date.now();res.on(`finish`,()=>{let duration=Date.now()-start,requestId=req.requestId||req.headers[`x-request-id`]||`-`,status=res.statusCode;log[level](`${req.method} ${req.originalUrl} ${status} ${duration}ms ${requestId}`)}),next()}}export{requestLogger};
|
|
12
12
|
//# sourceMappingURL=request-logger.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as session, i as SessionStore, n as SessionData, r as SessionOptions, t as Session } from "../../session-
|
|
2
|
+
import { a as session, i as SessionStore, n as SessionData, r as SessionOptions, t as Session } from "../../session-DSRA-PUX.mjs";
|
|
3
3
|
export { Session, SessionData, SessionOptions, SessionStore, session };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v5.
|
|
2
|
+
* @forinda/kickjs v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import{v as __require}from"../../container-
|
|
11
|
+
import{v as __require}from"../../container-DziUYitn.mjs";import{Logger}from"../../core/logger.mjs";import"../../core-BjXLPPbZ.mjs";import{existsSync,readFileSync}from"node:fs";import{join,resolve}from"node:path";const log=Logger.for(`SpaAdapter`);var SpaAdapter=class{options;name=`SpaAdapter`;clientDir;apiPrefixes;excludePaths;cacheControl;indexCacheControl;indexHtml=null;constructor(options={}){this.options=options,this.clientDir=resolve(options.clientDir??`dist/client`),this.excludePaths=options.exclude??[],this.cacheControl=options.cacheControl??`public, max-age=31536000, immutable`,this.indexCacheControl=options.indexCacheControl??`no-cache`;let prefix=options.apiPrefix??`/api`;this.apiPrefixes=Array.isArray(prefix)?prefix:[prefix]}beforeMount({app}){if(!existsSync(this.clientDir)){log.warn(`SPA client directory not found: ${this.clientDir}`),log.warn(`Build your frontend first, or set clientDir to the correct path.`);return}let indexPath=join(this.clientDir,`index.html`);if(existsSync(indexPath))this.indexHtml=readFileSync(indexPath,`utf-8`);else{log.warn(`index.html not found in ${this.clientDir}`);return}try{let express=__require(`express`),staticOpts={};this.cacheControl&&(staticOpts.setHeaders=(res,filePath)=>{filePath.endsWith(`.html`)?res.setHeader(`Cache-Control`,this.indexCacheControl):res.setHeader(`Cache-Control`,this.cacheControl)}),app.use(express.static(this.clientDir,staticOpts))}catch{log.error(`express.static not available — SPA static file serving disabled`);return}log.debug(`Serving SPA from ${this.clientDir}`)}beforeStart({app}){this.indexHtml&&app.use((req,res,next)=>{for(let prefix of this.apiPrefixes)if(req.path.startsWith(prefix))return next();for(let path of this.excludePaths)if(req.path.startsWith(path))return next();if(req.path.includes(`.`)||req.method!==`GET`)return next();res.setHeader(`Content-Type`,`text/html`),res.setHeader(`Cache-Control`,this.indexCacheControl),res.send(this.indexHtml)})}};export{SpaAdapter};
|
|
12
12
|
//# sourceMappingURL=spa.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as upload, i as resolveMimeTypes, n as buildUploadMiddleware, r as cleanupFiles, t as UploadOptions } from "../../upload-
|
|
2
|
+
import { a as upload, i as resolveMimeTypes, n as buildUploadMiddleware, r as cleanupFiles, t as UploadOptions } from "../../upload-D6edAELH.mjs";
|
|
3
3
|
export { UploadOptions, buildUploadMiddleware, cleanupFiles, resolveMimeTypes, upload };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v5.
|
|
2
|
+
* @forinda/kickjs v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import"../../core-
|
|
11
|
+
import"../../core-BjXLPPbZ.mjs";import{HttpException,HttpStatus}from"../../core/errors.mjs";import{detectSchema}from"@forinda/kickjs-schema";function toValidationException(issues,message,useFirstIssueMessage){let details=issues.map(i=>({field:i.path.join(`.`)||``,message:i.message})),finalMessage=useFirstIssueMessage?issues[0]?.message??message:message;return new HttpException(HttpStatus.UNPROCESSABLE_ENTITY,finalMessage,details)}function assignReqProperty(req,key,value){Object.defineProperty(req,key,{value,writable:!0,configurable:!0,enumerable:!0})}function validate(schema){return(req,_res,next)=>{try{if(schema.body){let result=detectSchema(schema.body).safeParse(req.body);if(!result.success)return next(toValidationException(result.issues,`Validation failed`,!0));req.body=result.data}if(schema.query){let result=detectSchema(schema.query).safeParse(req.query);if(!result.success)return next(toValidationException(result.issues,`Invalid query parameters`,!1));assignReqProperty(req,`query`,result.data)}if(schema.params){let result=detectSchema(schema.params).safeParse(req.params);if(!result.success)return next(toValidationException(result.issues,`Invalid path parameters`,!1));assignReqProperty(req,`params`,result.data)}next()}catch(err){next(err)}}}export{validate};
|
|
12
12
|
//# sourceMappingURL=validate.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.mjs","names":[],"sources":["../../../src/http/middleware/validate.ts"],"sourcesContent":["import type { Request, Response, NextFunction } from 'express'\nimport { HttpException, HttpStatus } from '../../core'\n\nexport interface ValidationSchema {\n body?: any\n query?: any\n params?: any\n}\n\nfunction toValidationException(\n
|
|
1
|
+
{"version":3,"file":"validate.mjs","names":[],"sources":["../../../src/http/middleware/validate.ts"],"sourcesContent":["import type { Request, Response, NextFunction } from 'express'\nimport { HttpException, HttpStatus } from '../../core'\nimport { detectSchema, type SchemaIssue } from '@forinda/kickjs-schema'\n\nexport interface ValidationSchema {\n body?: any\n query?: any\n params?: any\n}\n\nfunction toValidationException(\n issues: SchemaIssue[],\n message: string,\n useFirstIssueMessage: boolean,\n): HttpException {\n const details = issues.map((i) => ({\n field: i.path.join('.') || '',\n message: i.message,\n }))\n const finalMessage = useFirstIssueMessage ? (issues[0]?.message ?? message) : message\n return new HttpException(HttpStatus.UNPROCESSABLE_ENTITY, finalMessage, details)\n}\n\n/**\n * Express 5 installs `req.query` as a getter-only property (so pluggable\n * `query parser` functions can run lazily). Direct assignment throws in\n * strict mode: `Cannot set property query of #<IncomingMessage> which\n * has only a getter`. `Object.defineProperty` replaces the getter with\n * a plain value slot and sidesteps the throw. Used for `query` and\n * defensively for `params` too — Express 5 currently leaves `params`\n * writable, but swapping the descriptor costs the same and future-proofs\n * against upstream changes.\n */\nfunction assignReqProperty(req: Request, key: 'query' | 'params', value: unknown): void {\n Object.defineProperty(req, key, {\n value,\n writable: true,\n configurable: true,\n enumerable: true,\n })\n}\n\n/**\n * Express middleware that validates request body/query/params against schemas.\n *\n * Accepts any schema supported by `@forinda/kickjs-schema`:\n * - Zod schemas (auto-detected)\n * - Standard Schema v1 objects\n * - KickSchema instances (from adapters like fromZod, fromValibot, etc.)\n * - Plain validator functions\n *\n * Validation failures are forwarded via `next(err)` as an `HttpException`, so\n * they flow through the application's global error handler (`onError`) and\n * produce a uniform response envelope.\n */\nexport function validate(schema: ValidationSchema) {\n return (req: Request, _res: Response, next: NextFunction) => {\n try {\n if (schema.body) {\n const wrapped = detectSchema(schema.body)\n const result = wrapped.safeParse(req.body)\n if (!result.success) {\n return next(toValidationException(result.issues, 'Validation failed', true))\n }\n req.body = result.data\n }\n\n if (schema.query) {\n const wrapped = detectSchema(schema.query)\n const result = wrapped.safeParse(req.query)\n if (!result.success) {\n return next(toValidationException(result.issues, 'Invalid query parameters', false))\n }\n assignReqProperty(req, 'query', result.data)\n }\n\n if (schema.params) {\n const wrapped = detectSchema(schema.params)\n const result = wrapped.safeParse(req.params)\n if (!result.success) {\n return next(toValidationException(result.issues, 'Invalid path parameters', false))\n }\n assignReqProperty(req, 'params', result.data)\n }\n\n next()\n } catch (err) {\n next(err)\n }\n }\n}\n"],"mappings":";;;;;;;;;;6IAUA,SAAS,sBACP,OACA,QACA,qBACe,CACf,IAAM,QAAU,OAAO,IAAK,IAAO,CACjC,MAAO,EAAE,KAAK,KAAK,GAAG,GAAK,GAC3B,QAAS,EAAE,OACb,EAAE,EACI,aAAe,qBAAwB,OAAO,IAAI,SAAW,QAAW,QAC9E,OAAO,IAAI,cAAc,WAAW,qBAAsB,aAAc,OAAO,CACjF,CAYA,SAAS,kBAAkB,IAAc,IAAyB,MAAsB,CACtF,OAAO,eAAe,IAAK,IAAK,CAC9B,MACA,SAAU,GACV,aAAc,GACd,WAAY,EACd,CAAC,CACH,CAeA,SAAgB,SAAS,OAA0B,CACjD,OAAQ,IAAc,KAAgB,OAAuB,CAC3D,GAAI,CACF,GAAI,OAAO,KAAM,CAEf,IAAM,OADU,aAAa,OAAO,IACf,EAAE,UAAU,IAAI,IAAI,EACzC,GAAI,CAAC,OAAO,QACV,OAAO,KAAK,sBAAsB,OAAO,OAAQ,oBAAqB,EAAI,CAAC,EAE7E,IAAI,KAAO,OAAO,IACpB,CAEA,GAAI,OAAO,MAAO,CAEhB,IAAM,OADU,aAAa,OAAO,KACf,EAAE,UAAU,IAAI,KAAK,EAC1C,GAAI,CAAC,OAAO,QACV,OAAO,KAAK,sBAAsB,OAAO,OAAQ,2BAA4B,EAAK,CAAC,EAErF,kBAAkB,IAAK,QAAS,OAAO,IAAI,CAC7C,CAEA,GAAI,OAAO,OAAQ,CAEjB,IAAM,OADU,aAAa,OAAO,MACf,EAAE,UAAU,IAAI,MAAM,EAC3C,GAAI,CAAC,OAAO,QACV,OAAO,KAAK,sBAAsB,OAAO,OAAQ,0BAA2B,EAAK,CAAC,EAEpF,kBAAkB,IAAK,SAAU,OAAO,IAAI,CAC9C,CAEA,KAAK,CACP,OAAS,IAAK,CACZ,KAAK,GAAG,CACV,CACF,CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v5.
|
|
2
|
+
* @forinda/kickjs v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import{Logger}from"../../core/logger.mjs";import{n as defineAdapter}from"../../core-
|
|
11
|
+
import{Logger}from"../../core/logger.mjs";import{n as defineAdapter}from"../../core-BjXLPPbZ.mjs";import{resolve}from"node:path";const log=Logger.for(`ViewEngine`),ViewAdapter=defineAdapter({name:`ViewAdapter`,build:options=>({beforeMount({app}){let{engine,ext,viewsDir=`src/views`}=options;engine.__express?app.engine(ext,engine.__express):typeof engine.renderFile==`function`?app.engine(ext,(path,opts,callback)=>{engine.renderFile(path,opts,callback)}):(typeof engine==`function`||log.warn(`Engine for .${ext} does not have __express or renderFile. Trying as-is.`),app.engine(ext,engine)),app.set(`view engine`,ext),app.set(`views`,resolve(viewsDir)),log.debug(`View engine: ${ext} (${resolve(viewsDir)})`)}})});export{ViewAdapter};
|
|
12
12
|
//# sourceMappingURL=views.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { _ as SortItem, a as parseSearchQuery, c as FILTER_OPERATORS, d as FilterOperator, f as PaginatedResponse, g as QueryFieldConfig, h as QueryBuilderAdapter, i as parseQuery, l as FieldsOf, m as ParsedQuery, n as parseFilters, o as parseSort, p as PaginationParams, r as parsePagination, s as ColumnQueryFieldConfig, t as buildQueryParams, u as FilterItem, v as StringQueryFieldConfig, y as TypedParsedQuery } from "../../index-
|
|
3
|
-
export { ColumnQueryFieldConfig, FILTER_OPERATORS, FieldsOf, FilterItem, FilterOperator, PaginatedResponse, PaginationParams, ParsedQuery, QueryBuilderAdapter, QueryFieldConfig, SortItem, StringQueryFieldConfig, TypedParsedQuery, buildQueryParams, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort };
|
|
2
|
+
import { _ as SortItem, a as parseSearchQuery, c as FILTER_OPERATORS, d as FilterOperator, f as PaginatedResponse, g as QueryFieldConfig, h as QueryBuilderAdapter, i as parseQuery, l as FieldsOf, m as ParsedQuery, n as parseFilters, o as parseSort, p as PaginationParams, r as parsePagination, s as ColumnQueryFieldConfig, t as buildQueryParams, u as FilterItem, v as StringQueryFieldConfig, y as TypedParsedQuery } from "../../index-kEmG8nWU.mjs";
|
|
3
|
+
export { type ColumnQueryFieldConfig, FILTER_OPERATORS, type FieldsOf, type FilterItem, type FilterOperator, type PaginatedResponse, type PaginationParams, type ParsedQuery, type QueryBuilderAdapter, type QueryFieldConfig, type SortItem, type StringQueryFieldConfig, type TypedParsedQuery, buildQueryParams, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v5.
|
|
2
|
+
* @forinda/kickjs v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import{a as parseSearchQuery,i as parseQuery,n as parseFilters,o as parseSort,r as parsePagination,s as FILTER_OPERATORS,t as buildQueryParams}from"../../query-
|
|
11
|
+
import{a as parseSearchQuery,i as parseQuery,n as parseFilters,o as parseSort,r as parsePagination,s as FILTER_OPERATORS,t as buildQueryParams}from"../../query-D7n-dt3m.mjs";export{FILTER_OPERATORS,buildQueryParams,parseFilters,parsePagination,parseQuery,parseSearchQuery,parseSort};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import { n as _setExternalContributorSources, r as buildRoutes, t as BuildRoutesOptions } from "../router-builder-
|
|
2
|
+
import { n as _setExternalContributorSources, r as buildRoutes, t as BuildRoutesOptions } from "../router-builder-YUcLLArX.mjs";
|
|
3
3
|
export { BuildRoutesOptions, _setExternalContributorSources, buildRoutes };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v5.
|
|
2
|
+
* @forinda/kickjs v5.14.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import{t as Container}from"../container-
|
|
11
|
+
import{t as Container}from"../container-DziUYitn.mjs";import{METADATA}from"../core/interfaces.mjs";import{a as getMethodMeta,o as getMethodMetaOrUndefined,t as getClassMeta}from"../metadata-DT5FDNSJ.mjs";import{c as runContributors,l as buildPipeline}from"../core-BjXLPPbZ.mjs";import{t as RequestContext}from"../context-DgFUi-PJ.mjs";import{validate}from"./middleware/validate.mjs";import{buildUploadMiddleware}from"./middleware/upload.mjs";import{Router}from"express";let _externalContributorSources=[];function _setExternalContributorSources(sources){_externalContributorSources=sources}function buildRoutes(controllerClass,options={}){let router=Router(),container=Container.getInstance(),externalSources=options.externalSources??_externalContributorSources,routes=getClassMeta(METADATA.ROUTES,controllerClass,[]),classMiddlewares=getClassMeta(METADATA.CLASS_MIDDLEWARES,controllerClass,[]),classContributors=getClassMeta(METADATA.CLASS_CONTRIBUTORS,controllerClass,[]);for(let route of routes){let method=route.method.toLowerCase(),fullPath=route.path||`/`,methodMiddlewares=getMethodMeta(METADATA.METHOD_MIDDLEWARES,controllerClass,route.handlerName,[]),handlers=[];route.validation&&handlers.push(validate(route.validation));let fileUploadConfig=getMethodMetaOrUndefined(METADATA.FILE_UPLOAD,controllerClass,route.handlerName);fileUploadConfig&&handlers.push(buildUploadMiddleware(fileUploadConfig));for(let mw of[...classMiddlewares,...methodMiddlewares])handlers.push((req,res,next)=>{let ctx=new RequestContext(req,res,next);Promise.resolve(mw(ctx,next)).catch(next)});let methodContributors=getMethodMeta(METADATA.METHOD_CONTRIBUTORS,controllerClass,route.handlerName,[]);if(classContributors.length>0||methodContributors.length>0||externalSources.length>0){let pipeline=buildPipeline([...methodContributors.map((registration,i)=>({source:`method`,registration,label:`${controllerClass.name}.${String(route.handlerName)}#${i}(${registration.key})`})),...classContributors.map((registration,i)=>({source:`class`,registration,label:`${controllerClass.name}.@class#${i}(${registration.key})`})),...externalSources],{route:`${route.method.toUpperCase()} ${fullPath}`});handlers.push(async(req,res,next)=>{let ctx=new RequestContext(req,res,next);try{await runContributors({pipeline,ctx,container}),next()}catch(err){next(err)}})}handlers.push(async(req,res,next)=>{let ctx=new RequestContext(req,res,next);try{await container.resolve(controllerClass)[route.handlerName](ctx)}catch(err){next(err)}}),router[method](fullPath,...handlers)}return router}export{_setExternalContributorSources,buildRoutes};
|
|
12
12
|
//# sourceMappingURL=router-builder.mjs.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { p as EnvKey } from "./decorators-
|
|
2
|
+
import { p as EnvKey } from "./decorators-ejABLo9H.mjs";
|
|
3
|
+
import { InferSchemaOutput } from "@forinda/kickjs-schema";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
|
|
5
6
|
//#region src/config/env.d.ts
|
|
@@ -118,6 +119,40 @@ declare function reloadEnv(): void;
|
|
|
118
119
|
* `.env` reload" footgun.
|
|
119
120
|
*/
|
|
120
121
|
declare function resetEnvCache(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Schema-agnostic env loader. Accepts any schema supported by
|
|
124
|
+
* `@forinda/kickjs-schema` (Zod, Valibot, Yup, Joi, Standard Schema,
|
|
125
|
+
* KickSchema adapters, or plain validator functions).
|
|
126
|
+
*
|
|
127
|
+
* Unlike `loadEnv()` which uses Zod's `.parse()` and throws a
|
|
128
|
+
* `ZodError`, this function uses `detectSchema().safeParse()` and
|
|
129
|
+
* throws a plain `Error` with structured issue messages on failure.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```ts
|
|
133
|
+
* import * as v from 'valibot'
|
|
134
|
+
* import { fromValibot } from '@forinda/kickjs-schema/valibot'
|
|
135
|
+
*
|
|
136
|
+
* const envSchema = fromValibot(v.object({
|
|
137
|
+
* PORT: v.pipe(v.string(), v.transform(Number)),
|
|
138
|
+
* NODE_ENV: v.picklist(['development', 'production', 'test']),
|
|
139
|
+
* }))
|
|
140
|
+
*
|
|
141
|
+
* export const env = loadEnvFromSchema(envSchema)
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
/**
|
|
145
|
+
* Single inferring signature. `TSchema` is inferred from the call site;
|
|
146
|
+
* the conditional return type maps the unknown-input case (TSchema
|
|
147
|
+
* resolves to `unknown` only when the argument is `unknown`-typed
|
|
148
|
+
* because nothing on the value side carried a richer brand) to
|
|
149
|
+
* `Record<string, unknown>` rather than letting `InferSchemaOutput`
|
|
150
|
+
* fall through to `unknown`. The previous two-overload form had the
|
|
151
|
+
* generic overload win for `unknown`-typed inputs (`unknown` is
|
|
152
|
+
* assignable to any `TSchema`), so the documented "Record" fallback
|
|
153
|
+
* never actually applied.
|
|
154
|
+
*/
|
|
155
|
+
declare function loadEnvFromSchema<TSchema>(schema: TSchema): unknown extends TSchema ? Record<string, unknown> : InferSchemaOutput<TSchema>;
|
|
121
156
|
type Env = z.infer<typeof baseEnvSchema>;
|
|
122
157
|
//#endregion
|
|
123
158
|
//#region src/config/config-service.d.ts
|
|
@@ -241,5 +276,5 @@ declare function createConfigService<T extends z.ZodObject<any>>(schema: T): {
|
|
|
241
276
|
new (): TypedConfigService<z.TypeOf<T>>;
|
|
242
277
|
};
|
|
243
278
|
//#endregion
|
|
244
|
-
export { baseEnvSchema as a, loadEnv as c, Env as i,
|
|
245
|
-
//# sourceMappingURL=index-
|
|
279
|
+
export { baseEnvSchema as a, loadEnv as c, resetEnvCache as d, Env as i, loadEnvFromSchema as l, TypedConfigService as n, defineEnv as o, createConfigService as r, getEnv as s, ConfigService as t, reloadEnv as u };
|
|
280
|
+
//# sourceMappingURL=index-CFM7HDaD.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CFM7HDaD.d.mts","names":[],"sources":["../src/config/env.ts","../src/config/config-service.ts"],"mappings":";;;;;;;;AAuCA;;cAAa,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyC1B;;;iBAAgB,SAAA,WAAoB,CAAA,CAAE,WAAA,EACpC,MAAA,GAAS,IAAA,SAAa,aAAA,KAAkB,CAAA,CAAE,SAAA,CAAU,CAAA,IACnD,CAAA,CAAE,SAAA,QAAiB,aAAA,CAAc,KAAA,GAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBA+B5B,OAAA,WAAkB,CAAA,CAAE,SAAA,OAAgB,MAAA,EAAQ,CAAA,GAAI,CAAA,CAAE,KAAA,CAAM,CAAA;AAAA,iBACxD,O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AK,CAAA;EACjD,MAAA,IAAU,QAAA,CAAS,IAAA;EACnB,MAAA;EACA,YAAA;EACA,aAAA;EACA,MAAA;AAAA;ADHF;;;;;;;;;;;;AAAmE;AAqCnE;;;;;;;;;;;;;;;AArCA,iBCkCgB,mBAAA,WAA8B,CAAA,CAAE,SAAA,OAAgB,MAAA,EAAQ,CAAA;EAAA,QAqC5D,kBAAA,CAAkB,CAAA,CAAA,MAAA,CAAA,CAAA;AAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import { s as InjectionToken, t as Container } from "./container-
|
|
3
|
-
import { n as ExecutionContext } from "./execution-context-
|
|
4
|
-
import { t as AnyContributorRegistration } from "./context-decorator
|
|
5
|
-
import { r as AppAdapter } from "./adapter-
|
|
6
|
-
import { r as AppModuleEntry, t as AppModule } from "./app-module-
|
|
7
|
-
import { t as KickPlugin } from "./plugin-
|
|
2
|
+
import { s as InjectionToken, t as Container } from "./container-TWOUyR_0.mjs";
|
|
3
|
+
import { n as ExecutionContext } from "./execution-context-J97mWtz4.mjs";
|
|
4
|
+
import { t as AnyContributorRegistration } from "./context-decorator--tgS3nKW.mjs";
|
|
5
|
+
import { r as AppAdapter } from "./adapter-EaDb0yXA.mjs";
|
|
6
|
+
import { r as AppModuleEntry, t as AppModule } from "./app-module-CFhn1C8b.mjs";
|
|
7
|
+
import { t as KickPlugin } from "./plugin-DEKMU50e.mjs";
|
|
8
8
|
//#region src/core/define-plugin.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* Options passed to {@link definePlugin}. Mirrors the spec in
|
|
@@ -793,4 +793,4 @@ declare function groupAssetKeys(namespace: string, paths: readonly string[], opt
|
|
|
793
793
|
declare function stripExt(path: string): string;
|
|
794
794
|
//#endregion
|
|
795
795
|
export { defineModule as $, CircuitBreakerStats as A, pushMethodMeta as B, buildPipeline as C, CircuitBreaker as D, MissingContributorError as E, getMetaRecord as F, FormatKickErrorOptions as G, setInMetaMap as H, getMethodMeta as I, formatKickError as J, KickError as K, getMethodMetaOrUndefined as L, getClassMeta as M, getClassMetaOrUndefined as N, CircuitBreakerOptions as O, getMetaMap as P, ModuleFactory as Q, hasClassMeta as R, SourcedRegistration as S, DuplicateContributorError as T, setInMetaRecord as U, setClassMeta as V, setMethodMeta as W, defineModules as X, ModuleList as Y, DefineModuleOptions as Z, RunContributorsOptions as _, groupAssetKeys as a, ContributorPipeline as b, AdapterFactory as c, DuplicateMountNameError as d, BuildContext as et, MissingMountDepError as f, mountSort as g, MountSortItem as h, GroupAssetKeysResult as i, definePlugin as it, CircuitOpenError as j, CircuitBreakerState as k, DefineAdapterOptions as l, MountKind as m, AssetKeyStrategy as n, PluginAsyncOptions as nt, stripExt as o, MountCycleError as p, KickErrorInit as q, GroupAssetKeysOptions as r, PluginFactory as rt, AdapterAsyncOptions as s, AssetKeyPair as t, DefinePluginOptions as tt, defineAdapter as u, runContributors as v, ContributorCycleError as w, ContributorSource as x, BuildPipelineOptions as y, pushClassMeta as z };
|
|
796
|
-
//# sourceMappingURL=index-
|
|
796
|
+
//# sourceMappingURL=index-UpQwKBR3.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-UpQwKBR3.d.mts","names":[],"sources":["../src/core/define-plugin.ts","../src/core/define-module.ts","../src/core/define-modules.ts","../src/core/kick-error.ts","../src/core/metadata.ts","../src/core/circuit-breaker.ts","../src/core/context-errors.ts","../src/core/contributor-pipeline.ts","../src/core/contributor-runner.ts","../src/core/mount-sort.ts","../src/core/define-adapter.ts","../src/core/asset-keys.ts"],"mappings":";;;;;;;;;;;;UAOiB,mBAAA;;EAEf,IAAA;;EAGA,OAAA;;;AALF;;EAWE,QAAA;IAAa,MAAA;EAAA;EAMC;EAHd,QAAA,GAAW,OAAA,CAAQ,OAAA;EAG6B;EAAhD,KAAA,CAAM,MAAA,EAAQ,OAAA,EAAS,GAAA,EAAK,YAAA,GAAe,IAAA,CAAK,UAAA;AAAA;;;;;;;UASjC,YAAA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Aa,MAAA;EAC1C,MAAA,CAAO,SAAA,UAAmB,MAAA,GAAS,OAAA,CAAQ,OAAA,IAAW,UAAA,GAAa,MAAA;EACnE,KAAA,CAAM,IAAA,EAAM,mBAAA,CAAoB,OAAA,IAAW,UAAA;EAAA,SAClC,UAAA,EAAY,QAAA,CAAS,oBAAA,CAAqB,OAAA,EAAS,MAAA;AAAA;;;;;;;;;;;;;AVDP;AAQvD;;;;;;;;;;;;iBU4BgB,aAAA,WAAwB,MAAA,qCACtC,OAAA,EAAS,oBAAA,CAAqB,OAAA,EAAS,MAAA,IACtC,cAAA,CAAe,OAAA,EAAS,MAAA;;;KChEf,gBAAA;AAAA,UAEK,YAAA;;EAEf,GAAA;;EAEA,GAAG;AAAA;AAAA,UAGY,qBAAA;;;;;AXzBjB;;;EWiCE,QAAA,GAAW,gBAAgB;AAAA;AAAA,UAGZ,oBAAA;EACf,KAAA,EAAO,YAAY;EXpB6B;;;;;;;EW4BhD,uBAAA;AAAA;;;;;;;;;;;iBAac,cAAA,CACd,SAAA,UACA,KAAA,qBACA,IAAA,GAAM,qBAAA,GACL,oBAAoB;AX7CqC;AAAA,iBWwG5C,QAAA,CAAS,IAAY"}
|
|
@@ -181,4 +181,4 @@ declare function parseQuery<TConfig extends QueryFieldConfig | undefined = undef
|
|
|
181
181
|
declare function buildQueryParams(parsed: Partial<ParsedQuery>): Record<string, string | string[] | number>;
|
|
182
182
|
//#endregion
|
|
183
183
|
export { SortItem as _, parseSearchQuery as a, FILTER_OPERATORS as c, FilterOperator as d, PaginatedResponse as f, QueryFieldConfig as g, QueryBuilderAdapter as h, parseQuery as i, FieldsOf as l, ParsedQuery as m, parseFilters as n, parseSort as o, PaginationParams as p, parsePagination as r, ColumnQueryFieldConfig as s, buildQueryParams as t, FilterItem as u, StringQueryFieldConfig as v, TypedParsedQuery as y };
|
|
184
|
-
//# sourceMappingURL=index-
|
|
184
|
+
//# sourceMappingURL=index-kEmG8nWU.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-kEmG8nWU.d.mts","names":[],"sources":["../src/http/query/types.ts","../src/http/query/parse-query.ts"],"mappings":";;;KACY,cAAA;AAAA,cAaC,gBAAA,EAAgB,GAAA;AAAA,UAcZ,UAAA;EACf,KAAA;EACA,QAAA,EAAU,cAAc;EACxB,KAAA;AAAA;AAAA,UAGe,QAAA;EACf,KAAA;EACA,SAAS;AAAA;AAAA,UAGM,gBAAA;EACf,IAAA;EACA,KAAA;EACA,MAAA;AAAA;;;;AAXK;AAGP;UAgBiB,WAAA;EACf,OAAA,EAAS,UAAA;EACT,IAAA,EAAM,QAAA;EACN,UAAA,EAAY,gBAAA;EACZ,MAAA;AAAA;;;;;;;AAZM;AAQR;KAeY,QAAA,iBACM,gBAAA,oEAEd,OAAA,0BAAiC,CAAA,4BACjC,CAAA,kBACE,CAAA,YAEF,OAAA;EAAkB,OAAA;AAAA,IAChB,CAAA,8BACQ,CAAA;;;;;;;;;;;AApBN;AAWR;;;;;;UA8BiB,gBAAA,iBACC,gBAAA,sBACR,WAAA;EACR,OAAA,EAAS,KAAA,CAAM,UAAA;IAAe,KAAA,EAAO,QAAA,CAAS,OAAA;EAAA;EAC9C,IAAA,EAAM,KAAA,CAAM,QAAA;IAAa,KAAA,EAAO,QAAA,CAAS,OAAA;EAAA;AAAA;;;;;;;;;;;KAa/B,gBAAA,GAAmB,sBAAA,GAAyB,sBAAsB;AAAA,UAE7D,sBAAA;EACf,UAAA;EACA,QAAA;EACA,UAAA;AAAA;;;;;UAOe,sBAAA;EACf,OAAA,EAAS,MAAA;EACT,QAAA,GAAW,MAAM;EACjB,aAAA;EAAA,CACC,GAAA;AAAA;;UAIc,iBAAA;EACf,IAAA,EAAM,CAAC;EACP,IAAA;IACE,IAAA;IACA,KAAA;IACA,KAAA;IACA,UAAA;IACA,OAAA;IACA,OAAA;EAAA;AAAA;;;;;;;AAzC8C;AAalD;;;;AAA8E;AAE9E;;;;;;;;AAGY;AAOZ;;UA2CiB,mBAAA;EAzCE;EAAA,SA2CR,IAAA;EA5CA;;;;;EAmDT,KAAA,CAAM,MAAA,EAAQ,WAAA,EAAa,MAAA,EAAQ,OAAA,GAAU,OAAA;AAAA;;;AA/K/C;AAAA,iBCmBgB,YAAA,CACd,WAAA,iCACA,aAAA,cACC,UAAU;;iBA8BG,SAAA,CACd,SAAA,iCACA,aAAA,cACC,QAAQ;ADvDe;AAAA,iBCiFV,eAAA,CAAgB,MAAA;EAC9B,IAAA;EACA,KAAA;AAAA,IACE,gBAAgB;ADvES;AAAA,iBCyFb,gBAAA,CAAiB,CAAqB;;;;;;;;;ADxE/C;AAGP;;;;AAEW;AAGX;;;;;;;;AAGQ;AAQR;;;;;iBC+GgB,UAAA,iBAA2B,gBAAA,0BACzC,KAAA,EAAO,MAAA,eACP,WAAA,GAAc,OAAA,GACb,gBAAA,CAAiB,OAAA;;iBAaJ,gBAAA,CACd,MAAA,EAAQ,OAAA,CAAQ,WAAA,IACf,MAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
|
|
2
|
-
import { a as METADATA, c as Scope, i as Constructor, l as ServiceOptions, n as BuilderOf, o as MaybePromise, r as ClassKind, s as PostConstructStatus, t as Buildable } from "./interfaces-
|
|
3
|
-
import { a as tokenName, c as createToken, i as KickJsRegistry, l as isInjectionToken, n as ContainerChangeEvent, o as INJECTION_TOKEN, r as ContainerChangeListener, s as InjectionToken, t as Container } from "./container-
|
|
4
|
-
import { A as Value, B as useAssets, C as Post, D as Repository, E as Put, F as KickAssets, I as UnknownAssetError, L as assets, M as withBuilder, N as ASSETS, O as RouteDefinition, P as ASSET_MANIFEST_VERSION, R as clearAssetCache, S as Patch, _ as Get, a as Autowired, b as Middleware, c as ColumnApiQueryParamsConfig, d as Delete, f as Env, g as FileUploadConfig, h as FileUpload, i as AssetKey, j as normalizeApiQueryParamsConfig, k as Service, l as Component, m as FileTypeFilter, n as ApiQueryParamsConfig, o as BaseUploadOptions, p as EnvKey, r as Asset, s as Builder, t as ApiQueryParams, u as Controller, v as Inject, w as PostConstruct, x as MiddlewareHandler, y as Injectable, z as resolveAsset } from "./decorators-
|
|
5
|
-
import { a as baseEnvSchema, c as loadEnv, l as
|
|
6
|
-
import { n as ExecutionContext, r as MetaValue, t as ContextMeta } from "./execution-context-
|
|
7
|
-
import { a as ContextMetaKey, c as DepValue, i as ContextDecoratorTarget, l as ResolvedDeps, n as ContextDecorator, o as ContributorRegistration, r as ContextDecoratorSpec, s as ContributorRegistrations, t as AnyContributorRegistration, u as defineContextDecorator } from "./context-decorator
|
|
8
|
-
import { a as MiddlewarePath, c as KickJsPluginName, d as IntrospectFn, f as IntrospectionKind, i as AppAdapterClass, l as KickJsPluginRegistry, n as AdapterMiddleware, o as MiddlewarePhase, p as IntrospectionSnapshot, r as AppAdapter, s as AugmentationMeta, t as AdapterContext, u as defineAugmentation } from "./adapter-
|
|
9
|
-
import { i as ModuleRoutes, n as AppModuleClass, r as AppModuleEntry, t as AppModule } from "./app-module-
|
|
10
|
-
import { a as Cacheable, c as setCacheProvider, i as CacheProvider, n as CacheEvict, o as MemoryCacheProvider, r as CacheOptions, s as getCacheProvider } from "./cache-
|
|
11
|
-
import { i as getCronJobs, n as Cron, r as CronJobMeta, t as CRON_META } from "./cron-
|
|
12
|
-
import { a as ProblemException, c as defaultProblemTitle, i as ProblemDetails, l as normalizeProblem, n as HttpStatus, o as Problems, r as HttpStatusCode, s as ValidationError, t as HttpException } from "./errors-
|
|
13
|
-
import { i as createLogger, n as Logger, r as LoggerProvider, t as ConsoleLoggerProvider } from "./logger-
|
|
14
|
-
import { n as normalizePath, t as joinPaths } from "./path-
|
|
15
|
-
import { n as ModuleRegistry, r as MutableModuleRegistry, t as KickPlugin } from "./plugin-
|
|
16
|
-
import { a as isRef, c as toRefs, i as computed, l as unref, n as Ref, o as reactive, r as WatchOptions, s as ref, t as ComputedRef, u as watch } from "./reactivity-
|
|
17
|
-
import { $ as defineModule, A as CircuitBreakerStats, B as pushMethodMeta, C as buildPipeline, D as CircuitBreaker, E as MissingContributorError, F as getMetaRecord, G as FormatKickErrorOptions, H as setInMetaMap, I as getMethodMeta, J as formatKickError, K as KickError, L as getMethodMetaOrUndefined, M as getClassMeta, N as getClassMetaOrUndefined, O as CircuitBreakerOptions, P as getMetaMap, Q as ModuleFactory, R as hasClassMeta, S as SourcedRegistration, T as DuplicateContributorError, U as setInMetaRecord, V as setClassMeta, W as setMethodMeta, X as defineModules, Y as ModuleList, Z as DefineModuleOptions, _ as RunContributorsOptions, a as groupAssetKeys, b as ContributorPipeline, c as AdapterFactory, d as DuplicateMountNameError, et as BuildContext, f as MissingMountDepError, g as mountSort, h as MountSortItem, i as GroupAssetKeysResult, it as definePlugin, j as CircuitOpenError, k as CircuitBreakerState, l as DefineAdapterOptions, m as MountKind, n as AssetKeyStrategy, nt as PluginAsyncOptions, o as stripExt, p as MountCycleError, q as KickErrorInit, r as GroupAssetKeysOptions, rt as PluginFactory, s as AdapterAsyncOptions, t as AssetKeyPair, tt as DefinePluginOptions, u as defineAdapter, v as runContributors, w as ContributorCycleError, x as ContributorSource, y as BuildPipelineOptions, z as pushClassMeta } from "./index-
|
|
18
|
-
import { n as ApplicationOptions, r as MiddlewareEntry, t as Application } from "./application-
|
|
19
|
-
import { t as bootstrap } from "./bootstrap-
|
|
20
|
-
import { _ as SortItem, a as parseSearchQuery, c as FILTER_OPERATORS, d as FilterOperator, f as PaginatedResponse, g as QueryFieldConfig, h as QueryBuilderAdapter, i as parseQuery, l as FieldsOf, m as ParsedQuery, n as parseFilters, o as parseSort, p as PaginationParams, r as parsePagination, t as buildQueryParams, u as FilterItem, y as TypedParsedQuery } from "./index-
|
|
21
|
-
import { i as RouteShape, n as DeepReadonly, r as RequestContext, t as Ctx } from "./context-
|
|
22
|
-
import { n as cors, t as CorsOptions } from "./cors-
|
|
23
|
-
import { n as csrf, t as CsrfOptions } from "./csrf-
|
|
24
|
-
import { n as notFoundHandler, t as errorHandler } from "./error-handler-
|
|
25
|
-
import { n as helmet, t as HelmetOptions } from "./helmet-
|
|
26
|
-
import { n as RateLimitStore, r as rateLimit, t as RateLimitOptions } from "./rate-limit-
|
|
27
|
-
import { n as requestId, t as REQUEST_ID_HEADER } from "./request-id-
|
|
28
|
-
import { n as requestLogger, t as RequestLoggerOptions } from "./request-logger-
|
|
29
|
-
import { a as session, i as SessionStore, n as SessionData, r as SessionOptions, t as Session } from "./session-
|
|
30
|
-
import { n as SpaAdapterOptions, t as SpaAdapter } from "./spa-
|
|
31
|
-
import { a as upload, i as resolveMimeTypes, n as buildUploadMiddleware, r as cleanupFiles, t as UploadOptions } from "./upload-
|
|
32
|
-
import { n as validate } from "./validate-
|
|
33
|
-
import { a as TraceContextOptions, c as requestScopeMiddleware, d as getRequestValue, f as requestStore, h as isClusterPrimary, i as TraceContext, l as RequestStore, m as ClusterOptions, n as ViewAdapterOptions, o as parseTraceparent, p as defineHttpContextDecorator, r as TRACEPARENT_HEADER, s as traceContext, t as ViewAdapter, u as getRequestStore } from "./views-
|
|
34
|
-
import { r as buildRoutes } from "./router-builder-
|
|
35
|
-
export { ASSETS, ASSET_MANIFEST_VERSION, AdapterAsyncOptions, AdapterContext, AdapterFactory, AdapterMiddleware, AnyContributorRegistration, ApiQueryParams, ApiQueryParamsConfig, ApiQueryParamsConfig as QueryParamsConfig, AppAdapter, AppAdapterClass, AppModule, AppModuleClass, AppModuleEntry, Application, ApplicationOptions, Asset, AssetKey, AssetKeyPair, AssetKeyStrategy, AugmentationMeta, Autowired, BaseUploadOptions, BuildContext, BuildPipelineOptions, Buildable, Builder, BuilderOf, CRON_META, CacheEvict, CacheOptions, CacheProvider, Cacheable, CircuitBreaker, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStats, CircuitOpenError, ClassKind, ClusterOptions, ColumnApiQueryParamsConfig, Component, ComputedRef, ConfigService, ConsoleLoggerProvider, Constructor, Container, ContainerChangeEvent, ContainerChangeListener, ContextDecorator, ContextDecoratorSpec, ContextDecoratorTarget, ContextMeta, ContextMetaKey, ContributorCycleError, ContributorPipeline, ContributorRegistration, ContributorRegistrations, ContributorSource, Controller, CorsOptions, Cron, CronJobMeta, CsrfOptions, Ctx, DeepReadonly, DefineAdapterOptions, DefineModuleOptions, DefinePluginOptions, Delete, DepValue, DuplicateContributorError, DuplicateMountNameError, Env, EnvKey, ExecutionContext, FILTER_OPERATORS, FieldsOf, FileTypeFilter, FileUpload, FileUploadConfig, FilterItem, FilterOperator, FormatKickErrorOptions, Get, GroupAssetKeysOptions, GroupAssetKeysResult, HelmetOptions, HttpException, HttpStatus, HttpStatusCode, INJECTION_TOKEN, Inject, Injectable, InjectionToken, IntrospectFn, IntrospectionKind, IntrospectionSnapshot, KickAssets, KickError, KickErrorInit, KickJsPluginName, KickJsPluginRegistry, KickJsRegistry, KickPlugin, Logger, LoggerProvider, METADATA, MaybePromise, MemoryCacheProvider, MetaValue, Middleware, MiddlewareEntry, MiddlewareHandler, MiddlewarePath, MiddlewarePhase, MissingContributorError, MissingMountDepError, ModuleFactory, ModuleList, ModuleRegistry, ModuleRoutes, MountCycleError, MountKind, MountSortItem, MutableModuleRegistry, PaginatedResponse, PaginationParams, ParsedQuery, Patch, PluginAsyncOptions, PluginFactory, Post, PostConstruct, PostConstructStatus, ProblemDetails, ProblemException, Problems, Put, QueryBuilderAdapter, QueryFieldConfig, REQUEST_ID_HEADER, RateLimitOptions, RateLimitStore, Ref, Repository, RequestContext, RequestLoggerOptions, RequestStore, ResolvedDeps, RouteDefinition, RouteShape, RunContributorsOptions, Scope, Service, ServiceOptions, Session, SessionData, SessionOptions, SessionStore, SortItem, SourcedRegistration, SpaAdapter, SpaAdapterOptions, TRACEPARENT_HEADER, TraceContext, TraceContextOptions, TypedConfigService, TypedParsedQuery, UnknownAssetError, UploadOptions, ValidationError, Value, ViewAdapter, ViewAdapterOptions, WatchOptions, assets, baseEnvSchema, bootstrap, buildPipeline, buildQueryParams, buildRoutes, buildUploadMiddleware, cleanupFiles, clearAssetCache, computed, cors, createConfigService, createLogger, createToken, csrf, defaultProblemTitle, defineAdapter, defineAugmentation, defineContextDecorator, defineEnv, defineHttpContextDecorator, defineModule, defineModules, definePlugin, errorHandler, formatKickError, getCacheProvider, getClassMeta, getClassMetaOrUndefined, getCronJobs, getEnv, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, getRequestStore, getRequestValue, groupAssetKeys, hasClassMeta, helmet, isClusterPrimary, isInjectionToken, isRef, joinPaths, loadEnv, mountSort, normalizeApiQueryParamsConfig, normalizePath, normalizeProblem, notFoundHandler, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort, parseTraceparent, pushClassMeta, pushMethodMeta, rateLimit, reactive, ref, reloadEnv, requestId, requestLogger, requestScopeMiddleware, requestStore, resetEnvCache, resolveAsset, resolveMimeTypes, runContributors, session, setCacheProvider, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta, stripExt, toRefs, tokenName, traceContext, unref, upload, useAssets, validate, watch, withBuilder };
|
|
2
|
+
import { a as METADATA, c as Scope, i as Constructor, l as ServiceOptions, n as BuilderOf, o as MaybePromise, r as ClassKind, s as PostConstructStatus, t as Buildable } from "./interfaces-DbTyKGdS.mjs";
|
|
3
|
+
import { a as tokenName, c as createToken, i as KickJsRegistry, l as isInjectionToken, n as ContainerChangeEvent, o as INJECTION_TOKEN, r as ContainerChangeListener, s as InjectionToken, t as Container } from "./container-TWOUyR_0.mjs";
|
|
4
|
+
import { A as Value, B as useAssets, C as Post, D as Repository, E as Put, F as KickAssets, I as UnknownAssetError, L as assets, M as withBuilder, N as ASSETS, O as RouteDefinition, P as ASSET_MANIFEST_VERSION, R as clearAssetCache, S as Patch, _ as Get, a as Autowired, b as Middleware, c as ColumnApiQueryParamsConfig, d as Delete, f as Env, g as FileUploadConfig, h as FileUpload, i as AssetKey, j as normalizeApiQueryParamsConfig, k as Service, l as Component, m as FileTypeFilter, n as ApiQueryParamsConfig, o as BaseUploadOptions, p as EnvKey, r as Asset, s as Builder, t as ApiQueryParams, u as Controller, v as Inject, w as PostConstruct, x as MiddlewareHandler, y as Injectable, z as resolveAsset } from "./decorators-ejABLo9H.mjs";
|
|
5
|
+
import { a as baseEnvSchema, c as loadEnv, d as resetEnvCache, l as loadEnvFromSchema, n as TypedConfigService, o as defineEnv, r as createConfigService, s as getEnv, t as ConfigService, u as reloadEnv } from "./index-CFM7HDaD.mjs";
|
|
6
|
+
import { n as ExecutionContext, r as MetaValue, t as ContextMeta } from "./execution-context-J97mWtz4.mjs";
|
|
7
|
+
import { a as ContextMetaKey, c as DepValue, i as ContextDecoratorTarget, l as ResolvedDeps, n as ContextDecorator, o as ContributorRegistration, r as ContextDecoratorSpec, s as ContributorRegistrations, t as AnyContributorRegistration, u as defineContextDecorator } from "./context-decorator--tgS3nKW.mjs";
|
|
8
|
+
import { a as MiddlewarePath, c as KickJsPluginName, d as IntrospectFn, f as IntrospectionKind, i as AppAdapterClass, l as KickJsPluginRegistry, n as AdapterMiddleware, o as MiddlewarePhase, p as IntrospectionSnapshot, r as AppAdapter, s as AugmentationMeta, t as AdapterContext, u as defineAugmentation } from "./adapter-EaDb0yXA.mjs";
|
|
9
|
+
import { i as ModuleRoutes, n as AppModuleClass, r as AppModuleEntry, t as AppModule } from "./app-module-CFhn1C8b.mjs";
|
|
10
|
+
import { a as Cacheable, c as setCacheProvider, i as CacheProvider, n as CacheEvict, o as MemoryCacheProvider, r as CacheOptions, s as getCacheProvider } from "./cache-BSFDtsEG.mjs";
|
|
11
|
+
import { i as getCronJobs, n as Cron, r as CronJobMeta, t as CRON_META } from "./cron-DOOtTY4q.mjs";
|
|
12
|
+
import { a as ProblemException, c as defaultProblemTitle, i as ProblemDetails, l as normalizeProblem, n as HttpStatus, o as Problems, r as HttpStatusCode, s as ValidationError, t as HttpException } from "./errors-CRCTjEUK.mjs";
|
|
13
|
+
import { i as createLogger, n as Logger, r as LoggerProvider, t as ConsoleLoggerProvider } from "./logger-BnBVjmDa.mjs";
|
|
14
|
+
import { n as normalizePath, t as joinPaths } from "./path-BVA9MfN1.mjs";
|
|
15
|
+
import { n as ModuleRegistry, r as MutableModuleRegistry, t as KickPlugin } from "./plugin-DEKMU50e.mjs";
|
|
16
|
+
import { a as isRef, c as toRefs, i as computed, l as unref, n as Ref, o as reactive, r as WatchOptions, s as ref, t as ComputedRef, u as watch } from "./reactivity-DWmLcN0A.mjs";
|
|
17
|
+
import { $ as defineModule, A as CircuitBreakerStats, B as pushMethodMeta, C as buildPipeline, D as CircuitBreaker, E as MissingContributorError, F as getMetaRecord, G as FormatKickErrorOptions, H as setInMetaMap, I as getMethodMeta, J as formatKickError, K as KickError, L as getMethodMetaOrUndefined, M as getClassMeta, N as getClassMetaOrUndefined, O as CircuitBreakerOptions, P as getMetaMap, Q as ModuleFactory, R as hasClassMeta, S as SourcedRegistration, T as DuplicateContributorError, U as setInMetaRecord, V as setClassMeta, W as setMethodMeta, X as defineModules, Y as ModuleList, Z as DefineModuleOptions, _ as RunContributorsOptions, a as groupAssetKeys, b as ContributorPipeline, c as AdapterFactory, d as DuplicateMountNameError, et as BuildContext, f as MissingMountDepError, g as mountSort, h as MountSortItem, i as GroupAssetKeysResult, it as definePlugin, j as CircuitOpenError, k as CircuitBreakerState, l as DefineAdapterOptions, m as MountKind, n as AssetKeyStrategy, nt as PluginAsyncOptions, o as stripExt, p as MountCycleError, q as KickErrorInit, r as GroupAssetKeysOptions, rt as PluginFactory, s as AdapterAsyncOptions, t as AssetKeyPair, tt as DefinePluginOptions, u as defineAdapter, v as runContributors, w as ContributorCycleError, x as ContributorSource, y as BuildPipelineOptions, z as pushClassMeta } from "./index-UpQwKBR3.mjs";
|
|
18
|
+
import { n as ApplicationOptions, r as MiddlewareEntry, t as Application } from "./application-BEGxObrr.mjs";
|
|
19
|
+
import { t as bootstrap } from "./bootstrap-Cdofwou7.mjs";
|
|
20
|
+
import { _ as SortItem, a as parseSearchQuery, c as FILTER_OPERATORS, d as FilterOperator, f as PaginatedResponse, g as QueryFieldConfig, h as QueryBuilderAdapter, i as parseQuery, l as FieldsOf, m as ParsedQuery, n as parseFilters, o as parseSort, p as PaginationParams, r as parsePagination, t as buildQueryParams, u as FilterItem, y as TypedParsedQuery } from "./index-kEmG8nWU.mjs";
|
|
21
|
+
import { i as RouteShape, n as DeepReadonly, r as RequestContext, t as Ctx } from "./context-BqxbiEPD.mjs";
|
|
22
|
+
import { n as cors, t as CorsOptions } from "./cors-C4aSCD3J.mjs";
|
|
23
|
+
import { n as csrf, t as CsrfOptions } from "./csrf-7nUXGTuz.mjs";
|
|
24
|
+
import { n as notFoundHandler, t as errorHandler } from "./error-handler-3ih4E-QZ.mjs";
|
|
25
|
+
import { n as helmet, t as HelmetOptions } from "./helmet-CKzZzeNl.mjs";
|
|
26
|
+
import { n as RateLimitStore, r as rateLimit, t as RateLimitOptions } from "./rate-limit-oLL5EPUf.mjs";
|
|
27
|
+
import { n as requestId, t as REQUEST_ID_HEADER } from "./request-id-IDobbxU-.mjs";
|
|
28
|
+
import { n as requestLogger, t as RequestLoggerOptions } from "./request-logger-DZVW6VNI.mjs";
|
|
29
|
+
import { a as session, i as SessionStore, n as SessionData, r as SessionOptions, t as Session } from "./session-DSRA-PUX.mjs";
|
|
30
|
+
import { n as SpaAdapterOptions, t as SpaAdapter } from "./spa-Cf2c2g7x.mjs";
|
|
31
|
+
import { a as upload, i as resolveMimeTypes, n as buildUploadMiddleware, r as cleanupFiles, t as UploadOptions } from "./upload-D6edAELH.mjs";
|
|
32
|
+
import { n as validate } from "./validate-DoZDOhCi.mjs";
|
|
33
|
+
import { a as TraceContextOptions, c as requestScopeMiddleware, d as getRequestValue, f as requestStore, h as isClusterPrimary, i as TraceContext, l as RequestStore, m as ClusterOptions, n as ViewAdapterOptions, o as parseTraceparent, p as defineHttpContextDecorator, r as TRACEPARENT_HEADER, s as traceContext, t as ViewAdapter, u as getRequestStore } from "./views-D8Awr9tc.mjs";
|
|
34
|
+
import { r as buildRoutes } from "./router-builder-YUcLLArX.mjs";
|
|
35
|
+
export { ASSETS, ASSET_MANIFEST_VERSION, type AdapterAsyncOptions, type AdapterContext, type AdapterFactory, type AdapterMiddleware, type AnyContributorRegistration, ApiQueryParams, type ApiQueryParamsConfig, type ApiQueryParamsConfig as QueryParamsConfig, type AppAdapter, type AppAdapterClass, type AppModule, type AppModuleClass, type AppModuleEntry, Application, type ApplicationOptions, Asset, type AssetKey, type AssetKeyPair, type AssetKeyStrategy, type AugmentationMeta, Autowired, type BaseUploadOptions, type BuildContext, type BuildPipelineOptions, type Buildable, Builder, type BuilderOf, CRON_META, CacheEvict, type CacheOptions, type CacheProvider, Cacheable, CircuitBreaker, type CircuitBreakerOptions, type CircuitBreakerState, type CircuitBreakerStats, CircuitOpenError, type ClassKind, type ClusterOptions, type ColumnApiQueryParamsConfig, Component, type ComputedRef, ConfigService, ConsoleLoggerProvider, type Constructor, Container, type ContainerChangeEvent, type ContainerChangeListener, type ContextDecorator, type ContextDecoratorSpec, type ContextDecoratorTarget, type ContextMeta, type ContextMetaKey, ContributorCycleError, type ContributorPipeline, type ContributorRegistration, type ContributorRegistrations, type ContributorSource, Controller, type CorsOptions, Cron, type CronJobMeta, type CsrfOptions, type Ctx, type DeepReadonly, type DefineAdapterOptions, type DefineModuleOptions, type DefinePluginOptions, Delete, type DepValue, DuplicateContributorError, DuplicateMountNameError, type Env, type EnvKey, type ExecutionContext, FILTER_OPERATORS, type FieldsOf, type FileTypeFilter, FileUpload, type FileUploadConfig, type FilterItem, type FilterOperator, type FormatKickErrorOptions, Get, type GroupAssetKeysOptions, type GroupAssetKeysResult, type HelmetOptions, HttpException, HttpStatus, type HttpStatusCode, INJECTION_TOKEN, Inject, Injectable, type InjectionToken, type IntrospectFn, type IntrospectionKind, type IntrospectionSnapshot, type KickAssets, KickError, type KickErrorInit, type KickJsPluginName, type KickJsPluginRegistry, type KickJsRegistry, type KickPlugin, Logger, type LoggerProvider, METADATA, type MaybePromise, MemoryCacheProvider, type MetaValue, Middleware, type MiddlewareEntry, type MiddlewareHandler, type MiddlewarePath, type MiddlewarePhase, MissingContributorError, MissingMountDepError, type ModuleFactory, ModuleList, type ModuleRegistry, type ModuleRoutes, MountCycleError, type MountKind, type MountSortItem, MutableModuleRegistry, type PaginatedResponse, type PaginationParams, type ParsedQuery, Patch, type PluginAsyncOptions, type PluginFactory, Post, PostConstruct, type PostConstructStatus, type ProblemDetails, ProblemException, Problems, Put, type QueryBuilderAdapter, type QueryFieldConfig, REQUEST_ID_HEADER, type RateLimitOptions, type RateLimitStore, type Ref, Repository, RequestContext, type RequestLoggerOptions, type RequestStore, type ResolvedDeps, type RouteDefinition, type RouteShape, type RunContributorsOptions, Scope, Service, type ServiceOptions, type Session, type SessionData, type SessionOptions, type SessionStore, type SortItem, type SourcedRegistration, SpaAdapter, type SpaAdapterOptions, TRACEPARENT_HEADER, type TraceContext, type TraceContextOptions, type TypedConfigService, type TypedParsedQuery, UnknownAssetError, type UploadOptions, type ValidationError, Value, ViewAdapter, type ViewAdapterOptions, type WatchOptions, assets, baseEnvSchema, bootstrap, buildPipeline, buildQueryParams, buildRoutes, buildUploadMiddleware, cleanupFiles, clearAssetCache, computed, cors, createConfigService, createLogger, createToken, csrf, defaultProblemTitle, defineAdapter, defineAugmentation, defineContextDecorator, defineEnv, defineHttpContextDecorator, defineModule, defineModules, definePlugin, errorHandler, formatKickError, getCacheProvider, getClassMeta, getClassMetaOrUndefined, getCronJobs, getEnv, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, getRequestStore, getRequestValue, groupAssetKeys, hasClassMeta, helmet, isClusterPrimary, isInjectionToken, isRef, joinPaths, loadEnv, loadEnvFromSchema, mountSort, normalizeApiQueryParamsConfig, normalizePath, normalizeProblem, notFoundHandler, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort, parseTraceparent, pushClassMeta, pushMethodMeta, rateLimit, reactive, ref, reloadEnv, requestId, requestLogger, requestScopeMiddleware, requestStore, resetEnvCache, resolveAsset, resolveMimeTypes, runContributors, session, setCacheProvider, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta, stripExt, toRefs, tokenName, traceContext, unref, upload, useAssets, validate, watch, withBuilder };
|