phecda-server 7.0.0-alpha.4 → 7.0.0-alpha.5
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-MMG73S64.mjs → chunk-2ESEXJQM.mjs} +1 -1
- package/dist/{chunk-A53KNKY4.mjs → chunk-3ISYBU3P.mjs} +33 -3
- package/dist/{chunk-6EBEME3I.js → chunk-K54JYYXK.js} +51 -51
- package/dist/{chunk-RQSQRZL4.js → chunk-KFFS2P7I.js} +3 -1
- package/dist/{chunk-KUGFI6SC.mjs → chunk-PXLG75ED.mjs} +1 -1
- package/dist/{chunk-PKSWGQLW.js → chunk-TR5Z4SDI.js} +50 -20
- package/dist/{chunk-QD3QR3NW.mjs → chunk-UXGJD2PK.mjs} +2 -0
- package/dist/{chunk-QCOBXM7F.js → chunk-Y2OLA5OJ.js} +24 -24
- package/dist/{core-C1kHRqU9.d.ts → core-CzElxZoF.d.ts} +2 -1
- package/dist/{core-CSiaRU7r.d.mts → core-DU7gQKSk.d.mts} +2 -1
- 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/http/elysia/index.d.mts +3 -3
- package/dist/http/elysia/index.d.ts +3 -3
- package/dist/http/elysia/index.js +40 -40
- package/dist/http/elysia/index.mjs +3 -3
- package/dist/http/express/index.d.mts +3 -3
- package/dist/http/express/index.d.ts +3 -3
- package/dist/http/express/index.js +37 -37
- package/dist/http/express/index.mjs +2 -2
- package/dist/http/fastify/index.d.mts +3 -3
- package/dist/http/fastify/index.d.ts +3 -3
- package/dist/http/fastify/index.js +38 -38
- package/dist/http/fastify/index.mjs +3 -3
- package/dist/http/h3/index.d.mts +3 -3
- package/dist/http/h3/index.d.ts +3 -3
- package/dist/http/h3/index.js +37 -37
- package/dist/http/h3/index.mjs +2 -2
- package/dist/http/hono/index.d.mts +3 -3
- package/dist/http/hono/index.d.ts +3 -3
- package/dist/http/hono/index.js +35 -35
- package/dist/http/hono/index.mjs +2 -2
- 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 +35 -35
- package/dist/http/hyper-express/index.mjs +2 -2
- package/dist/http/koa/index.d.mts +3 -3
- package/dist/http/koa/index.d.ts +3 -3
- package/dist/http/koa/index.js +37 -37
- package/dist/http/koa/index.mjs +2 -2
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +40 -38
- package/dist/index.mjs +6 -4
- package/dist/{meta-D1M85Hef.d.ts → meta-BTnLXuCa.d.mts} +2 -1
- package/dist/{meta-D1M85Hef.d.mts → meta-BTnLXuCa.d.ts} +2 -1
- package/dist/rpc/bullmq/index.d.mts +3 -3
- package/dist/rpc/bullmq/index.d.ts +3 -3
- package/dist/rpc/bullmq/index.js +14 -14
- 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 +14 -14
- 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 +13 -13
- 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 +15 -15
- 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 +13 -13
- package/dist/rpc/redis/index.mjs +2 -2
- package/dist/test.d.mts +2 -2
- package/dist/test.d.ts +2 -2
- package/dist/test.js +6 -6
- package/dist/test.mjs +2 -2
- package/dist/{types-ee1FBodH.d.ts → types--E-OCZhC.d.ts} +1 -1
- package/dist/{types-JMhFVp-Z.d.mts → types-BYqBeqrs.d.mts} +1 -1
- package/dist/{types-wbHHC93P.d.mts → types-BxlzVoRv.d.mts} +1 -1
- package/dist/{types-C9Remkup.d.ts → types-CbfaGkPA.d.ts} +1 -1
- package/package.json +1 -1
- package/register/loader.mjs +2 -1
- package/register/utils.mjs +56 -56
package/dist/http/hono/index.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkK54JYYXKjs = require('../../chunk-K54JYYXK.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKFFS2P7Ijs = require('../../chunk-KFFS2P7I.js');
|
|
11
11
|
|
|
12
12
|
// src/http/hono/bind.ts
|
|
13
13
|
var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
|
|
@@ -17,14 +17,14 @@ var debug = _debug2.default.call(void 0, "phecda-server/hono");
|
|
|
17
17
|
function bind(router, data, opts = {}) {
|
|
18
18
|
const { globalGuards, parallelRoute = "/__PHECDA_SERVER__", globalAddons = [], parallelAddons = [], globalFilter, globalPipe, dynamic = false } = opts;
|
|
19
19
|
const { moduleMap, meta } = data;
|
|
20
|
-
const metaMap =
|
|
20
|
+
const metaMap = _chunkK54JYYXKjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
21
21
|
const { controller, http, func, tag } = meta2.data;
|
|
22
22
|
if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.type])) {
|
|
23
23
|
debug(`register method "${func}" in module "${tag}"`);
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
_chunkK54JYYXKjs.detectAopDep.call(void 0, meta, {
|
|
28
28
|
addons: [
|
|
29
29
|
...globalAddons,
|
|
30
30
|
...parallelAddons
|
|
@@ -35,26 +35,26 @@ function bind(router, data, opts = {}) {
|
|
|
35
35
|
function registerRoute() {
|
|
36
36
|
if (parallelRoute) {
|
|
37
37
|
const subApp = new (0, _hono.Hono)();
|
|
38
|
-
|
|
38
|
+
_chunkK54JYYXKjs.Context.applyAddons(parallelAddons, subApp, "hono");
|
|
39
39
|
subApp.post("", async (c) => {
|
|
40
40
|
const body = await c.req.json();
|
|
41
41
|
async function errorHandler(e) {
|
|
42
|
-
const error = await
|
|
42
|
+
const error = await _chunkK54JYYXKjs.Context.filterRecord.default(e);
|
|
43
43
|
c.status(error.status);
|
|
44
44
|
return c.json(error);
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
if (!Array.isArray(body)) return errorHandler(new (0,
|
|
46
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, errorHandler, "errorHandler");
|
|
47
|
+
if (!Array.isArray(body)) return errorHandler(new (0, _chunkK54JYYXKjs.BadRequestException)("data format should be an array"));
|
|
48
48
|
try {
|
|
49
49
|
return Promise.all(body.map((item, i) => {
|
|
50
50
|
return new Promise(async (resolve) => {
|
|
51
51
|
const { tag, func } = item;
|
|
52
52
|
debug(`(parallel)invoke method "${func}" in module "${tag}"`);
|
|
53
|
-
if (!metaMap.has(tag)) return resolve(await
|
|
53
|
+
if (!metaMap.has(tag)) return resolve(await _chunkK54JYYXKjs.Context.filterRecord.default(new (0, _chunkK54JYYXKjs.BadRequestException)(`module "${tag}" doesn't exist`)));
|
|
54
54
|
const meta2 = metaMap.get(tag)[func];
|
|
55
|
-
if (!meta2) return resolve(await
|
|
55
|
+
if (!meta2) return resolve(await _chunkK54JYYXKjs.Context.filterRecord.default(new (0, _chunkK54JYYXKjs.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
|
|
56
56
|
const { data: { params } } = meta2;
|
|
57
|
-
const aop =
|
|
57
|
+
const aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
58
58
|
globalFilter,
|
|
59
59
|
globalGuards,
|
|
60
60
|
globalPipe
|
|
@@ -70,19 +70,19 @@ function bind(router, data, opts = {}) {
|
|
|
70
70
|
tag,
|
|
71
71
|
func,
|
|
72
72
|
app: router,
|
|
73
|
-
...
|
|
74
|
-
getCookie: /* @__PURE__ */
|
|
75
|
-
delCookie: /* @__PURE__ */
|
|
76
|
-
setCookie: /* @__PURE__ */
|
|
77
|
-
redirect: /* @__PURE__ */
|
|
78
|
-
setResHeaders: /* @__PURE__ */
|
|
73
|
+
..._chunkK54JYYXKjs.argToReq.call(void 0, params, item.args, c.req.header()),
|
|
74
|
+
getCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => _cookie.getCookie.call(void 0, c, key), "getCookie"),
|
|
75
|
+
delCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => _cookie.deleteCookie.call(void 0, c, key), "delCookie"),
|
|
76
|
+
setCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key, value, opts2) => _cookie.setCookie.call(void 0, c, key, value, opts2), "setCookie"),
|
|
77
|
+
redirect: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (url) => c.redirect(url), "redirect"),
|
|
78
|
+
setResHeaders: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (headers) => {
|
|
79
79
|
for (const name in headers) c.header(name, headers[name]);
|
|
80
80
|
}, "setResHeaders"),
|
|
81
|
-
setResStatus: /* @__PURE__ */
|
|
82
|
-
getRequest: /* @__PURE__ */
|
|
83
|
-
getResponse: /* @__PURE__ */
|
|
81
|
+
setResStatus: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (status) => c.status(status), "setResStatus"),
|
|
82
|
+
getRequest: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => c.req.raw, "getRequest"),
|
|
83
|
+
getResponse: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => c.res, "getResponse")
|
|
84
84
|
};
|
|
85
|
-
const context = new (0,
|
|
85
|
+
const context = new (0, _chunkK54JYYXKjs.Context)(contextData);
|
|
86
86
|
context.run(aop, resolve, resolve);
|
|
87
87
|
});
|
|
88
88
|
})).then((ret) => {
|
|
@@ -102,14 +102,14 @@ function bind(router, data, opts = {}) {
|
|
|
102
102
|
const needBody = params.some((item) => item.type === "body");
|
|
103
103
|
let aop;
|
|
104
104
|
if (!dynamic) {
|
|
105
|
-
aop =
|
|
105
|
+
aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
106
106
|
globalFilter,
|
|
107
107
|
globalGuards,
|
|
108
108
|
globalPipe
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
const subApp = new (0, _hono.Hono)();
|
|
112
|
-
|
|
112
|
+
_chunkK54JYYXKjs.Context.applyAddons(addons, subApp, "hono");
|
|
113
113
|
subApp[http.type](http.route, async (c) => {
|
|
114
114
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
115
115
|
const contextData = {
|
|
@@ -125,23 +125,23 @@ function bind(router, data, opts = {}) {
|
|
|
125
125
|
params: c.req.param(),
|
|
126
126
|
headers: c.req.header(),
|
|
127
127
|
app: router,
|
|
128
|
-
getCookie: /* @__PURE__ */
|
|
129
|
-
delCookie: /* @__PURE__ */
|
|
130
|
-
setCookie: /* @__PURE__ */
|
|
131
|
-
redirect: /* @__PURE__ */
|
|
132
|
-
setResHeaders: /* @__PURE__ */
|
|
128
|
+
getCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => _cookie.getCookie.call(void 0, c, key), "getCookie"),
|
|
129
|
+
delCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => _cookie.deleteCookie.call(void 0, c, key), "delCookie"),
|
|
130
|
+
setCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key, value, opts2) => _cookie.setCookie.call(void 0, c, key, value, opts2), "setCookie"),
|
|
131
|
+
redirect: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (url) => c.redirect(url), "redirect"),
|
|
132
|
+
setResHeaders: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (headers) => {
|
|
133
133
|
for (const name in headers) c.header(name, headers[name]);
|
|
134
134
|
}, "setResHeaders"),
|
|
135
|
-
setResStatus: /* @__PURE__ */
|
|
136
|
-
getRequest: /* @__PURE__ */
|
|
137
|
-
getResponse: /* @__PURE__ */
|
|
135
|
+
setResStatus: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (status) => c.status(status), "setResStatus"),
|
|
136
|
+
getRequest: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => c.req.raw, "getRequest"),
|
|
137
|
+
getResponse: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => c.res, "getResponse")
|
|
138
138
|
};
|
|
139
|
-
const context = new (0,
|
|
139
|
+
const context = new (0, _chunkK54JYYXKjs.Context)(contextData);
|
|
140
140
|
if (http.headers) {
|
|
141
141
|
for (const name in http.headers) c.header(name, http.headers[name]);
|
|
142
142
|
}
|
|
143
143
|
if (dynamic) {
|
|
144
|
-
aop =
|
|
144
|
+
aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
145
145
|
globalFilter,
|
|
146
146
|
globalGuards,
|
|
147
147
|
globalPipe
|
|
@@ -160,9 +160,9 @@ function bind(router, data, opts = {}) {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, registerRoute, "registerRoute");
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, bind, "bind");
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
exports.bind = bind;
|
package/dist/http/hono/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
argToReq,
|
|
5
5
|
createControllerMetaMap,
|
|
6
6
|
detectAopDep
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-2ESEXJQM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-UXGJD2PK.mjs";
|
|
11
11
|
|
|
12
12
|
// src/http/hono/bind.ts
|
|
13
13
|
import Debug from "debug";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Request, Response, Router, MiddlewareHandler } from 'hyper-express';
|
|
2
|
-
import { H as HttpContext, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
2
|
+
import { H as HttpContext, a as HttpOptions } from '../../types-BxlzVoRv.mjs';
|
|
3
|
+
import { F as Factory } from '../../core-DU7gQKSk.mjs';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-BTnLXuCa.mjs';
|
|
6
6
|
import 'phecda-core';
|
|
7
7
|
|
|
8
8
|
interface HyperExpressCtx extends HttpContext {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Request, Response, Router, MiddlewareHandler } from 'hyper-express';
|
|
2
|
-
import { H as HttpContext, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
2
|
+
import { H as HttpContext, a as HttpOptions } from '../../types--E-OCZhC.js';
|
|
3
|
+
import { F as Factory } from '../../core-CzElxZoF.js';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-BTnLXuCa.js';
|
|
6
6
|
import 'phecda-core';
|
|
7
7
|
|
|
8
8
|
interface HyperExpressCtx extends HttpContext {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkK54JYYXKjs = require('../../chunk-K54JYYXK.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKFFS2P7Ijs = require('../../chunk-KFFS2P7I.js');
|
|
11
11
|
|
|
12
12
|
// src/http/hyper-express/bind.ts
|
|
13
13
|
var _hyperexpress = require('hyper-express');
|
|
@@ -16,14 +16,14 @@ var debug = _debug2.default.call(void 0, "phecda-server/hyper-express");
|
|
|
16
16
|
function bind(router, data, opts = {}) {
|
|
17
17
|
const { globalGuards, parallelRoute = "/__PHECDA_SERVER__", globalAddons = [], parallelAddons = [], globalFilter, globalPipe, dynamic = false } = opts;
|
|
18
18
|
const { moduleMap, meta } = data;
|
|
19
|
-
const metaMap =
|
|
19
|
+
const metaMap = _chunkK54JYYXKjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
20
20
|
const { controller, http, func, tag } = meta2.data;
|
|
21
21
|
if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.type])) {
|
|
22
22
|
debug(`register method "${func}" in module "${tag}"`);
|
|
23
23
|
return true;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
_chunkK54JYYXKjs.detectAopDep.call(void 0, meta, {
|
|
27
27
|
addons: [
|
|
28
28
|
...globalAddons,
|
|
29
29
|
...parallelAddons
|
|
@@ -32,27 +32,27 @@ function bind(router, data, opts = {}) {
|
|
|
32
32
|
});
|
|
33
33
|
registerRoute();
|
|
34
34
|
async function registerRoute() {
|
|
35
|
-
|
|
35
|
+
_chunkK54JYYXKjs.Context.applyAddons(globalAddons, router, "hyper-express");
|
|
36
36
|
if (parallelRoute) {
|
|
37
37
|
const subRouter = new (0, _hyperexpress.Router)();
|
|
38
38
|
subRouter.post(parallelRoute, async (req, res, next) => {
|
|
39
39
|
const body = await req.json();
|
|
40
40
|
async function errorHandler(e) {
|
|
41
|
-
const error = await
|
|
41
|
+
const error = await _chunkK54JYYXKjs.Context.filterRecord.default(e);
|
|
42
42
|
return res.status(error.status).json(error);
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
if (!Array.isArray(body)) return errorHandler(new (0,
|
|
44
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, errorHandler, "errorHandler");
|
|
45
|
+
if (!Array.isArray(body)) return errorHandler(new (0, _chunkK54JYYXKjs.BadRequestException)("data format should be an array"));
|
|
46
46
|
try {
|
|
47
47
|
return Promise.all(body.map((item, i) => {
|
|
48
48
|
return new Promise(async (resolve) => {
|
|
49
49
|
const { tag, func } = item;
|
|
50
50
|
debug(`(parallel)invoke method "${func}" in module "${tag}"`);
|
|
51
|
-
if (!metaMap.has(tag)) return resolve(await
|
|
51
|
+
if (!metaMap.has(tag)) return resolve(await _chunkK54JYYXKjs.Context.filterRecord.default(new (0, _chunkK54JYYXKjs.BadRequestException)(`module "${tag}" doesn't exist`)));
|
|
52
52
|
const meta2 = metaMap.get(tag)[func];
|
|
53
|
-
if (!meta2) return resolve(await
|
|
53
|
+
if (!meta2) return resolve(await _chunkK54JYYXKjs.Context.filterRecord.default(new (0, _chunkK54JYYXKjs.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
|
|
54
54
|
const { data: { params } } = meta2;
|
|
55
|
-
const aop =
|
|
55
|
+
const aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
56
56
|
globalFilter,
|
|
57
57
|
globalGuards,
|
|
58
58
|
globalPipe
|
|
@@ -69,18 +69,18 @@ function bind(router, data, opts = {}) {
|
|
|
69
69
|
tag,
|
|
70
70
|
func,
|
|
71
71
|
app: router,
|
|
72
|
-
...
|
|
72
|
+
..._chunkK54JYYXKjs.argToReq.call(void 0, params, item.args, req.headers),
|
|
73
73
|
next,
|
|
74
|
-
getCookie: /* @__PURE__ */
|
|
75
|
-
setCookie: /* @__PURE__ */
|
|
76
|
-
delCookie: /* @__PURE__ */
|
|
77
|
-
redirect: /* @__PURE__ */
|
|
78
|
-
setResHeaders: /* @__PURE__ */
|
|
79
|
-
setResStatus: /* @__PURE__ */
|
|
80
|
-
getRequest: /* @__PURE__ */
|
|
81
|
-
getResponse: /* @__PURE__ */
|
|
74
|
+
getCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => req.cookies[key], "getCookie"),
|
|
75
|
+
setCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key, value, opts2) => res.cookie(key, value, _optionalChain([opts2, 'optionalAccess', _2 => _2.expires]) && opts2.expires.getTime() - Date.now(), opts2 || {}), "setCookie"),
|
|
76
|
+
delCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => res.clearCookie(key), "delCookie"),
|
|
77
|
+
redirect: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (url) => res.redirect(url), "redirect"),
|
|
78
|
+
setResHeaders: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (headers) => res.set(headers), "setResHeaders"),
|
|
79
|
+
setResStatus: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (code) => res.status(code), "setResStatus"),
|
|
80
|
+
getRequest: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => req, "getRequest"),
|
|
81
|
+
getResponse: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => res, "getResponse")
|
|
82
82
|
};
|
|
83
|
-
const context = new (0,
|
|
83
|
+
const context = new (0, _chunkK54JYYXKjs.Context)(contextData);
|
|
84
84
|
context.run(aop, resolve, resolve);
|
|
85
85
|
});
|
|
86
86
|
})).then((ret) => {
|
|
@@ -100,14 +100,14 @@ function bind(router, data, opts = {}) {
|
|
|
100
100
|
const needBody = params.some((item) => item.type === "body");
|
|
101
101
|
let aop;
|
|
102
102
|
if (!dynamic) {
|
|
103
|
-
aop =
|
|
103
|
+
aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
104
104
|
globalFilter,
|
|
105
105
|
globalGuards,
|
|
106
106
|
globalPipe
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
const subRouter = new (0, _hyperexpress.Router)();
|
|
110
|
-
|
|
110
|
+
_chunkK54JYYXKjs.Context.applyAddons(addons, subRouter, "hyper-express");
|
|
111
111
|
subRouter[http.type](http.prefix + http.route, async (req, res, next) => {
|
|
112
112
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
113
113
|
const contextData = {
|
|
@@ -125,21 +125,21 @@ function bind(router, data, opts = {}) {
|
|
|
125
125
|
params: req.path_parameters,
|
|
126
126
|
headers: req.headers,
|
|
127
127
|
next,
|
|
128
|
-
getCookie: /* @__PURE__ */
|
|
129
|
-
setCookie: /* @__PURE__ */
|
|
130
|
-
delCookie: /* @__PURE__ */
|
|
131
|
-
redirect: /* @__PURE__ */
|
|
132
|
-
setResHeaders: /* @__PURE__ */
|
|
133
|
-
setResStatus: /* @__PURE__ */
|
|
134
|
-
getRequest: /* @__PURE__ */
|
|
135
|
-
getResponse: /* @__PURE__ */
|
|
128
|
+
getCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => req.cookies[key], "getCookie"),
|
|
129
|
+
setCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key, value, opts2) => res.cookie(key, value, _optionalChain([opts2, 'optionalAccess', _4 => _4.expires]) && opts2.expires.getTime() - Date.now(), opts2 || {}), "setCookie"),
|
|
130
|
+
delCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => res.clearCookie(key), "delCookie"),
|
|
131
|
+
redirect: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (url) => res.redirect(url), "redirect"),
|
|
132
|
+
setResHeaders: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (headers) => res.set(headers), "setResHeaders"),
|
|
133
|
+
setResStatus: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (code) => res.status(code), "setResStatus"),
|
|
134
|
+
getRequest: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => req, "getRequest"),
|
|
135
|
+
getResponse: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => res, "getResponse")
|
|
136
136
|
};
|
|
137
|
-
const context = new (0,
|
|
137
|
+
const context = new (0, _chunkK54JYYXKjs.Context)(contextData);
|
|
138
138
|
if (http.headers) {
|
|
139
139
|
for (const name in http.headers) res.set(name, http.headers[name]);
|
|
140
140
|
}
|
|
141
141
|
if (dynamic) {
|
|
142
|
-
aop =
|
|
142
|
+
aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
143
143
|
globalFilter,
|
|
144
144
|
globalGuards,
|
|
145
145
|
globalPipe
|
|
@@ -158,9 +158,9 @@ function bind(router, data, opts = {}) {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, registerRoute, "registerRoute");
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, bind, "bind");
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
exports.bind = bind;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
argToReq,
|
|
5
5
|
createControllerMetaMap,
|
|
6
6
|
detectAopDep
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-2ESEXJQM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-UXGJD2PK.mjs";
|
|
11
11
|
|
|
12
12
|
// src/http/hyper-express/bind.ts
|
|
13
13
|
import { Router } from "hyper-express";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Router, { RouterParamContext } from '@koa/router';
|
|
2
2
|
import { DefaultContext, DefaultState } from 'koa';
|
|
3
|
-
import { H as HttpContext, a as HttpOptions } from '../../types-
|
|
4
|
-
import { F as Factory } from '../../core-
|
|
3
|
+
import { H as HttpContext, a as HttpOptions } from '../../types-BxlzVoRv.mjs';
|
|
4
|
+
import { F as Factory } from '../../core-DU7gQKSk.mjs';
|
|
5
5
|
import 'node:http';
|
|
6
|
-
import '../../meta-
|
|
6
|
+
import '../../meta-BTnLXuCa.mjs';
|
|
7
7
|
import 'phecda-core';
|
|
8
8
|
|
|
9
9
|
interface KoaCtx extends HttpContext {
|
package/dist/http/koa/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import Router, { RouterParamContext } from '@koa/router';
|
|
2
2
|
import { DefaultContext, DefaultState } from 'koa';
|
|
3
|
-
import { H as HttpContext, a as HttpOptions } from '../../types-
|
|
4
|
-
import { F as Factory } from '../../core-
|
|
3
|
+
import { H as HttpContext, a as HttpOptions } from '../../types--E-OCZhC.js';
|
|
4
|
+
import { F as Factory } from '../../core-CzElxZoF.js';
|
|
5
5
|
import 'node:http';
|
|
6
|
-
import '../../meta-
|
|
6
|
+
import '../../meta-BTnLXuCa.js';
|
|
7
7
|
import 'phecda-core';
|
|
8
8
|
|
|
9
9
|
interface KoaCtx extends HttpContext {
|
package/dist/http/koa/index.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkK54JYYXKjs = require('../../chunk-K54JYYXK.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkKFFS2P7Ijs = require('../../chunk-KFFS2P7I.js');
|
|
12
12
|
|
|
13
13
|
// src/http/koa/bind.ts
|
|
14
14
|
var _router = require('@koa/router'); var _router2 = _interopRequireDefault(_router);
|
|
@@ -18,14 +18,14 @@ function bind(router, data, opts = {}) {
|
|
|
18
18
|
const { globalGuards, parallelRoute = "/__PHECDA_SERVER__", globalAddons = [], parallelAddons = [], globalFilter, globalPipe, dynamic = false } = opts;
|
|
19
19
|
const { moduleMap, meta } = data;
|
|
20
20
|
const originStack = router.stack.slice(0, router.stack.length);
|
|
21
|
-
const metaMap =
|
|
21
|
+
const metaMap = _chunkK54JYYXKjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
22
22
|
const { controller, http, func, tag } = meta2.data;
|
|
23
23
|
if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.type])) {
|
|
24
24
|
debug(`register method "${func}" in module "${tag}"`);
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
_chunkK54JYYXKjs.detectAopDep.call(void 0, meta, {
|
|
29
29
|
addons: [
|
|
30
30
|
...globalAddons,
|
|
31
31
|
...parallelAddons
|
|
@@ -34,29 +34,29 @@ function bind(router, data, opts = {}) {
|
|
|
34
34
|
});
|
|
35
35
|
registerRoute();
|
|
36
36
|
function registerRoute() {
|
|
37
|
-
|
|
37
|
+
_chunkK54JYYXKjs.Context.applyAddons(globalAddons, router, "koa");
|
|
38
38
|
if (parallelRoute) {
|
|
39
39
|
const subRouter = new (0, _router2.default)();
|
|
40
|
-
|
|
40
|
+
_chunkK54JYYXKjs.Context.applyAddons(parallelAddons, subRouter, "koa");
|
|
41
41
|
subRouter.post(parallelRoute, async (ctx, next) => {
|
|
42
42
|
const { body } = ctx.request;
|
|
43
43
|
async function errorHandler(e) {
|
|
44
|
-
const error = await
|
|
44
|
+
const error = await _chunkK54JYYXKjs.Context.filterRecord.default(e);
|
|
45
45
|
ctx.status = error.status;
|
|
46
46
|
ctx.body = error;
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
if (!Array.isArray(body)) return errorHandler(new (0,
|
|
48
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, errorHandler, "errorHandler");
|
|
49
|
+
if (!Array.isArray(body)) return errorHandler(new (0, _chunkK54JYYXKjs.BadRequestException)("data format should be an array"));
|
|
50
50
|
try {
|
|
51
51
|
return Promise.all(body.map((item, i) => {
|
|
52
52
|
return new Promise(async (resolve) => {
|
|
53
53
|
const { tag, func } = item;
|
|
54
54
|
debug(`(parallel)invoke method "${func}" in module "${tag}"`);
|
|
55
|
-
if (!metaMap.has(tag)) return resolve(await
|
|
55
|
+
if (!metaMap.has(tag)) return resolve(await _chunkK54JYYXKjs.Context.filterRecord.default(new (0, _chunkK54JYYXKjs.BadRequestException)(`module "${tag}" doesn't exist`)));
|
|
56
56
|
const meta2 = metaMap.get(tag)[func];
|
|
57
|
-
if (!meta2) return resolve(await
|
|
57
|
+
if (!meta2) return resolve(await _chunkK54JYYXKjs.Context.filterRecord.default(new (0, _chunkK54JYYXKjs.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
|
|
58
58
|
const { data: { params } } = meta2;
|
|
59
|
-
const aop =
|
|
59
|
+
const aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
60
60
|
globalGuards,
|
|
61
61
|
globalFilter,
|
|
62
62
|
globalPipe
|
|
@@ -71,21 +71,21 @@ function bind(router, data, opts = {}) {
|
|
|
71
71
|
parallel: true,
|
|
72
72
|
next,
|
|
73
73
|
app: router,
|
|
74
|
-
...
|
|
74
|
+
..._chunkK54JYYXKjs.argToReq.call(void 0, params, item.args, ctx.headers),
|
|
75
75
|
tag,
|
|
76
76
|
func,
|
|
77
|
-
getCookie: /* @__PURE__ */
|
|
78
|
-
setCookie: /* @__PURE__ */
|
|
79
|
-
delCookie: /* @__PURE__ */
|
|
77
|
+
getCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => ctx.cookies.get(key), "getCookie"),
|
|
78
|
+
setCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key, value, opts2) => ctx.cookies.set(key, value, opts2), "setCookie"),
|
|
79
|
+
delCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => ctx.cookies.set(key, "", {
|
|
80
80
|
expires: /* @__PURE__ */ new Date(0)
|
|
81
81
|
}), "delCookie"),
|
|
82
|
-
redirect: /* @__PURE__ */
|
|
83
|
-
setResHeaders: /* @__PURE__ */
|
|
84
|
-
setResStatus: /* @__PURE__ */
|
|
85
|
-
getRequest: /* @__PURE__ */
|
|
86
|
-
getResponse: /* @__PURE__ */
|
|
82
|
+
redirect: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (url) => ctx.redirect(url), "redirect"),
|
|
83
|
+
setResHeaders: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (headers) => ctx.set(headers), "setResHeaders"),
|
|
84
|
+
setResStatus: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (status) => ctx.status = status, "setResStatus"),
|
|
85
|
+
getRequest: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => ctx.req, "getRequest"),
|
|
86
|
+
getResponse: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => ctx.res, "getResponse")
|
|
87
87
|
};
|
|
88
|
-
const context = new (0,
|
|
88
|
+
const context = new (0, _chunkK54JYYXKjs.Context)(contextData);
|
|
89
89
|
context.run(aop, resolve, resolve);
|
|
90
90
|
});
|
|
91
91
|
})).then((ret) => {
|
|
@@ -104,14 +104,14 @@ function bind(router, data, opts = {}) {
|
|
|
104
104
|
if (!_optionalChain([http, 'optionalAccess', _2 => _2.type])) continue;
|
|
105
105
|
let aop;
|
|
106
106
|
if (!dynamic) {
|
|
107
|
-
aop =
|
|
107
|
+
aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
108
108
|
globalFilter,
|
|
109
109
|
globalGuards,
|
|
110
110
|
globalPipe
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
const subRouter = new (0, _router2.default)();
|
|
114
|
-
|
|
114
|
+
_chunkK54JYYXKjs.Context.applyAddons(addons, subRouter, "koa");
|
|
115
115
|
router[http.type](http.prefix + http.route, async (ctx, next) => {
|
|
116
116
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
117
117
|
const contextData = {
|
|
@@ -128,21 +128,21 @@ function bind(router, data, opts = {}) {
|
|
|
128
128
|
body: ctx.request.body,
|
|
129
129
|
headers: ctx.headers,
|
|
130
130
|
next,
|
|
131
|
-
getCookie: /* @__PURE__ */
|
|
132
|
-
setCookie: /* @__PURE__ */
|
|
133
|
-
delCookie: /* @__PURE__ */
|
|
131
|
+
getCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => ctx.cookies.get(key), "getCookie"),
|
|
132
|
+
setCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key, value, opts2) => ctx.cookies.set(key, value, opts2), "setCookie"),
|
|
133
|
+
delCookie: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (key) => ctx.cookies.set(key, "", {
|
|
134
134
|
expires: /* @__PURE__ */ new Date(0)
|
|
135
135
|
}), "delCookie"),
|
|
136
|
-
redirect: /* @__PURE__ */
|
|
137
|
-
setResHeaders: /* @__PURE__ */
|
|
138
|
-
setResStatus: /* @__PURE__ */
|
|
139
|
-
getRequest: /* @__PURE__ */
|
|
140
|
-
getResponse: /* @__PURE__ */
|
|
136
|
+
redirect: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (url) => ctx.redirect(url), "redirect"),
|
|
137
|
+
setResHeaders: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (headers) => ctx.set(headers), "setResHeaders"),
|
|
138
|
+
setResStatus: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, (status) => ctx.status = status, "setResStatus"),
|
|
139
|
+
getRequest: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => ctx.req, "getRequest"),
|
|
140
|
+
getResponse: /* @__PURE__ */ _chunkKFFS2P7Ijs.__name.call(void 0, () => ctx.res, "getResponse")
|
|
141
141
|
};
|
|
142
|
-
const context = new (0,
|
|
142
|
+
const context = new (0, _chunkK54JYYXKjs.Context)(contextData);
|
|
143
143
|
if (http.headers) ctx.set(http.headers);
|
|
144
144
|
if (dynamic) {
|
|
145
|
-
aop =
|
|
145
|
+
aop = _chunkK54JYYXKjs.Context.getAop(meta2, {
|
|
146
146
|
globalFilter,
|
|
147
147
|
globalGuards,
|
|
148
148
|
globalPipe
|
|
@@ -161,13 +161,13 @@ function bind(router, data, opts = {}) {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, registerRoute, "registerRoute");
|
|
165
|
+
_chunkK54JYYXKjs.HMR.call(void 0, async () => {
|
|
166
166
|
router.stack = originStack;
|
|
167
167
|
registerRoute();
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
_chunkKFFS2P7Ijs.__name.call(void 0, bind, "bind");
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
exports.bind = bind;
|
package/dist/http/koa/index.mjs
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
argToReq,
|
|
6
6
|
createControllerMetaMap,
|
|
7
7
|
detectAopDep
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-2ESEXJQM.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-UXGJD2PK.mjs";
|
|
12
12
|
|
|
13
13
|
// src/http/koa/bind.ts
|
|
14
14
|
import Router from "@koa/router";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { B as BaseContext, a as ControllerMeta, D as DefaultOptions, C as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-
|
|
2
|
-
export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction,
|
|
3
|
-
import { G as Generator } from './core-
|
|
4
|
-
export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-
|
|
1
|
+
import { B as BaseContext, a as ControllerMeta, D as DefaultOptions, C as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-BTnLXuCa.mjs';
|
|
2
|
+
export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, m as IS_READY, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, n as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-BTnLXuCa.mjs';
|
|
3
|
+
import { G as Generator } from './core-DU7gQKSk.mjs';
|
|
4
|
+
export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-DU7gQKSk.mjs';
|
|
5
5
|
import { Base } from 'phecda-core';
|
|
6
6
|
export * from 'phecda-core';
|
|
7
|
-
import { H as HttpContext } from './types-
|
|
8
|
-
export { C as CookieSerializeOptions, a as HttpOptions } from './types-
|
|
9
|
-
import { R as RpcContext } from './types-
|
|
10
|
-
export { b as RpcClientOptions, a as RpcServerOptions } from './types-
|
|
7
|
+
import { H as HttpContext } from './types-BxlzVoRv.mjs';
|
|
8
|
+
export { C as CookieSerializeOptions, a as HttpOptions } from './types-BxlzVoRv.mjs';
|
|
9
|
+
import { R as RpcContext } from './types-BYqBeqrs.mjs';
|
|
10
|
+
export { b as RpcClientOptions, a as RpcServerOptions } from './types-BYqBeqrs.mjs';
|
|
11
11
|
export { Mixin } from 'ts-mixer';
|
|
12
12
|
import 'node:http';
|
|
13
13
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { B as BaseContext, a as ControllerMeta, D as DefaultOptions, C as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-
|
|
2
|
-
export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction,
|
|
3
|
-
import { G as Generator } from './core-
|
|
4
|
-
export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-
|
|
1
|
+
import { B as BaseContext, a as ControllerMeta, D as DefaultOptions, C as ControllerMetaData, b as MetaData, E as Emitter, c as BaseError } from './meta-BTnLXuCa.js';
|
|
2
|
+
export { g as BaseRequestType, f as BaseReturn, h as CustomResponse, j as ERROR_SYMBOL, i as ExtractResponse, I as IS_HMR, k as IS_ONLY_GENERATE, m as IS_READY, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, n as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-BTnLXuCa.js';
|
|
3
|
+
import { G as Generator } from './core-CzElxZoF.js';
|
|
4
|
+
export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-CzElxZoF.js';
|
|
5
5
|
import { Base } from 'phecda-core';
|
|
6
6
|
export * from 'phecda-core';
|
|
7
|
-
import { H as HttpContext } from './types-
|
|
8
|
-
export { C as CookieSerializeOptions, a as HttpOptions } from './types-
|
|
9
|
-
import { R as RpcContext } from './types-
|
|
10
|
-
export { b as RpcClientOptions, a as RpcServerOptions } from './types-
|
|
7
|
+
import { H as HttpContext } from './types--E-OCZhC.js';
|
|
8
|
+
export { C as CookieSerializeOptions, a as HttpOptions } from './types--E-OCZhC.js';
|
|
9
|
+
import { R as RpcContext } from './types-CbfaGkPA.js';
|
|
10
|
+
export { b as RpcClientOptions, a as RpcServerOptions } from './types-CbfaGkPA.js';
|
|
11
11
|
export { Mixin } from 'ts-mixer';
|
|
12
12
|
import 'node:http';
|
|
13
13
|
|