phecda-server 6.0.1 → 6.1.0

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 (80) hide show
  1. package/dist/{chunk-YUXERDQ6.mjs → chunk-2CFYUXPM.mjs} +9 -12
  2. package/dist/{chunk-HDQAT2IM.mjs → chunk-3H3T54IC.mjs} +116 -87
  3. package/dist/{chunk-TZYATAJX.js → chunk-DVTBLV6I.js} +62 -65
  4. package/dist/{chunk-UXD62LGG.mjs → chunk-G7TD2VB7.mjs} +10 -2
  5. package/dist/{chunk-F3W3NN7F.mjs → chunk-J7B24YSE.mjs} +1 -1
  6. package/dist/{chunk-XCND2QW3.js → chunk-JDV2XJYE.js} +25 -25
  7. package/dist/chunk-NL6QBQAR.js +266 -0
  8. package/dist/{chunk-GHFSIZUO.js → chunk-TVT62GIX.js} +11 -3
  9. package/dist/core-BlN0Spy9.d.ts +47 -0
  10. package/dist/core-P1CsH6jz.d.mts +47 -0
  11. package/dist/helper.d.mts +1 -1
  12. package/dist/helper.d.ts +1 -1
  13. package/dist/helper.js +3 -3
  14. package/dist/helper.mjs +2 -2
  15. package/dist/index.d.mts +12 -11
  16. package/dist/index.d.ts +12 -11
  17. package/dist/index.js +49 -43
  18. package/dist/index.mjs +19 -13
  19. package/dist/{types-BlIBlnVT.d.ts → meta-KtfiBIde.d.mts} +44 -44
  20. package/dist/{types-BlIBlnVT.d.mts → meta-KtfiBIde.d.ts} +44 -44
  21. package/dist/rpc/bullmq/index.d.mts +3 -3
  22. package/dist/rpc/bullmq/index.d.ts +3 -3
  23. package/dist/rpc/bullmq/index.js +12 -12
  24. package/dist/rpc/bullmq/index.mjs +2 -2
  25. package/dist/rpc/kafka/index.d.mts +3 -3
  26. package/dist/rpc/kafka/index.d.ts +3 -3
  27. package/dist/rpc/kafka/index.js +12 -12
  28. package/dist/rpc/kafka/index.mjs +2 -2
  29. package/dist/rpc/nats/index.d.mts +3 -3
  30. package/dist/rpc/nats/index.d.ts +3 -3
  31. package/dist/rpc/nats/index.js +11 -11
  32. package/dist/rpc/nats/index.mjs +2 -2
  33. package/dist/rpc/rabbitmq/index.d.mts +3 -3
  34. package/dist/rpc/rabbitmq/index.d.ts +3 -3
  35. package/dist/rpc/rabbitmq/index.js +13 -13
  36. package/dist/rpc/rabbitmq/index.mjs +2 -2
  37. package/dist/rpc/redis/index.d.mts +3 -3
  38. package/dist/rpc/redis/index.d.ts +3 -3
  39. package/dist/rpc/redis/index.js +11 -11
  40. package/dist/rpc/redis/index.mjs +2 -2
  41. package/dist/server/elysia/index.d.mts +3 -3
  42. package/dist/server/elysia/index.d.ts +3 -3
  43. package/dist/server/elysia/index.js +44 -32
  44. package/dist/server/elysia/index.mjs +17 -5
  45. package/dist/server/express/index.d.mts +3 -3
  46. package/dist/server/express/index.d.ts +3 -3
  47. package/dist/server/express/index.js +34 -30
  48. package/dist/server/express/index.mjs +8 -4
  49. package/dist/server/fastify/index.d.mts +3 -3
  50. package/dist/server/fastify/index.d.ts +3 -3
  51. package/dist/server/fastify/index.js +35 -31
  52. package/dist/server/fastify/index.mjs +9 -5
  53. package/dist/server/h3/index.d.mts +3 -3
  54. package/dist/server/h3/index.d.ts +3 -3
  55. package/dist/server/h3/index.js +34 -30
  56. package/dist/server/h3/index.mjs +8 -4
  57. package/dist/server/hono/index.d.mts +3 -3
  58. package/dist/server/hono/index.d.ts +3 -3
  59. package/dist/server/hono/index.js +33 -29
  60. package/dist/server/hono/index.mjs +8 -4
  61. package/dist/server/hyper-express/index.d.mts +3 -3
  62. package/dist/server/hyper-express/index.d.ts +3 -3
  63. package/dist/server/hyper-express/index.js +33 -29
  64. package/dist/server/hyper-express/index.mjs +8 -4
  65. package/dist/server/koa/index.d.mts +3 -3
  66. package/dist/server/koa/index.d.ts +3 -3
  67. package/dist/server/koa/index.js +34 -30
  68. package/dist/server/koa/index.mjs +8 -4
  69. package/dist/test.d.mts +3 -3
  70. package/dist/test.d.ts +3 -3
  71. package/dist/test.js +6 -6
  72. package/dist/test.mjs +2 -2
  73. package/dist/{types-BCJhmpQh.d.ts → types-BvD3B5Ny.d.mts} +4 -2
  74. package/dist/{types-Dgxirc9f.d.mts → types-DIw7B6Up.d.ts} +4 -2
  75. package/dist/{types-B-ZFZajI.d.ts → types-JVT0mgLD.d.ts} +1 -1
  76. package/dist/{types-AgVwUXPC.d.mts → types-t9D1fU6G.d.mts} +1 -1
  77. package/package.json +2 -2
  78. package/dist/chunk-LYEZ6RGX.js +0 -237
  79. package/dist/core-Blq8frmr.d.ts +0 -30
  80. package/dist/core-D2oL8Ge0.d.mts +0 -30
@@ -1,30 +0,0 @@
1
- import { Construct } from 'phecda-core';
2
- import { M as MetaData, h as Meta, E as Emitter } from './types-BlIBlnVT.js';
3
-
4
- declare abstract class Generator {
5
- private _path;
6
- constructor(path?: string);
7
- abstract name: string;
8
- get path(): string;
9
- abstract generateCode(meta: MetaData[]): string;
10
- output(meta: Meta[]): Promise<void>;
11
- }
12
-
13
- declare const emitter: Emitter;
14
- interface Options {
15
- parseModule?: (module: any) => any;
16
- parseMeta?: (meta: Meta) => Meta | null | undefined;
17
- generators?: Generator[];
18
- }
19
- declare function createPhecda(models: Construct[], opts?: Options): Promise<{
20
- moduleMap: Map<PropertyKey, any>;
21
- modelMap: WeakMap<any, Construct>;
22
- meta: Meta[];
23
- add: (Model: Construct) => Promise<void>;
24
- del: (tag: PropertyKey) => Promise<any>;
25
- destroy: () => Promise<void>;
26
- }>;
27
- declare const Factory: typeof createPhecda;
28
- declare function isObject(o: any): boolean;
29
-
30
- export { Factory as F, Generator as G, type Options as O, createPhecda as c, emitter as e, isObject as i };
@@ -1,30 +0,0 @@
1
- import { Construct } from 'phecda-core';
2
- import { M as MetaData, h as Meta, E as Emitter } from './types-BlIBlnVT.mjs';
3
-
4
- declare abstract class Generator {
5
- private _path;
6
- constructor(path?: string);
7
- abstract name: string;
8
- get path(): string;
9
- abstract generateCode(meta: MetaData[]): string;
10
- output(meta: Meta[]): Promise<void>;
11
- }
12
-
13
- declare const emitter: Emitter;
14
- interface Options {
15
- parseModule?: (module: any) => any;
16
- parseMeta?: (meta: Meta) => Meta | null | undefined;
17
- generators?: Generator[];
18
- }
19
- declare function createPhecda(models: Construct[], opts?: Options): Promise<{
20
- moduleMap: Map<PropertyKey, any>;
21
- modelMap: WeakMap<any, Construct>;
22
- meta: Meta[];
23
- add: (Model: Construct) => Promise<void>;
24
- del: (tag: PropertyKey) => Promise<any>;
25
- destroy: () => Promise<void>;
26
- }>;
27
- declare const Factory: typeof createPhecda;
28
- declare function isObject(o: any): boolean;
29
-
30
- export { Factory as F, Generator as G, type Options as O, createPhecda as c, emitter as e, isObject as i };