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.
- package/dist/{chunk-YUXERDQ6.mjs → chunk-2CFYUXPM.mjs} +9 -12
- package/dist/{chunk-HDQAT2IM.mjs → chunk-3H3T54IC.mjs} +116 -87
- package/dist/{chunk-TZYATAJX.js → chunk-DVTBLV6I.js} +62 -65
- package/dist/{chunk-UXD62LGG.mjs → chunk-G7TD2VB7.mjs} +10 -2
- package/dist/{chunk-F3W3NN7F.mjs → chunk-J7B24YSE.mjs} +1 -1
- package/dist/{chunk-XCND2QW3.js → chunk-JDV2XJYE.js} +25 -25
- package/dist/chunk-NL6QBQAR.js +266 -0
- package/dist/{chunk-GHFSIZUO.js → chunk-TVT62GIX.js} +11 -3
- package/dist/core-BlN0Spy9.d.ts +47 -0
- package/dist/core-P1CsH6jz.d.mts +47 -0
- package/dist/helper.d.mts +1 -1
- package/dist/helper.d.ts +1 -1
- package/dist/helper.js +3 -3
- package/dist/helper.mjs +2 -2
- package/dist/index.d.mts +12 -11
- package/dist/index.d.ts +12 -11
- package/dist/index.js +49 -43
- package/dist/index.mjs +19 -13
- package/dist/{types-BlIBlnVT.d.ts → meta-KtfiBIde.d.mts} +44 -44
- package/dist/{types-BlIBlnVT.d.mts → meta-KtfiBIde.d.ts} +44 -44
- package/dist/rpc/bullmq/index.d.mts +3 -3
- package/dist/rpc/bullmq/index.d.ts +3 -3
- package/dist/rpc/bullmq/index.js +12 -12
- package/dist/rpc/bullmq/index.mjs +2 -2
- package/dist/rpc/kafka/index.d.mts +3 -3
- package/dist/rpc/kafka/index.d.ts +3 -3
- package/dist/rpc/kafka/index.js +12 -12
- package/dist/rpc/kafka/index.mjs +2 -2
- package/dist/rpc/nats/index.d.mts +3 -3
- package/dist/rpc/nats/index.d.ts +3 -3
- package/dist/rpc/nats/index.js +11 -11
- package/dist/rpc/nats/index.mjs +2 -2
- package/dist/rpc/rabbitmq/index.d.mts +3 -3
- package/dist/rpc/rabbitmq/index.d.ts +3 -3
- package/dist/rpc/rabbitmq/index.js +13 -13
- package/dist/rpc/rabbitmq/index.mjs +2 -2
- package/dist/rpc/redis/index.d.mts +3 -3
- package/dist/rpc/redis/index.d.ts +3 -3
- package/dist/rpc/redis/index.js +11 -11
- package/dist/rpc/redis/index.mjs +2 -2
- package/dist/server/elysia/index.d.mts +3 -3
- package/dist/server/elysia/index.d.ts +3 -3
- package/dist/server/elysia/index.js +44 -32
- package/dist/server/elysia/index.mjs +17 -5
- package/dist/server/express/index.d.mts +3 -3
- package/dist/server/express/index.d.ts +3 -3
- package/dist/server/express/index.js +34 -30
- package/dist/server/express/index.mjs +8 -4
- package/dist/server/fastify/index.d.mts +3 -3
- package/dist/server/fastify/index.d.ts +3 -3
- package/dist/server/fastify/index.js +35 -31
- package/dist/server/fastify/index.mjs +9 -5
- package/dist/server/h3/index.d.mts +3 -3
- package/dist/server/h3/index.d.ts +3 -3
- package/dist/server/h3/index.js +34 -30
- package/dist/server/h3/index.mjs +8 -4
- package/dist/server/hono/index.d.mts +3 -3
- package/dist/server/hono/index.d.ts +3 -3
- package/dist/server/hono/index.js +33 -29
- package/dist/server/hono/index.mjs +8 -4
- package/dist/server/hyper-express/index.d.mts +3 -3
- package/dist/server/hyper-express/index.d.ts +3 -3
- package/dist/server/hyper-express/index.js +33 -29
- package/dist/server/hyper-express/index.mjs +8 -4
- package/dist/server/koa/index.d.mts +3 -3
- package/dist/server/koa/index.d.ts +3 -3
- package/dist/server/koa/index.js +34 -30
- package/dist/server/koa/index.mjs +8 -4
- package/dist/test.d.mts +3 -3
- package/dist/test.d.ts +3 -3
- package/dist/test.js +6 -6
- package/dist/test.mjs +2 -2
- package/dist/{types-BCJhmpQh.d.ts → types-BvD3B5Ny.d.mts} +4 -2
- package/dist/{types-Dgxirc9f.d.mts → types-DIw7B6Up.d.ts} +4 -2
- package/dist/{types-B-ZFZajI.d.ts → types-JVT0mgLD.d.ts} +1 -1
- package/dist/{types-AgVwUXPC.d.mts → types-t9D1fU6G.d.mts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-LYEZ6RGX.js +0 -237
- package/dist/core-Blq8frmr.d.ts +0 -30
- package/dist/core-D2oL8Ge0.d.mts +0 -30
package/dist/core-Blq8frmr.d.ts
DELETED
|
@@ -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 };
|
package/dist/core-D2oL8Ge0.d.mts
DELETED
|
@@ -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 };
|