phecda-server 8.2.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 (77) hide show
  1. package/dist/{chunk-MPKVT4SQ.js → chunk-R73A7HS3.js} +35 -34
  2. package/dist/{chunk-2P2UICBC.mjs → chunk-US2DTB3Z.mjs} +35 -34
  3. package/dist/{core-D1YYphEn.d.mts → core-mOKtuP0F.d.mts} +1 -1
  4. package/dist/{core-BTSHIAyB.d.ts → core-qL97H3d_.d.ts} +1 -1
  5. package/dist/helper.d.mts +1 -1
  6. package/dist/helper.d.ts +1 -1
  7. package/dist/helper.js +2 -2
  8. package/dist/helper.mjs +1 -1
  9. package/dist/http/elysia/index.d.mts +3 -3
  10. package/dist/http/elysia/index.d.ts +3 -3
  11. package/dist/http/elysia/index.js +17 -17
  12. package/dist/http/elysia/index.mjs +1 -1
  13. package/dist/http/express/index.d.mts +3 -3
  14. package/dist/http/express/index.d.ts +3 -3
  15. package/dist/http/express/index.js +16 -16
  16. package/dist/http/express/index.mjs +1 -1
  17. package/dist/http/fastify/index.d.mts +3 -3
  18. package/dist/http/fastify/index.d.ts +3 -3
  19. package/dist/http/fastify/index.js +16 -16
  20. package/dist/http/fastify/index.mjs +1 -1
  21. package/dist/http/h3/index.d.mts +3 -3
  22. package/dist/http/h3/index.d.ts +3 -3
  23. package/dist/http/h3/index.js +17 -17
  24. package/dist/http/h3/index.mjs +1 -1
  25. package/dist/http/hono/index.d.mts +3 -3
  26. package/dist/http/hono/index.d.ts +3 -3
  27. package/dist/http/hono/index.js +14 -14
  28. package/dist/http/hono/index.mjs +1 -1
  29. package/dist/http/hyper-express/index.d.mts +3 -3
  30. package/dist/http/hyper-express/index.d.ts +3 -3
  31. package/dist/http/hyper-express/index.js +15 -15
  32. package/dist/http/hyper-express/index.mjs +1 -1
  33. package/dist/http/koa/index.d.mts +3 -3
  34. package/dist/http/koa/index.d.ts +3 -3
  35. package/dist/http/koa/index.js +16 -16
  36. package/dist/http/koa/index.mjs +1 -1
  37. package/dist/index.d.mts +29 -28
  38. package/dist/index.d.ts +29 -28
  39. package/dist/index.js +20 -20
  40. package/dist/index.mjs +1 -1
  41. package/dist/{meta-DNF6Fl27.d.mts → meta-EGS-4cNY.d.mts} +1 -1
  42. package/dist/{meta-DNF6Fl27.d.ts → meta-EGS-4cNY.d.ts} +1 -1
  43. package/dist/rpc/bullmq/index.d.mts +3 -3
  44. package/dist/rpc/bullmq/index.d.ts +3 -3
  45. package/dist/rpc/bullmq/index.js +6 -6
  46. package/dist/rpc/bullmq/index.mjs +1 -1
  47. package/dist/rpc/electron/index.d.mts +3 -3
  48. package/dist/rpc/electron/index.d.ts +3 -3
  49. package/dist/rpc/electron/index.js +5 -5
  50. package/dist/rpc/electron/index.mjs +1 -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 +6 -6
  54. package/dist/rpc/kafka/index.mjs +1 -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 +6 -6
  58. package/dist/rpc/nats/index.mjs +1 -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 +6 -6
  62. package/dist/rpc/rabbitmq/index.mjs +1 -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 +6 -6
  66. package/dist/rpc/redis/index.mjs +1 -1
  67. package/dist/rpc/ws/index.d.mts +3 -3
  68. package/dist/rpc/ws/index.d.ts +3 -3
  69. package/dist/rpc/ws/index.js +5 -5
  70. package/dist/rpc/ws/index.mjs +1 -1
  71. package/dist/test.d.mts +2 -2
  72. package/dist/test.d.ts +2 -2
  73. package/dist/{types-DtiHAXQB.d.mts → types-BkU6kQWV.d.mts} +1 -1
  74. package/dist/{types-BOZ8yE2L.d.mts → types-CoOCYe_X.d.mts} +1 -1
  75. package/dist/{types-Cosv4nol.d.ts → types-DGUpAXle.d.ts} +1 -1
  76. package/dist/{types-YJ55P7A_.d.ts → types-NkRE3d35.d.ts} +1 -1
  77. package/package.json +1 -1
@@ -2,7 +2,7 @@ import {
2
2
  Context,
3
3
  createControllerMetaMap,
4
4
  detectAopDep
5
- } from "../../chunk-2P2UICBC.mjs";
5
+ } from "../../chunk-US2DTB3Z.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-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';
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkMPKVT4SQjs = require('../../chunk-MPKVT4SQ.js');
5
+ var _chunkR73A7HS3js = require('../../chunk-R73A7HS3.js');
6
6
 
7
7
 
8
8
  var _chunkOUQM7GZHjs = require('../../chunk-OUQM7GZH.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 = _chunkMPKVT4SQjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
16
+ const metaMap = _chunkR73A7HS3js.createControllerMetaMap.call(void 0, meta, (meta2) => {
17
17
  const { controller, rpc, method, tag } = meta2.data;
18
18
  if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
19
19
  debug(`register method "${method}" in module "${tag}"`);
20
20
  return true;
21
21
  }
22
22
  });
23
- _chunkMPKVT4SQjs.detectAopDep.call(void 0, meta, {
23
+ _chunkR73A7HS3js.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)[method];
34
34
  const { data: { rpc: { isEvent } = {} } } = meta2;
35
- const aop = _chunkMPKVT4SQjs.Context.getAop(meta2, {
35
+ const aop = _chunkR73A7HS3js.Context.getAop(meta2, {
36
36
  globalFilter,
37
37
  globalGuards,
38
38
  globalPipe
39
39
  });
40
- const context = new (0, _chunkMPKVT4SQjs.Context)({
40
+ const context = new (0, _chunkR73A7HS3js.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-2P2UICBC.mjs";
5
+ } from "../../chunk-US2DTB3Z.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "../../chunk-JRNXLEAU.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-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.2.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",