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
package/dist/http/hono/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
argToReq,
|
|
5
5
|
createControllerMetaMap,
|
|
6
6
|
detectAopDep
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-3FHZB3Z5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "../../chunk-WHJ5FALK.mjs";
|
|
@@ -62,6 +62,7 @@ function bind(router, data, opts = {}) {
|
|
|
62
62
|
const contextData = {
|
|
63
63
|
type: "hono",
|
|
64
64
|
parallel: true,
|
|
65
|
+
category: "http",
|
|
65
66
|
context: c,
|
|
66
67
|
index: i,
|
|
67
68
|
meta: meta2,
|
|
@@ -113,6 +114,7 @@ function bind(router, data, opts = {}) {
|
|
|
113
114
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
114
115
|
const contextData = {
|
|
115
116
|
type: "hono",
|
|
117
|
+
category: "http",
|
|
116
118
|
context: c,
|
|
117
119
|
meta: meta2,
|
|
118
120
|
moduleMap,
|
|
@@ -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-wbHHC93P.mjs';
|
|
3
|
+
import { F as Factory } from '../../core-CSiaRU7r.mjs';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-D1M85Hef.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-ee1FBodH.js';
|
|
3
|
+
import { F as Factory } from '../../core-C1kHRqU9.js';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-D1M85Hef.js';
|
|
6
6
|
import 'phecda-core';
|
|
7
7
|
|
|
8
8
|
interface HyperExpressCtx extends HttpContext {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNQIFUZL4js = require('../../chunk-NQIFUZL4.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkJ5CFUN4Vjs = require('../../chunk-J5CFUN4V.js');
|
|
@@ -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 = _chunkNQIFUZL4js.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
|
+
_chunkNQIFUZL4js.detectAopDep.call(void 0, meta, {
|
|
27
27
|
addons: [
|
|
28
28
|
...globalAddons,
|
|
29
29
|
...parallelAddons
|
|
@@ -32,33 +32,34 @@ function bind(router, data, opts = {}) {
|
|
|
32
32
|
});
|
|
33
33
|
registerRoute();
|
|
34
34
|
async function registerRoute() {
|
|
35
|
-
|
|
35
|
+
_chunkNQIFUZL4js.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 _chunkNQIFUZL4js.Context.filterRecord.default(e);
|
|
42
42
|
return res.status(error.status).json(error);
|
|
43
43
|
}
|
|
44
44
|
_chunkJ5CFUN4Vjs.__name.call(void 0, errorHandler, "errorHandler");
|
|
45
|
-
if (!Array.isArray(body)) return errorHandler(new (0,
|
|
45
|
+
if (!Array.isArray(body)) return errorHandler(new (0, _chunkNQIFUZL4js.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 _chunkNQIFUZL4js.Context.filterRecord.default(new (0, _chunkNQIFUZL4js.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 _chunkNQIFUZL4js.Context.filterRecord.default(new (0, _chunkNQIFUZL4js.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
|
|
54
54
|
const { data: { params } } = meta2;
|
|
55
|
-
const aop =
|
|
55
|
+
const aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
|
|
56
56
|
globalFilter,
|
|
57
57
|
globalGuards,
|
|
58
58
|
globalPipe
|
|
59
59
|
});
|
|
60
60
|
const contextData = {
|
|
61
61
|
type: "hyper-express",
|
|
62
|
+
category: "http",
|
|
62
63
|
parallel: true,
|
|
63
64
|
request: req,
|
|
64
65
|
index: i,
|
|
@@ -68,7 +69,7 @@ function bind(router, data, opts = {}) {
|
|
|
68
69
|
tag,
|
|
69
70
|
func,
|
|
70
71
|
app: router,
|
|
71
|
-
...
|
|
72
|
+
..._chunkNQIFUZL4js.argToReq.call(void 0, params, item.args, req.headers),
|
|
72
73
|
next,
|
|
73
74
|
getCookie: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, (key) => req.cookies[key], "getCookie"),
|
|
74
75
|
setCookie: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, (key, value, opts2) => res.cookie(key, value, _optionalChain([opts2, 'optionalAccess', _2 => _2.expires]) && opts2.expires.getTime() - Date.now(), opts2 || {}), "setCookie"),
|
|
@@ -79,7 +80,7 @@ function bind(router, data, opts = {}) {
|
|
|
79
80
|
getRequest: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => req, "getRequest"),
|
|
80
81
|
getResponse: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => res, "getResponse")
|
|
81
82
|
};
|
|
82
|
-
const context = new (0,
|
|
83
|
+
const context = new (0, _chunkNQIFUZL4js.Context)(contextData);
|
|
83
84
|
context.run(aop, resolve, resolve);
|
|
84
85
|
});
|
|
85
86
|
})).then((ret) => {
|
|
@@ -99,18 +100,19 @@ function bind(router, data, opts = {}) {
|
|
|
99
100
|
const needBody = params.some((item) => item.type === "body");
|
|
100
101
|
let aop;
|
|
101
102
|
if (!dynamic) {
|
|
102
|
-
aop =
|
|
103
|
+
aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
|
|
103
104
|
globalFilter,
|
|
104
105
|
globalGuards,
|
|
105
106
|
globalPipe
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
109
|
const subRouter = new (0, _hyperexpress.Router)();
|
|
109
|
-
|
|
110
|
+
_chunkNQIFUZL4js.Context.applyAddons(addons, subRouter, "hyper-express");
|
|
110
111
|
subRouter[http.type](http.prefix + http.route, async (req, res, next) => {
|
|
111
112
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
112
113
|
const contextData = {
|
|
113
114
|
type: "hyper-express",
|
|
115
|
+
category: "http",
|
|
114
116
|
request: req,
|
|
115
117
|
meta: meta2,
|
|
116
118
|
response: res,
|
|
@@ -132,12 +134,12 @@ function bind(router, data, opts = {}) {
|
|
|
132
134
|
getRequest: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => req, "getRequest"),
|
|
133
135
|
getResponse: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => res, "getResponse")
|
|
134
136
|
};
|
|
135
|
-
const context = new (0,
|
|
137
|
+
const context = new (0, _chunkNQIFUZL4js.Context)(contextData);
|
|
136
138
|
if (http.headers) {
|
|
137
139
|
for (const name in http.headers) res.set(name, http.headers[name]);
|
|
138
140
|
}
|
|
139
141
|
if (dynamic) {
|
|
140
|
-
aop =
|
|
142
|
+
aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
|
|
141
143
|
globalFilter,
|
|
142
144
|
globalGuards,
|
|
143
145
|
globalPipe
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
argToReq,
|
|
5
5
|
createControllerMetaMap,
|
|
6
6
|
detectAopDep
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-3FHZB3Z5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "../../chunk-WHJ5FALK.mjs";
|
|
@@ -59,6 +59,7 @@ function bind(router, data, opts = {}) {
|
|
|
59
59
|
});
|
|
60
60
|
const contextData = {
|
|
61
61
|
type: "hyper-express",
|
|
62
|
+
category: "http",
|
|
62
63
|
parallel: true,
|
|
63
64
|
request: req,
|
|
64
65
|
index: i,
|
|
@@ -111,6 +112,7 @@ function bind(router, data, opts = {}) {
|
|
|
111
112
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
112
113
|
const contextData = {
|
|
113
114
|
type: "hyper-express",
|
|
115
|
+
category: "http",
|
|
114
116
|
request: req,
|
|
115
117
|
meta: meta2,
|
|
116
118
|
response: res,
|
|
@@ -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-wbHHC93P.mjs';
|
|
4
|
+
import { F as Factory } from '../../core-CSiaRU7r.mjs';
|
|
5
5
|
import 'node:http';
|
|
6
|
-
import '../../meta-
|
|
6
|
+
import '../../meta-D1M85Hef.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-ee1FBodH.js';
|
|
4
|
+
import { F as Factory } from '../../core-C1kHRqU9.js';
|
|
5
5
|
import 'node:http';
|
|
6
|
-
import '../../meta-
|
|
6
|
+
import '../../meta-D1M85Hef.js';
|
|
7
7
|
import 'phecda-core';
|
|
8
8
|
|
|
9
9
|
interface KoaCtx extends HttpContext {
|
package/dist/http/koa/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNQIFUZL4js = require('../../chunk-NQIFUZL4.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkJ5CFUN4Vjs = require('../../chunk-J5CFUN4V.js');
|
|
@@ -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 = _chunkNQIFUZL4js.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
|
+
_chunkNQIFUZL4js.detectAopDep.call(void 0, meta, {
|
|
29
29
|
addons: [
|
|
30
30
|
...globalAddons,
|
|
31
31
|
...parallelAddons
|
|
@@ -34,35 +34,36 @@ function bind(router, data, opts = {}) {
|
|
|
34
34
|
});
|
|
35
35
|
registerRoute();
|
|
36
36
|
function registerRoute() {
|
|
37
|
-
|
|
37
|
+
_chunkNQIFUZL4js.Context.applyAddons(globalAddons, router, "koa");
|
|
38
38
|
if (parallelRoute) {
|
|
39
39
|
const subRouter = new (0, _router2.default)();
|
|
40
|
-
|
|
40
|
+
_chunkNQIFUZL4js.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 _chunkNQIFUZL4js.Context.filterRecord.default(e);
|
|
45
45
|
ctx.status = error.status;
|
|
46
46
|
ctx.body = error;
|
|
47
47
|
}
|
|
48
48
|
_chunkJ5CFUN4Vjs.__name.call(void 0, errorHandler, "errorHandler");
|
|
49
|
-
if (!Array.isArray(body)) return errorHandler(new (0,
|
|
49
|
+
if (!Array.isArray(body)) return errorHandler(new (0, _chunkNQIFUZL4js.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 _chunkNQIFUZL4js.Context.filterRecord.default(new (0, _chunkNQIFUZL4js.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 _chunkNQIFUZL4js.Context.filterRecord.default(new (0, _chunkNQIFUZL4js.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
|
|
58
58
|
const { data: { params } } = meta2;
|
|
59
|
-
const aop =
|
|
59
|
+
const aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
|
|
60
60
|
globalGuards,
|
|
61
61
|
globalFilter,
|
|
62
62
|
globalPipe
|
|
63
63
|
});
|
|
64
64
|
const contextData = {
|
|
65
65
|
type: "koa",
|
|
66
|
+
category: "http",
|
|
66
67
|
index: i,
|
|
67
68
|
ctx,
|
|
68
69
|
meta: meta2,
|
|
@@ -70,7 +71,7 @@ function bind(router, data, opts = {}) {
|
|
|
70
71
|
parallel: true,
|
|
71
72
|
next,
|
|
72
73
|
app: router,
|
|
73
|
-
...
|
|
74
|
+
..._chunkNQIFUZL4js.argToReq.call(void 0, params, item.args, ctx.headers),
|
|
74
75
|
tag,
|
|
75
76
|
func,
|
|
76
77
|
getCookie: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, (key) => ctx.cookies.get(key), "getCookie"),
|
|
@@ -84,7 +85,7 @@ function bind(router, data, opts = {}) {
|
|
|
84
85
|
getRequest: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => ctx.req, "getRequest"),
|
|
85
86
|
getResponse: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => ctx.res, "getResponse")
|
|
86
87
|
};
|
|
87
|
-
const context = new (0,
|
|
88
|
+
const context = new (0, _chunkNQIFUZL4js.Context)(contextData);
|
|
88
89
|
context.run(aop, resolve, resolve);
|
|
89
90
|
});
|
|
90
91
|
})).then((ret) => {
|
|
@@ -103,14 +104,14 @@ function bind(router, data, opts = {}) {
|
|
|
103
104
|
if (!_optionalChain([http, 'optionalAccess', _2 => _2.type])) continue;
|
|
104
105
|
let aop;
|
|
105
106
|
if (!dynamic) {
|
|
106
|
-
aop =
|
|
107
|
+
aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
|
|
107
108
|
globalFilter,
|
|
108
109
|
globalGuards,
|
|
109
110
|
globalPipe
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
const subRouter = new (0, _router2.default)();
|
|
113
|
-
|
|
114
|
+
_chunkNQIFUZL4js.Context.applyAddons(addons, subRouter, "koa");
|
|
114
115
|
router[http.type](http.prefix + http.route, async (ctx, next) => {
|
|
115
116
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
116
117
|
const contextData = {
|
|
@@ -123,6 +124,7 @@ function bind(router, data, opts = {}) {
|
|
|
123
124
|
func,
|
|
124
125
|
query: ctx.query,
|
|
125
126
|
params: ctx.params,
|
|
127
|
+
category: "http",
|
|
126
128
|
body: ctx.request.body,
|
|
127
129
|
headers: ctx.headers,
|
|
128
130
|
next,
|
|
@@ -137,10 +139,10 @@ function bind(router, data, opts = {}) {
|
|
|
137
139
|
getRequest: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => ctx.req, "getRequest"),
|
|
138
140
|
getResponse: /* @__PURE__ */ _chunkJ5CFUN4Vjs.__name.call(void 0, () => ctx.res, "getResponse")
|
|
139
141
|
};
|
|
140
|
-
const context = new (0,
|
|
142
|
+
const context = new (0, _chunkNQIFUZL4js.Context)(contextData);
|
|
141
143
|
if (http.headers) ctx.set(http.headers);
|
|
142
144
|
if (dynamic) {
|
|
143
|
-
aop =
|
|
145
|
+
aop = _chunkNQIFUZL4js.Context.getAop(meta2, {
|
|
144
146
|
globalFilter,
|
|
145
147
|
globalGuards,
|
|
146
148
|
globalPipe
|
|
@@ -160,7 +162,7 @@ function bind(router, data, opts = {}) {
|
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
164
|
_chunkJ5CFUN4Vjs.__name.call(void 0, registerRoute, "registerRoute");
|
|
163
|
-
|
|
165
|
+
_chunkNQIFUZL4js.HMR.call(void 0, async () => {
|
|
164
166
|
router.stack = originStack;
|
|
165
167
|
registerRoute();
|
|
166
168
|
});
|
package/dist/http/koa/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
argToReq,
|
|
6
6
|
createControllerMetaMap,
|
|
7
7
|
detectAopDep
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-3FHZB3Z5.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "../../chunk-WHJ5FALK.mjs";
|
|
@@ -63,6 +63,7 @@ function bind(router, data, opts = {}) {
|
|
|
63
63
|
});
|
|
64
64
|
const contextData = {
|
|
65
65
|
type: "koa",
|
|
66
|
+
category: "http",
|
|
66
67
|
index: i,
|
|
67
68
|
ctx,
|
|
68
69
|
meta: meta2,
|
|
@@ -123,6 +124,7 @@ function bind(router, data, opts = {}) {
|
|
|
123
124
|
func,
|
|
124
125
|
query: ctx.query,
|
|
125
126
|
params: ctx.params,
|
|
127
|
+
category: "http",
|
|
126
128
|
body: ctx.request.body,
|
|
127
129
|
headers: ctx.headers,
|
|
128
130
|
next,
|
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, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-
|
|
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-D1M85Hef.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, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-D1M85Hef.mjs';
|
|
3
|
+
import { G as Generator } from './core-CSiaRU7r.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-CSiaRU7r.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-wbHHC93P.mjs';
|
|
8
|
+
export { C as CookieSerializeOptions, a as HttpOptions } from './types-wbHHC93P.mjs';
|
|
9
|
+
import { R as RpcContext } from './types-JMhFVp-Z.mjs';
|
|
10
|
+
export { b as RpcClientOptions, a as RpcServerOptions } from './types-JMhFVp-Z.mjs';
|
|
11
11
|
export { Mixin } from 'ts-mixer';
|
|
12
12
|
import 'node:http';
|
|
13
13
|
|
|
@@ -138,7 +138,7 @@ declare class Context<Data extends BaseContext> {
|
|
|
138
138
|
declare function addPipe<C extends BaseContext>(key: PropertyKey, pipe: PipeType<C>): void;
|
|
139
139
|
declare function addFilter<C extends BaseContext>(key: PropertyKey, filter: FilterType<C>): void;
|
|
140
140
|
declare function addGuard<C extends BaseContext>(key: PropertyKey, guard: GuardType<C>, priority?: number): void;
|
|
141
|
-
declare function addAddon
|
|
141
|
+
declare function addAddon(key: PropertyKey, addon: (router: any, framework: string) => void, priority?: number): void;
|
|
142
142
|
|
|
143
143
|
declare class RPCGenerator extends Generator {
|
|
144
144
|
name: string;
|
|
@@ -207,7 +207,7 @@ declare abstract class PFilter<C extends BaseContext = any, E extends Exception
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
declare abstract class PGuard<C extends BaseContext = any> extends ServerBase {
|
|
210
|
-
abstract use(ctx: C
|
|
210
|
+
abstract use(ctx: C, next: () => Promise<any>): any;
|
|
211
211
|
readonly key: PropertyKey;
|
|
212
212
|
priority: number;
|
|
213
213
|
constructor(tag?: string);
|
|
@@ -230,7 +230,7 @@ declare abstract class PAddon extends ServerBase {
|
|
|
230
230
|
readonly key: PropertyKey;
|
|
231
231
|
priority: number;
|
|
232
232
|
constructor(tag?: string);
|
|
233
|
-
abstract use
|
|
233
|
+
abstract use(router: any, framework: string): undefined;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
interface PExtension<C extends BaseContext = any, E extends Exception = Exception> {
|
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, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-
|
|
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-D1M85Hef.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, l as IS_STRICT, L as LOG_LEVEL, M as Meta, O as OmitFunction, m as PS_EXIT_CODE, P as PickFunc, S as ServiceMetaData, e as ToClientFn, d as ToClientInstance, T as ToClientMap } from './meta-D1M85Hef.js';
|
|
3
|
+
import { G as Generator } from './core-C1kHRqU9.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-C1kHRqU9.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-ee1FBodH.js';
|
|
8
|
+
export { C as CookieSerializeOptions, a as HttpOptions } from './types-ee1FBodH.js';
|
|
9
|
+
import { R as RpcContext } from './types-C9Remkup.js';
|
|
10
|
+
export { b as RpcClientOptions, a as RpcServerOptions } from './types-C9Remkup.js';
|
|
11
11
|
export { Mixin } from 'ts-mixer';
|
|
12
12
|
import 'node:http';
|
|
13
13
|
|
|
@@ -138,7 +138,7 @@ declare class Context<Data extends BaseContext> {
|
|
|
138
138
|
declare function addPipe<C extends BaseContext>(key: PropertyKey, pipe: PipeType<C>): void;
|
|
139
139
|
declare function addFilter<C extends BaseContext>(key: PropertyKey, filter: FilterType<C>): void;
|
|
140
140
|
declare function addGuard<C extends BaseContext>(key: PropertyKey, guard: GuardType<C>, priority?: number): void;
|
|
141
|
-
declare function addAddon
|
|
141
|
+
declare function addAddon(key: PropertyKey, addon: (router: any, framework: string) => void, priority?: number): void;
|
|
142
142
|
|
|
143
143
|
declare class RPCGenerator extends Generator {
|
|
144
144
|
name: string;
|
|
@@ -207,7 +207,7 @@ declare abstract class PFilter<C extends BaseContext = any, E extends Exception
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
declare abstract class PGuard<C extends BaseContext = any> extends ServerBase {
|
|
210
|
-
abstract use(ctx: C
|
|
210
|
+
abstract use(ctx: C, next: () => Promise<any>): any;
|
|
211
211
|
readonly key: PropertyKey;
|
|
212
212
|
priority: number;
|
|
213
213
|
constructor(tag?: string);
|
|
@@ -230,7 +230,7 @@ declare abstract class PAddon extends ServerBase {
|
|
|
230
230
|
readonly key: PropertyKey;
|
|
231
231
|
priority: number;
|
|
232
232
|
constructor(tag?: string);
|
|
233
|
-
abstract use
|
|
233
|
+
abstract use(router: any, framework: string): undefined;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
interface PExtension<C extends BaseContext = any, E extends Exception = Exception> {
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7YQ57BQSjs = require('./chunk-7YQ57BQS.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -56,7 +56,7 @@ var _chunkMBCHNDAYjs = require('./chunk-MBCHNDAY.js');
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
var
|
|
59
|
+
var _chunkNQIFUZL4js = require('./chunk-NQIFUZL4.js');
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
@@ -98,7 +98,7 @@ var ServerBase = (_class = class extends _phecdacore.Base {constructor(...args2)
|
|
|
98
98
|
static {
|
|
99
99
|
_chunkJ5CFUN4Vjs.__name.call(void 0, this, "ServerBase");
|
|
100
100
|
}
|
|
101
|
-
__init() {this.emitter = exports.emitter =
|
|
101
|
+
__init() {this.emitter = exports.emitter = _chunk7YQ57BQSjs.emitter}
|
|
102
102
|
}, _class);
|
|
103
103
|
var HttpBase = class extends ServerBase {
|
|
104
104
|
static {
|
|
@@ -131,9 +131,9 @@ var PFilter = class extends ServerBase {
|
|
|
131
131
|
constructor(tag) {
|
|
132
132
|
super();
|
|
133
133
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
134
|
-
|
|
134
|
+
_chunkNQIFUZL4js.addFilter.call(void 0, this.key, this.use.bind(this));
|
|
135
135
|
this.onUnmount(() => {
|
|
136
|
-
delete
|
|
136
|
+
delete _chunkNQIFUZL4js.Context.filterRecord[this.key];
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
};
|
|
@@ -149,9 +149,9 @@ var PGuard = (_class2 = class extends ServerBase {
|
|
|
149
149
|
constructor(tag) {
|
|
150
150
|
super();_class2.prototype.__init2.call(this);;
|
|
151
151
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
152
|
-
|
|
152
|
+
_chunkNQIFUZL4js.addGuard.call(void 0, this.key, this.use.bind(this), this.priority);
|
|
153
153
|
this.onUnmount(() => {
|
|
154
|
-
delete
|
|
154
|
+
delete _chunkNQIFUZL4js.Context.guardRecord[this.key];
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
}, _class2);
|
|
@@ -166,9 +166,9 @@ var PPipe = class extends ServerBase {
|
|
|
166
166
|
constructor(tag) {
|
|
167
167
|
super();
|
|
168
168
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
169
|
-
|
|
169
|
+
_chunkNQIFUZL4js.addPipe.call(void 0, this.key, this.use.bind(this));
|
|
170
170
|
this.onUnmount(() => {
|
|
171
|
-
delete
|
|
171
|
+
delete _chunkNQIFUZL4js.Context.pipeRecord[this.key];
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
};
|
|
@@ -184,9 +184,9 @@ var PAddon = (_class3 = class extends ServerBase {
|
|
|
184
184
|
constructor(tag) {
|
|
185
185
|
super();_class3.prototype.__init3.call(this);;
|
|
186
186
|
this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
187
|
-
|
|
187
|
+
_chunkNQIFUZL4js.addAddon.call(void 0, this.key, this.use.bind(this), this.priority);
|
|
188
188
|
this.onUnmount(() => {
|
|
189
|
-
delete
|
|
189
|
+
delete _chunkNQIFUZL4js.Context.addonRecord[this.key];
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
}, _class3);
|
|
@@ -204,27 +204,27 @@ var PExtension = class extends ServerBase {
|
|
|
204
204
|
super();
|
|
205
205
|
const key = this.key = tag || _phecdacore.getTag.call(void 0, this);
|
|
206
206
|
if (this.pipe) {
|
|
207
|
-
|
|
207
|
+
_chunkNQIFUZL4js.addPipe.call(void 0, key, this.pipe.bind(this));
|
|
208
208
|
this.onUnmount(() => {
|
|
209
|
-
delete
|
|
209
|
+
delete _chunkNQIFUZL4js.Context.pipeRecord[key];
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
212
|
if (this.addon) {
|
|
213
|
-
|
|
213
|
+
_chunkNQIFUZL4js.addAddon.call(void 0, key, this.addon.bind(this), this.addonPriority);
|
|
214
214
|
this.onUnmount(() => {
|
|
215
|
-
delete
|
|
215
|
+
delete _chunkNQIFUZL4js.Context.addonRecord[key];
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
if (this.guard) {
|
|
219
|
-
|
|
219
|
+
_chunkNQIFUZL4js.addGuard.call(void 0, key, this.guard.bind(this), this.guardPriority);
|
|
220
220
|
this.onUnmount(() => {
|
|
221
|
-
delete
|
|
221
|
+
delete _chunkNQIFUZL4js.Context.guardRecord[key];
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
224
|
if (this.filter) {
|
|
225
|
-
|
|
225
|
+
_chunkNQIFUZL4js.addFilter.call(void 0, key, this.filter.bind(this));
|
|
226
226
|
this.onUnmount(() => {
|
|
227
|
-
delete
|
|
227
|
+
delete _chunkNQIFUZL4js.Context.filterRecord[key];
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -308,7 +308,7 @@ var HTTPGenerator = (_class5 = class extends Generator {constructor(...args4) {
|
|
|
308
308
|
if (!this.classMap[name]) this.classMap[name] = {};
|
|
309
309
|
this.classMap[name][func] = `
|
|
310
310
|
${func}(...args){
|
|
311
|
-
const ret={tag:"${tag}",func:"${func}",body:{},headers:{},query:{},params:{},method:"${http.type}",url:"${url}"
|
|
311
|
+
const ret={tag:"${tag}",func:"${func}",body:{},headers:{},query:{},params:{},method:"${http.type}",url:"${url}"}
|
|
312
312
|
|
|
313
313
|
${params.reduce((p, c, i) => `${p}ret.${c.type}${c.key ? `['${c.key}']` : ""}=args[${i}]
|
|
314
314
|
${c.type === "params" ? `ret.url=ret.url.replace('{{${c.key}}}',args[${i}])` : ""}
|
|
@@ -404,4 +404,4 @@ return ret
|
|
|
404
404
|
|
|
405
405
|
|
|
406
406
|
|
|
407
|
-
exports.Addon = _chunkMBCHNDAYjs.Addon; exports.Arg = _chunkMBCHNDAYjs.Arg; exports.BadGatewayException =
|
|
407
|
+
exports.Addon = _chunkMBCHNDAYjs.Addon; exports.Arg = _chunkMBCHNDAYjs.Arg; exports.BadGatewayException = _chunkNQIFUZL4js.BadGatewayException; exports.BadRequestException = _chunkNQIFUZL4js.BadRequestException; exports.BaseParam = _chunkMBCHNDAYjs.BaseParam; exports.Body = _chunkMBCHNDAYjs.Body; exports.ConflictException = _chunkNQIFUZL4js.ConflictException; exports.Context = _chunkNQIFUZL4js.Context; exports.Controller = _chunkMBCHNDAYjs.Controller; exports.Ctx = _chunkMBCHNDAYjs.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunkMBCHNDAYjs.Define; exports.Delete = _chunkMBCHNDAYjs.Delete; exports.ERROR_SYMBOL = _chunkJ5CFUN4Vjs.ERROR_SYMBOL; exports.Exception = _chunkNQIFUZL4js.Exception; exports.Factory = _chunk7YQ57BQSjs.Factory; exports.Filter = _chunkMBCHNDAYjs.Filter; exports.ForbiddenException = _chunkNQIFUZL4js.ForbiddenException; exports.FrameworkException = _chunkNQIFUZL4js.FrameworkException; exports.Generator = Generator; exports.Get = _chunkMBCHNDAYjs.Get; exports.Guard = _chunkMBCHNDAYjs.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunkMBCHNDAYjs.Head; exports.Header = _chunkMBCHNDAYjs.Header; exports.HttpBase = HttpBase; exports.IS_HMR = _chunkJ5CFUN4Vjs.IS_HMR; exports.IS_ONLY_GENERATE = _chunkJ5CFUN4Vjs.IS_ONLY_GENERATE; exports.IS_STRICT = _chunkJ5CFUN4Vjs.IS_STRICT; exports.InvalidInputException = _chunkNQIFUZL4js.InvalidInputException; exports.LOG_LEVEL = _chunkJ5CFUN4Vjs.LOG_LEVEL; exports.Meta = _chunk7YQ57BQSjs.Meta; exports.Mixin = _chunkJ5CFUN4Vjs.Mixin; exports.NotFoundException = _chunkNQIFUZL4js.NotFoundException; exports.PAddon = PAddon; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PPipe = PPipe; exports.PS_EXIT_CODE = _chunkJ5CFUN4Vjs.PS_EXIT_CODE; exports.Param = _chunkMBCHNDAYjs.Param; exports.Patch = _chunkMBCHNDAYjs.Patch; exports.PayloadLargeException = _chunkNQIFUZL4js.PayloadLargeException; exports.Pipe = _chunkMBCHNDAYjs.Pipe; exports.Post = _chunkMBCHNDAYjs.Post; exports.Put = _chunkMBCHNDAYjs.Put; exports.Query = _chunkMBCHNDAYjs.Query; exports.Queue = _chunkMBCHNDAYjs.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunkMBCHNDAYjs.Route; exports.Rpc = _chunkMBCHNDAYjs.Rpc; exports.RpcBase = RpcBase; exports.Search = _chunkMBCHNDAYjs.Search; exports.ServerBase = ServerBase; exports.ServerPhecda = _chunk7YQ57BQSjs.ServerPhecda; exports.ServiceUnavailableException = _chunkNQIFUZL4js.ServiceUnavailableException; exports.TimeoutException = _chunkNQIFUZL4js.TimeoutException; exports.TimerException = _chunkNQIFUZL4js.TimerException; exports.UnauthorizedException = _chunkNQIFUZL4js.UnauthorizedException; exports.UndefinedException = _chunkNQIFUZL4js.UndefinedException; exports.UnsupportedMediaTypeException = _chunkNQIFUZL4js.UnsupportedMediaTypeException; exports.ValidateException = _chunkNQIFUZL4js.ValidateException; exports.WorkerException = _chunkNQIFUZL4js.WorkerException; exports.addAddon = _chunkNQIFUZL4js.addAddon; exports.addFilter = _chunkNQIFUZL4js.addFilter; exports.addGuard = _chunkNQIFUZL4js.addGuard; exports.addPipe = _chunkNQIFUZL4js.addPipe; exports.defaultPipe = _chunkNQIFUZL4js.defaultPipe; exports.defaultServerInject = _chunk7YQ57BQSjs.defaultServerInject; exports.emitter = _chunk7YQ57BQSjs.emitter; exports.getLogger = _chunkJ5CFUN4Vjs.getLogger; exports.log = _chunkJ5CFUN4Vjs.log; exports.phecdaNamespace = _chunk7YQ57BQSjs.phecdaNamespace; exports.runMiddleware = _chunkJ5CFUN4Vjs.runMiddleware; exports.setLogger = _chunkJ5CFUN4Vjs.setLogger; exports.useS = _chunk7YQ57BQSjs.useS;
|