phecda-server 8.5.3 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-WST6E6MQ.mjs → chunk-LQFHZGVJ.mjs} +72 -22
- package/dist/{chunk-76UDKZOJ.js → chunk-XOWAQGBO.js} +71 -21
- package/dist/{core-DCERPmy5.d.mts → core-BYxcQ8kf.d.mts} +1 -1
- package/dist/{core-D7uMDEXI.d.ts → core-BiS3xJKx.d.ts} +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 +17 -17
- package/dist/http/elysia/index.mjs +1 -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 +16 -16
- package/dist/http/express/index.mjs +1 -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 +16 -16
- package/dist/http/fastify/index.mjs +1 -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 +17 -17
- package/dist/http/h3/index.mjs +1 -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 +14 -14
- package/dist/http/hono/index.mjs +1 -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 +15 -15
- package/dist/http/hyper-express/index.mjs +1 -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 +16 -16
- package/dist/http/koa/index.mjs +1 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +20 -20
- package/dist/index.mjs +6 -6
- package/dist/{meta-CZDDYaRV.d.mts → meta-Csp1xcSR.d.mts} +1 -1
- package/dist/{meta-CZDDYaRV.d.ts → meta-Csp1xcSR.d.ts} +1 -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 +6 -6
- package/dist/rpc/bullmq/index.mjs +1 -1
- package/dist/rpc/electron/index.d.mts +3 -3
- package/dist/rpc/electron/index.d.ts +3 -3
- package/dist/rpc/electron/index.js +5 -5
- package/dist/rpc/electron/index.mjs +1 -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 +6 -6
- package/dist/rpc/kafka/index.mjs +1 -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 +6 -6
- package/dist/rpc/nats/index.mjs +1 -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 +6 -6
- package/dist/rpc/rabbitmq/index.mjs +1 -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 +6 -6
- package/dist/rpc/redis/index.mjs +1 -1
- package/dist/rpc/web-ext/index.d.mts +11 -1
- package/dist/rpc/web-ext/index.d.ts +11 -1
- package/dist/rpc/web-ext/index.js +71 -1
- package/dist/rpc/web-ext/index.mjs +71 -0
- package/dist/rpc/ws/index.d.mts +3 -3
- package/dist/rpc/ws/index.d.ts +3 -3
- package/dist/rpc/ws/index.js +5 -5
- package/dist/rpc/ws/index.mjs +1 -1
- package/dist/test.d.mts +2 -2
- package/dist/test.d.ts +2 -2
- package/dist/{types-S1PZEcrK.d.ts → types-Bs64nYvd.d.ts} +1 -1
- package/dist/{types-LPSac5sm.d.mts → types-CjVwVyJT.d.mts} +1 -1
- package/dist/{types-DG5DI_EC.d.ts → types-DExQe0qk.d.ts} +1 -1
- package/dist/{types-BbnTNTe3.d.mts → types-DSlyrmns.d.mts} +1 -1
- package/package.json +2 -2
package/dist/http/koa/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXOWAQGBOjs = require('../../chunk-XOWAQGBO.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -18,14 +18,14 @@ function bind(router, data, opts = {}) {
|
|
|
18
18
|
const { globalGuards, parallelRoute, 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 = _chunkXOWAQGBOjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
22
22
|
const { controller, http, method, tag } = meta2.data;
|
|
23
23
|
if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.method])) {
|
|
24
24
|
debug(`register method "${method}" in module "${tag}"`);
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
_chunkXOWAQGBOjs.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
|
+
_chunkXOWAQGBOjs.Context.applyAddons(globalAddons, router, "koa");
|
|
38
38
|
if (parallelRoute) {
|
|
39
39
|
const subRouter = new (0, _router2.default)();
|
|
40
|
-
|
|
40
|
+
_chunkXOWAQGBOjs.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 _chunkXOWAQGBOjs.Context.filterRecord.default(e);
|
|
45
45
|
ctx.status = error.status;
|
|
46
46
|
ctx.body = error;
|
|
47
47
|
}
|
|
48
48
|
_chunkLLF55NZPjs.__name.call(void 0, errorHandler, "errorHandler");
|
|
49
|
-
if (!Array.isArray(body)) return errorHandler(new (0,
|
|
49
|
+
if (!Array.isArray(body)) return errorHandler(new (0, _chunkXOWAQGBOjs.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
|
if (!item) return resolve(null);
|
|
54
54
|
const { tag, method } = item;
|
|
55
55
|
debug(`(parallel)invoke method "${method}" in module "${tag}"`);
|
|
56
|
-
if (!metaMap.has(tag)) return resolve(await
|
|
56
|
+
if (!metaMap.has(tag)) return resolve(await _chunkXOWAQGBOjs.Context.filterRecord.default(new (0, _chunkXOWAQGBOjs.BadRequestException)(`module "${tag}" doesn't exist`)));
|
|
57
57
|
const meta2 = metaMap.get(tag)[method];
|
|
58
|
-
if (!meta2) return resolve(await
|
|
59
|
-
const aop =
|
|
58
|
+
if (!meta2) return resolve(await _chunkXOWAQGBOjs.Context.filterRecord.default(new (0, _chunkXOWAQGBOjs.BadRequestException)(`"${method}" in "${tag}" doesn't exist`)));
|
|
59
|
+
const aop = _chunkXOWAQGBOjs.Context.getAop(meta2, {
|
|
60
60
|
globalGuards,
|
|
61
61
|
globalFilter,
|
|
62
62
|
globalPipe
|
|
@@ -83,7 +83,7 @@ function bind(router, data, opts = {}) {
|
|
|
83
83
|
getRequest: /* @__PURE__ */ _chunkLLF55NZPjs.__name.call(void 0, () => ctx.req, "getRequest"),
|
|
84
84
|
getResponse: /* @__PURE__ */ _chunkLLF55NZPjs.__name.call(void 0, () => ctx.res, "getResponse")
|
|
85
85
|
};
|
|
86
|
-
const context = new (0,
|
|
86
|
+
const context = new (0, _chunkXOWAQGBOjs.Context)(contextData);
|
|
87
87
|
context.run(aop, resolve, resolve);
|
|
88
88
|
});
|
|
89
89
|
})).then((ret) => {
|
|
@@ -102,15 +102,15 @@ function bind(router, data, opts = {}) {
|
|
|
102
102
|
if (!_optionalChain([http, 'optionalAccess', _2 => _2.method])) continue;
|
|
103
103
|
let aop;
|
|
104
104
|
if (!dynamic) {
|
|
105
|
-
aop =
|
|
105
|
+
aop = _chunkXOWAQGBOjs.Context.getAop(meta2, {
|
|
106
106
|
globalFilter,
|
|
107
107
|
globalGuards,
|
|
108
108
|
globalPipe
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
const subRouter = new (0, _router2.default)();
|
|
112
|
-
|
|
113
|
-
router[http.method](
|
|
112
|
+
_chunkXOWAQGBOjs.Context.applyAddons(addons, subRouter, "koa");
|
|
113
|
+
router[http.method](_chunkXOWAQGBOjs.joinUrl.call(void 0, http.prefix, http.route), async (ctx, next) => {
|
|
114
114
|
debug(`invoke method "${method}" in module "${tag}"`);
|
|
115
115
|
const contextData = {
|
|
116
116
|
type: "koa",
|
|
@@ -137,10 +137,10 @@ function bind(router, data, opts = {}) {
|
|
|
137
137
|
getRequest: /* @__PURE__ */ _chunkLLF55NZPjs.__name.call(void 0, () => ctx.req, "getRequest"),
|
|
138
138
|
getResponse: /* @__PURE__ */ _chunkLLF55NZPjs.__name.call(void 0, () => ctx.res, "getResponse")
|
|
139
139
|
};
|
|
140
|
-
const context = new (0,
|
|
140
|
+
const context = new (0, _chunkXOWAQGBOjs.Context)(contextData);
|
|
141
141
|
if (http.headers) ctx.set(http.headers);
|
|
142
142
|
if (dynamic) {
|
|
143
|
-
aop =
|
|
143
|
+
aop = _chunkXOWAQGBOjs.Context.getAop(meta2, {
|
|
144
144
|
globalFilter,
|
|
145
145
|
globalGuards,
|
|
146
146
|
globalPipe
|
package/dist/http/koa/index.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { B as BaseCtx,
|
|
2
|
-
export {
|
|
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 BaseCtx, a as BaseError, C as ControllerMeta, D as DefaultOptions, b as ControllerMetaData, M as Meta, E as Emitter } from './meta-Csp1xcSR.mjs';
|
|
2
|
+
export { c as BaseRequestMethod, d as CustomResponse, e as ERROR_SYMBOL, f as ExtractResponse, I as IS_DEV, g as IS_ONLY_GENERATE, h as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, j as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-Csp1xcSR.mjs';
|
|
3
|
+
import { G as Generator } from './core-BYxcQ8kf.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-BYxcQ8kf.mjs';
|
|
5
5
|
import { Construct, Base } from 'phecda-core';
|
|
6
6
|
export * from 'phecda-core';
|
|
7
|
-
import { H as HttpCtx } from './types-
|
|
8
|
-
export { C as CookieSerializeOptions, a as HttpOptions } from './types-
|
|
9
|
-
import { R as RpcCtx } from './types-
|
|
10
|
-
export { a as RpcServerOptions } from './types-
|
|
7
|
+
import { H as HttpCtx } from './types-CjVwVyJT.mjs';
|
|
8
|
+
export { C as CookieSerializeOptions, a as HttpOptions } from './types-CjVwVyJT.mjs';
|
|
9
|
+
import { R as RpcCtx } from './types-DSlyrmns.mjs';
|
|
10
|
+
export { a as RpcServerOptions } from './types-DSlyrmns.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 BaseCtx,
|
|
2
|
-
export {
|
|
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 BaseCtx, a as BaseError, C as ControllerMeta, D as DefaultOptions, b as ControllerMetaData, M as Meta, E as Emitter } from './meta-Csp1xcSR.js';
|
|
2
|
+
export { c as BaseRequestMethod, d as CustomResponse, e as ERROR_SYMBOL, f as ExtractResponse, I as IS_DEV, g as IS_ONLY_GENERATE, h as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, j as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-Csp1xcSR.js';
|
|
3
|
+
import { G as Generator } from './core-BiS3xJKx.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-BiS3xJKx.js';
|
|
5
5
|
import { Construct, Base } from 'phecda-core';
|
|
6
6
|
export * from 'phecda-core';
|
|
7
|
-
import { H as HttpCtx } from './types-
|
|
8
|
-
export { C as CookieSerializeOptions, a as HttpOptions } from './types-
|
|
9
|
-
import { R as RpcCtx } from './types-
|
|
10
|
-
export { a as RpcServerOptions } from './types-
|
|
7
|
+
import { H as HttpCtx } from './types-Bs64nYvd.js';
|
|
8
|
+
export { C as CookieSerializeOptions, a as HttpOptions } from './types-Bs64nYvd.js';
|
|
9
|
+
import { R as RpcCtx } from './types-DExQe0qk.js';
|
|
10
|
+
export { a as RpcServerOptions } from './types-DExQe0qk.js';
|
|
11
11
|
export { Mixin } from 'ts-mixer';
|
|
12
12
|
import 'node:http';
|
|
13
13
|
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,7 @@ var _chunk5ZZAOOKEjs = require('./chunk-5ZZAOOKE.js');
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunkXOWAQGBOjs = require('./chunk-XOWAQGBO.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
@@ -148,9 +148,9 @@ var PFilter = class extends ServerBase {
|
|
|
148
148
|
|
|
149
149
|
_init() {
|
|
150
150
|
this.key = _phecdacore.getTag.call(void 0, this);
|
|
151
|
-
|
|
151
|
+
_chunkXOWAQGBOjs.addFilter.call(void 0, this.key, this.use.bind(this));
|
|
152
152
|
this.onUnmount(() => {
|
|
153
|
-
delete
|
|
153
|
+
delete _chunkXOWAQGBOjs.Context.filterRecord[this.key];
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
};
|
|
@@ -182,9 +182,9 @@ var PGuard = (_class2 = class extends ServerBase {constructor(...args3) { super(
|
|
|
182
182
|
__init2() {this.priority = 0}
|
|
183
183
|
_init() {
|
|
184
184
|
this.key = _phecdacore.getTag.call(void 0, this);
|
|
185
|
-
|
|
185
|
+
_chunkXOWAQGBOjs.addGuard.call(void 0, this.key, this.use.bind(this), this.priority);
|
|
186
186
|
this.onUnmount(() => {
|
|
187
|
-
delete
|
|
187
|
+
delete _chunkXOWAQGBOjs.Context.guardRecord[this.key];
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
}, _class2);
|
|
@@ -215,9 +215,9 @@ var PPipe = class extends ServerBase {
|
|
|
215
215
|
|
|
216
216
|
_init() {
|
|
217
217
|
this.key = _phecdacore.getTag.call(void 0, this);
|
|
218
|
-
|
|
218
|
+
_chunkXOWAQGBOjs.addPipe.call(void 0, this.key, this.use.bind(this));
|
|
219
219
|
this.onUnmount(() => {
|
|
220
|
-
delete
|
|
220
|
+
delete _chunkXOWAQGBOjs.Context.pipeRecord[this.key];
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
};
|
|
@@ -249,9 +249,9 @@ var PAddon = (_class3 = class extends ServerBase {constructor(...args4) { super(
|
|
|
249
249
|
__init3() {this.priority = 0}
|
|
250
250
|
_init() {
|
|
251
251
|
this.key = _phecdacore.getTag.call(void 0, this);
|
|
252
|
-
|
|
252
|
+
_chunkXOWAQGBOjs.addAddon.call(void 0, this.key, this.use.bind(this), this.priority);
|
|
253
253
|
this.onUnmount(() => {
|
|
254
|
-
delete
|
|
254
|
+
delete _chunkXOWAQGBOjs.Context.addonRecord[this.key];
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
}, _class3);
|
|
@@ -285,27 +285,27 @@ var PExtension = class extends ServerBase {
|
|
|
285
285
|
_init() {
|
|
286
286
|
this.key = _phecdacore.getTag.call(void 0, this);
|
|
287
287
|
if (this.pipe) {
|
|
288
|
-
|
|
288
|
+
_chunkXOWAQGBOjs.addPipe.call(void 0, this.key, this.pipe.bind(this));
|
|
289
289
|
this.onUnmount(() => {
|
|
290
|
-
delete
|
|
290
|
+
delete _chunkXOWAQGBOjs.Context.pipeRecord[this.key];
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
if (this.addon) {
|
|
294
|
-
|
|
294
|
+
_chunkXOWAQGBOjs.addAddon.call(void 0, this.key, this.addon.bind(this), this.addonPriority);
|
|
295
295
|
this.onUnmount(() => {
|
|
296
|
-
delete
|
|
296
|
+
delete _chunkXOWAQGBOjs.Context.addonRecord[this.key];
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
if (this.guard) {
|
|
300
|
-
|
|
300
|
+
_chunkXOWAQGBOjs.addGuard.call(void 0, this.key, this.guard.bind(this), this.guardPriority);
|
|
301
301
|
this.onUnmount(() => {
|
|
302
|
-
delete
|
|
302
|
+
delete _chunkXOWAQGBOjs.Context.guardRecord[this.key];
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
if (this.filter) {
|
|
306
|
-
|
|
306
|
+
_chunkXOWAQGBOjs.addFilter.call(void 0, this.key, this.filter.bind(this));
|
|
307
307
|
this.onUnmount(() => {
|
|
308
|
-
delete
|
|
308
|
+
delete _chunkXOWAQGBOjs.Context.filterRecord[this.key];
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
}
|
|
@@ -392,7 +392,7 @@ var HTTPGenerator = (_class6 = class extends Generator {constructor(...args6) {
|
|
|
392
392
|
addMethod(args) {
|
|
393
393
|
const { http, name, method, params, tag } = args;
|
|
394
394
|
if (!_optionalChain([http, 'optionalAccess', _2 => _2.method])) return;
|
|
395
|
-
const url =
|
|
395
|
+
const url = _chunkXOWAQGBOjs.joinUrl.call(void 0, http.prefix, http.route).replace(/\/\:([^\/]*)/g, (_, js) => `/{{${js}}}`);
|
|
396
396
|
if (!this.classMap[name]) this.classMap[name] = {};
|
|
397
397
|
this.classMap[name][method] = `
|
|
398
398
|
${method}(...args){
|
|
@@ -439,7 +439,7 @@ var OpenAPIGenerator = (_class7 = class extends Generator {constructor(...args7)
|
|
|
439
439
|
if (!_optionalChain([http, 'optionalAccess', _3 => _3.method])) return;
|
|
440
440
|
const config = _phecdacore.getMergedMeta.call(void 0, model, method).openapi;
|
|
441
441
|
if (!config) return;
|
|
442
|
-
const path =
|
|
442
|
+
const path = _chunkXOWAQGBOjs.joinUrl.call(void 0, http.prefix, http.route);
|
|
443
443
|
if (!this.paths[path]) this.paths[path] = {};
|
|
444
444
|
this.paths[path][http.method] = {
|
|
445
445
|
summary: config.summary,
|
|
@@ -618,4 +618,4 @@ var GraphGenerator = (_class9 = class extends Generator {constructor(...args8) {
|
|
|
618
618
|
|
|
619
619
|
|
|
620
620
|
|
|
621
|
-
exports.Addon = _chunk5ZZAOOKEjs.Addon; exports.ApiDoc = _chunk5ZZAOOKEjs.ApiDoc; exports.Arg = _chunk5ZZAOOKEjs.Arg; exports.BadGatewayException =
|
|
621
|
+
exports.Addon = _chunk5ZZAOOKEjs.Addon; exports.ApiDoc = _chunk5ZZAOOKEjs.ApiDoc; exports.Arg = _chunk5ZZAOOKEjs.Arg; exports.BadGatewayException = _chunkXOWAQGBOjs.BadGatewayException; exports.BadRequestException = _chunkXOWAQGBOjs.BadRequestException; exports.BaseParam = _chunk5ZZAOOKEjs.BaseParam; exports.Body = _chunk5ZZAOOKEjs.Body; exports.ConflictException = _chunkXOWAQGBOjs.ConflictException; exports.Context = _chunkXOWAQGBOjs.Context; exports.Controller = _chunk5ZZAOOKEjs.Controller; exports.Ctx = _chunk5ZZAOOKEjs.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunk5ZZAOOKEjs.Define; exports.Delete = _chunk5ZZAOOKEjs.Delete; exports.DocGenerator = DocGenerator; exports.ERROR_SYMBOL = _chunkLLF55NZPjs.ERROR_SYMBOL; exports.Exception = _chunkXOWAQGBOjs.Exception; exports.Factory = _chunkSKGOTR4Tjs.Factory; exports.Filter = _chunk5ZZAOOKEjs.Filter; exports.ForbiddenException = _chunkXOWAQGBOjs.ForbiddenException; exports.FrameworkException = _chunkXOWAQGBOjs.FrameworkException; exports.Generator = Generator; exports.Get = _chunk5ZZAOOKEjs.Get; exports.GraphGenerator = GraphGenerator; exports.Guard = _chunk5ZZAOOKEjs.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunk5ZZAOOKEjs.Head; exports.Header = _chunk5ZZAOOKEjs.Header; exports.HttpBase = HttpBase; exports.IS_DEV = _chunkLLF55NZPjs.IS_DEV; exports.IS_ONLY_GENERATE = _chunkLLF55NZPjs.IS_ONLY_GENERATE; exports.IS_PURE = _chunkLLF55NZPjs.IS_PURE; exports.IS_STRICT = _chunkLLF55NZPjs.IS_STRICT; exports.InvalidInputException = _chunkXOWAQGBOjs.InvalidInputException; exports.LOG_LEVEL = _chunkLLF55NZPjs.LOG_LEVEL; exports.Meta = _chunkSKGOTR4Tjs.Meta; exports.Mixin = _chunkLLF55NZPjs.Mixin; exports.NotFoundException = _chunkXOWAQGBOjs.NotFoundException; exports.OpenAPIGenerator = OpenAPIGenerator; exports.PAddon = PAddon; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PPipe = PPipe; exports.PS_EXIT_CODE = _chunkLLF55NZPjs.PS_EXIT_CODE; exports.Param = _chunk5ZZAOOKEjs.Param; exports.Patch = _chunk5ZZAOOKEjs.Patch; exports.PayloadLargeException = _chunkXOWAQGBOjs.PayloadLargeException; exports.Pipe = _chunk5ZZAOOKEjs.Pipe; exports.Post = _chunk5ZZAOOKEjs.Post; exports.Put = _chunk5ZZAOOKEjs.Put; exports.Query = _chunk5ZZAOOKEjs.Query; exports.Queue = _chunk5ZZAOOKEjs.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunk5ZZAOOKEjs.Route; exports.Rpc = _chunk5ZZAOOKEjs.Rpc; exports.RpcBase = RpcBase; exports.Search = _chunk5ZZAOOKEjs.Search; exports.ServerBase = ServerBase; exports.ServerPhecda = _chunkSKGOTR4Tjs.ServerPhecda; exports.ServiceUnavailableException = _chunkXOWAQGBOjs.ServiceUnavailableException; exports.TimeoutException = _chunkXOWAQGBOjs.TimeoutException; exports.TimerException = _chunkXOWAQGBOjs.TimerException; exports.UnauthorizedException = _chunkXOWAQGBOjs.UnauthorizedException; exports.UndefinedException = _chunkXOWAQGBOjs.UndefinedException; exports.UnsupportedMediaTypeException = _chunkXOWAQGBOjs.UnsupportedMediaTypeException; exports.UploadFile = _chunk5ZZAOOKEjs.UploadFile; exports.ValidateException = _chunkXOWAQGBOjs.ValidateException; exports.WorkerException = _chunkXOWAQGBOjs.WorkerException; exports.addAddon = _chunkXOWAQGBOjs.addAddon; exports.addFilter = _chunkXOWAQGBOjs.addFilter; exports.addGuard = _chunkXOWAQGBOjs.addGuard; exports.addPipe = _chunkXOWAQGBOjs.addPipe; exports.defaultFilter = _chunkXOWAQGBOjs.defaultFilter; exports.defaultPipe = _chunkXOWAQGBOjs.defaultPipe; exports.defaultServerInject = _chunkSKGOTR4Tjs.defaultServerInject; exports.emitter = _chunkSKGOTR4Tjs.emitter; exports.getLogger = _chunkLLF55NZPjs.getLogger; exports.log = _chunkLLF55NZPjs.log; exports.phecdaNamespace = _chunkSKGOTR4Tjs.phecdaNamespace; exports.runMiddleware = _chunkLLF55NZPjs.runMiddleware; exports.setLogger = _chunkLLF55NZPjs.setLogger; exports.useS = _chunkSKGOTR4Tjs.useS;
|
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
defaultFilter,
|
|
61
61
|
defaultPipe,
|
|
62
62
|
joinUrl
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-LQFHZGVJ.mjs";
|
|
64
64
|
import {
|
|
65
65
|
ERROR_SYMBOL,
|
|
66
66
|
IS_DEV,
|
|
@@ -129,7 +129,7 @@ _ts_decorate([
|
|
|
129
129
|
], RpcBase.prototype, "context", void 0);
|
|
130
130
|
|
|
131
131
|
// src/modules/filter.ts
|
|
132
|
-
import {
|
|
132
|
+
import { Init, getTag } from "phecda-core";
|
|
133
133
|
function _ts_decorate2(decorators, target, key, desc) {
|
|
134
134
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
135
135
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -162,7 +162,7 @@ _ts_decorate2([
|
|
|
162
162
|
], PFilter.prototype, "_init", null);
|
|
163
163
|
|
|
164
164
|
// src/modules/guard.ts
|
|
165
|
-
import {
|
|
165
|
+
import { Init as Init2, getTag as getTag2 } from "phecda-core";
|
|
166
166
|
function _ts_decorate3(decorators, target, key, desc) {
|
|
167
167
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
168
168
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -196,7 +196,7 @@ _ts_decorate3([
|
|
|
196
196
|
], PGuard.prototype, "_init", null);
|
|
197
197
|
|
|
198
198
|
// src/modules/pipe.ts
|
|
199
|
-
import {
|
|
199
|
+
import { Init as Init3, getTag as getTag3 } from "phecda-core";
|
|
200
200
|
function _ts_decorate4(decorators, target, key, desc) {
|
|
201
201
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
202
202
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -229,7 +229,7 @@ _ts_decorate4([
|
|
|
229
229
|
], PPipe.prototype, "_init", null);
|
|
230
230
|
|
|
231
231
|
// src/modules/addon.ts
|
|
232
|
-
import {
|
|
232
|
+
import { Init as Init4, getTag as getTag4 } from "phecda-core";
|
|
233
233
|
function _ts_decorate5(decorators, target, key, desc) {
|
|
234
234
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
235
235
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -263,7 +263,7 @@ _ts_decorate5([
|
|
|
263
263
|
], PAddon.prototype, "_init", null);
|
|
264
264
|
|
|
265
265
|
// src/modules/extension.ts
|
|
266
|
-
import {
|
|
266
|
+
import { Init as Init5, getTag as getTag5 } from "phecda-core";
|
|
267
267
|
function _ts_decorate6(decorators, target, key, desc) {
|
|
268
268
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
269
269
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -91,4 +91,4 @@ interface ControllerMeta extends Meta {
|
|
|
91
91
|
data: ControllerMetaData;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export { type BaseCtx as B,
|
|
94
|
+
export { type BaseCtx as B, type ControllerMeta as C, type DefaultOptions as D, type Emitter as E, IS_DEV as I, LOG_LEVEL as L, Meta as M, PS_EXIT_CODE as P, type ServiceMetaData as S, type BaseError as a, type ControllerMetaData as b, type BaseRequestMethod as c, CustomResponse as d, ERROR_SYMBOL as e, type ExtractResponse as f, IS_ONLY_GENERATE as g, IS_PURE as h, IS_STRICT as i, type MetaData as j };
|
|
@@ -91,4 +91,4 @@ interface ControllerMeta extends Meta {
|
|
|
91
91
|
data: ControllerMetaData;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
export { type BaseCtx as B,
|
|
94
|
+
export { type BaseCtx as B, type ControllerMeta as C, type DefaultOptions as D, type Emitter as E, IS_DEV as I, LOG_LEVEL as L, Meta as M, PS_EXIT_CODE as P, type ServiceMetaData as S, type BaseError as a, type ControllerMetaData as b, type BaseRequestMethod as c, CustomResponse as d, ERROR_SYMBOL as e, type ExtractResponse as f, IS_ONLY_GENERATE as g, IS_PURE as h, IS_STRICT as i, type MetaData as j };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WorkerOptions, QueueOptions, Worker, Queue } from 'bullmq';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-BYxcQ8kf.mjs';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DSlyrmns.mjs';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.mjs';
|
|
6
6
|
|
|
7
7
|
interface BullmqCtx extends RpcCtx {
|
|
8
8
|
type: 'bullmq';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { WorkerOptions, QueueOptions, Worker, Queue } from 'bullmq';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-BiS3xJKx.js';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DExQe0qk.js';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.js';
|
|
6
6
|
|
|
7
7
|
interface BullmqCtx extends RpcCtx {
|
|
8
8
|
type: 'bullmq';
|
package/dist/rpc/bullmq/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXOWAQGBOjs = require('../../chunk-XOWAQGBO.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -17,14 +17,14 @@ async function create({ moduleMap, meta }, opts = {}) {
|
|
|
17
17
|
const workerMap = {};
|
|
18
18
|
const queueMap = {};
|
|
19
19
|
const existQueue = /* @__PURE__ */ new Set();
|
|
20
|
-
const metaMap =
|
|
20
|
+
const metaMap = _chunkXOWAQGBOjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
21
21
|
const { controller, rpc, method, tag } = meta2.data;
|
|
22
22
|
if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
|
|
23
23
|
debug(`register method "${method}" in module "${tag}"`);
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
_chunkXOWAQGBOjs.detectAopDep.call(void 0, meta, {
|
|
28
28
|
guards: globalGuards
|
|
29
29
|
}, "rpc");
|
|
30
30
|
async function subscribeQueues() {
|
|
@@ -38,7 +38,7 @@ async function create({ moduleMap, meta }, opts = {}) {
|
|
|
38
38
|
if (existQueue.has(queue)) continue;
|
|
39
39
|
existQueue.add(queue);
|
|
40
40
|
workerMap[queue] = new (0, _bullmq.Worker)(queue, handleRequest, workerOpts);
|
|
41
|
-
|
|
41
|
+
_chunkXOWAQGBOjs.Context.applyAddons(addons, workerMap[queue], "bullmq");
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -52,12 +52,12 @@ async function create({ moduleMap, meta }, opts = {}) {
|
|
|
52
52
|
const meta2 = metaMap.get(tag)[method];
|
|
53
53
|
const { data: { rpc: { isEvent } = {} } } = meta2;
|
|
54
54
|
if (!isEvent && !(clientQueue in queueMap)) queueMap[clientQueue] = new (0, _bullmq.Queue)(clientQueue, queueOpts);
|
|
55
|
-
const aop =
|
|
55
|
+
const aop = _chunkXOWAQGBOjs.Context.getAop(meta2, {
|
|
56
56
|
globalFilter,
|
|
57
57
|
globalGuards,
|
|
58
58
|
globalPipe
|
|
59
59
|
});
|
|
60
|
-
const context = new (0,
|
|
60
|
+
const context = new (0, _chunkXOWAQGBOjs.Context)({
|
|
61
61
|
type: "bullmq",
|
|
62
62
|
category: "rpc",
|
|
63
63
|
moduleMap,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Electron from 'electron';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-BYxcQ8kf.mjs';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DSlyrmns.mjs';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.mjs';
|
|
6
6
|
|
|
7
7
|
interface ElectronCtx extends RpcCtx {
|
|
8
8
|
type: 'electron';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Electron from 'electron';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-BiS3xJKx.js';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DExQe0qk.js';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.js';
|
|
6
6
|
|
|
7
7
|
interface ElectronCtx extends RpcCtx {
|
|
8
8
|
type: 'electron';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXOWAQGBOjs = require('../../chunk-XOWAQGBO.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkLLF55NZPjs = require('../../chunk-LLF55NZP.js');
|
|
@@ -12,14 +12,14 @@ var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug);
|
|
|
12
12
|
var debug = _debug2.default.call(void 0, "phecda-server/electron");
|
|
13
13
|
function bind(IPC, { moduleMap, meta }, opts = {}) {
|
|
14
14
|
const { globalGuards, globalFilter, globalPipe, globalAddons = [] } = opts;
|
|
15
|
-
const metaMap =
|
|
15
|
+
const metaMap = _chunkXOWAQGBOjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
16
16
|
const { controller, rpc, method, tag } = meta2.data;
|
|
17
17
|
if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
|
|
18
18
|
debug(`register method "${method}" in module "${tag}"`);
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
|
|
22
|
+
_chunkXOWAQGBOjs.detectAopDep.call(void 0, meta, {
|
|
23
23
|
guards: globalGuards,
|
|
24
24
|
addons: globalAddons
|
|
25
25
|
}, "rpc");
|
|
@@ -31,12 +31,12 @@ function bind(IPC, { moduleMap, meta }, opts = {}) {
|
|
|
31
31
|
if (_ps !== 1) return;
|
|
32
32
|
const meta2 = metaMap.get(tag)[method];
|
|
33
33
|
const { data: { rpc: { isEvent } = {} } } = meta2;
|
|
34
|
-
const aop =
|
|
34
|
+
const aop = _chunkXOWAQGBOjs.Context.getAop(meta2, {
|
|
35
35
|
globalFilter,
|
|
36
36
|
globalGuards,
|
|
37
37
|
globalPipe
|
|
38
38
|
});
|
|
39
|
-
const context = new (0,
|
|
39
|
+
const context = new (0, _chunkXOWAQGBOjs.Context)({
|
|
40
40
|
type: "electron",
|
|
41
41
|
category: "rpc",
|
|
42
42
|
moduleMap,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Consumer, Producer } from 'kafkajs';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-BYxcQ8kf.mjs';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DSlyrmns.mjs';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.mjs';
|
|
6
6
|
|
|
7
7
|
interface KafkaCtx extends RpcCtx {
|
|
8
8
|
type: 'kafka';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Consumer, Producer } from 'kafkajs';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-BiS3xJKx.js';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DExQe0qk.js';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.js';
|
|
6
6
|
|
|
7
7
|
interface KafkaCtx extends RpcCtx {
|
|
8
8
|
type: 'kafka';
|
package/dist/rpc/kafka/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXOWAQGBOjs = require('../../chunk-XOWAQGBO.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkLLF55NZPjs = require('../../chunk-LLF55NZP.js');
|
|
@@ -13,18 +13,18 @@ var debug = _debug2.default.call(void 0, "phecda-server/kafka");
|
|
|
13
13
|
async function bind({ consumer, producer }, { moduleMap, meta }, opts = {}) {
|
|
14
14
|
const { globalGuards, globalFilter, globalPipe, globalAddons = [], defaultQueue } = opts;
|
|
15
15
|
const existQueue = /* @__PURE__ */ new Set();
|
|
16
|
-
const metaMap =
|
|
16
|
+
const metaMap = _chunkXOWAQGBOjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
|
|
17
17
|
const { controller, rpc, method, tag } = meta2.data;
|
|
18
18
|
if (controller === "rpc" && _optionalChain([rpc, 'optionalAccess', _ => _.queue]) !== void 0) {
|
|
19
19
|
debug(`register method "${method}" in module "${tag}"`);
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
|
|
23
|
+
_chunkXOWAQGBOjs.detectAopDep.call(void 0, meta, {
|
|
24
24
|
guards: globalGuards,
|
|
25
25
|
addons: globalAddons
|
|
26
26
|
}, "rpc");
|
|
27
|
-
|
|
27
|
+
_chunkXOWAQGBOjs.Context.applyAddons(globalAddons, {
|
|
28
28
|
consumer,
|
|
29
29
|
producer
|
|
30
30
|
}, "kafka");
|
|
@@ -58,12 +58,12 @@ async function bind({ consumer, producer }, { moduleMap, meta }, opts = {}) {
|
|
|
58
58
|
const meta2 = metaMap.get(tag)[method];
|
|
59
59
|
const { data: { rpc } } = meta2;
|
|
60
60
|
const isEvent = rpc.isEvent;
|
|
61
|
-
const aop =
|
|
61
|
+
const aop = _chunkXOWAQGBOjs.Context.getAop(meta2, {
|
|
62
62
|
globalFilter,
|
|
63
63
|
globalGuards,
|
|
64
64
|
globalPipe
|
|
65
65
|
});
|
|
66
|
-
const context = new (0,
|
|
66
|
+
const context = new (0, _chunkXOWAQGBOjs.Context)({
|
|
67
67
|
type: "kafka",
|
|
68
68
|
category: "rpc",
|
|
69
69
|
moduleMap,
|
package/dist/rpc/kafka/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NatsConnection } from 'nats';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-BYxcQ8kf.mjs';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DSlyrmns.mjs';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.mjs';
|
|
6
6
|
|
|
7
7
|
interface NatsCtx extends RpcCtx {
|
|
8
8
|
type: 'nats';
|
package/dist/rpc/nats/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NatsConnection } from 'nats';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-BiS3xJKx.js';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DExQe0qk.js';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.js';
|
|
6
6
|
|
|
7
7
|
interface NatsCtx extends RpcCtx {
|
|
8
8
|
type: 'nats';
|