phecda-server 8.3.0 → 8.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{core-D1YYphEn.d.mts → core-mOKtuP0F.d.mts} +1 -1
  2. package/dist/{core-BTSHIAyB.d.ts → core-qL97H3d_.d.ts} +1 -1
  3. package/dist/helper.d.mts +1 -1
  4. package/dist/helper.d.ts +1 -1
  5. package/dist/http/elysia/index.d.mts +3 -3
  6. package/dist/http/elysia/index.d.ts +3 -3
  7. package/dist/http/express/index.d.mts +3 -3
  8. package/dist/http/express/index.d.ts +3 -3
  9. package/dist/http/fastify/index.d.mts +3 -3
  10. package/dist/http/fastify/index.d.ts +3 -3
  11. package/dist/http/h3/index.d.mts +3 -3
  12. package/dist/http/h3/index.d.ts +3 -3
  13. package/dist/http/hono/index.d.mts +3 -3
  14. package/dist/http/hono/index.d.ts +3 -3
  15. package/dist/http/hyper-express/index.d.mts +3 -3
  16. package/dist/http/hyper-express/index.d.ts +3 -3
  17. package/dist/http/koa/index.d.mts +3 -3
  18. package/dist/http/koa/index.d.ts +3 -3
  19. package/dist/index.d.mts +11 -11
  20. package/dist/index.d.ts +11 -11
  21. package/dist/{meta-DNF6Fl27.d.mts → meta-EGS-4cNY.d.mts} +1 -1
  22. package/dist/{meta-DNF6Fl27.d.ts → meta-EGS-4cNY.d.ts} +1 -1
  23. package/dist/rpc/bullmq/index.d.mts +3 -3
  24. package/dist/rpc/bullmq/index.d.ts +3 -3
  25. package/dist/rpc/electron/index.d.mts +3 -3
  26. package/dist/rpc/electron/index.d.ts +3 -3
  27. package/dist/rpc/kafka/index.d.mts +3 -3
  28. package/dist/rpc/kafka/index.d.ts +3 -3
  29. package/dist/rpc/nats/index.d.mts +3 -3
  30. package/dist/rpc/nats/index.d.ts +3 -3
  31. package/dist/rpc/rabbitmq/index.d.mts +3 -3
  32. package/dist/rpc/rabbitmq/index.d.ts +3 -3
  33. package/dist/rpc/redis/index.d.mts +3 -3
  34. package/dist/rpc/redis/index.d.ts +3 -3
  35. package/dist/rpc/ws/index.d.mts +3 -3
  36. package/dist/rpc/ws/index.d.ts +3 -3
  37. package/dist/test.d.mts +2 -2
  38. package/dist/test.d.ts +2 -2
  39. package/dist/{types-DtiHAXQB.d.mts → types-BkU6kQWV.d.mts} +1 -1
  40. package/dist/{types-BOZ8yE2L.d.mts → types-CoOCYe_X.d.mts} +1 -1
  41. package/dist/{types-Cosv4nol.d.ts → types-DGUpAXle.d.ts} +1 -1
  42. package/dist/{types-YJ55P7A_.d.ts → types-NkRE3d35.d.ts} +1 -1
  43. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { Construct } from 'phecda-core';
2
- import { M as Meta, E as Emitter } from './meta-DNF6Fl27.mjs';
2
+ import { M as Meta, E as Emitter } from './meta-EGS-4cNY.mjs';
3
3
 
4
4
  declare abstract class Generator {
5
5
  private _path;
@@ -1,5 +1,5 @@
1
1
  import { Construct } from 'phecda-core';
2
- import { M as Meta, E as Emitter } from './meta-DNF6Fl27.js';
2
+ import { M as Meta, E as Emitter } from './meta-EGS-4cNY.js';
3
3
 
4
4
  declare abstract class Generator {
5
5
  private _path;
package/dist/helper.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as Meta, a as ControllerMeta } from './meta-DNF6Fl27.mjs';
1
+ import { M as Meta, a as ControllerMeta } from './meta-EGS-4cNY.mjs';
2
2
  import { Construct } from 'phecda-core';
3
3
 
4
4
  declare function HMR(cb: (oldModels: Construct[], newModels: Construct[]) => any): void;
package/dist/helper.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as Meta, a as ControllerMeta } from './meta-DNF6Fl27.js';
1
+ import { M as Meta, a as ControllerMeta } from './meta-EGS-4cNY.js';
2
2
  import { Construct } from 'phecda-core';
3
3
 
4
4
  declare function HMR(cb: (oldModels: Construct[], newModels: Construct[]) => any): void;
@@ -1,9 +1,9 @@
1
1
  import { Elysia as Elysia$1, Context } from 'elysia';
2
2
  import { AnyLocalHook } from 'elysia/dist/types';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-DtiHAXQB.mjs';
4
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
4
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
5
5
  import 'node:http';
6
- import '../../meta-DNF6Fl27.mjs';
6
+ import '../../meta-EGS-4cNY.mjs';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface ElysiaCtx extends HttpCtx {
@@ -1,9 +1,9 @@
1
1
  import { Elysia as Elysia$1, Context } from 'elysia';
2
2
  import { AnyLocalHook } from 'elysia/dist/types';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-Cosv4nol.js';
4
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
4
+ import { F as Factory } from '../../core-qL97H3d_.js';
5
5
  import 'node:http';
6
- import '../../meta-DNF6Fl27.js';
6
+ import '../../meta-EGS-4cNY.js';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface ElysiaCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { Request, Response, Router, RequestHandler } from 'express';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-DtiHAXQB.mjs';
3
- import { F as Factory } from '../../core-D1YYphEn.mjs';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
3
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
4
4
  import 'node:http';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface ExpressCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { Request, Response, Router, RequestHandler } from 'express';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-Cosv4nol.js';
3
- import { F as Factory } from '../../core-BTSHIAyB.js';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
3
+ import { F as Factory } from '../../core-qL97H3d_.js';
4
4
  import 'node:http';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface ExpressCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { FastifyRequest, FastifyReply, FastifyInstance, FastifyPluginCallback, FastifyRegisterOptions, FastifyPluginOptions, RouteShorthandOptions } from 'fastify';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-DtiHAXQB.mjs';
3
- import { F as Factory } from '../../core-D1YYphEn.mjs';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
3
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
4
4
  import 'node:http';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface FastifyCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { FastifyRequest, FastifyReply, FastifyInstance, FastifyPluginCallback, FastifyRegisterOptions, FastifyPluginOptions, RouteShorthandOptions } from 'fastify';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-Cosv4nol.js';
3
- import { F as Factory } from '../../core-BTSHIAyB.js';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
3
+ import { F as Factory } from '../../core-qL97H3d_.js';
4
4
  import 'node:http';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface FastifyCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { H3Event, Router, _RequestMiddleware } from 'h3';
2
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-DtiHAXQB.mjs';
2
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
  import 'node:http';
7
7
 
8
8
  interface H3Ctx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { H3Event, Router, _RequestMiddleware } from 'h3';
2
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-Cosv4nol.js';
2
+ import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
  import 'node:http';
7
7
 
8
8
  interface H3Ctx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { Context, Hono, MiddlewareHandler } from 'hono';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-DtiHAXQB.mjs';
3
- import { F as Factory } from '../../core-D1YYphEn.mjs';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
3
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
4
4
  import 'node:http';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HonoCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { Context, Hono, MiddlewareHandler } from 'hono';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-Cosv4nol.js';
3
- import { F as Factory } from '../../core-BTSHIAyB.js';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
3
+ import { F as Factory } from '../../core-qL97H3d_.js';
4
4
  import 'node:http';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HonoCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { Request, Response, Router, MiddlewareHandler } from 'hyper-express';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-DtiHAXQB.mjs';
3
- import { F as Factory } from '../../core-D1YYphEn.mjs';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
3
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
4
4
  import 'node:http';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HyperExpressCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
1
  import { Request, Response, Router, MiddlewareHandler } from 'hyper-express';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-Cosv4nol.js';
3
- import { F as Factory } from '../../core-BTSHIAyB.js';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
3
+ import { F as Factory } from '../../core-qL97H3d_.js';
4
4
  import 'node:http';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HyperExpressCtx extends HttpCtx {
@@ -1,9 +1,9 @@
1
1
  import Router, { RouterParamContext } from '@koa/router';
2
2
  import { DefaultContext, DefaultState } from 'koa';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-DtiHAXQB.mjs';
4
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
4
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
5
5
  import 'node:http';
6
- import '../../meta-DNF6Fl27.mjs';
6
+ import '../../meta-EGS-4cNY.mjs';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface KoaCtx extends HttpCtx {
@@ -1,9 +1,9 @@
1
1
  import Router, { RouterParamContext } from '@koa/router';
2
2
  import { DefaultContext, DefaultState } from 'koa';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-Cosv4nol.js';
4
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
4
+ import { F as Factory } from '../../core-qL97H3d_.js';
5
5
  import 'node:http';
6
- import '../../meta-DNF6Fl27.js';
6
+ import '../../meta-EGS-4cNY.js';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface KoaCtx extends HttpCtx {
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
- import { B as BaseCtx, a as ControllerMeta, D as DefaultOptions, b as ControllerMetaData, M as Meta, E as Emitter, c as BaseError } from './meta-DNF6Fl27.mjs';
2
- export { d as BaseRequestMethod, C as CustomResponse, g as ERROR_SYMBOL, e as ExtractResponse, I as IS_DEV, h as IS_ONLY_GENERATE, j as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, f as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-DNF6Fl27.mjs';
3
- import { G as Generator } from './core-D1YYphEn.mjs';
4
- export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-D1YYphEn.mjs';
1
+ import { B as BaseCtx, b as BaseError, a as ControllerMeta, D as DefaultOptions, c as ControllerMetaData, M as Meta, E as Emitter } from './meta-EGS-4cNY.mjs';
2
+ export { d as BaseRequestMethod, C as CustomResponse, g as ERROR_SYMBOL, e as ExtractResponse, I as IS_DEV, h as IS_ONLY_GENERATE, j as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, f as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-EGS-4cNY.mjs';
3
+ import { G as Generator } from './core-mOKtuP0F.mjs';
4
+ export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-mOKtuP0F.mjs';
5
5
  import { Construct, Base } from 'phecda-core';
6
6
  export * from 'phecda-core';
7
- import { H as HttpCtx } from './types-DtiHAXQB.mjs';
8
- export { C as CookieSerializeOptions, a as HttpOptions } from './types-DtiHAXQB.mjs';
9
- import { R as RpcCtx } from './types-BOZ8yE2L.mjs';
10
- export { a as RpcServerOptions } from './types-BOZ8yE2L.mjs';
7
+ import { H as HttpCtx } from './types-BkU6kQWV.mjs';
8
+ export { C as CookieSerializeOptions, a as HttpOptions } from './types-BkU6kQWV.mjs';
9
+ import { R as RpcCtx } from './types-CoOCYe_X.mjs';
10
+ export { a as RpcServerOptions } from './types-CoOCYe_X.mjs';
11
11
  export { Mixin } from 'ts-mixer';
12
12
  import 'node:http';
13
13
 
@@ -21,7 +21,7 @@ declare class Exception extends Error {
21
21
  message: string;
22
22
  description: string;
23
23
  status: number;
24
- __PS_ERROR__: boolean;
24
+ __PS_ERROR__: true;
25
25
  };
26
26
  }
27
27
 
@@ -106,7 +106,7 @@ interface PipeArg {
106
106
  }
107
107
  type GuardType<Ctx extends BaseCtx = any> = (ctx: Ctx, next: () => Promise<any>) => any;
108
108
  type PipeType<Ctx extends BaseCtx = any> = (arg: PipeArg, ctx: Ctx) => Promise<any>;
109
- type FilterType<Ctx extends BaseCtx = any, E extends Exception = any> = (err: E | Error, ctx?: Ctx) => Error | any;
109
+ type FilterType<Ctx extends BaseCtx = any, E extends Exception = any> = (err: E | Error, ctx?: Ctx) => BaseError;
110
110
  declare class Context<Ctx extends BaseCtx> {
111
111
  data: Ctx;
112
112
  method: string;
@@ -336,7 +336,7 @@ declare abstract class PAddon extends ServerBase {
336
336
  }
337
337
 
338
338
  interface PExtension<Ctx extends BaseCtx = any, E extends Exception = Exception> {
339
- guard(ctx: Ctx): Promise<boolean> | boolean;
339
+ guard(ctx: Ctx, next: () => Promise<any>): any;
340
340
  pipe(param: {
341
341
  arg: any;
342
342
  option?: any;
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { B as BaseCtx, a as ControllerMeta, D as DefaultOptions, b as ControllerMetaData, M as Meta, E as Emitter, c as BaseError } from './meta-DNF6Fl27.js';
2
- export { d as BaseRequestMethod, C as CustomResponse, g as ERROR_SYMBOL, e as ExtractResponse, I as IS_DEV, h as IS_ONLY_GENERATE, j as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, f as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-DNF6Fl27.js';
3
- import { G as Generator } from './core-BTSHIAyB.js';
4
- export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-BTSHIAyB.js';
1
+ import { B as BaseCtx, b as BaseError, a as ControllerMeta, D as DefaultOptions, c as ControllerMetaData, M as Meta, E as Emitter } from './meta-EGS-4cNY.js';
2
+ export { d as BaseRequestMethod, C as CustomResponse, g as ERROR_SYMBOL, e as ExtractResponse, I as IS_DEV, h as IS_ONLY_GENERATE, j as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, f as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-EGS-4cNY.js';
3
+ import { G as Generator } from './core-qL97H3d_.js';
4
+ export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-qL97H3d_.js';
5
5
  import { Construct, Base } from 'phecda-core';
6
6
  export * from 'phecda-core';
7
- import { H as HttpCtx } from './types-Cosv4nol.js';
8
- export { C as CookieSerializeOptions, a as HttpOptions } from './types-Cosv4nol.js';
9
- import { R as RpcCtx } from './types-YJ55P7A_.js';
10
- export { a as RpcServerOptions } from './types-YJ55P7A_.js';
7
+ import { H as HttpCtx } from './types-DGUpAXle.js';
8
+ export { C as CookieSerializeOptions, a as HttpOptions } from './types-DGUpAXle.js';
9
+ import { R as RpcCtx } from './types-NkRE3d35.js';
10
+ export { a as RpcServerOptions } from './types-NkRE3d35.js';
11
11
  export { Mixin } from 'ts-mixer';
12
12
  import 'node:http';
13
13
 
@@ -21,7 +21,7 @@ declare class Exception extends Error {
21
21
  message: string;
22
22
  description: string;
23
23
  status: number;
24
- __PS_ERROR__: boolean;
24
+ __PS_ERROR__: true;
25
25
  };
26
26
  }
27
27
 
@@ -106,7 +106,7 @@ interface PipeArg {
106
106
  }
107
107
  type GuardType<Ctx extends BaseCtx = any> = (ctx: Ctx, next: () => Promise<any>) => any;
108
108
  type PipeType<Ctx extends BaseCtx = any> = (arg: PipeArg, ctx: Ctx) => Promise<any>;
109
- type FilterType<Ctx extends BaseCtx = any, E extends Exception = any> = (err: E | Error, ctx?: Ctx) => Error | any;
109
+ type FilterType<Ctx extends BaseCtx = any, E extends Exception = any> = (err: E | Error, ctx?: Ctx) => BaseError;
110
110
  declare class Context<Ctx extends BaseCtx> {
111
111
  data: Ctx;
112
112
  method: string;
@@ -336,7 +336,7 @@ declare abstract class PAddon extends ServerBase {
336
336
  }
337
337
 
338
338
  interface PExtension<Ctx extends BaseCtx = any, E extends Exception = Exception> {
339
- guard(ctx: Ctx): Promise<boolean> | boolean;
339
+ guard(ctx: Ctx, next: () => Promise<any>): any;
340
340
  pipe(param: {
341
341
  arg: any;
342
342
  option?: any;
@@ -91,4 +91,4 @@ interface ControllerMeta extends Meta {
91
91
  data: ControllerMetaData;
92
92
  }
93
93
 
94
- export { type BaseCtx as B, CustomResponse as C, type DefaultOptions as D, type Emitter as E, IS_DEV as I, LOG_LEVEL as L, Meta as M, PS_EXIT_CODE as P, type ServiceMetaData as S, type ControllerMeta as a, type ControllerMetaData as b, type BaseError as c, type BaseRequestMethod as d, type ExtractResponse as e, type MetaData as f, ERROR_SYMBOL as g, IS_ONLY_GENERATE as h, IS_STRICT as i, IS_PURE as j };
94
+ export { type BaseCtx as B, CustomResponse as C, type DefaultOptions as D, type Emitter as E, IS_DEV as I, LOG_LEVEL as L, Meta as M, PS_EXIT_CODE as P, type ServiceMetaData as S, type ControllerMeta as a, type BaseError as b, type ControllerMetaData as c, type BaseRequestMethod as d, type ExtractResponse as e, type MetaData as f, ERROR_SYMBOL as g, IS_ONLY_GENERATE as h, IS_STRICT as i, IS_PURE as j };
@@ -91,4 +91,4 @@ interface ControllerMeta extends Meta {
91
91
  data: ControllerMetaData;
92
92
  }
93
93
 
94
- export { type BaseCtx as B, CustomResponse as C, type DefaultOptions as D, type Emitter as E, IS_DEV as I, LOG_LEVEL as L, Meta as M, PS_EXIT_CODE as P, type ServiceMetaData as S, type ControllerMeta as a, type ControllerMetaData as b, type BaseError as c, type BaseRequestMethod as d, type ExtractResponse as e, type MetaData as f, ERROR_SYMBOL as g, IS_ONLY_GENERATE as h, IS_STRICT as i, IS_PURE as j };
94
+ export { type BaseCtx as B, CustomResponse as C, type DefaultOptions as D, type Emitter as E, IS_DEV as I, LOG_LEVEL as L, Meta as M, PS_EXIT_CODE as P, type ServiceMetaData as S, type ControllerMeta as a, type BaseError as b, type ControllerMetaData as c, type BaseRequestMethod as d, type ExtractResponse as e, type MetaData as f, ERROR_SYMBOL as g, IS_ONLY_GENERATE as h, IS_STRICT as i, IS_PURE as j };
@@ -1,8 +1,8 @@
1
1
  import { WorkerOptions, QueueOptions, Worker, Queue } from 'bullmq';
2
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs';
2
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
 
7
7
  interface BullmqCtx extends RpcCtx {
8
8
  type: 'bullmq';
@@ -1,8 +1,8 @@
1
1
  import { WorkerOptions, QueueOptions, Worker, Queue } from 'bullmq';
2
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-YJ55P7A_.js';
2
+ import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
 
7
7
  interface BullmqCtx extends RpcCtx {
8
8
  type: 'bullmq';
@@ -1,8 +1,8 @@
1
1
  import Electron from 'electron';
2
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs';
2
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
 
7
7
  interface ElectronCtx extends RpcCtx {
8
8
  type: 'electron';
@@ -1,8 +1,8 @@
1
1
  import Electron from 'electron';
2
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-YJ55P7A_.js';
2
+ import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
 
7
7
  interface ElectronCtx extends RpcCtx {
8
8
  type: 'electron';
@@ -1,8 +1,8 @@
1
1
  import { Consumer, Producer } from 'kafkajs';
2
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs';
2
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
 
7
7
  interface KafkaCtx extends RpcCtx {
8
8
  type: 'kafka';
@@ -1,8 +1,8 @@
1
1
  import { Consumer, Producer } from 'kafkajs';
2
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-YJ55P7A_.js';
2
+ import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
 
7
7
  interface KafkaCtx extends RpcCtx {
8
8
  type: 'kafka';
@@ -1,8 +1,8 @@
1
1
  import { NatsConnection } from 'nats';
2
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs';
2
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
 
7
7
  interface NatsCtx extends RpcCtx {
8
8
  type: 'nats';
@@ -1,8 +1,8 @@
1
1
  import { NatsConnection } from 'nats';
2
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-YJ55P7A_.js';
2
+ import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
 
7
7
  interface NatsCtx extends RpcCtx {
8
8
  type: 'nats';
@@ -1,8 +1,8 @@
1
1
  import amqplib from 'amqplib';
2
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs';
2
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
 
7
7
  interface RabbitmqCtx extends RpcCtx {
8
8
  type: 'rabbitmq';
@@ -1,8 +1,8 @@
1
1
  import amqplib from 'amqplib';
2
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-YJ55P7A_.js';
2
+ import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
 
7
7
  interface RabbitmqCtx extends RpcCtx {
8
8
  type: 'rabbitmq';
@@ -1,8 +1,8 @@
1
1
  import Redis from 'ioredis';
2
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs';
2
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
 
7
7
  interface RedisCtx extends RpcCtx {
8
8
  type: 'redis';
@@ -1,8 +1,8 @@
1
1
  import Redis from 'ioredis';
2
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-YJ55P7A_.js';
2
+ import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
 
7
7
  interface RedisCtx extends RpcCtx {
8
8
  type: 'redis';
@@ -1,8 +1,8 @@
1
1
  import WS from 'ws';
2
- import { F as Factory } from '../../core-D1YYphEn.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-BOZ8yE2L.mjs';
2
+ import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.mjs';
5
+ import '../../meta-EGS-4cNY.mjs';
6
6
 
7
7
  interface WsCtx extends RpcCtx {
8
8
  type: 'ws';
@@ -1,8 +1,8 @@
1
1
  import WS from 'ws';
2
- import { F as Factory } from '../../core-BTSHIAyB.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-YJ55P7A_.js';
2
+ import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
4
4
  import 'phecda-core';
5
- import '../../meta-DNF6Fl27.js';
5
+ import '../../meta-EGS-4cNY.js';
6
6
 
7
7
  interface WsCtx extends RpcCtx {
8
8
  type: 'ws';
package/dist/test.d.mts CHANGED
@@ -2,8 +2,8 @@ import * as supertest from 'supertest';
2
2
  import { Test } from 'supertest';
3
3
  import { Server } from 'node:http';
4
4
  import { Construct } from 'phecda-core';
5
- import { F as Factory } from './core-D1YYphEn.mjs';
6
- import { C as CustomResponse } from './meta-DNF6Fl27.mjs';
5
+ import { F as Factory } from './core-mOKtuP0F.mjs';
6
+ import { C as CustomResponse } from './meta-EGS-4cNY.mjs';
7
7
 
8
8
  type PickFuncKeys<Type> = {
9
9
  [Key in keyof Type]: Type[Key] extends (...args: any) => any ? (ReturnType<Type[Key]> extends CustomResponse<any> ? never : Key) : never;
package/dist/test.d.ts CHANGED
@@ -2,8 +2,8 @@ import * as supertest from 'supertest';
2
2
  import { Test } from 'supertest';
3
3
  import { Server } from 'node:http';
4
4
  import { Construct } from 'phecda-core';
5
- import { F as Factory } from './core-BTSHIAyB.js';
6
- import { C as CustomResponse } from './meta-DNF6Fl27.js';
5
+ import { F as Factory } from './core-qL97H3d_.js';
6
+ import { C as CustomResponse } from './meta-EGS-4cNY.js';
7
7
 
8
8
  type PickFuncKeys<Type> = {
9
9
  [Key in keyof Type]: Type[Key] extends (...args: any) => any ? (ReturnType<Type[Key]> extends CustomResponse<any> ? never : Key) : never;
@@ -1,5 +1,5 @@
1
1
  import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
2
- import { B as BaseCtx, D as DefaultOptions } from './meta-DNF6Fl27.mjs';
2
+ import { B as BaseCtx, D as DefaultOptions } from './meta-EGS-4cNY.mjs';
3
3
 
4
4
  interface HttpOptions extends DefaultOptions {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { B as BaseCtx, D as DefaultOptions } from './meta-DNF6Fl27.mjs';
1
+ import { B as BaseCtx, D as DefaultOptions } from './meta-EGS-4cNY.mjs';
2
2
 
3
3
  interface RpcServerOptions extends DefaultOptions {
4
4
  defaultQueue?: string;
@@ -1,5 +1,5 @@
1
1
  import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
2
- import { B as BaseCtx, D as DefaultOptions } from './meta-DNF6Fl27.js';
2
+ import { B as BaseCtx, D as DefaultOptions } from './meta-EGS-4cNY.js';
3
3
 
4
4
  interface HttpOptions extends DefaultOptions {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { B as BaseCtx, D as DefaultOptions } from './meta-DNF6Fl27.js';
1
+ import { B as BaseCtx, D as DefaultOptions } from './meta-EGS-4cNY.js';
2
2
 
3
3
  interface RpcServerOptions extends DefaultOptions {
4
4
  defaultQueue?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-server",
3
- "version": "8.3.0",
3
+ "version": "8.3.1",
4
4
  "description": "server framework that provide IOC/type-reuse/http&rpc-adaptor",
5
5
  "author": "fgsreally",
6
6
  "license": "MIT",