phecda-server 5.2.3 → 5.2.5
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/{chunk-VYDBNZJ2.mjs → chunk-2NTXVYQC.mjs} +1 -8
- package/dist/{chunk-Q4AGVGVA.mjs → chunk-2O6X54P5.mjs} +103 -105
- package/dist/{chunk-AWY6FTH4.js → chunk-6QLTBEXP.js} +70 -86
- package/dist/{chunk-H6NYBVBV.js → chunk-6T4UZ4LV.js} +130 -132
- package/dist/{chunk-FNJWO324.js → chunk-H2FWLKXN.js} +2 -9
- package/dist/{chunk-IJNA24EZ.mjs → chunk-JJJ7AUEF.mjs} +39 -55
- package/dist/{chunk-YAVIRFUE.mjs → chunk-MGADYFW4.mjs} +28 -49
- package/dist/{chunk-J5SL4QLN.js → chunk-MKZOLLJS.js} +39 -60
- package/dist/core-BIm7dkko.d.mts +27 -0
- package/dist/{core-7f6d2be6.d.ts → core-C3cON4Um.d.ts} +1 -1
- package/dist/helper.d.mts +27 -0
- package/dist/helper.d.ts +1 -1
- package/dist/helper.js +3 -3
- package/dist/helper.mjs +2 -2
- package/dist/index.d.mts +246 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +73 -64
- package/dist/index.mjs +48 -39
- package/dist/rpc/bullmq/index.d.mts +21 -0
- package/dist/rpc/bullmq/index.d.ts +4 -4
- package/dist/rpc/bullmq/index.js +30 -43
- package/dist/rpc/bullmq/index.mjs +20 -33
- package/dist/rpc/kafka/index.d.mts +24 -0
- package/dist/rpc/kafka/index.d.ts +4 -4
- package/dist/rpc/kafka/index.js +25 -34
- package/dist/rpc/kafka/index.mjs +17 -26
- package/dist/rpc/nats/index.d.mts +15 -0
- package/dist/rpc/nats/index.d.ts +4 -4
- package/dist/rpc/nats/index.js +33 -46
- package/dist/rpc/nats/index.mjs +24 -37
- package/dist/rpc/rabbitmq/index.d.mts +16 -0
- package/dist/rpc/rabbitmq/index.d.ts +4 -4
- package/dist/rpc/rabbitmq/index.js +34 -46
- package/dist/rpc/rabbitmq/index.mjs +23 -35
- package/dist/rpc/redis/index.d.mts +23 -0
- package/dist/rpc/redis/index.d.ts +4 -4
- package/dist/rpc/redis/index.js +27 -38
- package/dist/rpc/redis/index.mjs +18 -29
- package/dist/server/elysia/index.d.mts +18 -0
- package/dist/server/elysia/index.d.ts +4 -4
- package/dist/server/elysia/index.js +22 -27
- package/dist/server/elysia/index.mjs +8 -13
- package/dist/server/express/index.d.mts +18 -0
- package/dist/server/express/index.d.ts +4 -4
- package/dist/server/express/index.js +24 -33
- package/dist/server/express/index.mjs +11 -20
- package/dist/server/fastify/index.d.mts +20 -0
- package/dist/server/fastify/index.d.ts +4 -4
- package/dist/server/fastify/index.js +23 -30
- package/dist/server/fastify/index.mjs +10 -17
- package/dist/server/h3/index.d.mts +16 -0
- package/dist/server/h3/index.d.ts +4 -4
- package/dist/server/h3/index.js +21 -25
- package/dist/server/h3/index.mjs +10 -14
- package/dist/server/hono/index.d.mts +16 -0
- package/dist/server/hono/index.d.ts +4 -4
- package/dist/server/hono/index.js +22 -30
- package/dist/server/hono/index.mjs +10 -18
- package/dist/server/hyper-express/index.d.mts +18 -0
- package/dist/server/hyper-express/index.d.ts +4 -4
- package/dist/server/hyper-express/index.js +23 -32
- package/dist/server/hyper-express/index.mjs +11 -20
- package/dist/server/koa/index.d.mts +18 -0
- package/dist/server/koa/index.d.ts +4 -4
- package/dist/server/koa/index.js +22 -29
- package/dist/server/koa/index.mjs +9 -16
- package/dist/test.d.mts +18 -0
- package/dist/test.d.ts +3 -3
- package/dist/test.js +14 -22
- package/dist/test.mjs +10 -18
- package/dist/types-B-y2TwhC.d.mts +17 -0
- package/dist/types-ByP1fKMe.d.mts +27 -0
- package/dist/{types-68f2ec2a.d.ts → types-C5sdDiDQ.d.ts} +11 -2
- package/dist/{types-f3b79218.d.ts → types-CIZbw8S2.d.ts} +2 -2
- package/dist/{types-81be0ba3.d.ts → types-CdQey96H.d.mts} +1 -1
- package/dist/types-CdQey96H.d.ts +108 -0
- package/package.json +3 -3
package/dist/helper.mjs
CHANGED
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { B as BaseContext, D as DefaultOptions, C as ControllerMetaData, M as MetaData, U as UNMOUNT_SYMBOL, a as BaseError } from './types-CdQey96H.mjs';
|
|
2
|
+
export { e as BaseRequestType, d as BaseReturn, i as ControllerMeta, f as CustomResponse, j as ERROR_SYMBOL, E as Emitter, g as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, h as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, c as ToClientFn, b as ToClientInstance, T as ToClientMap } from './types-CdQey96H.mjs';
|
|
3
|
+
import { G as Generator } from './core-BIm7dkko.mjs';
|
|
4
|
+
export { F as Factory, e as emitter } from './core-BIm7dkko.mjs';
|
|
5
|
+
import { Construct, AbConstruct } from 'phecda-core';
|
|
6
|
+
export * from 'phecda-core';
|
|
7
|
+
export { a as HttpContext, H as HttpOptions } from './types-ByP1fKMe.mjs';
|
|
8
|
+
export { a as RpcClientOptions, b as RpcContext, R as RpcServerOptions } from './types-B-y2TwhC.mjs';
|
|
9
|
+
import 'node:http';
|
|
10
|
+
|
|
11
|
+
declare class Exception extends Error {
|
|
12
|
+
message: string;
|
|
13
|
+
status: number;
|
|
14
|
+
description: string;
|
|
15
|
+
constructor(message: string, status?: number, description?: string);
|
|
16
|
+
get data(): {
|
|
17
|
+
message: string;
|
|
18
|
+
description: string;
|
|
19
|
+
status: number;
|
|
20
|
+
__PS_ERROR__: boolean;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class UndefinedException extends Exception {
|
|
25
|
+
constructor(message: string);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class ValidateException extends Exception {
|
|
29
|
+
constructor(message: string);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class ForbiddenException extends Exception {
|
|
33
|
+
constructor(message: string);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class BadRequestException extends Exception {
|
|
37
|
+
constructor(message: string);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class NotFoundException extends Exception {
|
|
41
|
+
constructor(message: string);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class ConflictException extends Exception {
|
|
45
|
+
constructor(message: string);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class BadGatewayException extends Exception {
|
|
49
|
+
constructor(message: string);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class InvalidInputException extends Exception {
|
|
53
|
+
constructor(message: string);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class UnsupportedMediaTypeException extends Exception {
|
|
57
|
+
constructor(message: string);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class PayloadLargeException extends Exception {
|
|
61
|
+
constructor(message: string);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class TimeoutException extends Exception {
|
|
65
|
+
constructor(message: string);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare class UnauthorizedException extends Exception {
|
|
69
|
+
constructor(message: string);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare class ServiceUnavailableException extends Exception {
|
|
73
|
+
constructor(message: string);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class FrameworkException extends Exception {
|
|
77
|
+
constructor(message: string);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class TimerException extends Exception {
|
|
81
|
+
constructor(message: string);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class WorkerException extends Exception {
|
|
85
|
+
constructor(message: string);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface PipeArg {
|
|
89
|
+
arg: any;
|
|
90
|
+
pipe?: string;
|
|
91
|
+
key: string;
|
|
92
|
+
type: string;
|
|
93
|
+
index: number;
|
|
94
|
+
reflect: any;
|
|
95
|
+
define: Record<string, any>;
|
|
96
|
+
}
|
|
97
|
+
type GuardType<C extends BaseContext = any> = ((ctx: C) => Promise<boolean> | boolean);
|
|
98
|
+
type InterceptorType<C extends BaseContext = any> = (ctx: C) => (any | ((ret: any) => any));
|
|
99
|
+
type PipeType<C extends BaseContext = any> = (arg: PipeArg, ctx: C) => Promise<any>;
|
|
100
|
+
type FilterType<C extends BaseContext = any, E extends Exception = any> = (err: E | Error, ctx?: C) => Error | any;
|
|
101
|
+
declare class Context<Data extends BaseContext> {
|
|
102
|
+
data: Data;
|
|
103
|
+
method: string;
|
|
104
|
+
params: string[];
|
|
105
|
+
static filterRecord: Record<PropertyKey, FilterType>;
|
|
106
|
+
static pipeRecord: Record<PropertyKey, PipeType>;
|
|
107
|
+
static guardRecord: Record<PropertyKey, GuardType>;
|
|
108
|
+
static interceptorRecord: Record<PropertyKey, InterceptorType>;
|
|
109
|
+
static pluginRecord: Record<PropertyKey, (framework: string) => any>;
|
|
110
|
+
private postInterceptors;
|
|
111
|
+
constructor(data: Data);
|
|
112
|
+
run<ReturnData = any, ReturnErr = any>(opts: DefaultOptions, successCb: (data: any) => ReturnData, failCb: (err: any) => ReturnErr): Promise<ReturnData | ReturnErr>;
|
|
113
|
+
private usePipe;
|
|
114
|
+
private useFilter;
|
|
115
|
+
private useGuard;
|
|
116
|
+
private usePostInterceptor;
|
|
117
|
+
private useInterceptor;
|
|
118
|
+
static usePlugin<Plugin>(plugins: string[], framework: string): Plugin[];
|
|
119
|
+
}
|
|
120
|
+
declare function addPlugin<T>(key: PropertyKey, handler: (framework: string) => T): void;
|
|
121
|
+
declare function addPipe<C extends BaseContext>(key: PropertyKey, handler: PipeType<C>): void;
|
|
122
|
+
declare function addFilter<C extends BaseContext>(key: PropertyKey, handler: FilterType<C>): void;
|
|
123
|
+
declare function addGuard<C extends BaseContext>(key: PropertyKey, handler: GuardType<C>): void;
|
|
124
|
+
declare function addInterceptor<C extends BaseContext>(key: PropertyKey, handler: InterceptorType<C>): void;
|
|
125
|
+
|
|
126
|
+
declare class RPCGenerator extends Generator {
|
|
127
|
+
name: string;
|
|
128
|
+
classMap: Record<string, {
|
|
129
|
+
[key: string]: string;
|
|
130
|
+
}>;
|
|
131
|
+
getContent(): string;
|
|
132
|
+
addMethod(args: ControllerMetaData): void;
|
|
133
|
+
generateCode(meta: MetaData[]): string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class HTTPGenerator extends Generator {
|
|
137
|
+
name: string;
|
|
138
|
+
classMap: Record<string, {
|
|
139
|
+
[key: string]: string;
|
|
140
|
+
}>;
|
|
141
|
+
getContent(): string;
|
|
142
|
+
addMethod(args: ControllerMetaData): void;
|
|
143
|
+
generateCode(meta: MetaData[]): string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare function BaseParam(data: Record<string, any>): ParameterDecorator;
|
|
147
|
+
declare function Body(key?: string): ParameterDecorator;
|
|
148
|
+
declare function Head(key: string): ParameterDecorator;
|
|
149
|
+
declare function Query(key?: string): ParameterDecorator;
|
|
150
|
+
declare function Param(key: string): ParameterDecorator;
|
|
151
|
+
declare function Arg(target: any, k: string, index: number): void;
|
|
152
|
+
|
|
153
|
+
declare function Guard(...guards: string[]): (target: any, k?: PropertyKey) => void;
|
|
154
|
+
declare function Plugin(...plugins: string[]): (target: any, k?: PropertyKey) => void;
|
|
155
|
+
declare function Interceptor(...interceptors: string[]): (target: any, k?: PropertyKey) => void;
|
|
156
|
+
declare function Filter(filter: string): (target: any, k?: PropertyKey) => void;
|
|
157
|
+
declare function Pipe(pipe?: string): (target: any, k?: any, index?: any) => void;
|
|
158
|
+
|
|
159
|
+
declare function Route(route: string, type: string): MethodDecorator;
|
|
160
|
+
declare function Header(headers: Record<string, string>): MethodDecorator;
|
|
161
|
+
declare function Get(route?: string): MethodDecorator;
|
|
162
|
+
declare function Post(route?: string): MethodDecorator;
|
|
163
|
+
declare function Put(route?: string): MethodDecorator;
|
|
164
|
+
declare function Patch(route?: string): MethodDecorator;
|
|
165
|
+
declare function Delete(route?: string): MethodDecorator;
|
|
166
|
+
declare function Controller(prefix?: string): (target: any) => void;
|
|
167
|
+
|
|
168
|
+
declare function Event(isEvent?: boolean): (target: any, k?: PropertyKey) => void;
|
|
169
|
+
declare function Queue(queue?: string): (target: any, k?: PropertyKey) => void;
|
|
170
|
+
declare function Rpc(): ClassDecorator;
|
|
171
|
+
|
|
172
|
+
declare function Injectable(): (target: any) => void;
|
|
173
|
+
declare const Ctx: PropertyDecorator;
|
|
174
|
+
declare function Define(key: string, value: any): any;
|
|
175
|
+
|
|
176
|
+
declare const defaultPipe: PipeType;
|
|
177
|
+
|
|
178
|
+
declare class Dev {
|
|
179
|
+
private readonly [UNMOUNT_SYMBOL];
|
|
180
|
+
protected context: BaseContext;
|
|
181
|
+
protected onUnmount(cb: () => void): void;
|
|
182
|
+
private unmount;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare abstract class PFilter<C extends BaseContext = any, E extends Exception = Exception> extends Dev {
|
|
186
|
+
readonly key: PropertyKey;
|
|
187
|
+
constructor(tag?: string);
|
|
188
|
+
abstract use(error: Error | E, ctx?: C): BaseError;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare abstract class PGuard<C extends BaseContext = any> extends Dev {
|
|
192
|
+
abstract use(ctx: C): Promise<boolean> | boolean;
|
|
193
|
+
readonly key: PropertyKey;
|
|
194
|
+
constructor(tag?: string);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare abstract class PInterceptor<C extends BaseContext = any> extends Dev {
|
|
198
|
+
abstract use(ctx: C): Function | Promise<Function> | any;
|
|
199
|
+
readonly key: PropertyKey;
|
|
200
|
+
constructor(tag?: string);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare abstract class PPipe<C extends BaseContext = any> extends Dev {
|
|
204
|
+
readonly key: PropertyKey;
|
|
205
|
+
constructor(tag?: string);
|
|
206
|
+
abstract use(param: {
|
|
207
|
+
arg: any;
|
|
208
|
+
option?: any;
|
|
209
|
+
key: string;
|
|
210
|
+
type: string;
|
|
211
|
+
index: number;
|
|
212
|
+
reflect: any;
|
|
213
|
+
}, ctx: C): any;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare abstract class PPlugin extends Dev {
|
|
217
|
+
readonly key: PropertyKey;
|
|
218
|
+
constructor(tag?: string);
|
|
219
|
+
abstract use<Plugin = any>(framework: string): Plugin;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
interface PExtension<C extends BaseContext = any, E extends Exception = Exception> {
|
|
223
|
+
intercept(ctx: C): Function | Promise<Function> | any;
|
|
224
|
+
guard(ctx: C): Promise<boolean> | boolean;
|
|
225
|
+
pipe(param: {
|
|
226
|
+
arg: any;
|
|
227
|
+
option?: any;
|
|
228
|
+
key: string;
|
|
229
|
+
type: string;
|
|
230
|
+
index: number;
|
|
231
|
+
reflect: any;
|
|
232
|
+
}, ctx: C): any;
|
|
233
|
+
filter(error: Error | E, ctx?: C): BaseError;
|
|
234
|
+
plugin<Plugin = any>(framework: string): Plugin;
|
|
235
|
+
}
|
|
236
|
+
declare class PExtension extends Dev {
|
|
237
|
+
readonly key: PropertyKey;
|
|
238
|
+
constructor(tag?: string);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
type LogLevel = 'error' | 'info' | 'warn' | 'log';
|
|
242
|
+
declare function setLogger(logger: Record<LogLevel, (msg: string) => void>): void;
|
|
243
|
+
declare function log(msg: string, level?: LogLevel): void;
|
|
244
|
+
declare function Mix<C1 extends Construct | AbConstruct, C2 extends Construct>(InternalClass: C1, ExtendClass: C2): new (...args: ConstructorParameters<C2>) => InstanceType<C1> & InstanceType<C2>;
|
|
245
|
+
|
|
246
|
+
export { Arg, BadGatewayException, BadRequestException, BaseContext, BaseError, BaseParam, Body, ConflictException, Context, Controller, ControllerMetaData, Ctx, DefaultOptions, Define, Delete, Dev, Event, Exception, Filter, type FilterType, ForbiddenException, FrameworkException, Generator, Get, Guard, type GuardType, HTTPGenerator, Head, Header, Injectable, Interceptor, type InterceptorType, InvalidInputException, MetaData, Mix, NotFoundException, PExtension, PFilter, PGuard, PInterceptor, PPipe, PPlugin, Param, Patch, PayloadLargeException, Pipe, type PipeArg, type PipeType, Plugin, Post, Put, Query, Queue, RPCGenerator, Route, Rpc, ServiceUnavailableException, TimeoutException, TimerException, UNMOUNT_SYMBOL, UnauthorizedException, UndefinedException, UnsupportedMediaTypeException, ValidateException, WorkerException, addFilter, addGuard, addInterceptor, addPipe, addPlugin, defaultPipe, log, setLogger };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as BaseContext, D as DefaultOptions, C as ControllerMetaData, M as MetaData, U as UNMOUNT_SYMBOL, a as BaseError } from './types-
|
|
2
|
-
export { e as BaseRequestType, d as BaseReturn, i as ControllerMeta, f as CustomResponse, j as ERROR_SYMBOL, E as Emitter, g as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, h as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, c as ToClientFn, b as ToClientInstance, T as ToClientMap } from './types-
|
|
3
|
-
import { G as Generator } from './core-
|
|
4
|
-
export { F as Factory, e as emitter } from './core-
|
|
1
|
+
import { B as BaseContext, D as DefaultOptions, C as ControllerMetaData, M as MetaData, U as UNMOUNT_SYMBOL, a as BaseError } from './types-CdQey96H.js';
|
|
2
|
+
export { e as BaseRequestType, d as BaseReturn, i as ControllerMeta, f as CustomResponse, j as ERROR_SYMBOL, E as Emitter, g as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, h as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, c as ToClientFn, b as ToClientInstance, T as ToClientMap } from './types-CdQey96H.js';
|
|
3
|
+
import { G as Generator } from './core-C3cON4Um.js';
|
|
4
|
+
export { F as Factory, e as emitter } from './core-C3cON4Um.js';
|
|
5
5
|
import { Construct, AbConstruct } from 'phecda-core';
|
|
6
6
|
export * from 'phecda-core';
|
|
7
|
-
export { a as HttpContext, H as HttpOptions } from './types-
|
|
8
|
-
export { a as RpcClientOptions, b as RpcContext, R as RpcServerOptions } from './types-
|
|
7
|
+
export { a as HttpContext, H as HttpOptions } from './types-C5sdDiDQ.js';
|
|
8
|
+
export { a as RpcClientOptions, b as RpcContext, R as RpcServerOptions } from './types-CIZbw8S2.js';
|
|
9
9
|
import 'node:http';
|
|
10
10
|
|
|
11
11
|
declare class Exception extends Error {
|
|
@@ -243,4 +243,4 @@ declare function setLogger(logger: Record<LogLevel, (msg: string) => void>): voi
|
|
|
243
243
|
declare function log(msg: string, level?: LogLevel): void;
|
|
244
244
|
declare function Mix<C1 extends Construct | AbConstruct, C2 extends Construct>(InternalClass: C1, ExtendClass: C2): new (...args: ConstructorParameters<C2>) => InstanceType<C1> & InstanceType<C2>;
|
|
245
245
|
|
|
246
|
-
export { Arg, BadGatewayException, BadRequestException, BaseContext, BaseError, BaseParam, Body, ConflictException, Context, Controller, ControllerMetaData, Ctx, DefaultOptions, Define, Delete, Dev, Event, Exception, Filter, FilterType, ForbiddenException, FrameworkException, Generator, Get, Guard, GuardType, HTTPGenerator, Head, Header, Injectable, Interceptor, InterceptorType, InvalidInputException, MetaData, Mix, NotFoundException, PExtension, PFilter, PGuard, PInterceptor, PPipe, PPlugin, Param, Patch, PayloadLargeException, Pipe, PipeArg, PipeType, Plugin, Post, Put, Query, Queue, RPCGenerator, Route, Rpc, ServiceUnavailableException, TimeoutException, TimerException, UNMOUNT_SYMBOL, UnauthorizedException, UndefinedException, UnsupportedMediaTypeException, ValidateException, WorkerException, addFilter, addGuard, addInterceptor, addPipe, addPlugin, defaultPipe, log, setLogger };
|
|
246
|
+
export { Arg, BadGatewayException, BadRequestException, BaseContext, BaseError, BaseParam, Body, ConflictException, Context, Controller, ControllerMetaData, Ctx, DefaultOptions, Define, Delete, Dev, Event, Exception, Filter, type FilterType, ForbiddenException, FrameworkException, Generator, Get, Guard, type GuardType, HTTPGenerator, Head, Header, Injectable, Interceptor, type InterceptorType, InvalidInputException, MetaData, Mix, NotFoundException, PExtension, PFilter, PGuard, PInterceptor, PPipe, PPlugin, Param, Patch, PayloadLargeException, Pipe, type PipeArg, type PipeType, Plugin, Post, Put, Query, Queue, RPCGenerator, Route, Rpc, ServiceUnavailableException, TimeoutException, TimerException, UNMOUNT_SYMBOL, UnauthorizedException, UndefinedException, UnsupportedMediaTypeException, ValidateException, WorkerException, addFilter, addGuard, addInterceptor, addPipe, addPlugin, defaultPipe, log, setLogger };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMKZOLLJSjs = require('./chunk-MKZOLLJS.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -29,7 +29,7 @@ var _chunkJ5SL4QLNjs = require('./chunk-J5SL4QLN.js');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk6QLTBEXPjs = require('./chunk-6QLTBEXP.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -55,7 +55,7 @@ var _chunkAWY6FTH4js = require('./chunk-AWY6FTH4.js');
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunk6T4UZ4LVjs = require('./chunk-6T4UZ4LV.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
@@ -68,47 +68,45 @@ var _chunkH6NYBVBVjs = require('./chunk-H6NYBVBV.js');
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var _chunkH2FWLKXNjs = require('./chunk-H2FWLKXN.js');
|
|
72
72
|
|
|
73
73
|
// src/types.ts
|
|
74
74
|
var ResponseSymbol = Symbol("response");
|
|
75
75
|
var CustomResponse = class {
|
|
76
|
+
static {
|
|
77
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "CustomResponse");
|
|
78
|
+
}
|
|
76
79
|
|
|
77
80
|
};
|
|
78
|
-
_chunkFNJWO324js.__name.call(void 0, CustomResponse, "CustomResponse");
|
|
79
81
|
|
|
80
82
|
// src/modules/dev.ts
|
|
81
83
|
var _phecdacore = require('phecda-core'); _createStarExport(_phecdacore);
|
|
82
84
|
function _ts_decorate(decorators, target, key, desc) {
|
|
83
85
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
84
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
85
|
-
|
|
86
|
-
else
|
|
87
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
88
|
-
if (d = decorators[i])
|
|
89
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
86
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
87
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
90
88
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
91
89
|
}
|
|
92
|
-
|
|
90
|
+
_chunkH2FWLKXNjs.__name.call(void 0, _ts_decorate, "_ts_decorate");
|
|
93
91
|
function _ts_metadata(k, v) {
|
|
94
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
95
|
-
return Reflect.metadata(k, v);
|
|
92
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
96
93
|
}
|
|
97
|
-
|
|
94
|
+
_chunkH2FWLKXNjs.__name.call(void 0, _ts_metadata, "_ts_metadata");
|
|
98
95
|
var Dev = (_class = class {constructor() { _class.prototype.__init.call(this); }
|
|
99
|
-
|
|
96
|
+
static {
|
|
97
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "Dev");
|
|
98
|
+
}
|
|
99
|
+
__init() {this[_chunkH2FWLKXNjs.UNMOUNT_SYMBOL] = []}
|
|
100
100
|
|
|
101
101
|
// work for hmr
|
|
102
102
|
// exec callback when module unmount
|
|
103
103
|
onUnmount(cb) {
|
|
104
|
-
this[
|
|
104
|
+
this[_chunkH2FWLKXNjs.UNMOUNT_SYMBOL].push(cb);
|
|
105
105
|
}
|
|
106
106
|
async unmount() {
|
|
107
|
-
for (const cb of this[
|
|
108
|
-
await cb();
|
|
107
|
+
for (const cb of this[_chunkH2FWLKXNjs.UNMOUNT_SYMBOL]) await cb();
|
|
109
108
|
}
|
|
110
109
|
}, _class);
|
|
111
|
-
_chunkFNJWO324js.__name.call(void 0, Dev, "Dev");
|
|
112
110
|
_ts_decorate([
|
|
113
111
|
_phecdacore.Unmount,
|
|
114
112
|
_ts_metadata("design:type", Function),
|
|
@@ -122,126 +120,140 @@ Dev = exports.Dev = _ts_decorate([
|
|
|
122
120
|
// src/modules/filter.ts
|
|
123
121
|
|
|
124
122
|
var PFilter = class extends Dev {
|
|
123
|
+
static {
|
|
124
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "PFilter");
|
|
125
|
+
}
|
|
125
126
|
|
|
126
127
|
constructor(tag) {
|
|
127
128
|
super();
|
|
128
129
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
129
|
-
|
|
130
|
+
_chunk6T4UZ4LVjs.addFilter.call(void 0, this.key, this.use.bind(this));
|
|
130
131
|
this.onUnmount(() => {
|
|
131
|
-
delete
|
|
132
|
+
delete _chunk6T4UZ4LVjs.Context.filterRecord[this.key];
|
|
132
133
|
});
|
|
133
134
|
}
|
|
134
135
|
};
|
|
135
|
-
_chunkFNJWO324js.__name.call(void 0, PFilter, "PFilter");
|
|
136
136
|
|
|
137
137
|
// src/modules/guard.ts
|
|
138
138
|
|
|
139
139
|
var PGuard = class extends Dev {
|
|
140
|
+
static {
|
|
141
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "PGuard");
|
|
142
|
+
}
|
|
140
143
|
|
|
141
144
|
constructor(tag) {
|
|
142
145
|
super();
|
|
143
146
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
144
|
-
|
|
147
|
+
_chunk6T4UZ4LVjs.addGuard.call(void 0, this.key, this.use.bind(this));
|
|
145
148
|
this.onUnmount(() => {
|
|
146
|
-
delete
|
|
149
|
+
delete _chunk6T4UZ4LVjs.Context.guardRecord[this.key];
|
|
147
150
|
});
|
|
148
151
|
}
|
|
149
152
|
};
|
|
150
|
-
_chunkFNJWO324js.__name.call(void 0, PGuard, "PGuard");
|
|
151
153
|
|
|
152
154
|
// src/modules/interceptor.ts
|
|
153
155
|
|
|
154
156
|
var PInterceptor = class extends Dev {
|
|
157
|
+
static {
|
|
158
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "PInterceptor");
|
|
159
|
+
}
|
|
155
160
|
|
|
156
161
|
constructor(tag) {
|
|
157
162
|
super();
|
|
158
163
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
159
164
|
this.onUnmount(() => {
|
|
160
|
-
delete
|
|
165
|
+
delete _chunk6T4UZ4LVjs.Context.interceptorRecord[this.key];
|
|
161
166
|
});
|
|
162
|
-
|
|
167
|
+
_chunk6T4UZ4LVjs.addInterceptor.call(void 0, this.key, this.use.bind(this));
|
|
163
168
|
}
|
|
164
169
|
};
|
|
165
|
-
_chunkFNJWO324js.__name.call(void 0, PInterceptor, "PInterceptor");
|
|
166
170
|
|
|
167
171
|
// src/modules/pipe.ts
|
|
168
172
|
|
|
169
173
|
var PPipe = class extends Dev {
|
|
174
|
+
static {
|
|
175
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "PPipe");
|
|
176
|
+
}
|
|
170
177
|
|
|
171
178
|
constructor(tag) {
|
|
172
179
|
super();
|
|
173
180
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
174
|
-
|
|
181
|
+
_chunk6T4UZ4LVjs.addPipe.call(void 0, this.key, this.use.bind(this));
|
|
175
182
|
this.onUnmount(() => {
|
|
176
|
-
delete
|
|
183
|
+
delete _chunk6T4UZ4LVjs.Context.pipeRecord[this.key];
|
|
177
184
|
});
|
|
178
185
|
}
|
|
179
186
|
};
|
|
180
|
-
_chunkFNJWO324js.__name.call(void 0, PPipe, "PPipe");
|
|
181
187
|
|
|
182
188
|
// src/modules/plugin.ts
|
|
183
189
|
|
|
184
190
|
var PPlugin = class extends Dev {
|
|
191
|
+
static {
|
|
192
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "PPlugin");
|
|
193
|
+
}
|
|
185
194
|
|
|
186
195
|
constructor(tag) {
|
|
187
196
|
super();
|
|
188
197
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
189
|
-
|
|
198
|
+
_chunk6T4UZ4LVjs.addPlugin.call(void 0, this.key, this.use.bind(this));
|
|
190
199
|
this.onUnmount(() => {
|
|
191
|
-
delete
|
|
200
|
+
delete _chunk6T4UZ4LVjs.Context.pluginRecord[this.key];
|
|
192
201
|
});
|
|
193
202
|
}
|
|
194
203
|
};
|
|
195
|
-
_chunkFNJWO324js.__name.call(void 0, PPlugin, "PPlugin");
|
|
196
204
|
|
|
197
205
|
// src/modules/extension.ts
|
|
198
206
|
|
|
199
207
|
var PExtension = class extends Dev {
|
|
208
|
+
static {
|
|
209
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "PExtension");
|
|
210
|
+
}
|
|
200
211
|
|
|
201
212
|
constructor(tag) {
|
|
202
213
|
super();
|
|
203
214
|
const key = this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
204
215
|
if (this.pipe) {
|
|
205
|
-
|
|
216
|
+
_chunk6T4UZ4LVjs.addPipe.call(void 0, key, this.pipe.bind(this));
|
|
206
217
|
this.onUnmount(() => {
|
|
207
|
-
delete
|
|
218
|
+
delete _chunk6T4UZ4LVjs.Context.pipeRecord[key];
|
|
208
219
|
});
|
|
209
220
|
}
|
|
210
221
|
if (this.plugin) {
|
|
211
|
-
|
|
222
|
+
_chunk6T4UZ4LVjs.addPlugin.call(void 0, key, this.plugin.bind(this));
|
|
212
223
|
this.onUnmount(() => {
|
|
213
|
-
delete
|
|
224
|
+
delete _chunk6T4UZ4LVjs.Context.pluginRecord[key];
|
|
214
225
|
});
|
|
215
226
|
}
|
|
216
227
|
if (this.intercept) {
|
|
217
|
-
|
|
228
|
+
_chunk6T4UZ4LVjs.addInterceptor.call(void 0, key, this.intercept.bind(this));
|
|
218
229
|
this.onUnmount(() => {
|
|
219
|
-
delete
|
|
230
|
+
delete _chunk6T4UZ4LVjs.Context.interceptorRecord[key];
|
|
220
231
|
});
|
|
221
232
|
}
|
|
222
233
|
if (this.guard) {
|
|
223
|
-
|
|
234
|
+
_chunk6T4UZ4LVjs.addGuard.call(void 0, key, this.guard.bind(this));
|
|
224
235
|
this.onUnmount(() => {
|
|
225
|
-
delete
|
|
236
|
+
delete _chunk6T4UZ4LVjs.Context.guardRecord[key];
|
|
226
237
|
});
|
|
227
238
|
}
|
|
228
239
|
if (this.filter) {
|
|
229
|
-
|
|
240
|
+
_chunk6T4UZ4LVjs.addFilter.call(void 0, key, this.filter.bind(this));
|
|
230
241
|
this.onUnmount(() => {
|
|
231
|
-
delete
|
|
242
|
+
delete _chunk6T4UZ4LVjs.Context.filterRecord[key];
|
|
232
243
|
});
|
|
233
244
|
}
|
|
234
245
|
}
|
|
235
246
|
};
|
|
236
|
-
_chunkFNJWO324js.__name.call(void 0, PExtension, "PExtension");
|
|
237
247
|
|
|
238
248
|
// src/generator/utils.ts
|
|
239
249
|
var _fsextra = require('fs-extra'); var _fsextra2 = _interopRequireDefault(_fsextra);
|
|
240
250
|
var Generator = class {
|
|
251
|
+
static {
|
|
252
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "Generator");
|
|
253
|
+
}
|
|
241
254
|
|
|
242
255
|
constructor(path) {
|
|
243
|
-
if (path)
|
|
244
|
-
this._path = path;
|
|
256
|
+
if (path) this._path = path;
|
|
245
257
|
}
|
|
246
258
|
get path() {
|
|
247
259
|
return this._path || `.ps/${this.name.toLowerCase()}.js`;
|
|
@@ -250,10 +262,12 @@ var Generator = class {
|
|
|
250
262
|
await _fsextra2.default.outputFile(this.path, this.generateCode(meta.map((item) => item.data)));
|
|
251
263
|
}
|
|
252
264
|
};
|
|
253
|
-
_chunkFNJWO324js.__name.call(void 0, Generator, "Generator");
|
|
254
265
|
|
|
255
266
|
// src/generator/rpc.ts
|
|
256
267
|
var RPCGenerator = (_class2 = class extends Generator {constructor(...args2) { super(...args2); _class2.prototype.__init2.call(this);_class2.prototype.__init3.call(this); }
|
|
268
|
+
static {
|
|
269
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "RPCGenerator");
|
|
270
|
+
}
|
|
257
271
|
__init2() {this.name = "RPC"}
|
|
258
272
|
__init3() {this.classMap = {}}
|
|
259
273
|
getContent() {
|
|
@@ -268,10 +282,8 @@ var RPCGenerator = (_class2 = class extends Generator {constructor(...args2) { s
|
|
|
268
282
|
}
|
|
269
283
|
addMethod(args) {
|
|
270
284
|
const { rpc, name, func, tag } = args;
|
|
271
|
-
if (!rpc)
|
|
272
|
-
|
|
273
|
-
if (!this.classMap[name])
|
|
274
|
-
this.classMap[name] = {};
|
|
285
|
+
if (!rpc) return;
|
|
286
|
+
if (!this.classMap[name]) this.classMap[name] = {};
|
|
275
287
|
this.classMap[name][func] = `
|
|
276
288
|
${func}(){
|
|
277
289
|
return {tag:'${tag}',func:"${func}",isEvent:${!!rpc.isEvent},queue:"${rpc.queue || ""}"}
|
|
@@ -281,16 +293,17 @@ var RPCGenerator = (_class2 = class extends Generator {constructor(...args2) { s
|
|
|
281
293
|
}
|
|
282
294
|
generateCode(meta) {
|
|
283
295
|
for (const i of meta) {
|
|
284
|
-
if (i.controller === "rpc")
|
|
285
|
-
this.addMethod(i);
|
|
296
|
+
if (i.controller === "rpc") this.addMethod(i);
|
|
286
297
|
}
|
|
287
298
|
return this.getContent();
|
|
288
299
|
}
|
|
289
300
|
}, _class2);
|
|
290
|
-
_chunkFNJWO324js.__name.call(void 0, RPCGenerator, "RPCGenerator");
|
|
291
301
|
|
|
292
302
|
// src/generator/http.ts
|
|
293
303
|
var HTTPGenerator = (_class3 = class extends Generator {constructor(...args3) { super(...args3); _class3.prototype.__init4.call(this);_class3.prototype.__init5.call(this); }
|
|
304
|
+
static {
|
|
305
|
+
_chunkH2FWLKXNjs.__name.call(void 0, this, "HTTPGenerator");
|
|
306
|
+
}
|
|
294
307
|
__init4() {this.name = "HTTP"}
|
|
295
308
|
__init5() {this.classMap = {}}
|
|
296
309
|
getContent() {
|
|
@@ -305,11 +318,9 @@ var HTTPGenerator = (_class3 = class extends Generator {constructor(...args3) {
|
|
|
305
318
|
}
|
|
306
319
|
addMethod(args) {
|
|
307
320
|
const { http, name, func, params, tag } = args;
|
|
308
|
-
if (!_optionalChain([http, 'optionalAccess', _2 => _2.type]))
|
|
309
|
-
return;
|
|
321
|
+
if (!_optionalChain([http, 'optionalAccess', _2 => _2.type])) return;
|
|
310
322
|
const url = http.prefix + http.route.replace(/\/\:([^\/]*)/g, (_, js) => `/{{${js}}}`);
|
|
311
|
-
if (!this.classMap[name])
|
|
312
|
-
this.classMap[name] = {};
|
|
323
|
+
if (!this.classMap[name]) this.classMap[name] = {};
|
|
313
324
|
this.classMap[name][func] = `
|
|
314
325
|
${func}(...args){
|
|
315
326
|
const ret={tag:"${tag}",func:"${func}",body:{},headers:{},query:{},params:{},method:"${http.type}",url:"${url}",args}
|
|
@@ -323,13 +334,11 @@ return ret
|
|
|
323
334
|
}
|
|
324
335
|
generateCode(meta) {
|
|
325
336
|
for (const i of meta) {
|
|
326
|
-
if (i.controller === "http")
|
|
327
|
-
this.addMethod(i);
|
|
337
|
+
if (i.controller === "http") this.addMethod(i);
|
|
328
338
|
}
|
|
329
339
|
return this.getContent();
|
|
330
340
|
}
|
|
331
341
|
}, _class3);
|
|
332
|
-
_chunkFNJWO324js.__name.call(void 0, HTTPGenerator, "HTTPGenerator");
|
|
333
342
|
|
|
334
343
|
// src/index.ts
|
|
335
344
|
|
|
@@ -407,4 +416,4 @@ _chunkFNJWO324js.__name.call(void 0, HTTPGenerator, "HTTPGenerator");
|
|
|
407
416
|
|
|
408
417
|
|
|
409
418
|
|
|
410
|
-
exports.Arg =
|
|
419
|
+
exports.Arg = _chunk6QLTBEXPjs.Arg; exports.BadGatewayException = _chunk6T4UZ4LVjs.BadGatewayException; exports.BadRequestException = _chunk6T4UZ4LVjs.BadRequestException; exports.BaseParam = _chunk6QLTBEXPjs.BaseParam; exports.Body = _chunk6QLTBEXPjs.Body; exports.ConflictException = _chunk6T4UZ4LVjs.ConflictException; exports.Context = _chunk6T4UZ4LVjs.Context; exports.Controller = _chunk6QLTBEXPjs.Controller; exports.Ctx = _chunk6QLTBEXPjs.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunk6QLTBEXPjs.Define; exports.Delete = _chunk6QLTBEXPjs.Delete; exports.Dev = Dev; exports.ERROR_SYMBOL = _chunkH2FWLKXNjs.ERROR_SYMBOL; exports.Event = _chunk6QLTBEXPjs.Event; exports.Exception = _chunk6T4UZ4LVjs.Exception; exports.Factory = _chunkMKZOLLJSjs.Factory; exports.Filter = _chunk6QLTBEXPjs.Filter; exports.ForbiddenException = _chunk6T4UZ4LVjs.ForbiddenException; exports.FrameworkException = _chunk6T4UZ4LVjs.FrameworkException; exports.Generator = Generator; exports.Get = _chunk6QLTBEXPjs.Get; exports.Guard = _chunk6QLTBEXPjs.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunk6QLTBEXPjs.Head; exports.Header = _chunk6QLTBEXPjs.Header; exports.IS_HMR = _chunkH2FWLKXNjs.IS_HMR; exports.IS_ONLY_GENERATE = _chunkH2FWLKXNjs.IS_ONLY_GENERATE; exports.IS_STRICT = _chunkH2FWLKXNjs.IS_STRICT; exports.Injectable = _chunk6QLTBEXPjs.Injectable; exports.Interceptor = _chunk6QLTBEXPjs.Interceptor; exports.InvalidInputException = _chunk6T4UZ4LVjs.InvalidInputException; exports.LOG_LEVEL = _chunkH2FWLKXNjs.LOG_LEVEL; exports.Meta = _chunkMKZOLLJSjs.Meta; exports.Mix = _chunkH2FWLKXNjs.Mix; exports.NotFoundException = _chunk6T4UZ4LVjs.NotFoundException; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PInterceptor = PInterceptor; exports.PPipe = PPipe; exports.PPlugin = PPlugin; exports.PS_EXIT_CODE = _chunkH2FWLKXNjs.PS_EXIT_CODE; exports.Param = _chunk6QLTBEXPjs.Param; exports.Patch = _chunk6QLTBEXPjs.Patch; exports.PayloadLargeException = _chunk6T4UZ4LVjs.PayloadLargeException; exports.Pipe = _chunk6QLTBEXPjs.Pipe; exports.Plugin = _chunk6QLTBEXPjs.Plugin; exports.Post = _chunk6QLTBEXPjs.Post; exports.Put = _chunk6QLTBEXPjs.Put; exports.Query = _chunk6QLTBEXPjs.Query; exports.Queue = _chunk6QLTBEXPjs.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunk6QLTBEXPjs.Route; exports.Rpc = _chunk6QLTBEXPjs.Rpc; exports.ServiceUnavailableException = _chunk6T4UZ4LVjs.ServiceUnavailableException; exports.TimeoutException = _chunk6T4UZ4LVjs.TimeoutException; exports.TimerException = _chunk6T4UZ4LVjs.TimerException; exports.UNMOUNT_SYMBOL = _chunkH2FWLKXNjs.UNMOUNT_SYMBOL; exports.UnauthorizedException = _chunk6T4UZ4LVjs.UnauthorizedException; exports.UndefinedException = _chunk6T4UZ4LVjs.UndefinedException; exports.UnsupportedMediaTypeException = _chunk6T4UZ4LVjs.UnsupportedMediaTypeException; exports.ValidateException = _chunk6T4UZ4LVjs.ValidateException; exports.WorkerException = _chunk6T4UZ4LVjs.WorkerException; exports.addFilter = _chunk6T4UZ4LVjs.addFilter; exports.addGuard = _chunk6T4UZ4LVjs.addGuard; exports.addInterceptor = _chunk6T4UZ4LVjs.addInterceptor; exports.addPipe = _chunk6T4UZ4LVjs.addPipe; exports.addPlugin = _chunk6T4UZ4LVjs.addPlugin; exports.defaultPipe = _chunk6T4UZ4LVjs.defaultPipe; exports.emitter = _chunkMKZOLLJSjs.emitter; exports.log = _chunkH2FWLKXNjs.log; exports.setLogger = _chunkH2FWLKXNjs.setLogger;
|