phecda-server 5.1.0 → 5.1.1
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/README.md +10 -10
- package/bin/cli.mjs +189 -189
- package/bin/schema.json +55 -55
- package/dist/{chunk-OTHER3YM.mjs → chunk-2HKQPZDT.mjs} +1 -2
- package/dist/{chunk-GHOKWS5V.js → chunk-3BV2GRS7.js} +38 -39
- package/dist/{chunk-BZP6GKM6.mjs → chunk-665MB62T.mjs} +1 -2
- package/dist/{chunk-QG4X6H5Y.js → chunk-FSBD5R22.js} +65 -66
- package/dist/{chunk-423JPSEB.js → chunk-HMPTPTFL.js} +17 -18
- package/dist/{chunk-6MQP6OHU.mjs → chunk-UU6RHGRF.mjs} +2 -3
- package/dist/{chunk-4YVAW3L4.mjs → chunk-VLV3AO3H.mjs} +0 -1
- package/dist/{chunk-Z4YJHEXT.js → chunk-ZP7HNASU.js} +0 -1
- package/dist/index.js +39 -40
- package/dist/index.mjs +4 -5
- package/dist/rpc/bullmq/index.js +12 -13
- package/dist/rpc/bullmq/index.mjs +2 -3
- package/dist/rpc/kafka/index.js +10 -11
- package/dist/rpc/kafka/index.mjs +2 -3
- package/dist/rpc/nats/index.js +11 -12
- package/dist/rpc/nats/index.mjs +2 -3
- package/dist/rpc/rabbitmq/index.js +13 -14
- package/dist/rpc/rabbitmq/index.mjs +2 -3
- package/dist/rpc/redis/index.js +11 -12
- package/dist/rpc/redis/index.mjs +2 -3
- package/dist/server/elysia/index.js +20 -21
- package/dist/server/elysia/index.mjs +3 -4
- package/dist/server/express/index.js +18 -19
- package/dist/server/express/index.mjs +2 -3
- package/dist/server/fastify/index.js +19 -20
- package/dist/server/fastify/index.mjs +3 -4
- package/dist/server/h3/index.js +16 -17
- package/dist/server/h3/index.mjs +2 -3
- package/dist/server/hono/index.js +17 -18
- package/dist/server/hono/index.mjs +2 -3
- package/dist/server/hyper-express/index.js +17 -18
- package/dist/server/hyper-express/index.mjs +2 -3
- package/dist/server/koa/index.js +18 -19
- package/dist/server/koa/index.mjs +2 -3
- package/dist/test.js +6 -7
- package/dist/test.mjs +2 -3
- package/package.json +2 -2
- package/register/index.mjs +40 -40
- package/register/loader.mjs +354 -341
- package/register/utils.mjs +81 -81
- package/dist/chunk-423JPSEB.js.map +0 -1
- package/dist/chunk-4R55T3HG.js +0 -253
- package/dist/chunk-4R55T3HG.js.map +0 -1
- package/dist/chunk-4YVAW3L4.mjs.map +0 -1
- package/dist/chunk-5DOVDDO7.mjs +0 -295
- package/dist/chunk-5DOVDDO7.mjs.map +0 -1
- package/dist/chunk-5WQ2SMIK.js +0 -295
- package/dist/chunk-5WQ2SMIK.js.map +0 -1
- package/dist/chunk-6MQP6OHU.mjs.map +0 -1
- package/dist/chunk-6Q2PCC3A.mjs +0 -295
- package/dist/chunk-6Q2PCC3A.mjs.map +0 -1
- package/dist/chunk-6UQYEBAN.js +0 -253
- package/dist/chunk-6UQYEBAN.js.map +0 -1
- package/dist/chunk-6W7CGOZC.mjs +0 -565
- package/dist/chunk-6W7CGOZC.mjs.map +0 -1
- package/dist/chunk-7Y37NSBM.js +0 -88
- package/dist/chunk-7Y37NSBM.js.map +0 -1
- package/dist/chunk-BQBSVGMG.mjs +0 -253
- package/dist/chunk-BQBSVGMG.mjs.map +0 -1
- package/dist/chunk-BZP6GKM6.mjs.map +0 -1
- package/dist/chunk-C5JAHCS2.mjs +0 -88
- package/dist/chunk-C5JAHCS2.mjs.map +0 -1
- package/dist/chunk-DTBKDALR.mjs +0 -295
- package/dist/chunk-DTBKDALR.mjs.map +0 -1
- package/dist/chunk-GHOKWS5V.js.map +0 -1
- package/dist/chunk-H4N6SHNG.mjs +0 -76
- package/dist/chunk-H4N6SHNG.mjs.map +0 -1
- package/dist/chunk-ICYHM4UM.js +0 -565
- package/dist/chunk-ICYHM4UM.js.map +0 -1
- package/dist/chunk-LOLXPM4J.mjs +0 -529
- package/dist/chunk-LOLXPM4J.mjs.map +0 -1
- package/dist/chunk-MSS6A2TU.js +0 -585
- package/dist/chunk-MSS6A2TU.js.map +0 -1
- package/dist/chunk-NEM3FY7C.mjs +0 -537
- package/dist/chunk-NEM3FY7C.mjs.map +0 -1
- package/dist/chunk-OTHER3YM.mjs.map +0 -1
- package/dist/chunk-Q2FYFIEY.js +0 -295
- package/dist/chunk-Q2FYFIEY.js.map +0 -1
- package/dist/chunk-QG4X6H5Y.js.map +0 -1
- package/dist/chunk-QIEZ6YTG.mjs +0 -295
- package/dist/chunk-QIEZ6YTG.mjs.map +0 -1
- package/dist/chunk-QOAKHCM7.js +0 -295
- package/dist/chunk-QOAKHCM7.js.map +0 -1
- package/dist/chunk-QVUD6L5X.js +0 -565
- package/dist/chunk-QVUD6L5X.js.map +0 -1
- package/dist/chunk-RGLTGKAU.js +0 -537
- package/dist/chunk-RGLTGKAU.js.map +0 -1
- package/dist/chunk-SHRK3TVB.js +0 -295
- package/dist/chunk-SHRK3TVB.js.map +0 -1
- package/dist/chunk-TCH6S42Z.js +0 -529
- package/dist/chunk-TCH6S42Z.js.map +0 -1
- package/dist/chunk-UCGRFVHC.mjs +0 -253
- package/dist/chunk-UCGRFVHC.mjs.map +0 -1
- package/dist/chunk-VOISXWVF.mjs +0 -295
- package/dist/chunk-VOISXWVF.mjs.map +0 -1
- package/dist/chunk-W6BC5INO.mjs +0 -295
- package/dist/chunk-W6BC5INO.mjs.map +0 -1
- package/dist/chunk-X5WQRO4R.js +0 -295
- package/dist/chunk-X5WQRO4R.js.map +0 -1
- package/dist/chunk-XDMCVVD3.mjs +0 -585
- package/dist/chunk-XDMCVVD3.mjs.map +0 -1
- package/dist/chunk-XNTMYLK6.js +0 -76
- package/dist/chunk-XNTMYLK6.js.map +0 -1
- package/dist/chunk-Y6LI4FDO.js +0 -537
- package/dist/chunk-Y6LI4FDO.js.map +0 -1
- package/dist/chunk-YZ2AQ6IL.mjs +0 -537
- package/dist/chunk-YZ2AQ6IL.mjs.map +0 -1
- package/dist/chunk-Z4YJHEXT.js.map +0 -1
- package/dist/chunk-ZE336SKZ.js +0 -295
- package/dist/chunk-ZE336SKZ.js.map +0 -1
- package/dist/chunk-ZJD235TO.mjs +0 -565
- package/dist/chunk-ZJD235TO.mjs.map +0 -1
- package/dist/core-930ea883.d.ts +0 -131
- package/dist/core-eb646fe5.d.ts +0 -139
- package/dist/core-fd134ffa.d.ts +0 -130
- package/dist/helper-06d25b37.d.ts +0 -19
- package/dist/helper-48454c0b.d.ts +0 -20
- package/dist/helper-73e8d2f0.d.ts +0 -18
- package/dist/helper-867a598d.d.ts +0 -18
- package/dist/helper-88b19c66.d.ts +0 -12
- package/dist/helper-9e206c66.d.ts +0 -12
- package/dist/helper-f29f082f.d.ts +0 -19
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/rpc/bullmq/index.js.map +0 -1
- package/dist/rpc/bullmq/index.mjs.map +0 -1
- package/dist/rpc/kafka/index.js.map +0 -1
- package/dist/rpc/kafka/index.mjs.map +0 -1
- package/dist/rpc/nats/index.js.map +0 -1
- package/dist/rpc/nats/index.mjs.map +0 -1
- package/dist/rpc/rabbitmq/index.js.map +0 -1
- package/dist/rpc/rabbitmq/index.mjs.map +0 -1
- package/dist/rpc/redis/index.js.map +0 -1
- package/dist/rpc/redis/index.mjs.map +0 -1
- package/dist/server/elysia/index.js.map +0 -1
- package/dist/server/elysia/index.mjs.map +0 -1
- package/dist/server/express/index.js.map +0 -1
- package/dist/server/express/index.mjs.map +0 -1
- package/dist/server/fastify/index.js.map +0 -1
- package/dist/server/fastify/index.mjs.map +0 -1
- package/dist/server/h3/index.js.map +0 -1
- package/dist/server/h3/index.mjs.map +0 -1
- package/dist/server/hono/index.js.map +0 -1
- package/dist/server/hono/index.mjs.map +0 -1
- package/dist/server/hyper-express/index.js.map +0 -1
- package/dist/server/hyper-express/index.mjs.map +0 -1
- package/dist/server/koa/index.js.map +0 -1
- package/dist/server/koa/index.mjs.map +0 -1
- package/dist/test.js.map +0 -1
- package/dist/test.mjs.map +0 -1
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFSBD5R22js = require('../../chunk-FSBD5R22.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZP7HNASUjs = require('../../chunk-ZP7HNASU.js');
|
|
11
11
|
|
|
12
12
|
// src/rpc/rabbitmq/bind.ts
|
|
13
13
|
var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
|
|
14
14
|
var debug = _debug2.default.call(void 0, "phecda-server/rabbitmq");
|
|
15
15
|
async function bind(ch, { moduleMap, meta }, opts = {}) {
|
|
16
16
|
const { globalGuards, globalInterceptors, globalFilter, globalPipe } = opts;
|
|
17
|
-
const metaMap =
|
|
17
|
+
const metaMap = _chunkFSBD5R22js.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
18
18
|
const { controller, rpc, func, tag } = meta2.data;
|
|
19
19
|
if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
|
|
20
20
|
debug(`register method "${func}" in module "${tag}"`);
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
_chunkFSBD5R22js.detectAopDep.call(void 0, meta, {
|
|
25
25
|
guards: globalGuards,
|
|
26
26
|
interceptors: globalInterceptors
|
|
27
27
|
}, "rpc");
|
|
@@ -45,12 +45,12 @@ async function bind(ch, { moduleMap, meta }, opts = {}) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunkZP7HNASUjs.__name.call(void 0, subscribeQueues, "subscribeQueues");
|
|
49
49
|
async function handleRequest(msg) {
|
|
50
50
|
function send(queue, data) {
|
|
51
51
|
ch.sendToQueue(queue, Buffer.from(JSON.stringify(data)));
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
_chunkZP7HNASUjs.__name.call(void 0, send, "send");
|
|
54
54
|
if (msg) {
|
|
55
55
|
const data = JSON.parse(msg.content.toString());
|
|
56
56
|
const { tag, func, id, queue: clientQueue, _ps, args } = data;
|
|
@@ -59,7 +59,7 @@ async function bind(ch, { moduleMap, meta }, opts = {}) {
|
|
|
59
59
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
60
60
|
const meta2 = metaMap.get(tag)[func];
|
|
61
61
|
const { data: { rpc: { isEvent } = {} } } = meta2;
|
|
62
|
-
const context = new (0,
|
|
62
|
+
const context = new (0, _chunkFSBD5R22js.Context)({
|
|
63
63
|
type: "rabbitmq",
|
|
64
64
|
moduleMap,
|
|
65
65
|
meta: meta2,
|
|
@@ -93,15 +93,15 @@ async function bind(ch, { moduleMap, meta }, opts = {}) {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
_chunkZP7HNASUjs.__name.call(void 0, handleRequest, "handleRequest");
|
|
97
97
|
subscribeQueues();
|
|
98
|
-
|
|
98
|
+
_chunkFSBD5R22js.HMR.call(void 0, async () => {
|
|
99
99
|
for (const queue of existQueue)
|
|
100
100
|
await ch.deleteQueue(queue);
|
|
101
101
|
await subscribeQueues();
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
_chunkZP7HNASUjs.__name.call(void 0, bind, "bind");
|
|
105
105
|
|
|
106
106
|
// src/rpc/rabbitmq/client.ts
|
|
107
107
|
var _events = require('events');
|
|
@@ -110,7 +110,7 @@ async function createClient(ch, controllers, opts) {
|
|
|
110
110
|
let eventCount = 0;
|
|
111
111
|
const ret = {};
|
|
112
112
|
const emitter = new (0, _events.EventEmitter)();
|
|
113
|
-
const clientQueue =
|
|
113
|
+
const clientQueue = _chunkFSBD5R22js.genClientQueue.call(void 0, _optionalChain([opts, 'optionalAccess', _2 => _2.key]));
|
|
114
114
|
await ch.assertQueue(clientQueue);
|
|
115
115
|
ch.consume(clientQueue, (msg) => {
|
|
116
116
|
if (!msg)
|
|
@@ -162,7 +162,7 @@ async function createClient(ch, controllers, opts) {
|
|
|
162
162
|
else
|
|
163
163
|
resolve(data);
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
_chunkZP7HNASUjs.__name.call(void 0, listener, "listener");
|
|
166
166
|
eventCount++;
|
|
167
167
|
emitter.once(id, listener);
|
|
168
168
|
});
|
|
@@ -172,9 +172,8 @@ async function createClient(ch, controllers, opts) {
|
|
|
172
172
|
}
|
|
173
173
|
return ret;
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
_chunkZP7HNASUjs.__name.call(void 0, createClient, "createClient");
|
|
176
176
|
|
|
177
177
|
|
|
178
178
|
|
|
179
179
|
exports.bind = bind; exports.createClient = createClient;
|
|
180
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
createControllerMetaMap,
|
|
5
5
|
detectAopDep,
|
|
6
6
|
genClientQueue
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-665MB62T.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VLV3AO3H.mjs";
|
|
11
11
|
|
|
12
12
|
// src/rpc/rabbitmq/bind.ts
|
|
13
13
|
import Debug from "debug";
|
|
@@ -177,4 +177,3 @@ export {
|
|
|
177
177
|
bind,
|
|
178
178
|
createClient
|
|
179
179
|
};
|
|
180
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/rpc/redis/index.js
CHANGED
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFSBD5R22js = require('../../chunk-FSBD5R22.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZP7HNASUjs = require('../../chunk-ZP7HNASU.js');
|
|
11
11
|
|
|
12
12
|
// src/rpc/redis/bind.ts
|
|
13
13
|
var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
|
|
14
14
|
var debug = _debug2.default.call(void 0, "phecda-server/redis");
|
|
15
15
|
function bind({ sub, pub }, { moduleMap, meta }, opts = {}) {
|
|
16
16
|
const { globalGuards, globalInterceptors, globalFilter, globalPipe } = opts;
|
|
17
|
-
const metaMap =
|
|
17
|
+
const metaMap = _chunkFSBD5R22js.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
18
18
|
const { controller, rpc, func, tag } = meta2.data;
|
|
19
19
|
if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
|
|
20
20
|
debug(`register method "${func}" in module "${tag}"`);
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
_chunkFSBD5R22js.detectAopDep.call(void 0, meta, {
|
|
25
25
|
guards: globalGuards,
|
|
26
26
|
interceptors: globalInterceptors
|
|
27
27
|
}, "rpc");
|
|
@@ -42,7 +42,7 @@ function bind({ sub, pub }, { moduleMap, meta }, opts = {}) {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
_chunkZP7HNASUjs.__name.call(void 0, subscribeQueues, "subscribeQueues");
|
|
46
46
|
sub.on("message", async (channel, msg) => {
|
|
47
47
|
if (!existQueue.has(channel))
|
|
48
48
|
return;
|
|
@@ -54,7 +54,7 @@ function bind({ sub, pub }, { moduleMap, meta }, opts = {}) {
|
|
|
54
54
|
return;
|
|
55
55
|
const meta2 = metaMap.get(tag)[func];
|
|
56
56
|
const { data: { rpc: { isEvent } = {} } } = meta2;
|
|
57
|
-
const context = new (0,
|
|
57
|
+
const context = new (0, _chunkFSBD5R22js.Context)({
|
|
58
58
|
type: "redis",
|
|
59
59
|
moduleMap,
|
|
60
60
|
redis: sub,
|
|
@@ -91,13 +91,13 @@ function bind({ sub, pub }, { moduleMap, meta }, opts = {}) {
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
subscribeQueues();
|
|
94
|
-
|
|
94
|
+
_chunkFSBD5R22js.HMR.call(void 0, async () => {
|
|
95
95
|
for (const queue of existQueue)
|
|
96
96
|
await sub.unsubscribe(queue);
|
|
97
97
|
subscribeQueues();
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkZP7HNASUjs.__name.call(void 0, bind, "bind");
|
|
101
101
|
|
|
102
102
|
// src/rpc/redis/client.ts
|
|
103
103
|
var _events = require('events'); var _events2 = _interopRequireDefault(_events);
|
|
@@ -106,7 +106,7 @@ async function createClient({ pub, sub }, controllers, opts) {
|
|
|
106
106
|
let eventId = 1;
|
|
107
107
|
let eventCount = 0;
|
|
108
108
|
const emitter = new (0, _events2.default)();
|
|
109
|
-
const clientQueue =
|
|
109
|
+
const clientQueue = _chunkFSBD5R22js.genClientQueue.call(void 0, _optionalChain([opts, 'optionalAccess', _2 => _2.key]));
|
|
110
110
|
await sub.subscribe(clientQueue);
|
|
111
111
|
for (const i in controllers) {
|
|
112
112
|
ret[i] = new Proxy(new controllers[i](), {
|
|
@@ -152,7 +152,7 @@ async function createClient({ pub, sub }, controllers, opts) {
|
|
|
152
152
|
else
|
|
153
153
|
resolve(data);
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
_chunkZP7HNASUjs.__name.call(void 0, listener, "listener");
|
|
156
156
|
eventCount++;
|
|
157
157
|
emitter.once(id, listener);
|
|
158
158
|
});
|
|
@@ -168,9 +168,8 @@ async function createClient({ pub, sub }, controllers, opts) {
|
|
|
168
168
|
});
|
|
169
169
|
return ret;
|
|
170
170
|
}
|
|
171
|
-
|
|
171
|
+
_chunkZP7HNASUjs.__name.call(void 0, createClient, "createClient");
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
|
|
175
175
|
exports.bind = bind; exports.createClient = createClient;
|
|
176
|
-
//# sourceMappingURL=index.js.map
|
package/dist/rpc/redis/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
createControllerMetaMap,
|
|
5
5
|
detectAopDep,
|
|
6
6
|
genClientQueue
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-665MB62T.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VLV3AO3H.mjs";
|
|
11
11
|
|
|
12
12
|
// src/rpc/redis/bind.ts
|
|
13
13
|
import Debug from "debug";
|
|
@@ -173,4 +173,3 @@ export {
|
|
|
173
173
|
bind,
|
|
174
174
|
createClient
|
|
175
175
|
};
|
|
176
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3BV2GRS7js = require('../../chunk-3BV2GRS7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkFSBD5R22js = require('../../chunk-FSBD5R22.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZP7HNASUjs = require('../../chunk-ZP7HNASU.js');
|
|
14
14
|
|
|
15
15
|
// src/server/elysia/bind.ts
|
|
16
16
|
var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
|
|
@@ -19,14 +19,14 @@ var debug = _debug2.default.call(void 0, "phecda-server/elysia");
|
|
|
19
19
|
function bind(app, data, opts = {}) {
|
|
20
20
|
const { globalGuards, globalInterceptors, parallelRoute = "/__PHECDA_SERVER__", globalPlugins = [], parallelPlugins = [], globalFilter, globalPipe } = opts;
|
|
21
21
|
const { moduleMap, meta } = data;
|
|
22
|
-
const metaMap =
|
|
22
|
+
const metaMap = _chunkFSBD5R22js.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
23
23
|
const { controller, http, func, tag } = meta2.data;
|
|
24
24
|
if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.type])) {
|
|
25
25
|
debug(`register method "${func}" in module "${tag}"`);
|
|
26
26
|
return true;
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
_chunkFSBD5R22js.detectAopDep.call(void 0, meta, {
|
|
30
30
|
plugins: [
|
|
31
31
|
...globalPlugins,
|
|
32
32
|
...parallelPlugins
|
|
@@ -36,30 +36,30 @@ function bind(app, data, opts = {}) {
|
|
|
36
36
|
});
|
|
37
37
|
registerRoute();
|
|
38
38
|
async function registerRoute() {
|
|
39
|
-
|
|
39
|
+
_chunkFSBD5R22js.Context.usePlugin(globalPlugins, "elysia").forEach((p) => p(app));
|
|
40
40
|
const parallelRouter = new (0, _elysia.Elysia)();
|
|
41
|
-
|
|
41
|
+
_chunkFSBD5R22js.Context.usePlugin(parallelPlugins, "elysia").forEach((p) => p(parallelRouter));
|
|
42
42
|
if (parallelRoute) {
|
|
43
43
|
parallelRouter.post(parallelRoute, async (c) => {
|
|
44
44
|
const { body } = c;
|
|
45
45
|
async function errorHandler(e) {
|
|
46
|
-
const error = await
|
|
46
|
+
const error = await _chunkFSBD5R22js.Context.filterRecord.default(e);
|
|
47
47
|
c.set.status = error.status;
|
|
48
48
|
return error;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
_chunkZP7HNASUjs.__name.call(void 0, errorHandler, "errorHandler");
|
|
51
51
|
if (!Array.isArray(body))
|
|
52
|
-
return errorHandler(new (0,
|
|
52
|
+
return errorHandler(new (0, _chunkFSBD5R22js.BadRequestException)("data format should be an array"));
|
|
53
53
|
try {
|
|
54
54
|
return Promise.all(body.map((item, i) => {
|
|
55
55
|
return new Promise(async (resolve) => {
|
|
56
56
|
const { tag, func } = item;
|
|
57
57
|
debug(`(parallel)invoke method "${func}" in module "${tag}"`);
|
|
58
58
|
if (!metaMap.has(tag))
|
|
59
|
-
return resolve(await
|
|
59
|
+
return resolve(await _chunkFSBD5R22js.Context.filterRecord.default(new (0, _chunkFSBD5R22js.BadRequestException)(`module "${tag}" doesn't exist`)));
|
|
60
60
|
const meta2 = metaMap.get(tag)[func];
|
|
61
61
|
if (!meta2)
|
|
62
|
-
return resolve(await
|
|
62
|
+
return resolve(await _chunkFSBD5R22js.Context.filterRecord.default(new (0, _chunkFSBD5R22js.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
|
|
63
63
|
const { data: { params } } = meta2;
|
|
64
64
|
const contextData = {
|
|
65
65
|
type: "elysia",
|
|
@@ -71,9 +71,9 @@ function bind(app, data, opts = {}) {
|
|
|
71
71
|
tag,
|
|
72
72
|
func,
|
|
73
73
|
app,
|
|
74
|
-
...
|
|
74
|
+
..._chunkFSBD5R22js.argToReq.call(void 0, params, item.args, c.headers)
|
|
75
75
|
};
|
|
76
|
-
const context = new (0,
|
|
76
|
+
const context = new (0, _chunkFSBD5R22js.Context)(contextData);
|
|
77
77
|
context.run({
|
|
78
78
|
globalGuards,
|
|
79
79
|
globalInterceptors,
|
|
@@ -97,7 +97,7 @@ function bind(app, data, opts = {}) {
|
|
|
97
97
|
const funcRouter = new (0, _elysia.Elysia)();
|
|
98
98
|
if (!_optionalChain([http, 'optionalAccess', _2 => _2.type]))
|
|
99
99
|
continue;
|
|
100
|
-
|
|
100
|
+
_chunkFSBD5R22js.Context.usePlugin(plugins, "elysia").forEach((p) => p(funcRouter));
|
|
101
101
|
funcRouter[http.type](http.prefix + http.route, async (c) => {
|
|
102
102
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
103
103
|
const contextData = {
|
|
@@ -113,7 +113,7 @@ function bind(app, data, opts = {}) {
|
|
|
113
113
|
headers: c.headers,
|
|
114
114
|
app
|
|
115
115
|
};
|
|
116
|
-
const context = new (0,
|
|
116
|
+
const context = new (0, _chunkFSBD5R22js.Context)(contextData);
|
|
117
117
|
if (http.headers)
|
|
118
118
|
c.set.headers = http.headers;
|
|
119
119
|
return context.run({
|
|
@@ -130,15 +130,14 @@ function bind(app, data, opts = {}) {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
_chunkZP7HNASUjs.__name.call(void 0, registerRoute, "registerRoute");
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
_chunkZP7HNASUjs.__name.call(void 0, bind, "bind");
|
|
136
136
|
function Elysia(opts) {
|
|
137
|
-
return
|
|
137
|
+
return _chunk3BV2GRS7js.Define.call(void 0, "elysia", opts);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkZP7HNASUjs.__name.call(void 0, Elysia, "Elysia");
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
exports.Elysia = Elysia; exports.bind = bind;
|
|
144
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Define
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-UU6RHGRF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
BadRequestException,
|
|
6
6
|
Context,
|
|
7
7
|
argToReq,
|
|
8
8
|
createControllerMetaMap,
|
|
9
9
|
detectAopDep
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-665MB62T.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-VLV3AO3H.mjs";
|
|
14
14
|
|
|
15
15
|
// src/server/elysia/bind.ts
|
|
16
16
|
import Debug from "debug";
|
|
@@ -141,4 +141,3 @@ export {
|
|
|
141
141
|
Elysia,
|
|
142
142
|
bind
|
|
143
143
|
};
|
|
144
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFSBD5R22js = require('../../chunk-FSBD5R22.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZP7HNASUjs = require('../../chunk-ZP7HNASU.js');
|
|
12
12
|
|
|
13
13
|
// src/server/express/bind.ts
|
|
14
14
|
var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
|
|
@@ -17,14 +17,14 @@ function bind(router, data, opts = {}) {
|
|
|
17
17
|
const { globalGuards, globalInterceptors, parallelRoute = "/__PHECDA_SERVER__", globalPlugins = [], parallelPlugins = [], globalFilter, globalPipe } = opts;
|
|
18
18
|
const { moduleMap, meta } = data;
|
|
19
19
|
const originStack = router.stack.slice(0, router.stack.length);
|
|
20
|
-
const metaMap =
|
|
20
|
+
const metaMap = _chunkFSBD5R22js.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
|
+
_chunkFSBD5R22js.detectAopDep.call(void 0, meta, {
|
|
28
28
|
plugins: [
|
|
29
29
|
...globalPlugins,
|
|
30
30
|
...parallelPlugins
|
|
@@ -33,32 +33,32 @@ function bind(router, data, opts = {}) {
|
|
|
33
33
|
interceptors: globalInterceptors
|
|
34
34
|
});
|
|
35
35
|
registerRoute();
|
|
36
|
-
|
|
36
|
+
_chunkFSBD5R22js.HMR.call(void 0, async () => {
|
|
37
37
|
router.stack = originStack;
|
|
38
38
|
registerRoute();
|
|
39
39
|
});
|
|
40
40
|
async function registerRoute() {
|
|
41
|
-
|
|
41
|
+
_chunkFSBD5R22js.Context.usePlugin(globalPlugins, "express").forEach((p) => router.use(p));
|
|
42
42
|
if (parallelRoute) {
|
|
43
|
-
router.post(parallelRoute, ...
|
|
43
|
+
router.post(parallelRoute, ..._chunkFSBD5R22js.Context.usePlugin(parallelPlugins, "express"), async (req, res, next) => {
|
|
44
44
|
const { body } = req;
|
|
45
45
|
async function errorHandler(e) {
|
|
46
|
-
const error = await
|
|
46
|
+
const error = await _chunkFSBD5R22js.Context.filterRecord.default(e);
|
|
47
47
|
return res.status(error.status).json(error);
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
_chunkZP7HNASUjs.__name.call(void 0, errorHandler, "errorHandler");
|
|
50
50
|
if (!Array.isArray(body))
|
|
51
|
-
return errorHandler(new (0,
|
|
51
|
+
return errorHandler(new (0, _chunkFSBD5R22js.BadRequestException)("data format should be an array"));
|
|
52
52
|
try {
|
|
53
53
|
return Promise.all(body.map((item, i) => {
|
|
54
54
|
return new Promise(async (resolve) => {
|
|
55
55
|
const { tag, func } = item;
|
|
56
56
|
debug(`(parallel)invoke method "${func}" in module "${tag}"`);
|
|
57
57
|
if (!metaMap.has(tag))
|
|
58
|
-
return resolve(await
|
|
58
|
+
return resolve(await _chunkFSBD5R22js.Context.filterRecord.default(new (0, _chunkFSBD5R22js.BadRequestException)(`module "${tag}" doesn't exist`)));
|
|
59
59
|
const meta2 = metaMap.get(tag)[func];
|
|
60
60
|
if (!meta2)
|
|
61
|
-
return resolve(await
|
|
61
|
+
return resolve(await _chunkFSBD5R22js.Context.filterRecord.default(new (0, _chunkFSBD5R22js.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
|
|
62
62
|
const { data: { params } } = meta2;
|
|
63
63
|
const contextData = {
|
|
64
64
|
type: "express",
|
|
@@ -72,9 +72,9 @@ function bind(router, data, opts = {}) {
|
|
|
72
72
|
func,
|
|
73
73
|
next,
|
|
74
74
|
app: router,
|
|
75
|
-
...
|
|
75
|
+
..._chunkFSBD5R22js.argToReq.call(void 0, params, item.args, req.headers)
|
|
76
76
|
};
|
|
77
|
-
const context = new (0,
|
|
77
|
+
const context = new (0, _chunkFSBD5R22js.Context)(contextData);
|
|
78
78
|
context.run({
|
|
79
79
|
globalGuards,
|
|
80
80
|
globalInterceptors,
|
|
@@ -96,7 +96,7 @@ function bind(router, data, opts = {}) {
|
|
|
96
96
|
const { data: { plugins, http } } = meta2;
|
|
97
97
|
if (!_optionalChain([http, 'optionalAccess', _2 => _2.type]))
|
|
98
98
|
continue;
|
|
99
|
-
router[http.type](http.prefix + http.route, ...
|
|
99
|
+
router[http.type](http.prefix + http.route, ..._chunkFSBD5R22js.Context.usePlugin(plugins, "express"), async (req, res, next) => {
|
|
100
100
|
debug(`invoke method "${func}" in module "${tag}"`);
|
|
101
101
|
const contextData = {
|
|
102
102
|
type: "express",
|
|
@@ -113,7 +113,7 @@ function bind(router, data, opts = {}) {
|
|
|
113
113
|
app: router,
|
|
114
114
|
next
|
|
115
115
|
};
|
|
116
|
-
const context = new (0,
|
|
116
|
+
const context = new (0, _chunkFSBD5R22js.Context)(contextData);
|
|
117
117
|
if (http.headers) {
|
|
118
118
|
for (const name in http.headers)
|
|
119
119
|
res.set(name, http.headers[name]);
|
|
@@ -139,10 +139,9 @@ function bind(router, data, opts = {}) {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
|
|
142
|
+
_chunkZP7HNASUjs.__name.call(void 0, registerRoute, "registerRoute");
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
_chunkZP7HNASUjs.__name.call(void 0, bind, "bind");
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
exports.bind = bind;
|
|
148
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
argToReq,
|
|
6
6
|
createControllerMetaMap,
|
|
7
7
|
detectAopDep
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-665MB62T.mjs";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-VLV3AO3H.mjs";
|
|
12
12
|
|
|
13
13
|
// src/server/express/bind.ts
|
|
14
14
|
import Debug from "debug";
|
|
@@ -145,4 +145,3 @@ __name(bind, "bind");
|
|
|
145
145
|
export {
|
|
146
146
|
bind
|
|
147
147
|
};
|
|
148
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3BV2GRS7js = require('../../chunk-3BV2GRS7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkFSBD5R22js = require('../../chunk-FSBD5R22.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZP7HNASUjs = require('../../chunk-ZP7HNASU.js');
|
|
14
14
|
|
|
15
15
|
// src/server/fastify/bind.ts
|
|
16
16
|
var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
|
|
@@ -18,14 +18,14 @@ var debug = _debug2.default.call(void 0, "phecda-server/fastify");
|
|
|
18
18
|
function bind(fastify, data, opts = {}) {
|
|
19
19
|
const { globalGuards, globalInterceptors, parallelRoute = "/__PHECDA_SERVER__", globalPlugins = [], parallelPlugins = [], globalFilter, globalPipe, fastifyOpts } = opts;
|
|
20
20
|
const { moduleMap, meta } = data;
|
|
21
|
-
const metaMap =
|
|
21
|
+
const metaMap = _chunkFSBD5R22js.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
22
22
|
const { controller, http, func, tag } = meta2.data;
|
|
23
23
|
if (controller === "http" && _optionalChain([http, 'optionalAccess', _2 => _2.type])) {
|
|
24
24
|
debug(`register method "${func}" in module "${tag}"`);
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
_chunkFSBD5R22js.detectAopDep.call(void 0, meta, {
|
|
29
29
|
plugins: [
|
|
30
30
|
...globalPlugins,
|
|
31
31
|
...parallelPlugins
|
|
@@ -34,12 +34,12 @@ function bind(fastify, data, opts = {}) {
|
|
|
34
34
|
interceptors: globalInterceptors
|
|
35
35
|
});
|
|
36
36
|
fastify.register((fastify2, _, done) => {
|
|
37
|
-
|
|
37
|
+
_chunkFSBD5R22js.Context.usePlugin(globalPlugins, "fastify").forEach((p) => {
|
|
38
38
|
p[Symbol.for("skip-override")] = true;
|
|
39
39
|
fastify2.register(p);
|
|
40
40
|
});
|
|
41
41
|
fastify2.register((fastify3, _opts, done2) => {
|
|
42
|
-
|
|
42
|
+
_chunkFSBD5R22js.Context.usePlugin(parallelPlugins, "fastify").forEach((p) => {
|
|
43
43
|
p[Symbol.for("skip-override")] = true;
|
|
44
44
|
fastify3.register(p);
|
|
45
45
|
});
|
|
@@ -47,22 +47,22 @@ function bind(fastify, data, opts = {}) {
|
|
|
47
47
|
fastify3.post(parallelRoute, async (req, res) => {
|
|
48
48
|
const { body } = req;
|
|
49
49
|
async function errorHandler(e) {
|
|
50
|
-
const error = await
|
|
50
|
+
const error = await _chunkFSBD5R22js.Context.filterRecord.default(e);
|
|
51
51
|
return res.status(error.status).send(error);
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
_chunkZP7HNASUjs.__name.call(void 0, errorHandler, "errorHandler");
|
|
54
54
|
if (!Array.isArray(body))
|
|
55
|
-
return errorHandler(new (0,
|
|
55
|
+
return errorHandler(new (0, _chunkFSBD5R22js.BadRequestException)("data format should be an array"));
|
|
56
56
|
try {
|
|
57
57
|
return Promise.all(body.map((item, i) => {
|
|
58
58
|
return new Promise(async (resolve) => {
|
|
59
59
|
const { tag, func } = item;
|
|
60
60
|
debug(`(parallel)invoke method "${func}" in module "${tag}"`);
|
|
61
61
|
if (!metaMap.has(tag))
|
|
62
|
-
return resolve(await
|
|
62
|
+
return resolve(await _chunkFSBD5R22js.Context.filterRecord.default(new (0, _chunkFSBD5R22js.BadRequestException)(`module "${tag}" doesn't exist`)));
|
|
63
63
|
const meta2 = metaMap.get(tag)[func];
|
|
64
64
|
if (!meta2)
|
|
65
|
-
return resolve(await
|
|
65
|
+
return resolve(await _chunkFSBD5R22js.Context.filterRecord.default(new (0, _chunkFSBD5R22js.BadRequestException)(`"${func}" in "${tag}" doesn't exist`)));
|
|
66
66
|
const { data: { params } } = meta2;
|
|
67
67
|
const contextData = {
|
|
68
68
|
type: "fastify",
|
|
@@ -75,9 +75,9 @@ function bind(fastify, data, opts = {}) {
|
|
|
75
75
|
tag,
|
|
76
76
|
func,
|
|
77
77
|
app: fastify3,
|
|
78
|
-
...
|
|
78
|
+
..._chunkFSBD5R22js.argToReq.call(void 0, params, item.args, req.headers)
|
|
79
79
|
};
|
|
80
|
-
const context = new (0,
|
|
80
|
+
const context = new (0, _chunkFSBD5R22js.Context)(contextData);
|
|
81
81
|
context.run({
|
|
82
82
|
globalGuards,
|
|
83
83
|
globalInterceptors,
|
|
@@ -102,7 +102,7 @@ function bind(fastify, data, opts = {}) {
|
|
|
102
102
|
if (!_optionalChain([http, 'optionalAccess', _3 => _3.type]))
|
|
103
103
|
continue;
|
|
104
104
|
fastify2.register((fastify3, _opts, done2) => {
|
|
105
|
-
|
|
105
|
+
_chunkFSBD5R22js.Context.usePlugin(plugins, "fastify").forEach((p) => {
|
|
106
106
|
p[Symbol.for("skip-override")] = true;
|
|
107
107
|
fastify3.register(p);
|
|
108
108
|
});
|
|
@@ -122,7 +122,7 @@ function bind(fastify, data, opts = {}) {
|
|
|
122
122
|
headers: req.headers,
|
|
123
123
|
app: fastify3
|
|
124
124
|
};
|
|
125
|
-
const context = new (0,
|
|
125
|
+
const context = new (0, _chunkFSBD5R22js.Context)(contextData);
|
|
126
126
|
if (http.headers) {
|
|
127
127
|
for (const name in http.headers)
|
|
128
128
|
res.header(name, http.headers[name]);
|
|
@@ -149,13 +149,12 @@ function bind(fastify, data, opts = {}) {
|
|
|
149
149
|
done();
|
|
150
150
|
}, fastifyOpts);
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
_chunkZP7HNASUjs.__name.call(void 0, bind, "bind");
|
|
153
153
|
function Fastify(opts) {
|
|
154
|
-
return
|
|
154
|
+
return _chunk3BV2GRS7js.Define.call(void 0, "fastify", opts);
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
_chunkZP7HNASUjs.__name.call(void 0, Fastify, "Fastify");
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
exports.Fastify = Fastify; exports.bind = bind;
|
|
161
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Define
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-UU6RHGRF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
BadRequestException,
|
|
6
6
|
Context,
|
|
7
7
|
argToReq,
|
|
8
8
|
createControllerMetaMap,
|
|
9
9
|
detectAopDep
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-665MB62T.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-VLV3AO3H.mjs";
|
|
14
14
|
|
|
15
15
|
// src/server/fastify/bind.ts
|
|
16
16
|
import Debug from "debug";
|
|
@@ -158,4 +158,3 @@ export {
|
|
|
158
158
|
Fastify,
|
|
159
159
|
bind
|
|
160
160
|
};
|
|
161
|
-
//# sourceMappingURL=index.mjs.map
|