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.
- package/assets/ps.json +24 -24
- package/bin/cli.mjs +12 -7
- package/dist/{chunk-P75VKZJY.mjs → chunk-3FHZB3Z5.mjs} +48 -17
- package/dist/{chunk-BGXSMOLX.js → chunk-7YQ57BQS.js} +1 -1
- package/dist/{chunk-SW5IKE5H.js → chunk-NQIFUZL4.js} +47 -16
- package/dist/{chunk-5622RBNB.mjs → chunk-XYVMNY2X.mjs} +1 -1
- package/dist/{core-CYwEPfN4.d.ts → core-C1kHRqU9.d.ts} +1 -1
- package/dist/{core-BIcUwV18.d.mts → core-CSiaRU7r.d.mts} +1 -1
- package/dist/helper.d.mts +1 -1
- package/dist/helper.d.ts +1 -1
- package/dist/helper.js +2 -2
- package/dist/helper.mjs +1 -1
- package/dist/http/elysia/index.d.mts +3 -3
- package/dist/http/elysia/index.d.ts +3 -3
- package/dist/http/elysia/index.js +19 -17
- package/dist/http/elysia/index.mjs +3 -1
- package/dist/http/express/index.d.mts +3 -3
- package/dist/http/express/index.d.ts +3 -3
- package/dist/http/express/index.js +19 -17
- package/dist/http/express/index.mjs +3 -1
- package/dist/http/fastify/index.d.mts +3 -3
- package/dist/http/fastify/index.d.ts +3 -3
- package/dist/http/fastify/index.js +18 -16
- package/dist/http/fastify/index.mjs +3 -1
- package/dist/http/h3/index.d.mts +3 -3
- package/dist/http/h3/index.d.ts +3 -3
- package/dist/http/h3/index.js +18 -16
- package/dist/http/h3/index.mjs +3 -1
- package/dist/http/hono/index.d.mts +3 -3
- package/dist/http/hono/index.d.ts +3 -3
- package/dist/http/hono/index.js +17 -15
- package/dist/http/hono/index.mjs +3 -1
- package/dist/http/hyper-express/index.d.mts +3 -3
- package/dist/http/hyper-express/index.d.ts +3 -3
- package/dist/http/hyper-express/index.js +17 -15
- package/dist/http/hyper-express/index.mjs +3 -1
- package/dist/http/koa/index.d.mts +3 -3
- package/dist/http/koa/index.d.ts +3 -3
- package/dist/http/koa/index.js +19 -17
- package/dist/http/koa/index.mjs +3 -1
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +21 -21
- package/dist/index.mjs +3 -3
- package/dist/{meta-BXKLFTgG.d.mts → meta-D1M85Hef.d.mts} +1 -0
- package/dist/{meta-BXKLFTgG.d.ts → meta-D1M85Hef.d.ts} +1 -0
- package/dist/rpc/bullmq/index.d.mts +3 -3
- package/dist/rpc/bullmq/index.d.ts +3 -3
- package/dist/rpc/bullmq/index.js +9 -8
- package/dist/rpc/bullmq/index.mjs +2 -1
- package/dist/rpc/kafka/index.d.mts +3 -3
- package/dist/rpc/kafka/index.d.ts +3 -3
- package/dist/rpc/kafka/index.js +8 -7
- package/dist/rpc/kafka/index.mjs +2 -1
- package/dist/rpc/nats/index.d.mts +3 -3
- package/dist/rpc/nats/index.d.ts +3 -3
- package/dist/rpc/nats/index.js +8 -7
- package/dist/rpc/nats/index.mjs +2 -1
- package/dist/rpc/rabbitmq/index.d.mts +3 -3
- package/dist/rpc/rabbitmq/index.d.ts +3 -3
- package/dist/rpc/rabbitmq/index.js +9 -8
- package/dist/rpc/rabbitmq/index.mjs +2 -1
- package/dist/rpc/redis/index.d.mts +3 -3
- package/dist/rpc/redis/index.d.ts +3 -3
- package/dist/rpc/redis/index.js +9 -8
- package/dist/rpc/redis/index.mjs +2 -1
- package/dist/test.d.mts +3 -3
- package/dist/test.d.ts +3 -3
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/{types-BtbL49Zs.d.mts → types-C9Remkup.d.ts} +2 -1
- package/dist/{types-m3IEDKjP.d.ts → types-JMhFVp-Z.d.mts} +2 -1
- package/dist/{types-VFzEM7LL.d.ts → types-ee1FBodH.d.ts} +2 -1
- package/dist/{types-h40T3cRG.d.mts → types-wbHHC93P.d.mts} +2 -1
- package/package.json +1 -1
- package/register/loader.mjs +366 -367
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DefaultOptions, B as BaseContext } from './meta-
|
|
1
|
+
import { D as DefaultOptions, B as BaseContext } from './meta-D1M85Hef.js';
|
|
2
2
|
|
|
3
3
|
interface RpcServerOptions extends DefaultOptions {
|
|
4
4
|
defaultQueue?: string;
|
|
@@ -13,6 +13,7 @@ interface RpcContext extends BaseContext {
|
|
|
13
13
|
id: string;
|
|
14
14
|
queue: string;
|
|
15
15
|
isEvent?: boolean;
|
|
16
|
+
category: 'rpc';
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export type { RpcContext as R, RpcServerOptions as a, RpcClientOptions as b };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DefaultOptions, B as BaseContext } from './meta-
|
|
1
|
+
import { D as DefaultOptions, B as BaseContext } from './meta-D1M85Hef.mjs';
|
|
2
2
|
|
|
3
3
|
interface RpcServerOptions extends DefaultOptions {
|
|
4
4
|
defaultQueue?: string;
|
|
@@ -13,6 +13,7 @@ interface RpcContext extends BaseContext {
|
|
|
13
13
|
id: string;
|
|
14
14
|
queue: string;
|
|
15
15
|
isEvent?: boolean;
|
|
16
|
+
category: 'rpc';
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export type { RpcContext as R, RpcServerOptions as a, RpcClientOptions as b };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import { D as DefaultOptions, B as BaseContext } from './meta-
|
|
2
|
+
import { D as DefaultOptions, B as BaseContext } from './meta-D1M85Hef.js';
|
|
3
3
|
|
|
4
4
|
interface HttpOptions extends DefaultOptions {
|
|
5
5
|
/**
|
|
@@ -22,6 +22,7 @@ interface HttpContext extends BaseContext {
|
|
|
22
22
|
params: Record<string, string>;
|
|
23
23
|
body: Record<string, any>;
|
|
24
24
|
headers: IncomingHttpHeaders;
|
|
25
|
+
category: 'http';
|
|
25
26
|
redirect: (url: string, status?: number) => void;
|
|
26
27
|
getCookie(key: string): string | undefined;
|
|
27
28
|
setCookie(key: string, value: string, opts?: CookieSerializeOptions): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import { D as DefaultOptions, B as BaseContext } from './meta-
|
|
2
|
+
import { D as DefaultOptions, B as BaseContext } from './meta-D1M85Hef.mjs';
|
|
3
3
|
|
|
4
4
|
interface HttpOptions extends DefaultOptions {
|
|
5
5
|
/**
|
|
@@ -22,6 +22,7 @@ interface HttpContext extends BaseContext {
|
|
|
22
22
|
params: Record<string, string>;
|
|
23
23
|
body: Record<string, any>;
|
|
24
24
|
headers: IncomingHttpHeaders;
|
|
25
|
+
category: 'http';
|
|
25
26
|
redirect: (url: string, status?: number) => void;
|
|
26
27
|
getCookie(key: string): string | undefined;
|
|
27
28
|
setCookie(key: string, value: string, opts?: CookieSerializeOptions): void;
|