phecda-server 7.0.2 → 7.1.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 (82) hide show
  1. package/dist/{chunk-ZWPOWMZP.js → chunk-JTSD2LIG.js} +10 -6
  2. package/dist/{chunk-XKK2SQ7W.js → chunk-OV3UJLGP.js} +20 -6
  3. package/dist/{chunk-E7EAPAGM.mjs → chunk-P3CS65OP.mjs} +20 -6
  4. package/dist/{chunk-AIAO6SV6.mjs → chunk-TQSHE4PZ.mjs} +10 -6
  5. package/dist/{core-DbqWh47p.d.mts → core-B5yKYkMJ.d.mts} +1 -1
  6. package/dist/{core-Rq7BhPHE.d.ts → core-BRuvL6hY.d.ts} +1 -1
  7. package/dist/helper.d.mts +1 -1
  8. package/dist/helper.d.ts +1 -1
  9. package/dist/helper.js +2 -2
  10. package/dist/helper.mjs +1 -1
  11. package/dist/http/elysia/index.d.mts +3 -3
  12. package/dist/http/elysia/index.d.ts +3 -3
  13. package/dist/http/elysia/index.js +17 -17
  14. package/dist/http/elysia/index.mjs +1 -1
  15. package/dist/http/express/index.d.mts +3 -3
  16. package/dist/http/express/index.d.ts +3 -3
  17. package/dist/http/express/index.js +16 -16
  18. package/dist/http/express/index.mjs +1 -1
  19. package/dist/http/fastify/index.d.mts +3 -3
  20. package/dist/http/fastify/index.d.ts +3 -3
  21. package/dist/http/fastify/index.js +16 -16
  22. package/dist/http/fastify/index.mjs +1 -1
  23. package/dist/http/h3/index.d.mts +3 -3
  24. package/dist/http/h3/index.d.ts +3 -3
  25. package/dist/http/h3/index.js +17 -17
  26. package/dist/http/h3/index.mjs +1 -1
  27. package/dist/http/hono/index.d.mts +3 -3
  28. package/dist/http/hono/index.d.ts +3 -3
  29. package/dist/http/hono/index.js +14 -14
  30. package/dist/http/hono/index.mjs +1 -1
  31. package/dist/http/hyper-express/index.d.mts +3 -3
  32. package/dist/http/hyper-express/index.d.ts +3 -3
  33. package/dist/http/hyper-express/index.js +15 -15
  34. package/dist/http/hyper-express/index.mjs +1 -1
  35. package/dist/http/koa/index.d.mts +3 -3
  36. package/dist/http/koa/index.d.ts +3 -3
  37. package/dist/http/koa/index.js +16 -16
  38. package/dist/http/koa/index.mjs +1 -1
  39. package/dist/index.d.mts +27 -9
  40. package/dist/index.d.ts +27 -9
  41. package/dist/index.js +60 -24
  42. package/dist/index.mjs +38 -2
  43. package/dist/{meta-BoS1E-Nz.d.mts → meta-C_eDyXnK.d.mts} +2 -0
  44. package/dist/{meta-BoS1E-Nz.d.ts → meta-C_eDyXnK.d.ts} +2 -0
  45. package/dist/rpc/bullmq/index.d.mts +3 -3
  46. package/dist/rpc/bullmq/index.d.ts +3 -3
  47. package/dist/rpc/bullmq/index.js +6 -6
  48. package/dist/rpc/bullmq/index.mjs +1 -1
  49. package/dist/rpc/electron/index.d.mts +3 -3
  50. package/dist/rpc/electron/index.d.ts +3 -3
  51. package/dist/rpc/electron/index.js +5 -5
  52. package/dist/rpc/electron/index.mjs +1 -1
  53. package/dist/rpc/kafka/index.d.mts +3 -3
  54. package/dist/rpc/kafka/index.d.ts +3 -3
  55. package/dist/rpc/kafka/index.js +6 -6
  56. package/dist/rpc/kafka/index.mjs +1 -1
  57. package/dist/rpc/nats/index.d.mts +3 -3
  58. package/dist/rpc/nats/index.d.ts +3 -3
  59. package/dist/rpc/nats/index.js +6 -6
  60. package/dist/rpc/nats/index.mjs +1 -1
  61. package/dist/rpc/rabbitmq/index.d.mts +3 -3
  62. package/dist/rpc/rabbitmq/index.d.ts +3 -3
  63. package/dist/rpc/rabbitmq/index.js +6 -6
  64. package/dist/rpc/rabbitmq/index.mjs +1 -1
  65. package/dist/rpc/redis/index.d.mts +3 -3
  66. package/dist/rpc/redis/index.d.ts +3 -3
  67. package/dist/rpc/redis/index.js +6 -6
  68. package/dist/rpc/redis/index.mjs +1 -1
  69. package/dist/rpc/ws/index.d.mts +3 -3
  70. package/dist/rpc/ws/index.d.ts +3 -3
  71. package/dist/rpc/ws/index.js +5 -5
  72. package/dist/rpc/ws/index.mjs +1 -1
  73. package/dist/test.d.mts +2 -2
  74. package/dist/test.d.ts +2 -2
  75. package/dist/test.js +2 -2
  76. package/dist/test.mjs +1 -1
  77. package/dist/{types-E-rqlg3-.d.mts → types-7-m2wEkP.d.mts} +1 -1
  78. package/dist/{types-CInz3bD0.d.ts → types-B6aU8oT-.d.ts} +1 -1
  79. package/dist/{types-SCJZFCYt.d.mts → types-BKHBmSQN.d.mts} +1 -1
  80. package/dist/{types-xruyYmyu.d.ts → types-BuvMT1ta.d.ts} +1 -1
  81. package/package.json +2 -2
  82. package/register/export.mjs +5 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXKK2SQ7Wjs = require('../../chunk-XKK2SQ7W.js');
5
+ var _chunkOV3UJLGPjs = require('../../chunk-OV3UJLGP.js');
6
6
 
7
7
 
8
8
 
@@ -17,18 +17,18 @@ async function bind(nc, { moduleMap, meta }, opts = {}) {
17
17
  const sc = _nats.StringCodec.call(void 0, );
18
18
  const subscriptionMap = {};
19
19
  const existQueue = /* @__PURE__ */ new Set();
20
- const metaMap = _chunkXKK2SQ7Wjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
20
+ const metaMap = _chunkOV3UJLGPjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
21
21
  const { controller, rpc, func, tag } = meta2.data;
22
22
  if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _2 => _2.queue]) !== void 0) {
23
23
  debug(`register method "${func}" in module "${tag}"`);
24
24
  return true;
25
25
  }
26
26
  });
27
- _chunkXKK2SQ7Wjs.detectAopDep.call(void 0, meta, {
27
+ _chunkOV3UJLGPjs.detectAopDep.call(void 0, meta, {
28
28
  addons: globalAddons,
29
29
  guards: globalGuards
30
30
  }, "rpc");
31
- _chunkXKK2SQ7Wjs.Context.applyAddons(globalAddons, nc, "nats");
31
+ _chunkOV3UJLGPjs.Context.applyAddons(globalAddons, nc, "nats");
32
32
  async function subscribeQueues() {
33
33
  existQueue.clear();
34
34
  for (const [tag, record] of metaMap) {
@@ -56,12 +56,12 @@ async function bind(nc, { moduleMap, meta }, opts = {}) {
56
56
  const meta2 = metaMap.get(tag)[func];
57
57
  const { data: { rpc: { isEvent } = {} } } = meta2;
58
58
  if (isEvent) msg.respond("{}");
59
- const aop = _chunkXKK2SQ7Wjs.Context.getAop(meta2, {
59
+ const aop = _chunkOV3UJLGPjs.Context.getAop(meta2, {
60
60
  globalFilter,
61
61
  globalGuards,
62
62
  globalPipe
63
63
  });
64
- const context = new (0, _chunkXKK2SQ7Wjs.Context)({
64
+ const context = new (0, _chunkOV3UJLGPjs.Context)({
65
65
  type: "nats",
66
66
  category: "rpc",
67
67
  moduleMap,
@@ -2,7 +2,7 @@ import {
2
2
  Context,
3
3
  createControllerMetaMap,
4
4
  detectAopDep
5
- } from "../../chunk-E7EAPAGM.mjs";
5
+ } from "../../chunk-P3CS65OP.mjs";
6
6
  import {
7
7
  HMR,
8
8
  __name
@@ -1,8 +1,8 @@
1
1
  import amqplib from 'amqplib';
2
- import { F as Factory } from '../../core-DbqWh47p.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-E-rqlg3-.mjs';
2
+ import { F as Factory } from '../../core-B5yKYkMJ.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-7-m2wEkP.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-BoS1E-Nz.mjs';
5
+ import '../../meta-C_eDyXnK.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-Rq7BhPHE.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CInz3bD0.js';
2
+ import { F as Factory } from '../../core-BRuvL6hY.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-B6aU8oT-.js';
4
4
  import 'phecda-core';
5
- import '../../meta-BoS1E-Nz.js';
5
+ import '../../meta-C_eDyXnK.js';
6
6
 
7
7
  interface RabbitmqCtx extends RpcCtx {
8
8
  type: 'rabbitmq';
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXKK2SQ7Wjs = require('../../chunk-XKK2SQ7W.js');
5
+ var _chunkOV3UJLGPjs = require('../../chunk-OV3UJLGP.js');
6
6
 
7
7
 
8
8
 
@@ -13,19 +13,19 @@ var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
13
13
  var debug = _debug2.default.call(void 0, "phecda-server/rabbitmq");
14
14
  async function bind(ch, { moduleMap, meta }, opts = {}) {
15
15
  const { globalGuards, globalFilter, globalPipe, globalAddons = [], defaultQueue } = opts;
16
- const metaMap = _chunkXKK2SQ7Wjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
16
+ const metaMap = _chunkOV3UJLGPjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
17
17
  const { controller, rpc, func, tag } = meta2.data;
18
18
  if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
19
19
  debug(`register method "${func}" in module "${tag}"`);
20
20
  return true;
21
21
  }
22
22
  });
23
- _chunkXKK2SQ7Wjs.detectAopDep.call(void 0, meta, {
23
+ _chunkOV3UJLGPjs.detectAopDep.call(void 0, meta, {
24
24
  guards: globalGuards,
25
25
  addons: globalAddons
26
26
  }, "rpc");
27
27
  const existQueue = /* @__PURE__ */ new Set();
28
- _chunkXKK2SQ7Wjs.Context.applyAddons(globalAddons, ch, "rabbitmq");
28
+ _chunkOV3UJLGPjs.Context.applyAddons(globalAddons, ch, "rabbitmq");
29
29
  async function subscribeQueues() {
30
30
  existQueue.clear();
31
31
  for (const [tag, record] of metaMap) {
@@ -57,12 +57,12 @@ async function bind(ch, { moduleMap, meta }, opts = {}) {
57
57
  debug(`invoke method "${func}" in module "${tag}"`);
58
58
  const meta2 = metaMap.get(tag)[func];
59
59
  const { data: { rpc: { isEvent } = {} } } = meta2;
60
- const aop = _chunkXKK2SQ7Wjs.Context.getAop(meta2, {
60
+ const aop = _chunkOV3UJLGPjs.Context.getAop(meta2, {
61
61
  globalFilter,
62
62
  globalGuards,
63
63
  globalPipe
64
64
  });
65
- const context = new (0, _chunkXKK2SQ7Wjs.Context)({
65
+ const context = new (0, _chunkOV3UJLGPjs.Context)({
66
66
  type: "rabbitmq",
67
67
  category: "rpc",
68
68
  moduleMap,
@@ -2,7 +2,7 @@ import {
2
2
  Context,
3
3
  createControllerMetaMap,
4
4
  detectAopDep
5
- } from "../../chunk-E7EAPAGM.mjs";
5
+ } from "../../chunk-P3CS65OP.mjs";
6
6
  import {
7
7
  HMR,
8
8
  __name
@@ -1,8 +1,8 @@
1
1
  import Redis from 'ioredis';
2
- import { F as Factory } from '../../core-DbqWh47p.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-E-rqlg3-.mjs';
2
+ import { F as Factory } from '../../core-B5yKYkMJ.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-7-m2wEkP.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-BoS1E-Nz.mjs';
5
+ import '../../meta-C_eDyXnK.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-Rq7BhPHE.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CInz3bD0.js';
2
+ import { F as Factory } from '../../core-BRuvL6hY.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-B6aU8oT-.js';
4
4
  import 'phecda-core';
5
- import '../../meta-BoS1E-Nz.js';
5
+ import '../../meta-C_eDyXnK.js';
6
6
 
7
7
  interface RedisCtx extends RpcCtx {
8
8
  type: 'redis';
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXKK2SQ7Wjs = require('../../chunk-XKK2SQ7W.js');
5
+ var _chunkOV3UJLGPjs = require('../../chunk-OV3UJLGP.js');
6
6
 
7
7
 
8
8
 
@@ -13,19 +13,19 @@ var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
13
13
  var debug = _debug2.default.call(void 0, "phecda-server/redis");
14
14
  function bind({ sub, pub }, { moduleMap, meta }, opts = {}) {
15
15
  const { globalGuards, globalFilter, globalPipe, globalAddons = [], defaultQueue } = opts;
16
- const metaMap = _chunkXKK2SQ7Wjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
16
+ const metaMap = _chunkOV3UJLGPjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
17
17
  const { controller, rpc, func, tag } = meta2.data;
18
18
  if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
19
19
  debug(`register method "${func}" in module "${tag}"`);
20
20
  return true;
21
21
  }
22
22
  });
23
- _chunkXKK2SQ7Wjs.detectAopDep.call(void 0, meta, {
23
+ _chunkOV3UJLGPjs.detectAopDep.call(void 0, meta, {
24
24
  guards: globalGuards,
25
25
  addons: globalAddons
26
26
  }, "rpc");
27
27
  const existQueue = /* @__PURE__ */ new Set();
28
- _chunkXKK2SQ7Wjs.Context.applyAddons(globalAddons, {
28
+ _chunkOV3UJLGPjs.Context.applyAddons(globalAddons, {
29
29
  pub,
30
30
  sub
31
31
  }, "redis");
@@ -54,12 +54,12 @@ function bind({ sub, pub }, { moduleMap, meta }, opts = {}) {
54
54
  if (_ps !== 1) return;
55
55
  const meta2 = metaMap.get(tag)[func];
56
56
  const { data: { rpc: { isEvent } = {} } } = meta2;
57
- const aop = _chunkXKK2SQ7Wjs.Context.getAop(meta2, {
57
+ const aop = _chunkOV3UJLGPjs.Context.getAop(meta2, {
58
58
  globalFilter,
59
59
  globalGuards,
60
60
  globalPipe
61
61
  });
62
- const context = new (0, _chunkXKK2SQ7Wjs.Context)({
62
+ const context = new (0, _chunkOV3UJLGPjs.Context)({
63
63
  type: "redis",
64
64
  category: "rpc",
65
65
  moduleMap,
@@ -2,7 +2,7 @@ import {
2
2
  Context,
3
3
  createControllerMetaMap,
4
4
  detectAopDep
5
- } from "../../chunk-E7EAPAGM.mjs";
5
+ } from "../../chunk-P3CS65OP.mjs";
6
6
  import {
7
7
  HMR,
8
8
  __name
@@ -1,8 +1,8 @@
1
1
  import WS from 'ws';
2
- import { F as Factory } from '../../core-DbqWh47p.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-E-rqlg3-.mjs';
2
+ import { F as Factory } from '../../core-B5yKYkMJ.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-7-m2wEkP.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-BoS1E-Nz.mjs';
5
+ import '../../meta-C_eDyXnK.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-Rq7BhPHE.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CInz3bD0.js';
2
+ import { F as Factory } from '../../core-BRuvL6hY.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-B6aU8oT-.js';
4
4
  import 'phecda-core';
5
- import '../../meta-BoS1E-Nz.js';
5
+ import '../../meta-C_eDyXnK.js';
6
6
 
7
7
  interface WsCtx extends RpcCtx {
8
8
  type: 'ws';
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXKK2SQ7Wjs = require('../../chunk-XKK2SQ7W.js');
5
+ var _chunkOV3UJLGPjs = require('../../chunk-OV3UJLGP.js');
6
6
 
7
7
 
8
8
  var _chunk4LLLQOMFjs = require('../../chunk-4LLLQOMF.js');
@@ -13,14 +13,14 @@ var debug = _debug2.default.call(void 0, "phecda-server/ws");
13
13
  function bind(wss, data, opts = {}) {
14
14
  const { globalGuards, globalAddons, globalFilter, globalPipe } = opts;
15
15
  const { moduleMap, meta } = data;
16
- const metaMap = _chunkXKK2SQ7Wjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
16
+ const metaMap = _chunkOV3UJLGPjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
17
17
  const { controller, rpc, func, tag } = meta2.data;
18
18
  if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
19
19
  debug(`register method "${func}" in module "${tag}"`);
20
20
  return true;
21
21
  }
22
22
  });
23
- _chunkXKK2SQ7Wjs.detectAopDep.call(void 0, meta, {
23
+ _chunkOV3UJLGPjs.detectAopDep.call(void 0, meta, {
24
24
  guards: globalGuards,
25
25
  addons: globalAddons
26
26
  }, "rpc");
@@ -32,12 +32,12 @@ function bind(wss, data, opts = {}) {
32
32
  if (_ps !== 1) return;
33
33
  const meta2 = metaMap.get(tag)[func];
34
34
  const { data: { rpc: { isEvent } = {} } } = meta2;
35
- const aop = _chunkXKK2SQ7Wjs.Context.getAop(meta2, {
35
+ const aop = _chunkOV3UJLGPjs.Context.getAop(meta2, {
36
36
  globalFilter,
37
37
  globalGuards,
38
38
  globalPipe
39
39
  });
40
- const context = new (0, _chunkXKK2SQ7Wjs.Context)({
40
+ const context = new (0, _chunkOV3UJLGPjs.Context)({
41
41
  type: "ws",
42
42
  category: "rpc",
43
43
  meta: meta2,
@@ -2,7 +2,7 @@ import {
2
2
  Context,
3
3
  createControllerMetaMap,
4
4
  detectAopDep
5
- } from "../../chunk-E7EAPAGM.mjs";
5
+ } from "../../chunk-P3CS65OP.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "../../chunk-NQ55PA2X.mjs";
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-DbqWh47p.mjs';
6
- import { C as CustomResponse } from './meta-BoS1E-Nz.mjs';
5
+ import { F as Factory } from './core-B5yKYkMJ.mjs';
6
+ import { C as CustomResponse } from './meta-C_eDyXnK.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-Rq7BhPHE.js';
6
- import { C as CustomResponse } from './meta-BoS1E-Nz.js';
5
+ import { F as Factory } from './core-BRuvL6hY.js';
6
+ import { C as CustomResponse } from './meta-C_eDyXnK.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;
package/dist/test.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
2
2
 
3
- var _chunkZWPOWMZPjs = require('./chunk-ZWPOWMZP.js');
3
+ var _chunkJTSD2LIGjs = require('./chunk-JTSD2LIG.js');
4
4
 
5
5
 
6
6
  var _chunk4LLLQOMFjs = require('./chunk-4LLLQOMF.js');
@@ -8,7 +8,7 @@ var _chunk4LLLQOMFjs = require('./chunk-4LLLQOMF.js');
8
8
  // src/test.ts
9
9
  var _phecdacore = require('phecda-core');
10
10
  async function TestFactory(...Modules) {
11
- const { moduleMap, modelMap } = await _chunkZWPOWMZPjs.Factory.call(void 0, Modules);
11
+ const { moduleMap, modelMap } = await _chunkJTSD2LIGjs.Factory.call(void 0, Modules);
12
12
  return {
13
13
  get(Model) {
14
14
  const tag = _phecdacore.getTag.call(void 0, Model);
package/dist/test.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Factory
3
- } from "./chunk-AIAO6SV6.mjs";
3
+ } from "./chunk-TQSHE4PZ.mjs";
4
4
  import {
5
5
  __name
6
6
  } from "./chunk-NQ55PA2X.mjs";
@@ -1,4 +1,4 @@
1
- import { B as BaseCtx, D as DefaultOptions } from './meta-BoS1E-Nz.mjs';
1
+ import { B as BaseCtx, D as DefaultOptions } from './meta-C_eDyXnK.mjs';
2
2
 
3
3
  interface RpcServerOptions extends DefaultOptions {
4
4
  defaultQueue?: string;
@@ -1,4 +1,4 @@
1
- import { B as BaseCtx, D as DefaultOptions } from './meta-BoS1E-Nz.js';
1
+ import { B as BaseCtx, D as DefaultOptions } from './meta-C_eDyXnK.js';
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-BoS1E-Nz.mjs';
2
+ import { B as BaseCtx, D as DefaultOptions } from './meta-C_eDyXnK.mjs';
3
3
 
4
4
  interface HttpOptions extends DefaultOptions {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
2
- import { B as BaseCtx, D as DefaultOptions } from './meta-BoS1E-Nz.js';
2
+ import { B as BaseCtx, D as DefaultOptions } from './meta-C_eDyXnK.js';
3
3
 
4
4
  interface HttpOptions extends DefaultOptions {
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-server",
3
- "version": "7.0.2",
3
+ "version": "7.1.1",
4
4
  "description": "server framework that provide IOC/type-reuse/http&rpc-adaptor",
5
5
  "author": "fgsreally",
6
6
  "license": "MIT",
@@ -159,7 +159,7 @@
159
159
  "picocolors": "^1.0.0",
160
160
  "reflect-metadata": "^0.1.13",
161
161
  "ts-mixer": "^6.0.4",
162
- "phecda-core": "4.3.0"
162
+ "phecda-core": "4.5.0"
163
163
  },
164
164
  "devDependencies": {
165
165
  "@koa/router": "^12.0.1",
@@ -27,4 +27,8 @@ export default ['Addon', 'Arg', 'Assign', 'BadGatewayException', 'BadRequestExce
27
27
  'setInject',
28
28
  'setLogger',
29
29
  'setMeta',
30
- 'useS', 'wait', 'OneFile', 'ManyFiles']
30
+ 'useS', 'wait', 'OneFile', 'ManyFiles',
31
+ 'Rule','Required','Optional','Doc','DocGenerator'
32
+
33
+
34
+ ]