phecda-server 7.0.0-alpha.0 → 7.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/assets/ps.json +24 -24
  2. package/bin/cli.mjs +12 -7
  3. package/dist/{chunk-P75VKZJY.mjs → chunk-3FHZB3Z5.mjs} +48 -17
  4. package/dist/{chunk-BGXSMOLX.js → chunk-7YQ57BQS.js} +1 -1
  5. package/dist/{chunk-SW5IKE5H.js → chunk-NQIFUZL4.js} +47 -16
  6. package/dist/{chunk-5622RBNB.mjs → chunk-XYVMNY2X.mjs} +1 -1
  7. package/dist/{core-CYwEPfN4.d.ts → core-C1kHRqU9.d.ts} +1 -1
  8. package/dist/{core-BIcUwV18.d.mts → core-CSiaRU7r.d.mts} +1 -1
  9. package/dist/helper.d.mts +1 -1
  10. package/dist/helper.d.ts +1 -1
  11. package/dist/helper.js +2 -2
  12. package/dist/helper.mjs +1 -1
  13. package/dist/http/elysia/index.d.mts +3 -3
  14. package/dist/http/elysia/index.d.ts +3 -3
  15. package/dist/http/elysia/index.js +19 -17
  16. package/dist/http/elysia/index.mjs +3 -1
  17. package/dist/http/express/index.d.mts +3 -3
  18. package/dist/http/express/index.d.ts +3 -3
  19. package/dist/http/express/index.js +19 -17
  20. package/dist/http/express/index.mjs +3 -1
  21. package/dist/http/fastify/index.d.mts +3 -3
  22. package/dist/http/fastify/index.d.ts +3 -3
  23. package/dist/http/fastify/index.js +18 -16
  24. package/dist/http/fastify/index.mjs +3 -1
  25. package/dist/http/h3/index.d.mts +3 -3
  26. package/dist/http/h3/index.d.ts +3 -3
  27. package/dist/http/h3/index.js +18 -16
  28. package/dist/http/h3/index.mjs +3 -1
  29. package/dist/http/hono/index.d.mts +3 -3
  30. package/dist/http/hono/index.d.ts +3 -3
  31. package/dist/http/hono/index.js +17 -15
  32. package/dist/http/hono/index.mjs +3 -1
  33. package/dist/http/hyper-express/index.d.mts +3 -3
  34. package/dist/http/hyper-express/index.d.ts +3 -3
  35. package/dist/http/hyper-express/index.js +17 -15
  36. package/dist/http/hyper-express/index.mjs +3 -1
  37. package/dist/http/koa/index.d.mts +3 -3
  38. package/dist/http/koa/index.d.ts +3 -3
  39. package/dist/http/koa/index.js +19 -17
  40. package/dist/http/koa/index.mjs +3 -1
  41. package/dist/index.d.mts +11 -11
  42. package/dist/index.d.ts +11 -11
  43. package/dist/index.js +21 -21
  44. package/dist/index.mjs +3 -3
  45. package/dist/{meta-BXKLFTgG.d.mts → meta-D1M85Hef.d.mts} +1 -0
  46. package/dist/{meta-BXKLFTgG.d.ts → meta-D1M85Hef.d.ts} +1 -0
  47. package/dist/rpc/bullmq/index.d.mts +3 -3
  48. package/dist/rpc/bullmq/index.d.ts +3 -3
  49. package/dist/rpc/bullmq/index.js +9 -8
  50. package/dist/rpc/bullmq/index.mjs +2 -1
  51. package/dist/rpc/kafka/index.d.mts +3 -3
  52. package/dist/rpc/kafka/index.d.ts +3 -3
  53. package/dist/rpc/kafka/index.js +8 -7
  54. package/dist/rpc/kafka/index.mjs +2 -1
  55. package/dist/rpc/nats/index.d.mts +3 -3
  56. package/dist/rpc/nats/index.d.ts +3 -3
  57. package/dist/rpc/nats/index.js +8 -7
  58. package/dist/rpc/nats/index.mjs +2 -1
  59. package/dist/rpc/rabbitmq/index.d.mts +3 -3
  60. package/dist/rpc/rabbitmq/index.d.ts +3 -3
  61. package/dist/rpc/rabbitmq/index.js +9 -8
  62. package/dist/rpc/rabbitmq/index.mjs +2 -1
  63. package/dist/rpc/redis/index.d.mts +3 -3
  64. package/dist/rpc/redis/index.d.ts +3 -3
  65. package/dist/rpc/redis/index.js +9 -8
  66. package/dist/rpc/redis/index.mjs +2 -1
  67. package/dist/test.d.mts +3 -3
  68. package/dist/test.d.ts +3 -3
  69. package/dist/test.js +2 -2
  70. package/dist/test.mjs +1 -1
  71. package/dist/{types-BtbL49Zs.d.mts → types-C9Remkup.d.ts} +2 -1
  72. package/dist/{types-m3IEDKjP.d.ts → types-JMhFVp-Z.d.mts} +2 -1
  73. package/dist/{types-VFzEM7LL.d.ts → types-ee1FBodH.d.ts} +2 -1
  74. package/dist/{types-h40T3cRG.d.mts → types-wbHHC93P.d.mts} +2 -1
  75. package/package.json +1 -1
  76. package/register/loader.mjs +366 -367
@@ -4,7 +4,7 @@ import {
4
4
  argToReq,
5
5
  createControllerMetaMap,
6
6
  detectAopDep
7
- } from "../../chunk-P75VKZJY.mjs";
7
+ } from "../../chunk-3FHZB3Z5.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "../../chunk-WHJ5FALK.mjs";
@@ -62,6 +62,7 @@ function bind(router, data, opts = {}) {
62
62
  const contextData = {
63
63
  type: "hono",
64
64
  parallel: true,
65
+ category: "http",
65
66
  context: c,
66
67
  index: i,
67
68
  meta: meta2,
@@ -113,6 +114,7 @@ function bind(router, data, opts = {}) {
113
114
  debug(`invoke method "${func}" in module "${tag}"`);
114
115
  const contextData = {
115
116
  type: "hono",
117
+ category: "http",
116
118
  context: c,
117
119
  meta: meta2,
118
120
  moduleMap,
@@ -1,8 +1,8 @@
1
1
  import { Request, Response, Router, MiddlewareHandler } from 'hyper-express';
2
- import { H as HttpContext, a as HttpOptions } from '../../types-h40T3cRG.mjs';
3
- import { F as Factory } from '../../core-BIcUwV18.mjs';
2
+ import { H as HttpContext, a as HttpOptions } from '../../types-wbHHC93P.mjs';
3
+ import { F as Factory } from '../../core-CSiaRU7r.mjs';
4
4
  import 'node:http';
5
- import '../../meta-BXKLFTgG.mjs';
5
+ import '../../meta-D1M85Hef.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HyperExpressCtx extends HttpContext {
@@ -1,8 +1,8 @@
1
1
  import { Request, Response, Router, MiddlewareHandler } from 'hyper-express';
2
- import { H as HttpContext, a as HttpOptions } from '../../types-VFzEM7LL.js';
3
- import { F as Factory } from '../../core-CYwEPfN4.js';
2
+ import { H as HttpContext, a as HttpOptions } from '../../types-ee1FBodH.js';
3
+ import { F as Factory } from '../../core-C1kHRqU9.js';
4
4
  import 'node:http';
5
- import '../../meta-BXKLFTgG.js';
5
+ import '../../meta-D1M85Hef.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HyperExpressCtx extends HttpContext {
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkSW5IKE5Hjs = require('../../chunk-SW5IKE5H.js');
7
+ var _chunkNQIFUZL4js = require('../../chunk-NQIFUZL4.js');
8
8
 
9
9
 
10
10
  var _chunkJ5CFUN4Vjs = require('../../chunk-J5CFUN4V.js');
@@ -16,14 +16,14 @@ var debug = _debug2.default.call(void 0, "phecda-server/hyper-express");
16
16
  function bind(router, data, opts = {}) {
17
17
  const { globalGuards, parallelRoute = "/__PHECDA_SERVER__", globalAddons = [], parallelAddons = [], globalFilter, globalPipe, dynamic = false } = opts;
18
18
  const { moduleMap, meta } = data;
19
- const metaMap = _chunkSW5IKE5Hjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
19
+ const metaMap = _chunkNQIFUZL4js.createControllerMetaMap.call(void 0, meta, (meta2) => {
20
20
  const { controller, http, func, tag } = meta2.data;
21
21
  if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.type])) {
22
22
  debug(`register method "${func}" in module "${tag}"`);
23
23
  return true;
24
24
  }
25
25
  });
26
- _chunkSW5IKE5Hjs.detectAopDep.call(void 0, meta, {
26
+ _chunkNQIFUZL4js.detectAopDep.call(void 0, meta, {
27
27
  addons: [
28
28
  ...globalAddons,
29
29
  ...parallelAddons
@@ -32,33 +32,34 @@ function bind(router, data, opts = {}) {
32
32
  });
33
33
  registerRoute();
34
34
  async function registerRoute() {
35
- _chunkSW5IKE5Hjs.Context.applyAddons(globalAddons, router, "hyper-express");
35
+ _chunkNQIFUZL4js.Context.applyAddons(globalAddons, router, "hyper-express");
36
36
  if (parallelRoute) {
37
37
  const subRouter = new (0, _hyperexpress.Router)();
38
38
  subRouter.post(parallelRoute, async (req, res, next) => {
39
39
  const body = await req.json();
40
40
  async function errorHandler(e) {
41
- const error = await _chunkSW5IKE5Hjs.Context.filterRecord.default(e);
41
+ const error = await _chunkNQIFUZL4js.Context.filterRecord.default(e);
42
42
  return res.status(error.status).json(error);
43
43
  }
44
44
  _chunkJ5CFUN4Vjs.__name.call(void 0, errorHandler, "errorHandler");
45
- if (!Array.isArray(body)) return errorHandler(new (0, _chunkSW5IKE5Hjs.BadRequestException)("data format should be an array"));
45
+ if (!Array.isArray(body)) return errorHandler(new (0, _chunkNQIFUZL4js.BadRequestException)("data format should be an array"));
46
46
  try {
47
47
  return Promise.all(body.map((item, i) => {
48
48
  return new Promise(async (resolve) => {
49
49
  const { tag, func } = item;
50
50
  debug(`(parallel)invoke method "${func}" in module "${tag}"`);
51
- if (!metaMap.has(tag)) return resolve(await _chunkSW5IKE5Hjs.Context.filterRecord.default(new (0, _chunkSW5IKE5Hjs.BadRequestException)(`module "${tag}" doesn't exist`)));
51
+ if (!metaMap.has(tag)) return resolve(await _chunkNQIFUZL4js.Context.filterRecord.default(new (0, _chunkNQIFUZL4js.BadRequestException)(`module "${tag}" doesn't exist`)));
52
52
  const meta2 = metaMap.get(tag)[func];
53
- if (!meta2) return resolve(await _chunkSW5IKE5Hjs.Context.filterRecord.default(new (0, _chunkSW5IKE5Hjs.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
53
+ if (!meta2) return resolve(await _chunkNQIFUZL4js.Context.filterRecord.default(new (0, _chunkNQIFUZL4js.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
54
54
  const { data: { params } } = meta2;
55
- const aop = _chunkSW5IKE5Hjs.Context.getAop(meta2, {
55
+ const aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
56
56
  globalFilter,
57
57
  globalGuards,
58
58
  globalPipe
59
59
  });
60
60
  const contextData = {
61
61
  type: "hyper-express",
62
+ category: "http",
62
63
  parallel: true,
63
64
  request: req,
64
65
  index: i,
@@ -68,7 +69,7 @@ function bind(router, data, opts = {}) {
68
69
  tag,
69
70
  func,
70
71
  app: router,
71
- ..._chunkSW5IKE5Hjs.argToReq.call(void 0, params, item.args, req.headers),
72
+ ..._chunkNQIFUZL4js.argToReq.call(void 0, params, item.args, req.headers),
72
73
  next,
73
74
  getCookie: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, (key) => req.cookies[key], "getCookie"),
74
75
  setCookie: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, (key, value, opts2) => res.cookie(key, value, _optionalChain([opts2, 'optionalAccess', _2 => _2.expires]) && opts2.expires.getTime() - Date.now(), opts2 || {}), "setCookie"),
@@ -79,7 +80,7 @@ function bind(router, data, opts = {}) {
79
80
  getRequest: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => req, "getRequest"),
80
81
  getResponse: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => res, "getResponse")
81
82
  };
82
- const context = new (0, _chunkSW5IKE5Hjs.Context)(contextData);
83
+ const context = new (0, _chunkNQIFUZL4js.Context)(contextData);
83
84
  context.run(aop, resolve, resolve);
84
85
  });
85
86
  })).then((ret) => {
@@ -99,18 +100,19 @@ function bind(router, data, opts = {}) {
99
100
  const needBody = params.some((item) => item.type === "body");
100
101
  let aop;
101
102
  if (!dynamic) {
102
- aop = _chunkSW5IKE5Hjs.Context.getAop(meta2, {
103
+ aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
103
104
  globalFilter,
104
105
  globalGuards,
105
106
  globalPipe
106
107
  });
107
108
  }
108
109
  const subRouter = new (0, _hyperexpress.Router)();
109
- _chunkSW5IKE5Hjs.Context.applyAddons(addons, subRouter, "hyper-express");
110
+ _chunkNQIFUZL4js.Context.applyAddons(addons, subRouter, "hyper-express");
110
111
  subRouter[http.type](http.prefix + http.route, async (req, res, next) => {
111
112
  debug(`invoke method "${func}" in module "${tag}"`);
112
113
  const contextData = {
113
114
  type: "hyper-express",
115
+ category: "http",
114
116
  request: req,
115
117
  meta: meta2,
116
118
  response: res,
@@ -132,12 +134,12 @@ function bind(router, data, opts = {}) {
132
134
  getRequest: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => req, "getRequest"),
133
135
  getResponse: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => res, "getResponse")
134
136
  };
135
- const context = new (0, _chunkSW5IKE5Hjs.Context)(contextData);
137
+ const context = new (0, _chunkNQIFUZL4js.Context)(contextData);
136
138
  if (http.headers) {
137
139
  for (const name in http.headers) res.set(name, http.headers[name]);
138
140
  }
139
141
  if (dynamic) {
140
- aop = _chunkSW5IKE5Hjs.Context.getAop(meta2, {
142
+ aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
141
143
  globalFilter,
142
144
  globalGuards,
143
145
  globalPipe
@@ -4,7 +4,7 @@ import {
4
4
  argToReq,
5
5
  createControllerMetaMap,
6
6
  detectAopDep
7
- } from "../../chunk-P75VKZJY.mjs";
7
+ } from "../../chunk-3FHZB3Z5.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "../../chunk-WHJ5FALK.mjs";
@@ -59,6 +59,7 @@ function bind(router, data, opts = {}) {
59
59
  });
60
60
  const contextData = {
61
61
  type: "hyper-express",
62
+ category: "http",
62
63
  parallel: true,
63
64
  request: req,
64
65
  index: i,
@@ -111,6 +112,7 @@ function bind(router, data, opts = {}) {
111
112
  debug(`invoke method "${func}" in module "${tag}"`);
112
113
  const contextData = {
113
114
  type: "hyper-express",
115
+ category: "http",
114
116
  request: req,
115
117
  meta: meta2,
116
118
  response: res,
@@ -1,9 +1,9 @@
1
1
  import Router, { RouterParamContext } from '@koa/router';
2
2
  import { DefaultContext, DefaultState } from 'koa';
3
- import { H as HttpContext, a as HttpOptions } from '../../types-h40T3cRG.mjs';
4
- import { F as Factory } from '../../core-BIcUwV18.mjs';
3
+ import { H as HttpContext, a as HttpOptions } from '../../types-wbHHC93P.mjs';
4
+ import { F as Factory } from '../../core-CSiaRU7r.mjs';
5
5
  import 'node:http';
6
- import '../../meta-BXKLFTgG.mjs';
6
+ import '../../meta-D1M85Hef.mjs';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface KoaCtx extends HttpContext {
@@ -1,9 +1,9 @@
1
1
  import Router, { RouterParamContext } from '@koa/router';
2
2
  import { DefaultContext, DefaultState } from 'koa';
3
- import { H as HttpContext, a as HttpOptions } from '../../types-VFzEM7LL.js';
4
- import { F as Factory } from '../../core-CYwEPfN4.js';
3
+ import { H as HttpContext, a as HttpOptions } from '../../types-ee1FBodH.js';
4
+ import { F as Factory } from '../../core-C1kHRqU9.js';
5
5
  import 'node:http';
6
- import '../../meta-BXKLFTgG.js';
6
+ import '../../meta-D1M85Hef.js';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface KoaCtx extends HttpContext {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkSW5IKE5Hjs = require('../../chunk-SW5IKE5H.js');
8
+ var _chunkNQIFUZL4js = require('../../chunk-NQIFUZL4.js');
9
9
 
10
10
 
11
11
  var _chunkJ5CFUN4Vjs = require('../../chunk-J5CFUN4V.js');
@@ -18,14 +18,14 @@ function bind(router, data, opts = {}) {
18
18
  const { globalGuards, parallelRoute = "/__PHECDA_SERVER__", globalAddons = [], parallelAddons = [], globalFilter, globalPipe, dynamic = false } = opts;
19
19
  const { moduleMap, meta } = data;
20
20
  const originStack = router.stack.slice(0, router.stack.length);
21
- const metaMap = _chunkSW5IKE5Hjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
21
+ const metaMap = _chunkNQIFUZL4js.createControllerMetaMap.call(void 0, meta, (meta2) => {
22
22
  const { controller, http, func, tag } = meta2.data;
23
23
  if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.type])) {
24
24
  debug(`register method "${func}" in module "${tag}"`);
25
25
  return true;
26
26
  }
27
27
  });
28
- _chunkSW5IKE5Hjs.detectAopDep.call(void 0, meta, {
28
+ _chunkNQIFUZL4js.detectAopDep.call(void 0, meta, {
29
29
  addons: [
30
30
  ...globalAddons,
31
31
  ...parallelAddons
@@ -34,35 +34,36 @@ function bind(router, data, opts = {}) {
34
34
  });
35
35
  registerRoute();
36
36
  function registerRoute() {
37
- _chunkSW5IKE5Hjs.Context.applyAddons(globalAddons, router, "koa");
37
+ _chunkNQIFUZL4js.Context.applyAddons(globalAddons, router, "koa");
38
38
  if (parallelRoute) {
39
39
  const subRouter = new (0, _router2.default)();
40
- _chunkSW5IKE5Hjs.Context.applyAddons(parallelAddons, subRouter, "koa");
40
+ _chunkNQIFUZL4js.Context.applyAddons(parallelAddons, subRouter, "koa");
41
41
  subRouter.post(parallelRoute, async (ctx, next) => {
42
42
  const { body } = ctx.request;
43
43
  async function errorHandler(e) {
44
- const error = await _chunkSW5IKE5Hjs.Context.filterRecord.default(e);
44
+ const error = await _chunkNQIFUZL4js.Context.filterRecord.default(e);
45
45
  ctx.status = error.status;
46
46
  ctx.body = error;
47
47
  }
48
48
  _chunkJ5CFUN4Vjs.__name.call(void 0, errorHandler, "errorHandler");
49
- if (!Array.isArray(body)) return errorHandler(new (0, _chunkSW5IKE5Hjs.BadRequestException)("data format should be an array"));
49
+ if (!Array.isArray(body)) return errorHandler(new (0, _chunkNQIFUZL4js.BadRequestException)("data format should be an array"));
50
50
  try {
51
51
  return Promise.all(body.map((item, i) => {
52
52
  return new Promise(async (resolve) => {
53
53
  const { tag, func } = item;
54
54
  debug(`(parallel)invoke method "${func}" in module "${tag}"`);
55
- if (!metaMap.has(tag)) return resolve(await _chunkSW5IKE5Hjs.Context.filterRecord.default(new (0, _chunkSW5IKE5Hjs.BadRequestException)(`module "${tag}" doesn't exist`)));
55
+ if (!metaMap.has(tag)) return resolve(await _chunkNQIFUZL4js.Context.filterRecord.default(new (0, _chunkNQIFUZL4js.BadRequestException)(`module "${tag}" doesn't exist`)));
56
56
  const meta2 = metaMap.get(tag)[func];
57
- if (!meta2) return resolve(await _chunkSW5IKE5Hjs.Context.filterRecord.default(new (0, _chunkSW5IKE5Hjs.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
57
+ if (!meta2) return resolve(await _chunkNQIFUZL4js.Context.filterRecord.default(new (0, _chunkNQIFUZL4js.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
58
58
  const { data: { params } } = meta2;
59
- const aop = _chunkSW5IKE5Hjs.Context.getAop(meta2, {
59
+ const aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
60
60
  globalGuards,
61
61
  globalFilter,
62
62
  globalPipe
63
63
  });
64
64
  const contextData = {
65
65
  type: "koa",
66
+ category: "http",
66
67
  index: i,
67
68
  ctx,
68
69
  meta: meta2,
@@ -70,7 +71,7 @@ function bind(router, data, opts = {}) {
70
71
  parallel: true,
71
72
  next,
72
73
  app: router,
73
- ..._chunkSW5IKE5Hjs.argToReq.call(void 0, params, item.args, ctx.headers),
74
+ ..._chunkNQIFUZL4js.argToReq.call(void 0, params, item.args, ctx.headers),
74
75
  tag,
75
76
  func,
76
77
  getCookie: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, (key) => ctx.cookies.get(key), "getCookie"),
@@ -84,7 +85,7 @@ function bind(router, data, opts = {}) {
84
85
  getRequest: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => ctx.req, "getRequest"),
85
86
  getResponse: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => ctx.res, "getResponse")
86
87
  };
87
- const context = new (0, _chunkSW5IKE5Hjs.Context)(contextData);
88
+ const context = new (0, _chunkNQIFUZL4js.Context)(contextData);
88
89
  context.run(aop, resolve, resolve);
89
90
  });
90
91
  })).then((ret) => {
@@ -103,14 +104,14 @@ function bind(router, data, opts = {}) {
103
104
  if (!_optionalChain([http, 'optionalAccess', _2 => _2.type])) continue;
104
105
  let aop;
105
106
  if (!dynamic) {
106
- aop = _chunkSW5IKE5Hjs.Context.getAop(meta2, {
107
+ aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
107
108
  globalFilter,
108
109
  globalGuards,
109
110
  globalPipe
110
111
  });
111
112
  }
112
113
  const subRouter = new (0, _router2.default)();
113
- _chunkSW5IKE5Hjs.Context.applyAddons(addons, subRouter, "koa");
114
+ _chunkNQIFUZL4js.Context.applyAddons(addons, subRouter, "koa");
114
115
  router[http.type](http.prefix + http.route, async (ctx, next) => {
115
116
  debug(`invoke method "${func}" in module "${tag}"`);
116
117
  const contextData = {
@@ -123,6 +124,7 @@ function bind(router, data, opts = {}) {
123
124
  func,
124
125
  query: ctx.query,
125
126
  params: ctx.params,
127
+ category: "http",
126
128
  body: ctx.request.body,
127
129
  headers: ctx.headers,
128
130
  next,
@@ -137,10 +139,10 @@ function bind(router, data, opts = {}) {
137
139
  getRequest: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => ctx.req, "getRequest"),
138
140
  getResponse: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => ctx.res, "getResponse")
139
141
  };
140
- const context = new (0, _chunkSW5IKE5Hjs.Context)(contextData);
142
+ const context = new (0, _chunkNQIFUZL4js.Context)(contextData);
141
143
  if (http.headers) ctx.set(http.headers);
142
144
  if (dynamic) {
143
- aop = _chunkSW5IKE5Hjs.Context.getAop(meta2, {
145
+ aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
144
146
  globalFilter,
145
147
  globalGuards,
146
148
  globalPipe
@@ -160,7 +162,7 @@ function bind(router, data, opts = {}) {
160
162
  }
161
163
  }
162
164
  _chunkJ5CFUN4Vjs.__name.call(void 0, registerRoute, "registerRoute");
163
- _chunkSW5IKE5Hjs.HMR.call(void 0, async () => {
165
+ _chunkNQIFUZL4js.HMR.call(void 0, async () => {
164
166
  router.stack = originStack;
165
167
  registerRoute();
166
168
  });
@@ -5,7 +5,7 @@ import {
5
5
  argToReq,
6
6
  createControllerMetaMap,
7
7
  detectAopDep
8
- } from "../../chunk-P75VKZJY.mjs";
8
+ } from "../../chunk-3FHZB3Z5.mjs";
9
9
  import {
10
10
  __name
11
11
  } from "../../chunk-WHJ5FALK.mjs";
@@ -63,6 +63,7 @@ function bind(router, data, opts = {}) {
63
63
  });
64
64
  const contextData = {
65
65
  type: "koa",
66
+ category: "http",
66
67
  index: i,
67
68
  ctx,
68
69
  meta: meta2,
@@ -123,6 +124,7 @@ function bind(router, data, opts = {}) {
123
124
  func,
124
125
  query: ctx.query,
125
126
  params: ctx.params,
127
+ category: "http",
126
128
  body: ctx.request.body,
127
129
  headers: ctx.headers,
128
130
  next,
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
- import { B as BaseContext, a as ControllerMeta, D as DefaultOptions, C as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-BXKLFTgG.mjs';
2
- export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-BXKLFTgG.mjs';
3
- import { G as Generator } from './core-BIcUwV18.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-BIcUwV18.mjs';
1
+ import { B as BaseContext, a as ControllerMeta, D as DefaultOptions, C as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-D1M85Hef.mjs';
2
+ export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-D1M85Hef.mjs';
3
+ import { G as Generator } from './core-CSiaRU7r.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-CSiaRU7r.mjs';
5
5
  import { Base } from 'phecda-core';
6
6
  export * from 'phecda-core';
7
- import { H as HttpContext } from './types-h40T3cRG.mjs';
8
- export { C as CookieSerializeOptions, a as HttpOptions } from './types-h40T3cRG.mjs';
9
- import { R as RpcContext } from './types-BtbL49Zs.mjs';
10
- export { b as RpcClientOptions, a as RpcServerOptions } from './types-BtbL49Zs.mjs';
7
+ import { H as HttpContext } from './types-wbHHC93P.mjs';
8
+ export { C as CookieSerializeOptions, a as HttpOptions } from './types-wbHHC93P.mjs';
9
+ import { R as RpcContext } from './types-JMhFVp-Z.mjs';
10
+ export { b as RpcClientOptions, a as RpcServerOptions } from './types-JMhFVp-Z.mjs';
11
11
  export { Mixin } from 'ts-mixer';
12
12
  import 'node:http';
13
13
 
@@ -138,7 +138,7 @@ declare class Context<Data extends BaseContext> {
138
138
  declare function addPipe<C extends BaseContext>(key: PropertyKey, pipe: PipeType<C>): void;
139
139
  declare function addFilter<C extends BaseContext>(key: PropertyKey, filter: FilterType<C>): void;
140
140
  declare function addGuard<C extends BaseContext>(key: PropertyKey, guard: GuardType<C>, priority?: number): void;
141
- declare function addAddon<T>(key: PropertyKey, addon: (router: any, framework: string) => T, priority?: number): void;
141
+ declare function addAddon(key: PropertyKey, addon: (router: any, framework: string) => void, priority?: number): void;
142
142
 
143
143
  declare class RPCGenerator extends Generator {
144
144
  name: string;
@@ -207,7 +207,7 @@ declare abstract class PFilter<C extends BaseContext = any, E extends Exception
207
207
  }
208
208
 
209
209
  declare abstract class PGuard<C extends BaseContext = any> extends ServerBase {
210
- abstract use(ctx: C): Promise<boolean> | boolean;
210
+ abstract use(ctx: C, next: () => Promise<any>): any;
211
211
  readonly key: PropertyKey;
212
212
  priority: number;
213
213
  constructor(tag?: string);
@@ -230,7 +230,7 @@ declare abstract class PAddon extends ServerBase {
230
230
  readonly key: PropertyKey;
231
231
  priority: number;
232
232
  constructor(tag?: string);
233
- abstract use<Addon = any>(framework: string): Addon | undefined;
233
+ abstract use(router: any, framework: string): undefined;
234
234
  }
235
235
 
236
236
  interface PExtension<C extends BaseContext = any, E extends Exception = Exception> {
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { B as BaseContext, a as ControllerMeta, D as DefaultOptions, C as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-BXKLFTgG.js';
2
- export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-BXKLFTgG.js';
3
- import { G as Generator } from './core-CYwEPfN4.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-CYwEPfN4.js';
1
+ import { B as BaseContext, a as ControllerMeta, D as DefaultOptions, C as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-D1M85Hef.js';
2
+ export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-D1M85Hef.js';
3
+ import { G as Generator } from './core-C1kHRqU9.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-C1kHRqU9.js';
5
5
  import { Base } from 'phecda-core';
6
6
  export * from 'phecda-core';
7
- import { H as HttpContext } from './types-VFzEM7LL.js';
8
- export { C as CookieSerializeOptions, a as HttpOptions } from './types-VFzEM7LL.js';
9
- import { R as RpcContext } from './types-m3IEDKjP.js';
10
- export { b as RpcClientOptions, a as RpcServerOptions } from './types-m3IEDKjP.js';
7
+ import { H as HttpContext } from './types-ee1FBodH.js';
8
+ export { C as CookieSerializeOptions, a as HttpOptions } from './types-ee1FBodH.js';
9
+ import { R as RpcContext } from './types-C9Remkup.js';
10
+ export { b as RpcClientOptions, a as RpcServerOptions } from './types-C9Remkup.js';
11
11
  export { Mixin } from 'ts-mixer';
12
12
  import 'node:http';
13
13
 
@@ -138,7 +138,7 @@ declare class Context<Data extends BaseContext> {
138
138
  declare function addPipe<C extends BaseContext>(key: PropertyKey, pipe: PipeType<C>): void;
139
139
  declare function addFilter<C extends BaseContext>(key: PropertyKey, filter: FilterType<C>): void;
140
140
  declare function addGuard<C extends BaseContext>(key: PropertyKey, guard: GuardType<C>, priority?: number): void;
141
- declare function addAddon<T>(key: PropertyKey, addon: (router: any, framework: string) => T, priority?: number): void;
141
+ declare function addAddon(key: PropertyKey, addon: (router: any, framework: string) => void, priority?: number): void;
142
142
 
143
143
  declare class RPCGenerator extends Generator {
144
144
  name: string;
@@ -207,7 +207,7 @@ declare abstract class PFilter<C extends BaseContext = any, E extends Exception
207
207
  }
208
208
 
209
209
  declare abstract class PGuard<C extends BaseContext = any> extends ServerBase {
210
- abstract use(ctx: C): Promise<boolean> | boolean;
210
+ abstract use(ctx: C, next: () => Promise<any>): any;
211
211
  readonly key: PropertyKey;
212
212
  priority: number;
213
213
  constructor(tag?: string);
@@ -230,7 +230,7 @@ declare abstract class PAddon extends ServerBase {
230
230
  readonly key: PropertyKey;
231
231
  priority: number;
232
232
  constructor(tag?: string);
233
- abstract use<Addon = any>(framework: string): Addon | undefined;
233
+ abstract use(router: any, framework: string): undefined;
234
234
  }
235
235
 
236
236
  interface PExtension<C extends BaseContext = any, E extends Exception = Exception> {
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkBGXSMOLXjs = require('./chunk-BGXSMOLX.js');
9
+ var _chunk7YQ57BQSjs = require('./chunk-7YQ57BQS.js');
10
10
 
11
11
 
12
12
 
@@ -56,7 +56,7 @@ var _chunkMBCHNDAYjs = require('./chunk-MBCHNDAY.js');
56
56
 
57
57
 
58
58
 
59
- var _chunkSW5IKE5Hjs = require('./chunk-SW5IKE5H.js');
59
+ var _chunkNQIFUZL4js = require('./chunk-NQIFUZL4.js');
60
60
 
61
61
 
62
62
 
@@ -98,7 +98,7 @@ var ServerBase = (_class = class extends _phecdacore.Base {constructor(...args2)
98
98
  static {
99
99
  _chunkJ5CFUN4Vjs.__name.call(void 0, this, "ServerBase");
100
100
  }
101
- __init() {this.emitter = exports.emitter = _chunkBGXSMOLXjs.emitter}
101
+ __init() {this.emitter = exports.emitter = _chunk7YQ57BQSjs.emitter}
102
102
  }, _class);
103
103
  var HttpBase = class extends ServerBase {
104
104
  static {
@@ -131,9 +131,9 @@ var PFilter = class extends ServerBase {
131
131
  constructor(tag) {
132
132
  super();
133
133
  this.key = tag || _phecdacore.getTag.call(void 0, this);
134
- _chunkSW5IKE5Hjs.addFilter.call(void 0, this.key, this.use.bind(this));
134
+ _chunkNQIFUZL4js.addFilter.call(void 0, this.key, this.use.bind(this));
135
135
  this.onUnmount(() => {
136
- delete _chunkSW5IKE5Hjs.Context.filterRecord[this.key];
136
+ delete _chunkNQIFUZL4js.Context.filterRecord[this.key];
137
137
  });
138
138
  }
139
139
  };
@@ -149,9 +149,9 @@ var PGuard = (_class2 = class extends ServerBase {
149
149
  constructor(tag) {
150
150
  super();_class2.prototype.__init2.call(this);;
151
151
  this.key = tag || _phecdacore.getTag.call(void 0, this);
152
- _chunkSW5IKE5Hjs.addGuard.call(void 0, this.key, this.use.bind(this), this.priority);
152
+ _chunkNQIFUZL4js.addGuard.call(void 0, this.key, this.use.bind(this), this.priority);
153
153
  this.onUnmount(() => {
154
- delete _chunkSW5IKE5Hjs.Context.guardRecord[this.key];
154
+ delete _chunkNQIFUZL4js.Context.guardRecord[this.key];
155
155
  });
156
156
  }
157
157
  }, _class2);
@@ -166,9 +166,9 @@ var PPipe = class extends ServerBase {
166
166
  constructor(tag) {
167
167
  super();
168
168
  this.key = tag || _phecdacore.getTag.call(void 0, this);
169
- _chunkSW5IKE5Hjs.addPipe.call(void 0, this.key, this.use.bind(this));
169
+ _chunkNQIFUZL4js.addPipe.call(void 0, this.key, this.use.bind(this));
170
170
  this.onUnmount(() => {
171
- delete _chunkSW5IKE5Hjs.Context.pipeRecord[this.key];
171
+ delete _chunkNQIFUZL4js.Context.pipeRecord[this.key];
172
172
  });
173
173
  }
174
174
  };
@@ -184,9 +184,9 @@ var PAddon = (_class3 = class extends ServerBase {
184
184
  constructor(tag) {
185
185
  super();_class3.prototype.__init3.call(this);;
186
186
  this.key = tag || _phecdacore.getTag.call(void 0, this);
187
- _chunkSW5IKE5Hjs.addAddon.call(void 0, this.key, this.use.bind(this), this.priority);
187
+ _chunkNQIFUZL4js.addAddon.call(void 0, this.key, this.use.bind(this), this.priority);
188
188
  this.onUnmount(() => {
189
- delete _chunkSW5IKE5Hjs.Context.addonRecord[this.key];
189
+ delete _chunkNQIFUZL4js.Context.addonRecord[this.key];
190
190
  });
191
191
  }
192
192
  }, _class3);
@@ -204,27 +204,27 @@ var PExtension = class extends ServerBase {
204
204
  super();
205
205
  const key = this.key = tag || _phecdacore.getTag.call(void 0, this);
206
206
  if (this.pipe) {
207
- _chunkSW5IKE5Hjs.addPipe.call(void 0, key, this.pipe.bind(this));
207
+ _chunkNQIFUZL4js.addPipe.call(void 0, key, this.pipe.bind(this));
208
208
  this.onUnmount(() => {
209
- delete _chunkSW5IKE5Hjs.Context.pipeRecord[key];
209
+ delete _chunkNQIFUZL4js.Context.pipeRecord[key];
210
210
  });
211
211
  }
212
212
  if (this.addon) {
213
- _chunkSW5IKE5Hjs.addAddon.call(void 0, key, this.addon.bind(this), this.addonPriority);
213
+ _chunkNQIFUZL4js.addAddon.call(void 0, key, this.addon.bind(this), this.addonPriority);
214
214
  this.onUnmount(() => {
215
- delete _chunkSW5IKE5Hjs.Context.addonRecord[key];
215
+ delete _chunkNQIFUZL4js.Context.addonRecord[key];
216
216
  });
217
217
  }
218
218
  if (this.guard) {
219
- _chunkSW5IKE5Hjs.addGuard.call(void 0, key, this.guard.bind(this), this.guardPriority);
219
+ _chunkNQIFUZL4js.addGuard.call(void 0, key, this.guard.bind(this), this.guardPriority);
220
220
  this.onUnmount(() => {
221
- delete _chunkSW5IKE5Hjs.Context.guardRecord[key];
221
+ delete _chunkNQIFUZL4js.Context.guardRecord[key];
222
222
  });
223
223
  }
224
224
  if (this.filter) {
225
- _chunkSW5IKE5Hjs.addFilter.call(void 0, key, this.filter.bind(this));
225
+ _chunkNQIFUZL4js.addFilter.call(void 0, key, this.filter.bind(this));
226
226
  this.onUnmount(() => {
227
- delete _chunkSW5IKE5Hjs.Context.filterRecord[key];
227
+ delete _chunkNQIFUZL4js.Context.filterRecord[key];
228
228
  });
229
229
  }
230
230
  }
@@ -308,7 +308,7 @@ var HTTPGenerator = (_class5 = class extends Generator {constructor(...args4) {
308
308
  if (!this.classMap[name]) this.classMap[name] = {};
309
309
  this.classMap[name][func] = `
310
310
  ${func}(...args){
311
- const ret={tag:"${tag}",func:"${func}",body:{},headers:{},query:{},params:{},method:"${http.type}",url:"${url}",args}
311
+ const ret={tag:"${tag}",func:"${func}",body:{},headers:{},query:{},params:{},method:"${http.type}",url:"${url}"}
312
312
 
313
313
  ${params.reduce((p, c, i) => `${p}ret.${c.type}${c.key ? `['${c.key}']` : ""}=args[${i}]
314
314
  ${c.type === "params" ? `ret.url=ret.url.replace('{{${c.key}}}',args[${i}])` : ""}
@@ -404,4 +404,4 @@ return ret
404
404
 
405
405
 
406
406
 
407
- exports.Addon = _chunkMBCHNDAYjs.Addon; exports.Arg = _chunkMBCHNDAYjs.Arg; exports.BadGatewayException = _chunkSW5IKE5Hjs.BadGatewayException; exports.BadRequestException = _chunkSW5IKE5Hjs.BadRequestException; exports.BaseParam = _chunkMBCHNDAYjs.BaseParam; exports.Body = _chunkMBCHNDAYjs.Body; exports.ConflictException = _chunkSW5IKE5Hjs.ConflictException; exports.Context = _chunkSW5IKE5Hjs.Context; exports.Controller = _chunkMBCHNDAYjs.Controller; exports.Ctx = _chunkMBCHNDAYjs.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunkMBCHNDAYjs.Define; exports.Delete = _chunkMBCHNDAYjs.Delete; exports.ERROR_SYMBOL = _chunkJ5CFUN4Vjs.ERROR_SYMBOL; exports.Exception = _chunkSW5IKE5Hjs.Exception; exports.Factory = _chunkBGXSMOLXjs.Factory; exports.Filter = _chunkMBCHNDAYjs.Filter; exports.ForbiddenException = _chunkSW5IKE5Hjs.ForbiddenException; exports.FrameworkException = _chunkSW5IKE5Hjs.FrameworkException; exports.Generator = Generator; exports.Get = _chunkMBCHNDAYjs.Get; exports.Guard = _chunkMBCHNDAYjs.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunkMBCHNDAYjs.Head; exports.Header = _chunkMBCHNDAYjs.Header; exports.HttpBase = HttpBase; exports.IS_HMR = _chunkJ5CFUN4Vjs.IS_HMR; exports.IS_ONLY_GENERATE = _chunkJ5CFUN4Vjs.IS_ONLY_GENERATE; exports.IS_STRICT = _chunkJ5CFUN4Vjs.IS_STRICT; exports.InvalidInputException = _chunkSW5IKE5Hjs.InvalidInputException; exports.LOG_LEVEL = _chunkJ5CFUN4Vjs.LOG_LEVEL; exports.Meta = _chunkBGXSMOLXjs.Meta; exports.Mixin = _chunkJ5CFUN4Vjs.Mixin; exports.NotFoundException = _chunkSW5IKE5Hjs.NotFoundException; exports.PAddon = PAddon; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PPipe = PPipe; exports.PS_EXIT_CODE = _chunkJ5CFUN4Vjs.PS_EXIT_CODE; exports.Param = _chunkMBCHNDAYjs.Param; exports.Patch = _chunkMBCHNDAYjs.Patch; exports.PayloadLargeException = _chunkSW5IKE5Hjs.PayloadLargeException; exports.Pipe = _chunkMBCHNDAYjs.Pipe; exports.Post = _chunkMBCHNDAYjs.Post; exports.Put = _chunkMBCHNDAYjs.Put; exports.Query = _chunkMBCHNDAYjs.Query; exports.Queue = _chunkMBCHNDAYjs.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunkMBCHNDAYjs.Route; exports.Rpc = _chunkMBCHNDAYjs.Rpc; exports.RpcBase = RpcBase; exports.Search = _chunkMBCHNDAYjs.Search; exports.ServerBase = ServerBase; exports.ServerPhecda = _chunkBGXSMOLXjs.ServerPhecda; exports.ServiceUnavailableException = _chunkSW5IKE5Hjs.ServiceUnavailableException; exports.TimeoutException = _chunkSW5IKE5Hjs.TimeoutException; exports.TimerException = _chunkSW5IKE5Hjs.TimerException; exports.UnauthorizedException = _chunkSW5IKE5Hjs.UnauthorizedException; exports.UndefinedException = _chunkSW5IKE5Hjs.UndefinedException; exports.UnsupportedMediaTypeException = _chunkSW5IKE5Hjs.UnsupportedMediaTypeException; exports.ValidateException = _chunkSW5IKE5Hjs.ValidateException; exports.WorkerException = _chunkSW5IKE5Hjs.WorkerException; exports.addAddon = _chunkSW5IKE5Hjs.addAddon; exports.addFilter = _chunkSW5IKE5Hjs.addFilter; exports.addGuard = _chunkSW5IKE5Hjs.addGuard; exports.addPipe = _chunkSW5IKE5Hjs.addPipe; exports.defaultPipe = _chunkSW5IKE5Hjs.defaultPipe; exports.defaultServerInject = _chunkBGXSMOLXjs.defaultServerInject; exports.emitter = _chunkBGXSMOLXjs.emitter; exports.getLogger = _chunkJ5CFUN4Vjs.getLogger; exports.log = _chunkJ5CFUN4Vjs.log; exports.phecdaNamespace = _chunkBGXSMOLXjs.phecdaNamespace; exports.runMiddleware = _chunkJ5CFUN4Vjs.runMiddleware; exports.setLogger = _chunkJ5CFUN4Vjs.setLogger; exports.useS = _chunkBGXSMOLXjs.useS;
407
+ exports.Addon = _chunkMBCHNDAYjs.Addon; exports.Arg = _chunkMBCHNDAYjs.Arg; exports.BadGatewayException = _chunkNQIFUZL4js.BadGatewayException; exports.BadRequestException = _chunkNQIFUZL4js.BadRequestException; exports.BaseParam = _chunkMBCHNDAYjs.BaseParam; exports.Body = _chunkMBCHNDAYjs.Body; exports.ConflictException = _chunkNQIFUZL4js.ConflictException; exports.Context = _chunkNQIFUZL4js.Context; exports.Controller = _chunkMBCHNDAYjs.Controller; exports.Ctx = _chunkMBCHNDAYjs.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunkMBCHNDAYjs.Define; exports.Delete = _chunkMBCHNDAYjs.Delete; exports.ERROR_SYMBOL = _chunkJ5CFUN4Vjs.ERROR_SYMBOL; exports.Exception = _chunkNQIFUZL4js.Exception; exports.Factory = _chunk7YQ57BQSjs.Factory; exports.Filter = _chunkMBCHNDAYjs.Filter; exports.ForbiddenException = _chunkNQIFUZL4js.ForbiddenException; exports.FrameworkException = _chunkNQIFUZL4js.FrameworkException; exports.Generator = Generator; exports.Get = _chunkMBCHNDAYjs.Get; exports.Guard = _chunkMBCHNDAYjs.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunkMBCHNDAYjs.Head; exports.Header = _chunkMBCHNDAYjs.Header; exports.HttpBase = HttpBase; exports.IS_HMR = _chunkJ5CFUN4Vjs.IS_HMR; exports.IS_ONLY_GENERATE = _chunkJ5CFUN4Vjs.IS_ONLY_GENERATE; exports.IS_STRICT = _chunkJ5CFUN4Vjs.IS_STRICT; exports.InvalidInputException = _chunkNQIFUZL4js.InvalidInputException; exports.LOG_LEVEL = _chunkJ5CFUN4Vjs.LOG_LEVEL; exports.Meta = _chunk7YQ57BQSjs.Meta; exports.Mixin = _chunkJ5CFUN4Vjs.Mixin; exports.NotFoundException = _chunkNQIFUZL4js.NotFoundException; exports.PAddon = PAddon; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PPipe = PPipe; exports.PS_EXIT_CODE = _chunkJ5CFUN4Vjs.PS_EXIT_CODE; exports.Param = _chunkMBCHNDAYjs.Param; exports.Patch = _chunkMBCHNDAYjs.Patch; exports.PayloadLargeException = _chunkNQIFUZL4js.PayloadLargeException; exports.Pipe = _chunkMBCHNDAYjs.Pipe; exports.Post = _chunkMBCHNDAYjs.Post; exports.Put = _chunkMBCHNDAYjs.Put; exports.Query = _chunkMBCHNDAYjs.Query; exports.Queue = _chunkMBCHNDAYjs.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunkMBCHNDAYjs.Route; exports.Rpc = _chunkMBCHNDAYjs.Rpc; exports.RpcBase = RpcBase; exports.Search = _chunkMBCHNDAYjs.Search; exports.ServerBase = ServerBase; exports.ServerPhecda = _chunk7YQ57BQSjs.ServerPhecda; exports.ServiceUnavailableException = _chunkNQIFUZL4js.ServiceUnavailableException; exports.TimeoutException = _chunkNQIFUZL4js.TimeoutException; exports.TimerException = _chunkNQIFUZL4js.TimerException; exports.UnauthorizedException = _chunkNQIFUZL4js.UnauthorizedException; exports.UndefinedException = _chunkNQIFUZL4js.UndefinedException; exports.UnsupportedMediaTypeException = _chunkNQIFUZL4js.UnsupportedMediaTypeException; exports.ValidateException = _chunkNQIFUZL4js.ValidateException; exports.WorkerException = _chunkNQIFUZL4js.WorkerException; exports.addAddon = _chunkNQIFUZL4js.addAddon; exports.addFilter = _chunkNQIFUZL4js.addFilter; exports.addGuard = _chunkNQIFUZL4js.addGuard; exports.addPipe = _chunkNQIFUZL4js.addPipe; exports.defaultPipe = _chunkNQIFUZL4js.defaultPipe; exports.defaultServerInject = _chunk7YQ57BQSjs.defaultServerInject; exports.emitter = _chunk7YQ57BQSjs.emitter; exports.getLogger = _chunkJ5CFUN4Vjs.getLogger; exports.log = _chunkJ5CFUN4Vjs.log; exports.phecdaNamespace = _chunk7YQ57BQSjs.phecdaNamespace; exports.runMiddleware = _chunkJ5CFUN4Vjs.runMiddleware; exports.setLogger = _chunkJ5CFUN4Vjs.setLogger; exports.useS = _chunk7YQ57BQSjs.useS;