@forinda/kickjs 3.1.3 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -212
- package/dist/adapter-BNw2pGbg.d.mts +261 -0
- package/dist/adapter-BNw2pGbg.d.mts.map +1 -0
- package/dist/{app-module-Cotu9TIC.d.mts → app-module-CO0ksPCm.d.mts} +12 -2
- package/dist/app-module-CO0ksPCm.d.mts.map +1 -0
- package/dist/{application-BVl6L8xo.mjs → application-Ce4DQN6m.mjs} +114 -25
- package/dist/application-Ce4DQN6m.mjs.map +1 -0
- package/dist/application-Czwm7Gty.d.mts +302 -0
- package/dist/application-Czwm7Gty.d.mts.map +1 -0
- package/dist/{bootstrap-D6leYXz2.mjs → bootstrap-CB7bJeJG.mjs} +6 -6
- package/dist/{bootstrap-D6leYXz2.mjs.map → bootstrap-CB7bJeJG.mjs.map} +1 -1
- package/dist/bootstrap-NxFRaNTh.d.mts +28 -0
- package/dist/bootstrap-NxFRaNTh.d.mts.map +1 -0
- package/dist/{cache-CcTzzNdr.d.mts → cache-BStrqXSZ.d.mts} +2 -2
- package/dist/{cache-CcTzzNdr.d.mts.map → cache-BStrqXSZ.d.mts.map} +1 -1
- package/dist/config/index.d.mts +1 -1
- package/dist/config/index.mjs +3 -3
- package/dist/{config-gkVEnxVm.mjs → config-wZ_TgBfs.mjs} +4 -4
- package/dist/{config-gkVEnxVm.mjs.map → config-wZ_TgBfs.mjs.map} +1 -1
- package/dist/{container-BJb34faa.d.mts → container-CnWDsxi-.d.mts} +9 -7
- package/dist/container-CnWDsxi-.d.mts.map +1 -0
- package/dist/{container-BBZLlK6y.mjs → container-DYYSu58w.mjs} +313 -9
- package/dist/container-DYYSu58w.mjs.map +1 -0
- package/dist/context-BAGzqT7-.mjs +319 -0
- package/dist/context-BAGzqT7-.mjs.map +1 -0
- package/dist/context-Ymvv-85x.d.mts +260 -0
- package/dist/context-Ymvv-85x.d.mts.map +1 -0
- package/dist/context-decorator-B5v3VQCN.d.mts +111 -0
- package/dist/context-decorator-B5v3VQCN.d.mts.map +1 -0
- package/dist/core/adapter.d.mts +1 -1
- package/dist/core/adapter.mjs +1 -1
- package/dist/core/app-module.d.mts +1 -1
- package/dist/core/app-module.mjs +1 -1
- package/dist/core/cache.d.mts +1 -1
- package/dist/core/cache.mjs +2 -2
- package/dist/core/cache.mjs.map +1 -1
- package/dist/core/container.d.mts +1 -1
- package/dist/core/container.mjs +2 -2
- package/dist/core/cron.d.mts +1 -1
- package/dist/core/cron.mjs +2 -2
- package/dist/core/decorators.d.mts +2 -2
- package/dist/core/decorators.mjs +48 -16
- package/dist/core/decorators.mjs.map +1 -1
- package/dist/core/errors.d.mts +1 -1
- package/dist/core/errors.mjs +1 -1
- package/dist/core/interfaces.d.mts +1 -1
- package/dist/core/interfaces.mjs +35 -16
- package/dist/core/interfaces.mjs.map +1 -1
- package/dist/core/logger.d.mts +2 -2
- package/dist/core/logger.mjs +2 -4
- package/dist/core/logger.mjs.map +1 -1
- package/dist/core/path.d.mts +1 -1
- package/dist/core/path.mjs +1 -1
- package/dist/core/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-DBcoqPHM.mjs +709 -0
- package/dist/core-DBcoqPHM.mjs.map +1 -0
- package/dist/cors-BfgqfLPd.d.mts +48 -0
- package/dist/cors-BfgqfLPd.d.mts.map +1 -0
- package/dist/{cron-H-IyLcOr.d.mts → cron-7zqvsmMI.d.mts} +1 -1
- package/dist/{cron-H-IyLcOr.d.mts.map → cron-7zqvsmMI.d.mts.map} +1 -1
- package/dist/csrf-DiK9zept.d.mts +52 -0
- package/dist/csrf-DiK9zept.d.mts.map +1 -0
- package/dist/{decorators-C9_SN7ge.d.mts → decorators-BMvaLliz.d.mts} +147 -12
- package/dist/decorators-BMvaLliz.d.mts.map +1 -0
- package/dist/{env-Cu5hWsuE.mjs → env-CdH5-dM_.mjs} +3 -4
- package/dist/{env-Cu5hWsuE.mjs.map → env-CdH5-dM_.mjs.map} +1 -1
- package/dist/error-handler-Xud_3Lah.d.mts +20 -0
- package/dist/error-handler-Xud_3Lah.d.mts.map +1 -0
- package/dist/{errors-BOUCRl-p.d.mts → errors-uaHCeXRz.d.mts} +1 -1
- package/dist/{errors-BOUCRl-p.d.mts.map → errors-uaHCeXRz.d.mts.map} +1 -1
- package/dist/execution-context-DKnt61pY.d.mts +57 -0
- package/dist/execution-context-DKnt61pY.d.mts.map +1 -0
- package/dist/helmet-CaMbjzBG.d.mts +41 -0
- package/dist/helmet-CaMbjzBG.d.mts.map +1 -0
- package/dist/http/application.d.mts +2 -239
- package/dist/http/application.mjs +2 -2
- package/dist/http/bootstrap.d.mts +2 -27
- package/dist/http/bootstrap.mjs +2 -2
- package/dist/http/context.d.mts +3 -262
- package/dist/http/context.mjs +2 -271
- package/dist/http/middleware/cors.d.mts +2 -47
- package/dist/http/middleware/cors.mjs +1 -1
- package/dist/http/middleware/csrf.d.mts +2 -51
- package/dist/http/middleware/csrf.mjs +2 -2
- package/dist/http/middleware/csrf.mjs.map +1 -1
- package/dist/http/middleware/error-handler.d.mts +2 -19
- package/dist/http/middleware/error-handler.mjs +2 -2
- package/dist/http/middleware/helmet.d.mts +2 -40
- package/dist/http/middleware/helmet.mjs +1 -1
- package/dist/http/middleware/rate-limit.d.mts +2 -55
- package/dist/http/middleware/rate-limit.mjs +2 -2
- package/dist/http/middleware/rate-limit.mjs.map +1 -1
- package/dist/http/middleware/request-id.d.mts +2 -9
- package/dist/http/middleware/request-id.mjs +12 -3
- package/dist/http/middleware/request-id.mjs.map +1 -1
- package/dist/http/middleware/request-logger.d.mts +2 -31
- package/dist/http/middleware/request-logger.mjs +2 -2
- package/dist/http/middleware/session.d.mts +2 -69
- package/dist/http/middleware/session.mjs +1 -1
- package/dist/http/middleware/spa.d.mts +2 -100
- package/dist/http/middleware/spa.mjs +5 -5
- package/dist/http/middleware/spa.mjs.map +1 -1
- package/dist/http/middleware/upload.d.mts +2 -78
- package/dist/http/middleware/upload.mjs +1 -1
- package/dist/http/middleware/validate.d.mts +2 -22
- package/dist/http/middleware/validate.mjs +2 -2
- package/dist/http/middleware/views.d.mts +2 -61
- package/dist/http/middleware/views.mjs +16 -15
- package/dist/http/middleware/views.mjs.map +1 -1
- package/dist/http/query/index.d.mts +1 -1
- package/dist/http/query/index.mjs +2 -2
- package/dist/http/router-builder.d.mts +2 -20
- package/dist/http/router-builder.mjs +58 -10
- package/dist/http/router-builder.mjs.map +1 -1
- package/dist/{index-Co7a3Zat.d.mts → index-B9cyOQAe.d.mts} +1 -1
- package/dist/{index-Co7a3Zat.d.mts.map → index-B9cyOQAe.d.mts.map} +1 -1
- package/dist/{index-DNVfGjF9.d.mts → index-D-qhXg9M.d.mts} +3 -3
- package/dist/{index-DNVfGjF9.d.mts.map → index-D-qhXg9M.d.mts.map} +1 -1
- package/dist/index-DQyWtyp0.d.mts +511 -0
- package/dist/index-DQyWtyp0.d.mts.map +1 -0
- package/dist/index.d.mts +34 -133
- package/dist/index.mjs +14 -14
- package/dist/interfaces-B50n7dwl.d.mts +71 -0
- package/dist/{interfaces-DXjE8Re1.d.mts.map → interfaces-B50n7dwl.d.mts.map} +1 -1
- package/dist/{logger-CW6FHtvU.d.mts → logger-CLVRZf2N.d.mts} +2 -4
- package/dist/{logger-CW6FHtvU.d.mts.map → logger-CLVRZf2N.d.mts.map} +1 -1
- package/dist/{metadata-BwRJ69bC.mjs → metadata-VQM9wChy.mjs} +2 -2
- package/dist/{metadata-BwRJ69bC.mjs.map → metadata-VQM9wChy.mjs.map} +1 -1
- package/dist/{path-B4JcbwKX.d.mts → path-Diviu6hv.d.mts} +1 -1
- package/dist/path-Diviu6hv.d.mts.map +1 -0
- package/dist/plugin-WdrDgNzk.d.mts +165 -0
- package/dist/plugin-WdrDgNzk.d.mts.map +1 -0
- package/dist/{query-BQ2UT3oi.mjs → query-DJMxdx5r.mjs} +2 -2
- package/dist/{query-BQ2UT3oi.mjs.map → query-DJMxdx5r.mjs.map} +1 -1
- package/dist/rate-limit-DUwoICtI.d.mts +56 -0
- package/dist/rate-limit-DUwoICtI.d.mts.map +1 -0
- package/dist/{reactivity-I8nDlg4c.d.mts → reactivity-CfJceo4H.d.mts} +1 -1
- package/dist/{reactivity-I8nDlg4c.d.mts.map → reactivity-CfJceo4H.d.mts.map} +1 -1
- package/dist/request-id-BgglvZHN.d.mts +19 -0
- package/dist/request-id-BgglvZHN.d.mts.map +1 -0
- package/dist/request-logger-CWHbAzTE.d.mts +32 -0
- package/dist/request-logger-CWHbAzTE.d.mts.map +1 -0
- package/dist/router-builder-C799BAf0.d.mts +31 -0
- package/dist/router-builder-C799BAf0.d.mts.map +1 -0
- package/dist/session-N0hActOO.d.mts +70 -0
- package/dist/session-N0hActOO.d.mts.map +1 -0
- package/dist/spa-CrFR2_cz.d.mts +101 -0
- package/dist/spa-CrFR2_cz.d.mts.map +1 -0
- package/dist/upload-BueOnnLw.d.mts +79 -0
- package/dist/upload-BueOnnLw.d.mts.map +1 -0
- package/dist/validate-HwAyWTwH.d.mts +23 -0
- package/dist/validate-HwAyWTwH.d.mts.map +1 -0
- package/dist/views-DhQSXV2P.d.mts +176 -0
- package/dist/views-DhQSXV2P.d.mts.map +1 -0
- package/package.json +6 -9
- package/dist/adapter-DjL8ql5d.d.mts +0 -140
- package/dist/adapter-DjL8ql5d.d.mts.map +0 -1
- package/dist/app-module-Cotu9TIC.d.mts.map +0 -1
- package/dist/application-BVl6L8xo.mjs.map +0 -1
- package/dist/chunk-CVPG7JJl.mjs +0 -15
- package/dist/container-BBZLlK6y.mjs.map +0 -1
- package/dist/container-BJb34faa.d.mts.map +0 -1
- package/dist/core-qyPNtpKp.mjs +0 -121
- package/dist/core-qyPNtpKp.mjs.map +0 -1
- package/dist/decorators-C9_SN7ge.d.mts.map +0 -1
- package/dist/http/application.d.mts.map +0 -1
- package/dist/http/bootstrap.d.mts.map +0 -1
- package/dist/http/context.d.mts.map +0 -1
- package/dist/http/context.mjs.map +0 -1
- package/dist/http/middleware/cors.d.mts.map +0 -1
- package/dist/http/middleware/csrf.d.mts.map +0 -1
- package/dist/http/middleware/error-handler.d.mts.map +0 -1
- package/dist/http/middleware/helmet.d.mts.map +0 -1
- package/dist/http/middleware/rate-limit.d.mts.map +0 -1
- package/dist/http/middleware/request-id.d.mts.map +0 -1
- package/dist/http/middleware/request-logger.d.mts.map +0 -1
- package/dist/http/middleware/session.d.mts.map +0 -1
- package/dist/http/middleware/spa.d.mts.map +0 -1
- package/dist/http/middleware/upload.d.mts.map +0 -1
- package/dist/http/middleware/validate.d.mts.map +0 -1
- package/dist/http/middleware/views.d.mts.map +0 -1
- package/dist/http/router-builder.d.mts.map +0 -1
- package/dist/index-CwqjAF6I.d.mts +0 -112
- package/dist/index-CwqjAF6I.d.mts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/interfaces-DXjE8Re1.d.mts +0 -52
- package/dist/path-B4JcbwKX.d.mts.map +0 -1
- package/dist/plugin-Cvacmm7N.d.mts +0 -95
- package/dist/plugin-Cvacmm7N.d.mts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,134 +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 {
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import { a as
|
|
9
|
-
import {
|
|
10
|
-
import { i as
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
|
|
36
|
-
//#region src/http/cluster.d.ts
|
|
37
|
-
interface ClusterOptions {
|
|
38
|
-
/** Number of worker processes (default: os.cpus().length) */
|
|
39
|
-
workers?: number;
|
|
40
|
-
/** Delay before forcefully killing a worker during shutdown (ms), default: 5000 */
|
|
41
|
-
gracefulShutdownTimeout?: number;
|
|
42
|
-
/** Delay between worker restarts (ms), default: 1000 */
|
|
43
|
-
restartDelay?: number;
|
|
44
|
-
/** Max failures in restartWindow before refusing to restart, default: 5 */
|
|
45
|
-
maxFailures?: number;
|
|
46
|
-
/** Time window for counting failures (ms), default: 30000 */
|
|
47
|
-
restartWindow?: number;
|
|
48
|
-
}
|
|
49
|
-
/** Returns true if the current process is the cluster primary */
|
|
50
|
-
declare function isClusterPrimary(): boolean;
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region src/http/request-store.d.ts
|
|
53
|
-
/** Per-request storage for REQUEST-scoped DI and request context propagation */
|
|
54
|
-
interface RequestStore {
|
|
55
|
-
/** Unique request identifier */
|
|
56
|
-
requestId: string;
|
|
57
|
-
/** Per-request singleton cache for REQUEST-scoped services */
|
|
58
|
-
instances: Map<any, any>;
|
|
59
|
-
/** Per-request values set by middleware (auth user, tenant, etc.) */
|
|
60
|
-
values: Map<any, any>;
|
|
61
|
-
}
|
|
62
|
-
/** AsyncLocalStorage instance shared across the framework */
|
|
63
|
-
declare const requestStore: AsyncLocalStorage<RequestStore>;
|
|
64
|
-
/**
|
|
65
|
-
* Get the current request store. Throws if called outside a request context.
|
|
66
|
-
* Used by the Container to resolve REQUEST-scoped dependencies.
|
|
67
|
-
*/
|
|
68
|
-
declare function getRequestStore(): RequestStore;
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/http/middleware/request-scope.d.ts
|
|
71
|
-
/**
|
|
72
|
-
* Wraps each request in an AsyncLocalStorage context.
|
|
73
|
-
* Enables REQUEST-scoped DI and automatic requestId propagation to logs.
|
|
74
|
-
*
|
|
75
|
-
* Should be mounted early in the middleware pipeline (before route handlers).
|
|
76
|
-
*/
|
|
77
|
-
declare function requestScopeMiddleware(): (req: Request, _res: Response, next: NextFunction) => void;
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/http/middleware/trace-context.d.ts
|
|
80
|
-
/**
|
|
81
|
-
* W3C Trace Context header name.
|
|
82
|
-
* @see https://www.w3.org/TR/trace-context/#traceparent-header
|
|
83
|
-
*/
|
|
84
|
-
declare const TRACEPARENT_HEADER = "traceparent";
|
|
85
|
-
interface TraceContextOptions {
|
|
86
|
-
/**
|
|
87
|
-
* When true, respond with a `traceresponse` header containing the trace ID.
|
|
88
|
-
* Useful for debugging. Default: false.
|
|
89
|
-
*/
|
|
90
|
-
propagateResponse?: boolean;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Parsed W3C trace context fields.
|
|
94
|
-
*/
|
|
95
|
-
interface TraceContext {
|
|
96
|
-
/** W3C traceparent version (usually '00') */
|
|
97
|
-
version: string;
|
|
98
|
-
/** 32-hex-char distributed trace ID */
|
|
99
|
-
traceId: string;
|
|
100
|
-
/** 16-hex-char parent span ID */
|
|
101
|
-
parentSpanId: string;
|
|
102
|
-
/** 2-hex-char trace flags */
|
|
103
|
-
flags: string;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Parse a W3C traceparent header value.
|
|
107
|
-
* Returns null if the format is invalid.
|
|
108
|
-
*/
|
|
109
|
-
declare function parseTraceparent(header: string): TraceContext | null;
|
|
110
|
-
/**
|
|
111
|
-
* Middleware that extracts W3C `traceparent` header and stores trace context
|
|
112
|
-
* in the request's AsyncLocalStorage store.
|
|
113
|
-
*
|
|
114
|
-
* If no valid `traceparent` header is present, a new traceId is generated
|
|
115
|
-
* so that every request always has a trace ID available for correlation.
|
|
116
|
-
*
|
|
117
|
-
* Must be mounted **after** `requestScopeMiddleware()` (which creates the store).
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```ts
|
|
121
|
-
* bootstrap({
|
|
122
|
-
* middleware: [
|
|
123
|
-
* requestScopeMiddleware(),
|
|
124
|
-
* traceContext(), // extracts or generates traceId
|
|
125
|
-
* requestLogger(),
|
|
126
|
-
* express.json(),
|
|
127
|
-
* ],
|
|
128
|
-
* })
|
|
129
|
-
* ```
|
|
130
|
-
*/
|
|
131
|
-
declare function traceContext(options?: TraceContextOptions): (req: Request, res: Response, next: NextFunction) => void;
|
|
132
|
-
//#endregion
|
|
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 };
|
|
134
|
-
//# sourceMappingURL=index.d.mts.map
|
|
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-B50n7dwl.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-CnWDsxi-.mjs";
|
|
4
|
+
import { A as normalizeApiQueryParamsConfig, C as Post, D as RouteDefinition, E as Repository, F as assets, I as clearAssetCache, L as resolveAsset, M as ASSET_MANIFEST_VERSION, N as KickAssets, O as Service, P as UnknownAssetError, R as useAssets, S as Patch, T as Put, _ 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 ASSETS, k as Value, 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 } from "./decorators-BMvaLliz.mjs";
|
|
5
|
+
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-D-qhXg9M.mjs";
|
|
6
|
+
import { n as ExecutionContext, r as MetaValue, t as ContextMeta } from "./execution-context-DKnt61pY.mjs";
|
|
7
|
+
import { a as defineContextDecorator, i as ResolvedDeps, n as ContextDecoratorSpec, r as ContributorRegistration, t as ContextDecorator } from "./context-decorator-B5v3VQCN.mjs";
|
|
8
|
+
import { a as MiddlewarePhase, c as KickJsPluginRegistry, i as AppAdapterClass, l as defineAugmentation, n as AdapterMiddleware, o as AugmentationMeta, r as AppAdapter, s as KickJsPluginName, t as AdapterContext } from "./adapter-BNw2pGbg.mjs";
|
|
9
|
+
import { n as AppModuleClass, r as ModuleRoutes, t as AppModule } from "./app-module-CO0ksPCm.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-BStrqXSZ.mjs";
|
|
11
|
+
import { i as getCronJobs, n as Cron, r as CronJobMeta, t as CRON_META } from "./cron-7zqvsmMI.mjs";
|
|
12
|
+
import { i as ValidationError, n as HttpStatus, r as HttpStatusCode, t as HttpException } from "./errors-uaHCeXRz.mjs";
|
|
13
|
+
import { a as rootLogger, i as createLogger, n as Logger, r as LoggerProvider, t as ConsoleLoggerProvider } from "./logger-CLVRZf2N.mjs";
|
|
14
|
+
import { n as normalizePath, t as joinPaths } from "./path-Diviu6hv.mjs";
|
|
15
|
+
import { t as KickPlugin } from "./plugin-WdrDgNzk.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-CfJceo4H.mjs";
|
|
17
|
+
import { A as CircuitOpenError, B as setClassMeta, C as ContributorCycleError, D as CircuitBreakerOptions, E as CircuitBreaker, F as getMethodMeta, H as setInMetaRecord, I as getMethodMetaOrUndefined, L as hasClassMeta, M as getClassMetaOrUndefined, N as getMetaMap, O as CircuitBreakerState, P as getMetaRecord, R as pushClassMeta, S as buildPipeline, T as MissingContributorError, U as setMethodMeta, V as setInMetaMap, _ as runContributors, a as BuildContext, b as ContributorSource, c as PluginFactory, d as MissingMountDepError, f as MountCycleError, g as RunContributorsOptions, h as mountSort, i as defineAdapter, j as getClassMeta, k as CircuitBreakerStats, l as definePlugin, m as MountSortItem, n as AdapterFactory, o as DefinePluginOptions, p as MountKind, r as DefineAdapterOptions, s as PluginAsyncOptions, t as AdapterAsyncOptions, u as DuplicateMountNameError, v as BuildPipelineOptions, w as DuplicateContributorError, x as SourcedRegistration, y as ContributorPipeline, z as pushMethodMeta } from "./index-DQyWtyp0.mjs";
|
|
18
|
+
import { n as ApplicationOptions, r as MiddlewareEntry, t as Application } from "./application-Czwm7Gty.mjs";
|
|
19
|
+
import { t as bootstrap } from "./bootstrap-NxFRaNTh.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-B9cyOQAe.mjs";
|
|
21
|
+
import { n as RequestContext, r as RouteShape, t as Ctx } from "./context-Ymvv-85x.mjs";
|
|
22
|
+
import { n as cors, t as CorsOptions } from "./cors-BfgqfLPd.mjs";
|
|
23
|
+
import { n as csrf, t as CsrfOptions } from "./csrf-DiK9zept.mjs";
|
|
24
|
+
import { n as notFoundHandler, t as errorHandler } from "./error-handler-Xud_3Lah.mjs";
|
|
25
|
+
import { n as helmet, t as HelmetOptions } from "./helmet-CaMbjzBG.mjs";
|
|
26
|
+
import { n as RateLimitStore, r as rateLimit, t as RateLimitOptions } from "./rate-limit-DUwoICtI.mjs";
|
|
27
|
+
import { n as requestId, t as REQUEST_ID_HEADER } from "./request-id-BgglvZHN.mjs";
|
|
28
|
+
import { n as requestLogger, t as RequestLoggerOptions } from "./request-logger-CWHbAzTE.mjs";
|
|
29
|
+
import { a as session, i as SessionStore, n as SessionData, r as SessionOptions, t as Session } from "./session-N0hActOO.mjs";
|
|
30
|
+
import { n as SpaAdapterOptions, t as SpaAdapter } from "./spa-CrFR2_cz.mjs";
|
|
31
|
+
import { a as upload, i as resolveMimeTypes, n as buildUploadMiddleware, r as cleanupFiles, t as UploadOptions } from "./upload-BueOnnLw.mjs";
|
|
32
|
+
import { n as validate } from "./validate-HwAyWTwH.mjs";
|
|
33
|
+
import { a as TraceContextOptions, c as requestScopeMiddleware, d as requestStore, f as ClusterOptions, i as TraceContext, l as RequestStore, n as ViewAdapterOptions, o as parseTraceparent, p as isClusterPrimary, r as TRACEPARENT_HEADER, s as traceContext, t as ViewAdapter, u as getRequestStore } from "./views-DhQSXV2P.mjs";
|
|
34
|
+
import { r as buildRoutes } from "./router-builder-C799BAf0.mjs";
|
|
35
|
+
export { ASSETS, ASSET_MANIFEST_VERSION, AdapterAsyncOptions, AdapterContext, AdapterFactory, AdapterMiddleware, ApiQueryParams, ApiQueryParamsConfig, ApiQueryParamsConfig as QueryParamsConfig, AppAdapter, AppAdapterClass, AppModule, AppModuleClass, Application, ApplicationOptions, Asset, AssetKey, 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, ContextMeta, ContributorCycleError, ContributorPipeline, ContributorRegistration, ContributorSource, Controller, CorsOptions, Cron, CronJobMeta, CsrfOptions, Ctx, DefineAdapterOptions, DefinePluginOptions, Delete, DuplicateContributorError, DuplicateMountNameError, Env, EnvKey, ExecutionContext, FILTER_OPERATORS, FieldsOf, FileTypeFilter, FileUpload, FileUploadConfig, FilterItem, FilterOperator, Get, HelmetOptions, HttpException, HttpStatus, HttpStatusCode, INJECTION_TOKEN, Inject, Injectable, InjectionToken, KickAssets, KickJsPluginName, KickJsPluginRegistry, KickJsRegistry, KickPlugin, Logger, LoggerProvider, METADATA, MaybePromise, MemoryCacheProvider, MetaValue, Middleware, MiddlewareEntry, MiddlewareHandler, MiddlewarePhase, MissingContributorError, MissingMountDepError, ModuleRoutes, MountCycleError, MountKind, MountSortItem, PaginatedResponse, PaginationParams, ParsedQuery, Patch, PluginAsyncOptions, PluginFactory, Post, PostConstruct, PostConstructStatus, 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, defineAdapter, defineAugmentation, defineContextDecorator, defineEnv, definePlugin, errorHandler, getCacheProvider, getClassMeta, getClassMetaOrUndefined, getCronJobs, getEnv, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, getRequestStore, hasClassMeta, helmet, isClusterPrimary, isInjectionToken, isRef, joinPaths, loadEnv, mountSort, normalizeApiQueryParamsConfig, normalizePath, notFoundHandler, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort, parseTraceparent, pushClassMeta, pushMethodMeta, rateLimit, reactive, ref, reloadEnv, requestId, requestLogger, requestScopeMiddleware, requestStore, resetEnvCache, resolveAsset, resolveMimeTypes, rootLogger, runContributors, session, setCacheProvider, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta, toRefs, tokenName, traceContext, unref, upload, useAssets, validate, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs
|
|
2
|
+
* @forinda/kickjs v4.0.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
+
import { a as UnknownAssetError, c as resolveAsset, d as createToken, f as isInjectionToken, i as ASSET_MANIFEST_VERSION, l as useAssets, n as tokenName, o as assets, r as ASSETS, s as clearAssetCache, t as Container, u as INJECTION_TOKEN } from "./container-DYYSu58w.mjs";
|
|
11
12
|
import { METADATA, Scope } from "./core/interfaces.mjs";
|
|
12
|
-
import { ConsoleLoggerProvider, Logger, createLogger,
|
|
13
|
-
import { a as getMethodMeta, c as pushClassMeta, d as setInMetaMap, f as setInMetaRecord, i as getMetaRecord, l as pushMethodMeta, n as getClassMetaOrUndefined, o as getMethodMetaOrUndefined, p as setMethodMeta, r as getMetaMap, s as hasClassMeta, t as getClassMeta, u as setClassMeta } from "./metadata-
|
|
14
|
-
import {
|
|
15
|
-
import { ApiQueryParams, Autowired, Builder, Component, Controller, Delete, FileUpload, Get, Inject, Injectable, Middleware, Patch, Post, PostConstruct, Put, Repository, Service, Value, normalizeApiQueryParamsConfig } from "./core/decorators.mjs";
|
|
13
|
+
import { ConsoleLoggerProvider, Logger, createLogger, rootLogger } from "./core/logger.mjs";
|
|
14
|
+
import { a as getMethodMeta, c as pushClassMeta, d as setInMetaMap, f as setInMetaRecord, i as getMetaRecord, l as pushMethodMeta, n as getClassMetaOrUndefined, o as getMethodMetaOrUndefined, p as setMethodMeta, r as getMetaMap, s as hasClassMeta, t as getClassMeta, u as setClassMeta } from "./metadata-VQM9wChy.mjs";
|
|
15
|
+
import { ApiQueryParams, Asset, Autowired, Builder, Component, Controller, Delete, FileUpload, Get, Inject, Injectable, Middleware, Patch, Post, PostConstruct, Put, Repository, Service, Value, normalizeApiQueryParamsConfig } from "./core/decorators.mjs";
|
|
16
16
|
import { CRON_META, Cron, getCronJobs } from "./core/cron.mjs";
|
|
17
17
|
import { CacheEvict, Cacheable, MemoryCacheProvider, getCacheProvider, setCacheProvider } from "./core/cache.mjs";
|
|
18
18
|
import { HttpException, HttpStatus } from "./core/errors.mjs";
|
|
19
19
|
import { joinPaths, normalizePath } from "./core/path.mjs";
|
|
20
|
-
import {
|
|
20
|
+
import { a as MissingMountDepError, c as runContributors, d as DuplicateContributorError, f as MissingContributorError, h as CircuitOpenError, i as DuplicateMountNameError, l as buildPipeline, m as CircuitBreaker, n as defineAdapter, o as MountCycleError, p as defineContextDecorator, r as definePlugin, s as mountSort, t as defineAugmentation, u as ContributorCycleError } from "./core-DBcoqPHM.mjs";
|
|
21
21
|
import { computed, isRef, reactive, ref, toRefs, unref, watch } from "./core/reactivity.mjs";
|
|
22
22
|
import { REQUEST_ID_HEADER, requestId } from "./http/middleware/request-id.mjs";
|
|
23
23
|
import { errorHandler, notFoundHandler } from "./http/middleware/error-handler.mjs";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { n as
|
|
27
|
-
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-BQ2UT3oi.mjs";
|
|
28
|
-
import { RequestContext } from "./http/context.mjs";
|
|
24
|
+
import { n as getRequestStore, r as requestStore, t as RequestContext } from "./context-BAGzqT7-.mjs";
|
|
25
|
+
import { n as requestScopeMiddleware, t as Application } from "./application-Ce4DQN6m.mjs";
|
|
26
|
+
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-DJMxdx5r.mjs";
|
|
29
27
|
import { validate } from "./http/middleware/validate.mjs";
|
|
30
28
|
import { buildUploadMiddleware, cleanupFiles, resolveMimeTypes, upload } from "./http/middleware/upload.mjs";
|
|
31
|
-
import { buildRoutes
|
|
29
|
+
import { buildRoutes } from "./http/router-builder.mjs";
|
|
30
|
+
import { a as reloadEnv, i as loadEnv, n as defineEnv, o as resetEnvCache, r as getEnv, t as baseEnvSchema } from "./env-CdH5-dM_.mjs";
|
|
31
|
+
import { n as isClusterPrimary, t as bootstrap } from "./bootstrap-CB7bJeJG.mjs";
|
|
32
32
|
import { csrf } from "./http/middleware/csrf.mjs";
|
|
33
33
|
import { requestLogger } from "./http/middleware/request-logger.mjs";
|
|
34
34
|
import { helmet } from "./http/middleware/helmet.mjs";
|
|
@@ -37,7 +37,7 @@ import { rateLimit } from "./http/middleware/rate-limit.mjs";
|
|
|
37
37
|
import { session } from "./http/middleware/session.mjs";
|
|
38
38
|
import { ViewAdapter } from "./http/middleware/views.mjs";
|
|
39
39
|
import { SpaAdapter } from "./http/middleware/spa.mjs";
|
|
40
|
-
import { n as createConfigService, t as ConfigService } from "./config-
|
|
40
|
+
import { n as createConfigService, t as ConfigService } from "./config-wZ_TgBfs.mjs";
|
|
41
41
|
import crypto from "node:crypto";
|
|
42
42
|
//#region src/http/middleware/trace-context.ts
|
|
43
43
|
/**
|
|
@@ -123,6 +123,6 @@ function traceContext(options = {}) {
|
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
|
-
export { ApiQueryParams, Application, Autowired, Builder, CRON_META, CacheEvict, Cacheable, CircuitBreaker, CircuitOpenError, Component, ConfigService, ConsoleLoggerProvider, Container, Controller, Cron, Delete, FILTER_OPERATORS, FileUpload, Get, HttpException, HttpStatus, INJECTION_TOKEN, Inject, Injectable, Logger, METADATA, MemoryCacheProvider, Middleware, Patch, Post, PostConstruct, Put, REQUEST_ID_HEADER, Repository, RequestContext, Scope, Service, SpaAdapter, TRACEPARENT_HEADER, Value, ViewAdapter, baseEnvSchema, bootstrap, buildQueryParams, buildRoutes, buildUploadMiddleware, cleanupFiles, computed, cors, createConfigService, createLogger, createToken, csrf, defineEnv, errorHandler, getCacheProvider, getClassMeta, getClassMetaOrUndefined,
|
|
126
|
+
export { ASSETS, ASSET_MANIFEST_VERSION, ApiQueryParams, Application, Asset, Autowired, Builder, CRON_META, CacheEvict, Cacheable, CircuitBreaker, CircuitOpenError, Component, ConfigService, ConsoleLoggerProvider, Container, ContributorCycleError, Controller, Cron, Delete, DuplicateContributorError, DuplicateMountNameError, FILTER_OPERATORS, FileUpload, Get, HttpException, HttpStatus, INJECTION_TOKEN, Inject, Injectable, Logger, METADATA, MemoryCacheProvider, Middleware, MissingContributorError, MissingMountDepError, MountCycleError, Patch, Post, PostConstruct, Put, REQUEST_ID_HEADER, Repository, RequestContext, Scope, Service, SpaAdapter, TRACEPARENT_HEADER, UnknownAssetError, Value, ViewAdapter, assets, baseEnvSchema, bootstrap, buildPipeline, buildQueryParams, buildRoutes, buildUploadMiddleware, cleanupFiles, clearAssetCache, computed, cors, createConfigService, createLogger, createToken, csrf, defineAdapter, defineAugmentation, defineContextDecorator, defineEnv, definePlugin, errorHandler, getCacheProvider, getClassMeta, getClassMetaOrUndefined, getCronJobs, getEnv, getMetaMap, getMetaRecord, getMethodMeta, getMethodMetaOrUndefined, getRequestStore, hasClassMeta, helmet, isClusterPrimary, isInjectionToken, isRef, joinPaths, loadEnv, mountSort, normalizeApiQueryParamsConfig, normalizePath, notFoundHandler, parseFilters, parsePagination, parseQuery, parseSearchQuery, parseSort, parseTraceparent, pushClassMeta, pushMethodMeta, rateLimit, reactive, ref, reloadEnv, requestId, requestLogger, requestScopeMiddleware, requestStore, resetEnvCache, resolveAsset, resolveMimeTypes, rootLogger, runContributors, session, setCacheProvider, setClassMeta, setInMetaMap, setInMetaRecord, setMethodMeta, toRefs, tokenName, traceContext, unref, upload, useAssets, validate, watch };
|
|
127
127
|
|
|
128
128
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/core/interfaces.d.ts
|
|
3
|
+
/** Lifecycle scope for DI registrations */
|
|
4
|
+
declare enum Scope {
|
|
5
|
+
SINGLETON = "singleton",
|
|
6
|
+
TRANSIENT = "transient",
|
|
7
|
+
/** One instance per HTTP request, cached in AsyncLocalStorage. Throws outside request context. */
|
|
8
|
+
REQUEST = "request"
|
|
9
|
+
}
|
|
10
|
+
/** Generic constructor type */
|
|
11
|
+
type Constructor<T = any> = new (...args: any[]) => T;
|
|
12
|
+
/** A value that may or may not be wrapped in a Promise */
|
|
13
|
+
type MaybePromise<T = void> = T | Promise<T>;
|
|
14
|
+
/** Options for @Service, @Repository, @Component decorators */
|
|
15
|
+
interface ServiceOptions {
|
|
16
|
+
scope?: Scope;
|
|
17
|
+
}
|
|
18
|
+
/** Fluent builder type */
|
|
19
|
+
type BuilderOf<T> = { [K in keyof T as T[K] extends Function ? never : K]-?: (value: T[K]) => BuilderOf<T> } & {
|
|
20
|
+
build(): T;
|
|
21
|
+
};
|
|
22
|
+
/** Class with static builder() method */
|
|
23
|
+
interface Buildable<T> {
|
|
24
|
+
builder(): BuilderOf<T>;
|
|
25
|
+
}
|
|
26
|
+
/** Decorator class kind for devtools introspection */
|
|
27
|
+
type ClassKind = 'service' | 'controller' | 'repository' | 'component' | 'injectable' | 'factory' | 'instance' | 'unknown';
|
|
28
|
+
/** PostConstruct lifecycle status */
|
|
29
|
+
type PostConstructStatus = 'pending' | 'completed' | 'failed' | 'skipped';
|
|
30
|
+
/**
|
|
31
|
+
* String metadata keys for the DI system + decorator subsystem. Every
|
|
32
|
+
* key starts with the `kick:` prefix; the suffix is a short identifier
|
|
33
|
+
* that may itself contain `:`, `-`, or `_` separators (historical —
|
|
34
|
+
* keys grew alongside the framework). The §22 v4 convention is "no
|
|
35
|
+
* Symbols", not "use a strict naming scheme" — Symbols don't survive
|
|
36
|
+
* JSON serialisation, can't be addressed by string from worker
|
|
37
|
+
* threads, and don't show up in DevTools snapshots.
|
|
38
|
+
*
|
|
39
|
+
* `reflect-metadata` accepts both Symbol and string keys identically,
|
|
40
|
+
* so the consumer-side change is internal — references go through the
|
|
41
|
+
* `METADATA` enum's named members (e.g. `METADATA.INJECT`), not the
|
|
42
|
+
* underlying string.
|
|
43
|
+
*
|
|
44
|
+
* The `design:*` entries match what TypeScript's
|
|
45
|
+
* `emitDecoratorMetadata` writes; those names are fixed by the
|
|
46
|
+
* compiler + must stay as-is.
|
|
47
|
+
*/
|
|
48
|
+
declare const METADATA: {
|
|
49
|
+
readonly INJECTABLE: "kick:injectable";
|
|
50
|
+
readonly SCOPE: "kick:scope";
|
|
51
|
+
readonly CLASS_KIND: "kick:class-kind";
|
|
52
|
+
readonly AUTOWIRED: "kick:autowired";
|
|
53
|
+
readonly INJECT: "kick:inject";
|
|
54
|
+
readonly POST_CONSTRUCT: "kick:post_construct";
|
|
55
|
+
readonly BUILDER: "kick:builder";
|
|
56
|
+
readonly QUERY_PARAMS: "kick:query:params";
|
|
57
|
+
readonly ROUTES: "kick:routes";
|
|
58
|
+
readonly CLASS_MIDDLEWARES: "kick:class:middlewares";
|
|
59
|
+
readonly METHOD_MIDDLEWARES: "kick:method:middlewares";
|
|
60
|
+
readonly CLASS_CONTRIBUTORS: "kick:class:contributors";
|
|
61
|
+
readonly METHOD_CONTRIBUTORS: "kick:method:contributors";
|
|
62
|
+
readonly FILE_UPLOAD: "kick:file:upload";
|
|
63
|
+
readonly VALUE: "kick:value";
|
|
64
|
+
readonly ASSET: "kick:asset";
|
|
65
|
+
readonly PARAM_TYPES: "design:paramtypes";
|
|
66
|
+
readonly PROPERTY_TYPE: "design:type";
|
|
67
|
+
readonly RETURN_TYPE: "design:returntype";
|
|
68
|
+
};
|
|
69
|
+
//#endregion
|
|
70
|
+
export { METADATA as a, Scope as c, Constructor as i, ServiceOptions as l, BuilderOf as n, MaybePromise as o, ClassKind as r, PostConstructStatus as s, Buildable as t };
|
|
71
|
+
//# sourceMappingURL=interfaces-B50n7dwl.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces-
|
|
1
|
+
{"version":3,"file":"interfaces-B50n7dwl.d.mts","names":[],"sources":["../src/core/interfaces.ts"],"mappings":";;;aAGY,KAAA;EACV,SAAA;EACA,SAAA;;EAEA,OAAA;AAAA;;KAIU,WAAA,oBAA+B,IAAA,YAAgB,CAAA;;KAG/C,YAAA,aAAyB,CAAA,GAAI,OAAA,CAAQ,CAAA;AAHjD;AAAA,UAMiB,cAAA;EACf,KAAA,GAAQ,KAAA;AAAA;;KAIE,SAAA,oBACE,CAAA,IAAK,CAAA,CAAE,CAAA,UAAW,QAAA,WAAmB,CAAA,MAAO,KAAA,EAAO,CAAA,CAAE,CAAA,MAAO,SAAA,CAAU,CAAA;EAC9E,KAAA,IAAS,CAAA;AAAA;;UAGE,SAAA;EACf,OAAA,IAAW,SAAA,CAAU,CAAA;AAAA;;KAIX,SAAA;;KAWA,mBAAA;;;;;;AA1BZ;;;;;AAKA;;;;;;;;cAyCa,QAAA;EAAA"}
|
|
@@ -112,8 +112,6 @@ declare class Logger {
|
|
|
112
112
|
}
|
|
113
113
|
/** Shorthand for Logger.for(name) */
|
|
114
114
|
declare function createLogger(name: string): Logger;
|
|
115
|
-
/** @deprecated Use rootLogger instead */
|
|
116
|
-
declare const logger: pino.Logger<never, boolean>;
|
|
117
115
|
//#endregion
|
|
118
|
-
export {
|
|
119
|
-
//# sourceMappingURL=logger-
|
|
116
|
+
export { rootLogger as a, createLogger as i, Logger as n, LoggerProvider as r, ConsoleLoggerProvider as t };
|
|
117
|
+
//# sourceMappingURL=logger-CLVRZf2N.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-
|
|
1
|
+
{"version":3,"file":"logger-CLVRZf2N.d.mts","names":[],"sources":["../src/core/logger.ts"],"mappings":";;;;;cAKa,UAAA,EAAU,IAAA,CAAA,MAAA;AAAvB;;;;;AA0BA;AA1BA,UA0BiB,cAAA;EACf,IAAA,CAAK,GAAA,aAAgB,IAAA;EACrB,IAAA,CAAK,GAAA,aAAgB,IAAA;EACrB,KAAA,CAAM,GAAA,aAAgB,IAAA;EACtB,KAAA,CAAM,GAAA,aAAgB,IAAA;EACtB,KAAA,EAAO,GAAA,aAAgB,IAAA;EACvB,KAAA,EAAO,GAAA,aAAgB,IAAA;EAJlB;EAML,KAAA,CAAM,QAAA;IAAY,SAAA;EAAA,IAAsB,cAAA;AAAA;;;;;cA0C7B,qBAAA,YAAiC,cAAA;EAAA,QACpC,MAAA;cAEI,MAAA;EAAA,QAIJ,GAAA;EAIR,IAAA,CAAK,GAAA,aAAgB,IAAA;EAGrB,IAAA,CAAK,GAAA,aAAgB,IAAA;EAGrB,KAAA,CAAM,GAAA,aAAgB,IAAA;EAGtB,KAAA,CAAM,GAAA,aAAgB,IAAA;EAGtB,KAAA,CAAM,GAAA,aAAgB,IAAA;EAGtB,KAAA,CAAM,GAAA,aAAgB,IAAA;EAGtB,KAAA,CAAM,QAAA;IAAY,SAAA;EAAA,IAAsB,cAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAoC7B,MAAA;EAAA,QACH,SAAA;EAAA,QACA,gBAAA;EAAA,QACA,KAAA;EAvC8C;;AAoCxD;;;EApCwD,OA8C/C,gBAAA,SAAyB,MAAA;EA8BH;EAAA,eA3Bd,gBAAA;cAEH,IAAA;EAyDS;EAAA,YAlDT,QAAA,CAAA;EAkDe;;;;;;;;;;EAAA,OAhCpB,WAAA,CAAY,QAAA,EAAU,cAAA;EAAA;EAAA,OAOtB,WAAA,CAAA,GAAe,cAAA;EAAf;;;;EAAA,OAQA,aAAA,CAAA;EAOmB;EAAA,OAAnB,GAAA,CAAI,IAAA,WAAe,MAAA;EAUpB;EAAN,KAAA,CAAM,IAAA,WAAe,MAAA;EAKb;EAAA,QAAA,GAAA;EAIR,IAAA,CAAK,GAAA,aAAgB,IAAA;EAIrB,IAAA,CAAK,GAAA,aAAgB,IAAA;EAIrB,KAAA,CAAM,QAAA,OAAe,GAAA,cAAiB,IAAA;EAUtC,KAAA,CAAM,GAAA,aAAgB,IAAA;EAItB,KAAA,CAAM,GAAA,aAAgB,IAAA;EAItB,KAAA,CAAM,GAAA,aAAgB,IAAA;AAAA;;iBAMR,YAAA,CAAa,IAAA,WAAe,MAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs
|
|
2
|
+
* @forinda/kickjs v4.0.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -73,4 +73,4 @@ function getMetaRecord(key, target) {
|
|
|
73
73
|
//#endregion
|
|
74
74
|
export { getMethodMeta as a, pushClassMeta as c, setInMetaMap as d, setInMetaRecord as f, getMetaRecord as i, pushMethodMeta as l, getClassMetaOrUndefined as n, getMethodMetaOrUndefined as o, setMethodMeta as p, getMetaMap as r, hasClassMeta as s, getClassMeta as t, setClassMeta as u };
|
|
75
75
|
|
|
76
|
-
//# sourceMappingURL=metadata-
|
|
76
|
+
//# sourceMappingURL=metadata-VQM9wChy.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-
|
|
1
|
+
{"version":3,"file":"metadata-VQM9wChy.mjs","names":[],"sources":["../src/core/metadata.ts"],"sourcesContent":["import 'reflect-metadata'\nimport type { InjectionToken } from './token'\n\n/**\n * Typed utilities for reflect-metadata operations.\n *\n * Replaces scattered Reflect.defineMetadata/getMetadata calls with a single\n * source of truth. If we later move to Stage 3 decorators or a WeakMap-based\n * store, only this file changes — all 24+ consumer files stay untouched.\n *\n * Keys may be symbols, strings, or `InjectionToken<T>` objects produced by\n * `createToken()`. Using `createToken` is the preferred pattern because the\n * token's phantom type flows through the helpers, enabling type-safe reads.\n */\n\ntype MetaKey = symbol | string | InjectionToken<unknown>\n\n// ── Setters ─────────────────────────────────────────────────────\n\n/** Set metadata on a class (or prototype for property decorators) */\nexport function setClassMeta<T>(key: MetaKey, value: T, target: object): void {\n Reflect.defineMetadata(key, value, target)\n}\n\n/** Set metadata on a specific method */\nexport function setMethodMeta<T>(key: MetaKey, value: T, target: object, method: string): void {\n Reflect.defineMetadata(key, value, target, method)\n}\n\n// ── Getters ─────────────────────────────────────────────────────\n\n/** Get metadata from a class, returning `fallback` if not set */\nexport function getClassMeta<T>(key: MetaKey, target: object, fallback: T): T {\n return (Reflect.getMetadata(key, target) as T) ?? fallback\n}\n\n/** Get metadata from a specific method, returning `fallback` if not set */\nexport function getMethodMeta<T>(key: MetaKey, target: object, method: string, fallback: T): T {\n return (Reflect.getMetadata(key, target, method) as T) ?? fallback\n}\n\n/** Check if metadata exists on a class */\nexport function hasClassMeta(key: MetaKey, target: object): boolean {\n return Reflect.hasMetadata(key, target)\n}\n\n/** Get metadata from a class with no default (returns undefined if absent) */\nexport function getClassMetaOrUndefined<T>(key: MetaKey, target: object): T | undefined {\n return Reflect.getMetadata(key, target) as T | undefined\n}\n\n/** Get metadata from a method with no default (returns undefined if absent) */\nexport function getMethodMetaOrUndefined<T>(\n key: MetaKey,\n target: object,\n method: string,\n): T | undefined {\n return Reflect.getMetadata(key, target, method) as T | undefined\n}\n\n// ── Accumulate: Arrays ──────────────────────────────────────────\n\n/** Append items to an array stored in class metadata */\nexport function pushClassMeta<T>(key: MetaKey, target: object, ...items: T[]): void {\n const existing: T[] = Reflect.getOwnMetadata(key, target) ?? []\n Reflect.defineMetadata(key, [...existing, ...items], target)\n}\n\n/** Append items to an array stored in method metadata */\nexport function pushMethodMeta<T>(\n key: MetaKey,\n target: object,\n method: string,\n ...items: T[]\n): void {\n const existing: T[] = Reflect.getOwnMetadata(key, target, method) ?? []\n Reflect.defineMetadata(key, [...existing, ...items], target, method)\n}\n\n// ── Accumulate: Maps ────────────────────────────────────────────\n\n/** Set a key/value in a Map stored in class metadata */\nexport function setInMetaMap<K, V>(key: MetaKey, target: object, mapKey: K, mapValue: V): void {\n const inherited: Map<K, V> | undefined = Reflect.getOwnMetadata(key, target)\n const map = inherited ? new Map(inherited) : new Map<K, V>()\n map.set(mapKey, mapValue)\n Reflect.defineMetadata(key, map, target)\n}\n\n/** Get a Map from class metadata (returns empty Map if absent) */\nexport function getMetaMap<K, V>(key: MetaKey, target: object): Map<K, V> {\n return Reflect.getMetadata(key, target) ?? new Map()\n}\n\n// ── Accumulate: Records ─────────────────────────────────────────\n\n/** Set a key/value in a Record stored in class metadata */\nexport function setInMetaRecord<V>(\n key: MetaKey,\n target: object,\n recKey: string | number,\n recValue: V,\n): void {\n const inherited: Record<string | number, V> | undefined = Reflect.getOwnMetadata(key, target)\n const rec = inherited ? { ...inherited } : {}\n rec[recKey] = recValue\n Reflect.defineMetadata(key, rec, target)\n}\n\n/** Get a Record from class metadata (returns empty object if absent) */\nexport function getMetaRecord<V>(key: MetaKey, target: object): Record<string | number, V> {\n return Reflect.getMetadata(key, target) ?? {}\n}\n"],"mappings":";;;;;;;;;;;;;AAoBA,SAAgB,aAAgB,KAAc,OAAU,QAAsB;AAC5E,SAAQ,eAAe,KAAK,OAAO,OAAO;;;AAI5C,SAAgB,cAAiB,KAAc,OAAU,QAAgB,QAAsB;AAC7F,SAAQ,eAAe,KAAK,OAAO,QAAQ,OAAO;;;AAMpD,SAAgB,aAAgB,KAAc,QAAgB,UAAgB;AAC5E,QAAQ,QAAQ,YAAY,KAAK,OAAO,IAAU;;;AAIpD,SAAgB,cAAiB,KAAc,QAAgB,QAAgB,UAAgB;AAC7F,QAAQ,QAAQ,YAAY,KAAK,QAAQ,OAAO,IAAU;;;AAI5D,SAAgB,aAAa,KAAc,QAAyB;AAClE,QAAO,QAAQ,YAAY,KAAK,OAAO;;;AAIzC,SAAgB,wBAA2B,KAAc,QAA+B;AACtF,QAAO,QAAQ,YAAY,KAAK,OAAO;;;AAIzC,SAAgB,yBACd,KACA,QACA,QACe;AACf,QAAO,QAAQ,YAAY,KAAK,QAAQ,OAAO;;;AAMjD,SAAgB,cAAiB,KAAc,QAAgB,GAAG,OAAkB;CAClF,MAAM,WAAgB,QAAQ,eAAe,KAAK,OAAO,IAAI,EAAE;AAC/D,SAAQ,eAAe,KAAK,CAAC,GAAG,UAAU,GAAG,MAAM,EAAE,OAAO;;;AAI9D,SAAgB,eACd,KACA,QACA,QACA,GAAG,OACG;CACN,MAAM,WAAgB,QAAQ,eAAe,KAAK,QAAQ,OAAO,IAAI,EAAE;AACvE,SAAQ,eAAe,KAAK,CAAC,GAAG,UAAU,GAAG,MAAM,EAAE,QAAQ,OAAO;;;AAMtE,SAAgB,aAAmB,KAAc,QAAgB,QAAW,UAAmB;CAC7F,MAAM,YAAmC,QAAQ,eAAe,KAAK,OAAO;CAC5E,MAAM,MAAM,YAAY,IAAI,IAAI,UAAU,mBAAG,IAAI,KAAW;AAC5D,KAAI,IAAI,QAAQ,SAAS;AACzB,SAAQ,eAAe,KAAK,KAAK,OAAO;;;AAI1C,SAAgB,WAAiB,KAAc,QAA2B;AACxE,QAAO,QAAQ,YAAY,KAAK,OAAO,oBAAI,IAAI,KAAK;;;AAMtD,SAAgB,gBACd,KACA,QACA,QACA,UACM;CACN,MAAM,YAAoD,QAAQ,eAAe,KAAK,OAAO;CAC7F,MAAM,MAAM,YAAY,EAAE,GAAG,WAAW,GAAG,EAAE;AAC7C,KAAI,UAAU;AACd,SAAQ,eAAe,KAAK,KAAK,OAAO;;;AAI1C,SAAgB,cAAiB,KAAc,QAA4C;AACzF,QAAO,QAAQ,YAAY,KAAK,OAAO,IAAI,EAAE"}
|
|
@@ -22,4 +22,4 @@ declare function normalizePath(path?: string): string;
|
|
|
22
22
|
declare function joinPaths(...segments: (string | undefined)[]): string;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { normalizePath as n, joinPaths as t };
|
|
25
|
-
//# sourceMappingURL=path-
|
|
25
|
+
//# sourceMappingURL=path-Diviu6hv.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path-Diviu6hv.d.mts","names":[],"sources":["../src/core/path.ts"],"mappings":";;;AAOA;;;;;AAsBA;iBAtBgB,aAAA,CAAc,IAAA;;;;;;;;;;;;iBAsBd,SAAA,CAAA,GAAa,QAAA"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
|
|
2
|
+
import { t as Container } from "./container-CnWDsxi-.mjs";
|
|
3
|
+
import { r as ContributorRegistration } from "./context-decorator-B5v3VQCN.mjs";
|
|
4
|
+
import { r as AppAdapter, s as KickJsPluginName } from "./adapter-BNw2pGbg.mjs";
|
|
5
|
+
import { n as AppModuleClass } from "./app-module-CO0ksPCm.mjs";
|
|
6
|
+
|
|
7
|
+
//#region src/core/plugin.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Plugin interface for extending KickJS applications.
|
|
10
|
+
*
|
|
11
|
+
* Plugins bundle modules, adapters, middleware, and DI bindings into a single
|
|
12
|
+
* reusable unit. They run before the application bootstraps, so they can
|
|
13
|
+
* register services and configure the app before any module loads.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import type { KickPlugin } from '@forinda/kickjs'
|
|
18
|
+
*
|
|
19
|
+
* export class CorsPlugin implements KickPlugin {
|
|
20
|
+
* name = 'CorsPlugin'
|
|
21
|
+
*
|
|
22
|
+
* middleware() {
|
|
23
|
+
* return [cors({ origin: '*' })]
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
*
|
|
27
|
+
* // Usage:
|
|
28
|
+
* bootstrap({
|
|
29
|
+
* modules,
|
|
30
|
+
* plugins: [new CorsPlugin()],
|
|
31
|
+
* })
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* // A more complex plugin that bundles modules and adapters
|
|
37
|
+
* export class AuthPlugin implements KickPlugin {
|
|
38
|
+
* name = 'AuthPlugin'
|
|
39
|
+
*
|
|
40
|
+
* constructor(private config: AuthConfig) {}
|
|
41
|
+
*
|
|
42
|
+
* register(container: Container) {
|
|
43
|
+
* container.registerFactory(AUTH_SERVICE, () => new JwtAuthService(this.config))
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* modules() {
|
|
47
|
+
* return [AuthModule]
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* adapters() {
|
|
51
|
+
* return [new AuthGuardAdapter(this.config)]
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* middleware() {
|
|
55
|
+
* return [passport.initialize()]
|
|
56
|
+
* }
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
interface KickPlugin {
|
|
61
|
+
/** Human-readable name for logging, debugging, and `dependsOn` resolution. */
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
* Other plugin names that must mount before this one. The framework
|
|
65
|
+
* topologically sorts plugins at boot — cycles or unknown names throw
|
|
66
|
+
* via {@link MountCycleError} / {@link MissingMountDepError} so bad
|
|
67
|
+
* configurations fail boot rather than corrupt live traffic.
|
|
68
|
+
*
|
|
69
|
+
* Plugins with no `dependsOn` retain their declaration order, so
|
|
70
|
+
* existing apps that don't use this field see no behaviour change.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* class MonitoringPlugin implements KickPlugin {
|
|
75
|
+
* name = 'MonitoringPlugin'
|
|
76
|
+
* // OTel must initialize traces before request logger reads them
|
|
77
|
+
* dependsOn = ['OtelPlugin']
|
|
78
|
+
* }
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
dependsOn?: readonly KickJsPluginName[];
|
|
82
|
+
/**
|
|
83
|
+
* Register DI bindings before modules load.
|
|
84
|
+
* Use this to provide services that modules depend on.
|
|
85
|
+
*/
|
|
86
|
+
register?(container: Container): void;
|
|
87
|
+
/**
|
|
88
|
+
* Return module classes to be loaded alongside user modules.
|
|
89
|
+
* Plugin modules are loaded before user modules.
|
|
90
|
+
*/
|
|
91
|
+
modules?(): AppModuleClass[];
|
|
92
|
+
/**
|
|
93
|
+
* Return adapter instances to be added to the application.
|
|
94
|
+
* Plugin adapters are added before user adapters.
|
|
95
|
+
*/
|
|
96
|
+
adapters?(): AppAdapter[];
|
|
97
|
+
/**
|
|
98
|
+
* Return Express middleware to be added to the global pipeline.
|
|
99
|
+
* Plugin middleware runs before user-defined middleware.
|
|
100
|
+
*/
|
|
101
|
+
middleware?(): any[];
|
|
102
|
+
/**
|
|
103
|
+
* Return Context Contributors (#107) the plugin ships. Contributors
|
|
104
|
+
* returned here merge into the per-route pipeline at the **`'adapter'`
|
|
105
|
+
* precedence level** — same as those returned by adapters the plugin
|
|
106
|
+
* ships via {@link KickPlugin.adapters}, and for the same reason: a
|
|
107
|
+
* plugin is a cross-cutting bundle, narrower than the global default
|
|
108
|
+
* but broader than a per-module hook.
|
|
109
|
+
*
|
|
110
|
+
* Use when a plugin wants to ship a typed contributor without standing
|
|
111
|
+
* up an accompanying adapter. For full coverage of the precedence
|
|
112
|
+
* matrix (method > class > module > adapter > global) see
|
|
113
|
+
* `docs/guide/context-decorators.md`.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* import { defineContextDecorator, type KickPlugin } from '@forinda/kickjs'
|
|
118
|
+
*
|
|
119
|
+
* const LoadFlags = defineContextDecorator({
|
|
120
|
+
* key: 'flags',
|
|
121
|
+
* resolve: (ctx) => fetchFlags(ctx.requestId!),
|
|
122
|
+
* })
|
|
123
|
+
*
|
|
124
|
+
* export class FlagsPlugin implements KickPlugin {
|
|
125
|
+
* name = 'FlagsPlugin'
|
|
126
|
+
* contributors() {
|
|
127
|
+
* return [LoadFlags.registration]
|
|
128
|
+
* }
|
|
129
|
+
* }
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
contributors?(): ContributorRegistration[] | readonly ContributorRegistration[];
|
|
133
|
+
/**
|
|
134
|
+
* Called after the application has fully bootstrapped.
|
|
135
|
+
* Use for post-startup logic like logging, health registration, etc.
|
|
136
|
+
*/
|
|
137
|
+
onReady?(container: Container): void | Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Called during application shutdown.
|
|
140
|
+
* Clean up plugin resources (connections, intervals, etc.).
|
|
141
|
+
*/
|
|
142
|
+
shutdown?(): void | Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Optional DevTools introspection hook (architecture.md §23). Returns
|
|
145
|
+
* a snapshot describing this plugin's current state, metrics, and DI
|
|
146
|
+
* tokens. DevTools awaits the result, so async work is fine — but keep
|
|
147
|
+
* the implementation cheap (counters + flags, no DB round trips) since
|
|
148
|
+
* the topology endpoint polls on a short interval.
|
|
149
|
+
*
|
|
150
|
+
* The return type is intentionally untyped at this layer to avoid
|
|
151
|
+
* `@forinda/kickjs` taking on a runtime dep on `@forinda/kickjs-devtools-kit`.
|
|
152
|
+
* Plugin authors should import and return `IntrospectionSnapshot`
|
|
153
|
+
* from `@forinda/kickjs-devtools-kit` directly.
|
|
154
|
+
*/
|
|
155
|
+
introspect?(): unknown | Promise<unknown>;
|
|
156
|
+
/**
|
|
157
|
+
* Optional DevTools tabs this plugin contributes (architecture.md §23).
|
|
158
|
+
* Same shape as {@link AppAdapter.devtoolsTabs}; the kit's
|
|
159
|
+
* `DevtoolsTabDescriptor` types it for plugin authors.
|
|
160
|
+
*/
|
|
161
|
+
devtoolsTabs?(): readonly unknown[];
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
export { KickPlugin as t };
|
|
165
|
+
//# sourceMappingURL=plugin-WdrDgNzk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-WdrDgNzk.d.mts","names":[],"sources":["../src/core/plugin.ts"],"mappings":";;;;;;;;AA0DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAAiB,UAAA;;EAEf,IAAA;;;;;;;;;;;;;;;;;;;EAoBA,SAAA,YAAqB,gBAAA;;;;;EAMrB,QAAA,EAAU,SAAA,EAAW,SAAA;;;;;EAMrB,OAAA,KAAY,cAAA;;;;;EAMZ,QAAA,KAAa,UAAA;;;;;EAMb,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCA,YAAA,KAAiB,uBAAA,cAAqC,uBAAA;;;;;EAMtD,OAAA,EAAS,SAAA,EAAW,SAAA,UAAmB,OAAA;;;;;EAMvC,QAAA,YAAoB,OAAA;;;;;;;;;;;;;EAcpB,UAAA,eAAyB,OAAA;;;;;;EAOzB,YAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @forinda/kickjs
|
|
2
|
+
* @forinda/kickjs v4.0.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Felix Orinda
|
|
5
5
|
*
|
|
@@ -161,4 +161,4 @@ function buildQueryParams(parsed) {
|
|
|
161
161
|
//#endregion
|
|
162
162
|
export { parseSearchQuery as a, parseQuery as i, parseFilters as n, parseSort as o, parsePagination as r, FILTER_OPERATORS as s, buildQueryParams as t };
|
|
163
163
|
|
|
164
|
-
//# sourceMappingURL=query-
|
|
164
|
+
//# sourceMappingURL=query-DJMxdx5r.mjs.map
|