@forinda/kickjs 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-wuoBNkNs.d.mts → adapter-A1E1XBhE.d.mts} +3 -3
- package/dist/{adapter-wuoBNkNs.d.mts.map → adapter-A1E1XBhE.d.mts.map} +1 -1
- package/dist/{app-module-DOBmxARW.d.mts → app-module-Cotu9TIC.d.mts} +2 -2
- package/dist/{app-module-DOBmxARW.d.mts.map → app-module-Cotu9TIC.d.mts.map} +1 -1
- package/dist/{application-C5Q720a2.mjs → application-CGJS9xTY.mjs} +5 -5
- package/dist/{application-C5Q720a2.mjs.map → application-CGJS9xTY.mjs.map} +1 -1
- package/dist/{bootstrap-dEN6SjBl.mjs → bootstrap-D1wCTIqp.mjs} +8 -8
- package/dist/bootstrap-D1wCTIqp.mjs.map +1 -0
- package/dist/{cache-PufEhr0n.d.mts → cache-CcTzzNdr.d.mts} +1 -1
- package/dist/{cache-PufEhr0n.d.mts.map → cache-CcTzzNdr.d.mts.map} +1 -1
- package/dist/{chunk-C9tIbwLT.mjs → chunk-BdCM6Esy.mjs} +1 -1
- package/dist/config/index.d.mts +3 -0
- package/dist/config/index.mjs +13 -0
- package/dist/config-h9t9j2sy.mjs +135 -0
- package/dist/config-h9t9j2sy.mjs.map +1 -0
- package/dist/{container-CcgV8eHL.d.mts → container-BJb34faa.d.mts} +2 -2
- package/dist/{container-CcgV8eHL.d.mts.map → container-BJb34faa.d.mts.map} +1 -1
- package/dist/{container-B7jFEbPE.mjs → container-BlVTqKCY.mjs} +3 -3
- package/dist/{container-B7jFEbPE.mjs.map → container-BlVTqKCY.mjs.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 +3 -3
- 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-CMgIoRvg.mjs → core-dzP_DUPV.mjs} +4 -4
- package/dist/{core-CMgIoRvg.mjs.map → core-dzP_DUPV.mjs.map} +1 -1
- package/dist/{cron-C29iHvHT.d.mts → cron-H-IyLcOr.d.mts} +1 -1
- package/dist/{cron-C29iHvHT.d.mts.map → cron-H-IyLcOr.d.mts.map} +1 -1
- package/dist/{decorators-D3lBlmud.d.mts → decorators-C9_SN7ge.d.mts} +2 -2
- package/dist/{decorators-D3lBlmud.d.mts.map → decorators-C9_SN7ge.d.mts.map} +1 -1
- package/dist/env-CvUA8BNb.mjs +111 -0
- package/dist/env-CvUA8BNb.mjs.map +1 -0
- package/dist/{errors-BZUdxtjC.d.mts → errors-BX7Zosvv.d.mts} +1 -1
- package/dist/{errors-BZUdxtjC.d.mts.map → errors-BX7Zosvv.d.mts.map} +1 -1
- package/dist/http/application.d.mts +4 -4
- package/dist/http/application.mjs +2 -2
- package/dist/http/bootstrap.mjs +2 -2
- package/dist/http/context.d.mts +1 -1
- package/dist/http/context.mjs +2 -2
- package/dist/http/middleware/cors.mjs +1 -1
- package/dist/http/middleware/csrf.mjs +1 -1
- package/dist/http/middleware/error-handler.mjs +2 -2
- package/dist/http/middleware/helmet.mjs +1 -1
- package/dist/http/middleware/rate-limit.mjs +1 -1
- package/dist/http/middleware/request-id.mjs +1 -1
- package/dist/http/middleware/request-logger.mjs +2 -2
- package/dist/http/middleware/session.mjs +1 -1
- package/dist/http/middleware/spa.d.mts +1 -1
- package/dist/http/middleware/spa.mjs +3 -3
- package/dist/http/middleware/upload.d.mts +1 -1
- package/dist/http/middleware/upload.mjs +1 -1
- package/dist/http/middleware/validate.mjs +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 +1 -1
- package/dist/http/query/index.mjs +2 -2
- package/dist/http/router-builder.mjs +4 -4
- package/dist/{index-4VM4dUJf.d.mts → index-BGnxOrN2.d.mts} +1 -1
- package/dist/{index-4VM4dUJf.d.mts.map → index-BGnxOrN2.d.mts.map} +1 -1
- package/dist/index-Cmq_UBmJ.d.mts +228 -0
- package/dist/index-Cmq_UBmJ.d.mts.map +1 -0
- package/dist/{index-rnK23QBD.d.mts → index-Co7a3Zat.d.mts} +1 -1
- package/dist/{index-rnK23QBD.d.mts.map → index-Co7a3Zat.d.mts.map} +1 -1
- package/dist/index.d.mts +16 -15
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/index.mjs.map +1 -1
- package/dist/{interfaces-D5ohYl6D.d.mts → interfaces-DXjE8Re1.d.mts} +1 -1
- package/dist/{interfaces-D5ohYl6D.d.mts.map → interfaces-DXjE8Re1.d.mts.map} +1 -1
- package/dist/{logger-BLdfUF5b.d.mts → logger-CW6FHtvU.d.mts} +1 -1
- package/dist/{logger-BLdfUF5b.d.mts.map → logger-CW6FHtvU.d.mts.map} +1 -1
- package/dist/{metadata-BqXgNTOf.mjs → metadata-21oVAN-0.mjs} +2 -2
- package/dist/{metadata-BqXgNTOf.mjs.map → metadata-21oVAN-0.mjs.map} +1 -1
- package/dist/{path-Dq5V-i-x.d.mts → path-B4JcbwKX.d.mts} +1 -1
- package/dist/path-B4JcbwKX.d.mts.map +1 -0
- package/dist/{plugin-D20muJwC.d.mts → plugin-DcDVlPTI.d.mts} +4 -4
- package/dist/{plugin-D20muJwC.d.mts.map → plugin-DcDVlPTI.d.mts.map} +1 -1
- package/dist/{query-vljPDFaZ.mjs → query-BvnnkNZ6.mjs} +2 -2
- package/dist/{query-vljPDFaZ.mjs.map → query-BvnnkNZ6.mjs.map} +1 -1
- package/dist/{reactivity-CMAQh0gi.d.mts → reactivity-I8nDlg4c.d.mts} +1 -1
- package/dist/{reactivity-CMAQh0gi.d.mts.map → reactivity-I8nDlg4c.d.mts.map} +1 -1
- package/package.json +28 -14
- package/dist/bootstrap-dEN6SjBl.mjs.map +0 -1
- package/dist/path-Dq5V-i-x.d.mts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors-
|
|
1
|
+
{"version":3,"file":"errors-BX7Zosvv.d.mts","names":[],"sources":["../src/core/errors.ts"],"mappings":";;;AAUA;;;;;;;;;cAAa,UAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KAmCD,cAAA,WAAyB,UAAA,eAAyB,UAAA;;UAG7C,eAAA;EACf,KAAA;EACA,OAAA;EACA,IAAA;AAAA;;;AAOF;;cAAa,aAAA,SAAsB,KAAA;EAAA,SAEf,MAAA;EAAA,SAEA,OAAA,GAAU,eAAA;cAFV,MAAA,UAChB,OAAA,UACgB,OAAA,GAAU,eAAA;EAsBa;EAAA,OAflC,YAAA,CAAa,KAAA,OAAY,OAAA,YAAmB,aAAA;EAAA,OAe5C,UAAA,CAAW,OAAA,YAAuB,aAAA;EAAA,OAGlC,YAAA,CAAa,OAAA,YAAwB,aAAA;EAAA,OAGrC,SAAA,CAAU,OAAA,YAAqB,aAAA;EAAA,OAG/B,QAAA,CAAS,OAAA,YAAqB,aAAA;EAAA,OAG9B,QAAA,CAAS,OAAA,YAAoB,aAAA;EAAA,OAG7B,aAAA,CAAc,OAAA,WAAkC,OAAA,GAAU,eAAA,KAAiB,aAAA;EAAA,OAG3E,eAAA,CAAgB,OAAA,YAA6B,aAAA;EAAA,OAG7C,QAAA,CAAS,OAAA,YAAiC,aAAA;AAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { t as Container } from "../container-
|
|
3
|
-
import { r as AppAdapter } from "../adapter-
|
|
4
|
-
import { n as AppModuleClass } from "../app-module-
|
|
5
|
-
import { t as KickPlugin } from "../plugin-
|
|
2
|
+
import { t as Container } from "../container-BJb34faa.mjs";
|
|
3
|
+
import { r as AppAdapter } from "../adapter-A1E1XBhE.mjs";
|
|
4
|
+
import { n as AppModuleClass } from "../app-module-Cotu9TIC.mjs";
|
|
5
|
+
import { t as KickPlugin } from "../plugin-DcDVlPTI.mjs";
|
|
6
6
|
import http from "node:http";
|
|
7
7
|
import { Express, RequestHandler } from "express";
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
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 Application } from "../application-
|
|
11
|
+
import { t as Application } from "../application-CGJS9xTY.mjs";
|
|
12
12
|
export { Application };
|
package/dist/http/bootstrap.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
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 bootstrap } from "../bootstrap-
|
|
11
|
+
import { t as bootstrap } from "../bootstrap-D1wCTIqp.mjs";
|
|
12
12
|
export { bootstrap };
|
package/dist/http/context.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { g as QueryFieldConfig, y as TypedParsedQuery } from "../index-
|
|
2
|
+
import { g as QueryFieldConfig, y as TypedParsedQuery } from "../index-Co7a3Zat.mjs";
|
|
3
3
|
import * as _$node_http0 from "node:http";
|
|
4
4
|
import { NextFunction, Request, Response } from "express";
|
|
5
5
|
|
package/dist/http/context.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import { i as parseQuery } from "../query-
|
|
11
|
+
import { i as parseQuery } from "../query-BvnnkNZ6.mjs";
|
|
12
12
|
//#region src/http/context.ts
|
|
13
13
|
/**
|
|
14
14
|
* Unified request/response abstraction passed to every controller method.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { createLogger } from "../../core/logger.mjs";
|
|
12
12
|
import { HttpException } from "../../core/errors.mjs";
|
|
13
|
-
import "../../core-
|
|
13
|
+
import "../../core-dzP_DUPV.mjs";
|
|
14
14
|
//#region src/http/middleware/error-handler.ts
|
|
15
15
|
const log = createLogger("ErrorHandler");
|
|
16
16
|
/** Catch-all for unmatched routes */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
import { createLogger } from "../../core/logger.mjs";
|
|
12
|
-
import "../../core-
|
|
12
|
+
import "../../core-dzP_DUPV.mjs";
|
|
13
13
|
//#region src/http/middleware/request-logger.ts
|
|
14
14
|
/**
|
|
15
15
|
* Middleware that logs every request with method, URL, status, duration, and request ID.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
import { t as __require } from "../../chunk-
|
|
11
|
+
import { t as __require } from "../../chunk-BdCM6Esy.mjs";
|
|
12
12
|
import { Logger } from "../../core/logger.mjs";
|
|
13
|
-
import "../../core-
|
|
13
|
+
import "../../core-dzP_DUPV.mjs";
|
|
14
14
|
import { join, resolve } from "node:path";
|
|
15
15
|
import { existsSync, readFileSync } from "node:fs";
|
|
16
16
|
//#region src/http/middleware/spa.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { i as BaseUploadOptions, m as FileUploadConfig } from "../../decorators-
|
|
2
|
+
import { i as BaseUploadOptions, m as FileUploadConfig } from "../../decorators-C9_SN7ge.mjs";
|
|
3
3
|
import { NextFunction, Request, RequestHandler, Response } from "express";
|
|
4
4
|
import { Options } from "multer";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
import { Logger } from "../../core/logger.mjs";
|
|
12
|
-
import "../../core-
|
|
12
|
+
import "../../core-dzP_DUPV.mjs";
|
|
13
13
|
import { resolve } from "node:path";
|
|
14
14
|
//#region src/http/middleware/views.ts
|
|
15
15
|
const log = Logger.for("ViewEngine");
|
|
@@ -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-
|
|
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-Co7a3Zat.mjs";
|
|
3
3
|
export { ColumnQueryFieldConfig, FILTER_OPERATORS, FieldsOf, FilterItem, FilterOperator, PaginatedResponse, PaginationParams, ParsedQuery, QueryBuilderAdapter, QueryFieldConfig, SortItem, StringQueryFieldConfig, TypedParsedQuery, buildQueryParams, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
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-BvnnkNZ6.mjs";
|
|
12
12
|
export { FILTER_OPERATORS, buildQueryParams, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs v2.2.
|
|
2
|
+
* @forinda/kickjs v2.2.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
import { METADATA } from "../core/interfaces.mjs";
|
|
12
|
-
import { a as getMethodMeta, o as getMethodMetaOrUndefined, t as getClassMeta } from "../metadata-
|
|
13
|
-
import { t as Container } from "../container-
|
|
14
|
-
import "../core-
|
|
12
|
+
import { a as getMethodMeta, o as getMethodMetaOrUndefined, t as getClassMeta } from "../metadata-21oVAN-0.mjs";
|
|
13
|
+
import { t as Container } from "../container-BlVTqKCY.mjs";
|
|
14
|
+
import "../core-dzP_DUPV.mjs";
|
|
15
15
|
import { RequestContext } from "./context.mjs";
|
|
16
16
|
import { validate } from "./middleware/validate.mjs";
|
|
17
17
|
import { buildUploadMiddleware } from "./middleware/upload.mjs";
|
|
@@ -104,4 +104,4 @@ declare class CircuitBreaker {
|
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
106
|
export { setInMetaRecord as _, CircuitOpenError as a, getMetaMap as c, getMethodMetaOrUndefined as d, hasClassMeta as f, setInMetaMap as g, setClassMeta as h, CircuitBreakerStats as i, getMetaRecord as l, pushMethodMeta as m, CircuitBreakerOptions as n, getClassMeta as o, pushClassMeta as p, CircuitBreakerState as r, getClassMetaOrUndefined as s, CircuitBreaker as t, getMethodMeta as u, setMethodMeta as v };
|
|
107
|
-
//# sourceMappingURL=index-
|
|
107
|
+
//# sourceMappingURL=index-BGnxOrN2.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BGnxOrN2.d.mts","names":[],"sources":["../src/core/metadata.ts","../src/core/circuit-breaker.ts"],"mappings":";;;;;;;;;KAUK,OAAA;;iBAKW,YAAA,GAAA,CAAgB,GAAA,EAAK,OAAA,EAAS,KAAA,EAAO,CAAA,EAAG,MAAA;AAf/B;AAAA,iBAoBT,aAAA,GAAA,CAAiB,GAAA,EAAK,OAAA,EAAS,KAAA,EAAO,CAAA,EAAG,MAAA,UAAgB,MAAA;;iBAOzD,YAAA,GAAA,CAAgB,GAAA,EAAK,OAAA,EAAS,MAAA,UAAgB,QAAA,EAAU,CAAA,GAAI,CAAA;;iBAK5D,aAAA,GAAA,CAAiB,GAAA,EAAK,OAAA,EAAS,MAAA,UAAgB,MAAA,UAAgB,QAAA,EAAU,CAAA,GAAI,CAAA;;iBAK7E,YAAA,CAAa,GAAA,EAAK,OAAA,EAAS,MAAA;;iBAK3B,uBAAA,GAAA,CAA2B,GAAA,EAAK,OAAA,EAAS,MAAA,WAAiB,CAAA;;iBAK1D,wBAAA,GAAA,CACd,GAAA,EAAK,OAAA,EACL,MAAA,UACA,MAAA,WACC,CAAA;;iBAOa,aAAA,GAAA,CAAiB,GAAA,EAAK,OAAA,EAAS,MAAA,aAAmB,KAAA,EAAO,CAAA;;iBAMzD,cAAA,GAAA,CACd,GAAA,EAAK,OAAA,EACL,MAAA,UACA,MAAA,aACG,KAAA,EAAO,CAAA;;iBASI,YAAA,MAAA,CAAmB,GAAA,EAAK,OAAA,EAAS,MAAA,UAAgB,MAAA,EAAQ,CAAA,EAAG,QAAA,EAAU,CAAA;;iBAQtE,UAAA,MAAA,CAAiB,GAAA,EAAK,OAAA,EAAS,MAAA,WAAiB,GAAA,CAAI,CAAA,EAAG,CAAA;;iBAOvD,eAAA,GAAA,CACd,GAAA,EAAK,OAAA,EACL,MAAA,UACA,MAAA,mBACA,QAAA,EAAU,CAAA;;iBASI,aAAA,GAAA,CAAiB,GAAA,EAAK,OAAA,EAAS,MAAA,WAAiB,MAAA,kBAAwB,CAAA;;;;;;;;;;;;;;AAzG/D;;;;;AAezB;KCGY,mBAAA;AAAA,UAEK,qBAAA;EDLqC;ECOpD,gBAAA;EDPmC;ECSnC,YAAA;EDTmD;ECWnD,WAAA;AAAA;AAAA,UAGe,mBAAA;EACf,QAAA;EACA,SAAA;EACA,KAAA,EAAO,mBAAA;EACP,WAAA,GAAc,IAAA;AAAA;;;;cAMH,gBAAA,SAAyB,KAAA;EAAA,SACR,WAAA;cAAA,WAAA;AAAA;AAAA,cAMjB,cAAA;EAAA,SAaO,IAAA;EAAA,QAZV,KAAA;EAAA,QACA,QAAA;EAAA,QACA,SAAA;EAAA,QACA,gBAAA;EAAA,QACA,WAAA;EAAA,QACA,QAAA;EAAA,iBAES,gBAAA;EAAA,iBACA,YAAA;EAAA,iBACA,WAAA;cAGC,IAAA,UAChB,OAAA,EAAS,qBAAA;EDjCmB;;;;EC4CxB,OAAA,GAAA,CAAW,EAAA,QAAU,OAAA,CAAQ,CAAA,IAAK,OAAA,CAAQ,CAAA;ED5C2B;ECsE3E,QAAA,CAAA,GAAY,mBAAA;EDjEE;ECuEd,QAAA,CAAA,GAAY,mBAAA;EDvEe;ECkF3B,KAAA,CAAA;EAAA,QASQ,SAAA;EAAA,QAWA,SAAA;EAAA,QAeA,yBAAA;AAAA"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
|
|
2
|
+
import { d as EnvKey } from "./decorators-C9_SN7ge.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/config/env.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Base environment schema with common server variables.
|
|
8
|
+
* Users extend this with their own application-specific vars.
|
|
9
|
+
*/
|
|
10
|
+
declare const baseEnvSchema: z.ZodObject<{
|
|
11
|
+
PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
12
|
+
NODE_ENV: z.ZodDefault<z.ZodEnum<{
|
|
13
|
+
production: "production";
|
|
14
|
+
development: "development";
|
|
15
|
+
test: "test";
|
|
16
|
+
}>>;
|
|
17
|
+
LOG_LEVEL: z.ZodDefault<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
/**
|
|
20
|
+
* Define a custom env schema. The base schema (`PORT`, `NODE_ENV`,
|
|
21
|
+
* `LOG_LEVEL`) is always merged in, so users never need to remember to
|
|
22
|
+
* extend it themselves — both styles below produce the same result and
|
|
23
|
+
* both surface the base keys in `KickEnv`.
|
|
24
|
+
*
|
|
25
|
+
* Returns a Zod schema that validates `process.env`.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* // Style A — return a fresh object; base fields are merged automatically
|
|
30
|
+
* export default defineEnv(() =>
|
|
31
|
+
* z.object({
|
|
32
|
+
* DATABASE_URL: z.string().url(),
|
|
33
|
+
* JWT_SECRET: z.string().min(32),
|
|
34
|
+
* })
|
|
35
|
+
* )
|
|
36
|
+
*
|
|
37
|
+
* // Style B — explicitly extend `base` (still works, identical result)
|
|
38
|
+
* export default defineEnv((base) =>
|
|
39
|
+
* base.extend({
|
|
40
|
+
* DATABASE_URL: z.string().url(),
|
|
41
|
+
* })
|
|
42
|
+
* )
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* User-defined keys override base keys when they collide, so a project
|
|
46
|
+
* can re-type `PORT` or tighten `NODE_ENV` without losing the rest of
|
|
47
|
+
* the base shape.
|
|
48
|
+
*/
|
|
49
|
+
declare function defineEnv<T extends z.ZodRawShape>(extend: (base: typeof baseEnvSchema) => z.ZodObject<T>): z.ZodObject<typeof baseEnvSchema.shape & T>;
|
|
50
|
+
/**
|
|
51
|
+
* Parse and validate process.env against a Zod schema. Caches result per schema.
|
|
52
|
+
*
|
|
53
|
+
* **No-arg behaviour is sticky.** The first time `loadEnv(schema)` is called
|
|
54
|
+
* with an extended schema, the cache holds that schema. Subsequent
|
|
55
|
+
* `loadEnv()` calls (no arg) will reuse the cached extended schema rather
|
|
56
|
+
* than falling back to `baseEnvSchema` and clobbering the env resolver.
|
|
57
|
+
*
|
|
58
|
+
* This matters because `ConfigService` (and the bare `Container._envResolver`)
|
|
59
|
+
* call `loadEnv()` without an argument inside their constructors. Without
|
|
60
|
+
* stickiness, instantiating `ConfigService` after a `loadEnv(extendedSchema)`
|
|
61
|
+
* call would silently downgrade the env to the base shape.
|
|
62
|
+
*
|
|
63
|
+
* To force a re-parse with a different schema, pass the new schema explicitly.
|
|
64
|
+
* To start fresh, call `resetEnvCache()` or `reloadEnv()`.
|
|
65
|
+
*
|
|
66
|
+
* **Typing:**
|
|
67
|
+
* - With an explicit schema → returns `z.infer<typeof schema>`.
|
|
68
|
+
* - With no schema and `KickEnv` populated by typegen → returns
|
|
69
|
+
* `KickEnv` (the project-wide typed env shape).
|
|
70
|
+
* - With no schema and `KickEnv` empty → returns the base `Env`.
|
|
71
|
+
*/
|
|
72
|
+
declare function loadEnv<T extends z.ZodObject<any>>(schema: T): z.infer<T>;
|
|
73
|
+
declare function loadEnv(): [EnvKey] extends [never] ? Env : KickEnv;
|
|
74
|
+
/**
|
|
75
|
+
* Get a single typed environment variable value.
|
|
76
|
+
*
|
|
77
|
+
* Three forms:
|
|
78
|
+
* - **No-arg, KickEnv populated** (`kick typegen` has run) → key is
|
|
79
|
+
* constrained to known `KickEnv` keys; return type inferred from
|
|
80
|
+
* the schema.
|
|
81
|
+
* - **With explicit schema** → key constrained to that schema's keys;
|
|
82
|
+
* return type is `z.infer<typeof schema>[K]`.
|
|
83
|
+
* - **No-arg, KickEnv empty** → loose `string` key, `any` return.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* // After `kick typegen` (KickEnv populated):
|
|
88
|
+
* const port = getEnv('PORT') // typed as number
|
|
89
|
+
* const url = getEnv('DATABASE_URL') // typed as string
|
|
90
|
+
*
|
|
91
|
+
* // With an inline schema (legacy / one-off):
|
|
92
|
+
* const dbUrl = getEnv('DATABASE_URL', envSchema)
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
declare function getEnv<K extends EnvKey>(key: K): KickEnv[K];
|
|
96
|
+
declare function getEnv<T extends z.ZodObject<any>, K extends string & keyof z.infer<T>>(key: K, schema: T): z.infer<T>[K];
|
|
97
|
+
/**
|
|
98
|
+
* Reload env from process.env (re-reads dotenv if installed, clears cache).
|
|
99
|
+
* Called during HMR rebuild to pick up .env file changes.
|
|
100
|
+
*/
|
|
101
|
+
declare function reloadEnv(): void;
|
|
102
|
+
/** Reset cached env (useful for testing) */
|
|
103
|
+
declare function resetEnvCache(): void;
|
|
104
|
+
type Env = z.infer<typeof baseEnvSchema>;
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/config/config-service.d.ts
|
|
107
|
+
/**
|
|
108
|
+
* Constraint that locks the `key` argument to known `EnvKey` literals
|
|
109
|
+
* once `kick typegen` has populated `KickEnv`. Mirrors the same trick
|
|
110
|
+
* used by the `@Value` decorator: when `EnvKey` resolves to `never`
|
|
111
|
+
* (no schema yet), accept any string for back-compat; once typegen
|
|
112
|
+
* has run, require a known key.
|
|
113
|
+
*/
|
|
114
|
+
type ConfigKey<K extends string> = [EnvKey] extends [never] ? K : K & EnvKey;
|
|
115
|
+
/**
|
|
116
|
+
* Resolve the return type for a `ConfigService.get(key)` call. When
|
|
117
|
+
* `KickEnv` is populated and the key is a known one, returns the
|
|
118
|
+
* schema-inferred type. Otherwise falls back to the caller-provided
|
|
119
|
+
* generic `T` (default `any`) so existing call sites keep working.
|
|
120
|
+
*/
|
|
121
|
+
type ConfigValue<K extends string, T> = K extends EnvKey ? KickEnv[K] : T;
|
|
122
|
+
/**
|
|
123
|
+
* Injectable service for accessing typed environment configuration.
|
|
124
|
+
*
|
|
125
|
+
* Once `kick typegen` has run against your `src/env.ts`, both `get()`
|
|
126
|
+
* and `getAll()` are fully typed against the schema with **no extra
|
|
127
|
+
* setup** — you just inject `ConfigService` and call it:
|
|
128
|
+
*
|
|
129
|
+
* ```ts
|
|
130
|
+
* @Service()
|
|
131
|
+
* class DatabaseService {
|
|
132
|
+
* @Autowired() private readonly config!: ConfigService
|
|
133
|
+
*
|
|
134
|
+
* connect() {
|
|
135
|
+
* const url = this.config.get('DATABASE_URL') // typed string
|
|
136
|
+
* const port = this.config.get('PORT') // typed number
|
|
137
|
+
* // const bad = this.config.get('NOPE') // tsc error
|
|
138
|
+
* }
|
|
139
|
+
* }
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* Without typegen the previous `<T = any>` generic still works, so
|
|
143
|
+
* legacy code calling `config.get<string>('DATABASE_URL')` keeps
|
|
144
|
+
* compiling.
|
|
145
|
+
*/
|
|
146
|
+
declare class ConfigService {
|
|
147
|
+
/**
|
|
148
|
+
* Read the current parsed env on every access. We deliberately do **not**
|
|
149
|
+
* snapshot in the constructor: if `ConfigService` is instantiated before
|
|
150
|
+
* the user's `defineEnv()` schema has been registered (e.g. DI wires it
|
|
151
|
+
* eagerly, or HMR's `reloadEnv()` cleared the cache between rebuilds),
|
|
152
|
+
* an eager snapshot would freeze the base shape and never see the
|
|
153
|
+
* extended values — even though `@Value()` (which reads lazily through
|
|
154
|
+
* `Container._envResolver`) would resolve them correctly.
|
|
155
|
+
*
|
|
156
|
+
* `loadEnv()` is sticky: once an extended schema has been parsed it
|
|
157
|
+
* keeps returning that schema's values, so this getter is cheap (one
|
|
158
|
+
* cached lookup) and always consistent with `@Value`.
|
|
159
|
+
*/
|
|
160
|
+
private get env();
|
|
161
|
+
/**
|
|
162
|
+
* Get an env variable by key.
|
|
163
|
+
*
|
|
164
|
+
* - When `kick typegen` has run, `key` is constrained to known
|
|
165
|
+
* `KickEnv` keys and the return type is inferred from the schema.
|
|
166
|
+
* - When `KickEnv` is empty (no typegen run yet), any string is
|
|
167
|
+
* accepted and `T` falls back to the explicit generic for
|
|
168
|
+
* back-compat.
|
|
169
|
+
*/
|
|
170
|
+
get<K extends string, T = any>(key: ConfigKey<K>): ConfigValue<K, T>;
|
|
171
|
+
/**
|
|
172
|
+
* Get all env config as a readonly object. When `KickEnv` is
|
|
173
|
+
* populated by typegen, returns `Readonly<KickEnv>` so the caller
|
|
174
|
+
* gets autocomplete on every key.
|
|
175
|
+
*/
|
|
176
|
+
getAll(): [EnvKey] extends [never] ? Readonly<Record<string, any>> : Readonly<KickEnv>;
|
|
177
|
+
/** Reload env from .env file (for HMR / file-watch scenarios) */
|
|
178
|
+
reload(): void;
|
|
179
|
+
isProduction(): boolean;
|
|
180
|
+
isDevelopment(): boolean;
|
|
181
|
+
isTest(): boolean;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Typed config service interface — provides autocomplete for env keys.
|
|
185
|
+
* Use with `createConfigService()` for full type safety.
|
|
186
|
+
*/
|
|
187
|
+
interface TypedConfigService<TEnv extends Record<string, any>> {
|
|
188
|
+
get<K extends string & keyof TEnv>(key: K): TEnv[K];
|
|
189
|
+
getAll(): Readonly<TEnv>;
|
|
190
|
+
reload(): void;
|
|
191
|
+
isProduction(): boolean;
|
|
192
|
+
isDevelopment(): boolean;
|
|
193
|
+
isTest(): boolean;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Create a typed ConfigService class bound to a specific Zod env schema.
|
|
197
|
+
* The returned class is DI-injectable via `@Service()` and provides
|
|
198
|
+
* fully typed `get()` with key autocomplete.
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* ```ts
|
|
202
|
+
* const envSchema = defineEnv((base) =>
|
|
203
|
+
* base.extend({
|
|
204
|
+
* DATABASE_URL: z.string().url(),
|
|
205
|
+
* JWT_SECRET: z.string().min(32),
|
|
206
|
+
* })
|
|
207
|
+
* )
|
|
208
|
+
*
|
|
209
|
+
* // Create a typed, injectable config service
|
|
210
|
+
* export const AppConfigService = createConfigService(envSchema)
|
|
211
|
+
* export type AppConfigService = InstanceType<typeof AppConfigService>
|
|
212
|
+
*
|
|
213
|
+
* // In a controller or service — inject it:
|
|
214
|
+
* @Controller('/users')
|
|
215
|
+
* class UserController {
|
|
216
|
+
* constructor(@Inject(AppConfigService) private config: AppConfigService) {
|
|
217
|
+
* const dbUrl = config.get('DATABASE_URL') // string — autocompletes!
|
|
218
|
+
* const bad = config.get('NOPE') // TS error
|
|
219
|
+
* }
|
|
220
|
+
* }
|
|
221
|
+
* ```
|
|
222
|
+
*/
|
|
223
|
+
declare function createConfigService<T extends z.ZodObject<any>>(schema: T): {
|
|
224
|
+
new (): TypedConfigService<z.core.output<T>>;
|
|
225
|
+
};
|
|
226
|
+
//#endregion
|
|
227
|
+
export { baseEnvSchema as a, loadEnv as c, Env as i, reloadEnv as l, TypedConfigService as n, defineEnv as o, createConfigService as r, getEnv as s, ConfigService as t, resetEnvCache as u };
|
|
228
|
+
//# sourceMappingURL=index-Cmq_UBmJ.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Cmq_UBmJ.d.mts","names":[],"sources":["../src/config/env.ts","../src/config/config-service.ts"],"mappings":";;;;;;;AA6BA;;cAAa,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyC1B;;;iBAAgB,SAAA,WAAoB,CAAA,CAAE,WAAA,CAAA,CACpC,MAAA,GAAS,IAAA,SAAa,aAAA,KAAkB,CAAA,CAAE,SAAA,CAAU,CAAA,IACnD,CAAA,CAAE,SAAA,QAAiB,aAAA,CAAc,KAAA,GAAQ,CAAA;;;;;;;;;;;;;;;;;;;;;;;iBA8B5B,OAAA,WAAkB,CAAA,CAAE,SAAA,MAAA,CAAgB,MAAA,EAAQ,CAAA,GAAI,CAAA,CAAE,KAAA,CAAM,CAAA;AAAA,iBACxD,OAAA,CAAA,IAAY,MAAA,oBAA0B,GAAA,GAAM,OAAA;AAD5D;;;;;;;;;;;;;;;;;;;AACA;;AADA,iBAsCgB,MAAA,WAAiB,MAAA,CAAA,CAAQ,GAAA,EAAK,CAAA,GAAI,OAAA,CAAQ,CAAA;AAAA,iBAC1C,MAAA,WAAiB,CAAA,CAAE,SAAA,gCAAyC,CAAA,CAAE,KAAA,CAAM,CAAA,EAAA,CAClF,GAAA,EAAK,CAAA,EACL,MAAA,EAAQ,CAAA,GACP,CAAA,CAAE,KAAA,CAAM,CAAA,EAAG,CAAA;;;;;iBAUE,SAAA,CAAA;;iBAgBA,aAAA,CAAA;AAAA,KAKJ,GAAA,GAAM,CAAA,CAAE,KAAA,QAAa,aAAA;;;;;AAlJjC;;;;;KCjBK,SAAA,sBAA+B,MAAA,oBAA0B,CAAA,GAAI,CAAA,GAAI,MAAA;;;;;;;KAQjE,WAAA,wBAAmC,CAAA,SAAU,MAAA,GAAS,OAAA,CAAQ,CAAA,IAAK,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;cA2B3D,aAAA;EDuBG;;;;;;;;;;;;;EAAA,YCTF,GAAA,CAAA;EDSwB;;;;;;;;;ECIpC,GAAA,2BAAA,CAA+B,GAAA,EAAK,SAAA,CAAU,CAAA,IAAK,WAAA,CAAY,CAAA,EAAG,CAAA;EDFhC;;;;AA8BpC;ECnBE,MAAA,CAAA,IAAW,MAAA,oBAA0B,QAAA,CAAS,MAAA,iBAAuB,QAAA,CAAS,OAAA;EDmBzD;ECdrB,MAAA,CAAA;EAMA,YAAA,CAAA;EAIA,aAAA,CAAA;EAIA,MAAA,CAAA;AAAA;;;;;UASe,kBAAA,cAAgC,MAAA;EAC/C,GAAA,0BAA6B,IAAA,EAAM,GAAA,EAAK,CAAA,GAAI,IAAA,CAAK,CAAA;EACjD,MAAA,IAAU,QAAA,CAAS,IAAA;EACnB,MAAA;EACA,YAAA;EACA,aAAA;EACA,MAAA;AAAA;;;;;;;;;;;;;ADuBF;;;;;;;;;;;;;;;;iBCQgB,mBAAA,WAA8B,CAAA,CAAE,SAAA,MAAA,CAAgB,MAAA,EAAQ,CAAA;EAAA,QAqC5D,kBAAA,CAAkB,CAAA,CAAA,IAAA,CAAA,MAAA,CAAA,CAAA;AAAA"}
|
|
@@ -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-Co7a3Zat.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Co7a3Zat.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,cAAA;EACV,KAAA;AAAA;AAAA,UAGe,QAAA;EACf,KAAA;EACA,SAAA;AAAA;AAAA,UAGe,gBAAA;EACf,IAAA;EACA,KAAA;EACA,MAAA;AAAA;;;;;AARF;UAgBiB,WAAA;EACf,OAAA,EAAS,UAAA;EACT,IAAA,EAAM,QAAA;EACN,UAAA,EAAY,gBAAA;EACZ,MAAA;AAAA;;;;;;;;AAJF;KAeY,QAAA,iBACM,gBAAA,oEAEd,OAAA,0BAAiC,CAAA,4BACjC,CAAA,kBACE,CAAA,YAEF,OAAA;EAAkB,OAAA;AAAA,IAChB,CAAA,8BACQ,CAAA;;;;;;;;;;;;AATd;;;;;;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,sBAAA;AAAA,UAEvC,sBAAA;EACf,UAAA;EACA,QAAA;EACA,UAAA;AAAA;;;;;UAOe,sBAAA;EACf,OAAA,EAAS,MAAA;EACT,QAAA,GAAW,MAAA;EACX,aAAA;EAAA,CACC,GAAA;AAAA;;UAIc,iBAAA;EACf,IAAA,EAAM,CAAA;EACN,IAAA;IACE,IAAA;IACA,KAAA;IACA,KAAA;IACA,UAAA;IACA,OAAA;IACA,OAAA;EAAA;AAAA;;;;;;;;AA5BJ;;;;;AAEA;;;;;;;;;AAUA;;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,UAAA;;iBA8Ba,SAAA,CACd,SAAA,iCACA,aAAA,cACC,QAAA;;iBA0Ba,eAAA,CAAgB,MAAA;EAC9B,IAAA;EACA,KAAA;AAAA,IACE,gBAAA;;iBAkBY,gBAAA,CAAiB,CAAA;;;;;;;;;;ADrEjC;;;;;AAKA;;;;;;;;;AAWA;;;;;iBC+GgB,UAAA,iBAA2B,gBAAA,yBAAA,CACzC,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,20 +1,21 @@
|
|
|
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
|
|
4
|
-
import { a as
|
|
5
|
-
import { n as
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { i as
|
|
10
|
-
import {
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
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-DXjE8Re1.mjs";
|
|
3
|
+
import { C as Put, D as Value, E as Service, O as normalizeApiQueryParamsConfig, S as PostConstruct, T as RouteDefinition, _ as Injectable, a as Builder, b as Patch, c as Controller, d as EnvKey, f as FileTypeFilter, g as Inject, h as Get, i as BaseUploadOptions, l as Delete, m as FileUploadConfig, n as ApiQueryParamsConfig, o as ColumnApiQueryParamsConfig, p as FileUpload, r as Autowired, s as Component, t as ApiQueryParams, u as Env, v as Middleware, w as Repository, x as Post, y as MiddlewareHandler } from "./decorators-C9_SN7ge.mjs";
|
|
4
|
+
import { a as baseEnvSchema, c as loadEnv, l as reloadEnv, n as TypedConfigService, o as defineEnv, r as createConfigService, s as getEnv, t as ConfigService, u as resetEnvCache } from "./index-Cmq_UBmJ.mjs";
|
|
5
|
+
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-BJb34faa.mjs";
|
|
6
|
+
import { a as MiddlewarePhase, i as AppAdapterClass, n as AdapterMiddleware, r as AppAdapter, t as AdapterContext } from "./adapter-A1E1XBhE.mjs";
|
|
7
|
+
import { n as AppModuleClass, r as ModuleRoutes, t as AppModule } from "./app-module-Cotu9TIC.mjs";
|
|
8
|
+
import { a as Cacheable, c as setCacheProvider, i as CacheProvider, n as CacheEvict, o as MemoryCacheProvider, r as CacheOptions, s as getCacheProvider } from "./cache-CcTzzNdr.mjs";
|
|
9
|
+
import { i as getCronJobs, n as Cron, r as CronJobMeta, t as CRON_META } from "./cron-H-IyLcOr.mjs";
|
|
10
|
+
import { i as ValidationError, n as HttpStatus, r as HttpStatusCode, t as HttpException } from "./errors-BX7Zosvv.mjs";
|
|
11
|
+
import { a as logger, i as createLogger, n as Logger, o as rootLogger, r as LoggerProvider, t as ConsoleLoggerProvider } from "./logger-CW6FHtvU.mjs";
|
|
12
|
+
import { n as normalizePath, t as joinPaths } from "./path-B4JcbwKX.mjs";
|
|
13
|
+
import { t as KickPlugin } from "./plugin-DcDVlPTI.mjs";
|
|
14
|
+
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-I8nDlg4c.mjs";
|
|
15
|
+
import { _ as setInMetaRecord, a as CircuitOpenError, c as getMetaMap, d as getMethodMetaOrUndefined, f as hasClassMeta, g as setInMetaMap, h as setClassMeta, i as CircuitBreakerStats, l as getMetaRecord, m as pushMethodMeta, n as CircuitBreakerOptions, o as getClassMeta, p as pushClassMeta, r as CircuitBreakerState, s as getClassMetaOrUndefined, t as CircuitBreaker, u as getMethodMeta, v as setMethodMeta } from "./index-BGnxOrN2.mjs";
|
|
15
16
|
import { Application, ApplicationOptions, MiddlewareEntry } from "./http/application.mjs";
|
|
16
17
|
import { bootstrap } from "./http/bootstrap.mjs";
|
|
17
|
-
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-
|
|
18
|
+
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-Co7a3Zat.mjs";
|
|
18
19
|
import { Ctx, RequestContext, RouteShape } from "./http/context.mjs";
|
|
19
20
|
import { CorsOptions, cors } from "./http/middleware/cors.mjs";
|
|
20
21
|
import { CsrfOptions, csrf } from "./http/middleware/csrf.mjs";
|
|
@@ -129,5 +130,5 @@ declare function parseTraceparent(header: string): TraceContext | null;
|
|
|
129
130
|
*/
|
|
130
131
|
declare function traceContext(options?: TraceContextOptions): (req: Request, res: Response, next: NextFunction) => void;
|
|
131
132
|
//#endregion
|
|
132
|
-
export { AdapterContext, AdapterMiddleware, ApiQueryParams, ApiQueryParamsConfig, ApiQueryParamsConfig as QueryParamsConfig, AppAdapter, AppAdapterClass, AppModule, AppModuleClass, Application, type ApplicationOptions, Autowired, BaseUploadOptions, Buildable, Builder, BuilderOf, CRON_META, CacheEvict, CacheOptions, CacheProvider, Cacheable, CircuitBreaker, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStats, CircuitOpenError, ClassKind, type ClusterOptions, ColumnApiQueryParamsConfig, Component, ComputedRef, ConsoleLoggerProvider, Constructor, Container, ContainerChangeEvent, ContainerChangeListener, Controller, type CorsOptions, Cron, CronJobMeta, type CsrfOptions, type Ctx, Delete, Env, EnvKey, FILTER_OPERATORS, type FieldsOf, FileTypeFilter, FileUpload, FileUploadConfig, type FilterItem, type FilterOperator, Get, type HelmetOptions, HttpException, HttpStatus, HttpStatusCode, INJECTION_TOKEN, Inject, Injectable, InjectionToken, KickJsRegistry, KickPlugin, Logger, LoggerProvider, METADATA, MaybePromise, MemoryCacheProvider, Middleware, type MiddlewareEntry, MiddlewareHandler, MiddlewarePhase, ModuleRoutes, type PaginatedResponse, type PaginationParams, type ParsedQuery, Patch, Post, PostConstruct, PostConstructStatus, Put, type QueryBuilderAdapter, type QueryFieldConfig, REQUEST_ID_HEADER, type RateLimitOptions, type RateLimitStore, Ref, Repository, RequestContext, type RequestLoggerOptions, type RequestStore, RouteDefinition, type RouteShape, Scope, Service, ServiceOptions, type Session, type SessionData, type SessionOptions, type SessionStore, type SortItem, SpaAdapter, type SpaAdapterOptions, TRACEPARENT_HEADER, type TraceContext, type TraceContextOptions, type TypedParsedQuery, type UploadOptions, ValidationError, Value, ViewAdapter, type ViewAdapterOptions, WatchOptions, bootstrap, buildQueryParams, buildRoutes, buildUploadMiddleware, cleanupFiles, computed, cors, createLogger, createToken, csrf, errorHandler, getCacheProvider, getClassMeta, getClassMetaOrUndefined, getControllerPath, getCronJobs, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, getRequestStore, hasClassMeta, helmet, isClusterPrimary, isInjectionToken, isRef, joinPaths, logger, normalizeApiQueryParamsConfig, normalizePath, notFoundHandler, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort, parseTraceparent, pushClassMeta, pushMethodMeta, rateLimit, reactive, ref, requestId, requestLogger, requestScopeMiddleware, requestStore, resolveMimeTypes, rootLogger, session, setCacheProvider, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta, toRefs, tokenName, traceContext, unref, upload, validate, watch };
|
|
133
|
+
export { AdapterContext, AdapterMiddleware, ApiQueryParams, ApiQueryParamsConfig, ApiQueryParamsConfig as QueryParamsConfig, AppAdapter, AppAdapterClass, AppModule, AppModuleClass, Application, type ApplicationOptions, Autowired, BaseUploadOptions, Buildable, Builder, BuilderOf, CRON_META, CacheEvict, CacheOptions, CacheProvider, Cacheable, CircuitBreaker, CircuitBreakerOptions, CircuitBreakerState, CircuitBreakerStats, CircuitOpenError, ClassKind, type ClusterOptions, ColumnApiQueryParamsConfig, Component, ComputedRef, ConfigService, ConsoleLoggerProvider, Constructor, Container, ContainerChangeEvent, ContainerChangeListener, Controller, type CorsOptions, Cron, CronJobMeta, type CsrfOptions, type Ctx, Delete, Env, EnvKey, FILTER_OPERATORS, type FieldsOf, FileTypeFilter, FileUpload, FileUploadConfig, type FilterItem, type FilterOperator, Get, type HelmetOptions, HttpException, HttpStatus, HttpStatusCode, INJECTION_TOKEN, Inject, Injectable, InjectionToken, KickJsRegistry, KickPlugin, Logger, LoggerProvider, METADATA, MaybePromise, MemoryCacheProvider, Middleware, type MiddlewareEntry, MiddlewareHandler, MiddlewarePhase, ModuleRoutes, type PaginatedResponse, type PaginationParams, type ParsedQuery, Patch, Post, PostConstruct, PostConstructStatus, Put, type QueryBuilderAdapter, type QueryFieldConfig, REQUEST_ID_HEADER, type RateLimitOptions, type RateLimitStore, Ref, Repository, RequestContext, type RequestLoggerOptions, type RequestStore, RouteDefinition, type RouteShape, Scope, Service, ServiceOptions, type Session, type SessionData, type SessionOptions, type SessionStore, type SortItem, SpaAdapter, type SpaAdapterOptions, TRACEPARENT_HEADER, type TraceContext, type TraceContextOptions, type TypedConfigService, type TypedParsedQuery, type UploadOptions, ValidationError, Value, ViewAdapter, type ViewAdapterOptions, WatchOptions, baseEnvSchema, bootstrap, buildQueryParams, buildRoutes, buildUploadMiddleware, cleanupFiles, computed, cors, createConfigService, createLogger, createToken, csrf, defineEnv, errorHandler, getCacheProvider, getClassMeta, getClassMetaOrUndefined, getControllerPath, getCronJobs, getEnv, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, getRequestStore, hasClassMeta, helmet, isClusterPrimary, isInjectionToken, isRef, joinPaths, loadEnv, logger, normalizeApiQueryParamsConfig, normalizePath, notFoundHandler, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort, parseTraceparent, pushClassMeta, pushMethodMeta, rateLimit, reactive, ref, reloadEnv, requestId, requestLogger, requestScopeMiddleware, requestStore, resetEnvCache, resolveMimeTypes, rootLogger, session, setCacheProvider, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta, toRefs, tokenName, traceContext, unref, upload, validate, watch };
|
|
133
134
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/http/cluster.ts","../src/http/request-store.ts","../src/http/middleware/request-scope.ts","../src/http/middleware/trace-context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/http/cluster.ts","../src/http/request-store.ts","../src/http/middleware/request-scope.ts","../src/http/middleware/trace-context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOiB,cAAA;;EAEf,OAAA;;EAEA,uBAAA;;EAEA,YAAA;;EAEA,WAAA;;EAEA,aAAA;AAAA;;iBAIc,gBAAA,CAAA;;;;UClBC,YAAA;;EAEf,SAAA;;EAEA,SAAA,EAAW,GAAA;;EAEX,MAAA,EAAQ,GAAA;AAAA;;cAIG,YAAA,EAAY,iBAAA,CAAA,YAAA;;;;;iBAMT,eAAA,CAAA,GAAmB,YAAA;;;;;;;;;iBCTnB,sBAAA,CAAA,IACN,GAAA,EAAK,OAAA,EAAS,IAAA,EAAM,QAAA,EAAU,IAAA,EAAM,YAAA;;;;;;;cCHjC,kBAAA;AAAA,UAKI,mBAAA;;;;;EAKf,iBAAA;AAAA;;;;UAMe,YAAA;;EAEf,OAAA;;EAEA,OAAA;;EAEA,YAAA;;EAEA,KAAA;AAAA;;;;;iBAqBc,gBAAA,CAAiB,MAAA,WAAiB,YAAA;;;;;AH9ClD;;;;;;;;;;;AAcA;;;;;;iBG0EgB,YAAA,CAAa,OAAA,GAAS,mBAAA,IAC5B,GAAA,EAAK,OAAA,EAAS,GAAA,EAAK,QAAA,EAAU,IAAA,EAAM,YAAA"}
|