phecda-server 8.0.0 → 8.0.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.
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkYJ3QHGTCjs = require('../../chunk-YJ3QHGTC.js');
6
+ var _chunkLD7YMHIEjs = require('../../chunk-LD7YMHIE.js');
7
7
 
8
8
 
9
9
  var _chunk4LLLQOMFjs = require('../../chunk-4LLLQOMF.js');
@@ -16,14 +16,14 @@ var debug = _debug2.default.call(void 0, "phecda-server/hono");
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 = _chunkYJ3QHGTCjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
19
+ const metaMap = _chunkLD7YMHIEjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
20
20
  const { controller, http, method, tag } = meta2.data;
21
21
  if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.method])) {
22
22
  debug(`register method "${method}" in module "${tag}"`);
23
23
  return true;
24
24
  }
25
25
  });
26
- _chunkYJ3QHGTCjs.detectAopDep.call(void 0, meta, {
26
+ _chunkLD7YMHIEjs.detectAopDep.call(void 0, meta, {
27
27
  addons: [
28
28
  ...globalAddons,
29
29
  ...parallelAddons
@@ -34,26 +34,26 @@ function bind(router, data, opts = {}) {
34
34
  function registerRoute() {
35
35
  if (parallelRoute) {
36
36
  const subApp = new (0, _hono.Hono)();
37
- _chunkYJ3QHGTCjs.Context.applyAddons(parallelAddons, subApp, "hono");
37
+ _chunkLD7YMHIEjs.Context.applyAddons(parallelAddons, subApp, "hono");
38
38
  subApp.post("", async (c) => {
39
39
  const body = await c.req.json();
40
40
  async function errorHandler(e) {
41
- const error = await _chunkYJ3QHGTCjs.Context.filterRecord.default(e);
41
+ const error = await _chunkLD7YMHIEjs.Context.filterRecord.default(e);
42
42
  c.status(error.status);
43
43
  return c.json(error);
44
44
  }
45
45
  _chunk4LLLQOMFjs.__name.call(void 0, errorHandler, "errorHandler");
46
- if (!Array.isArray(body)) return errorHandler(new (0, _chunkYJ3QHGTCjs.BadRequestException)("data format should be an array"));
46
+ if (!Array.isArray(body)) return errorHandler(new (0, _chunkLD7YMHIEjs.BadRequestException)("data format should be an array"));
47
47
  try {
48
48
  return Promise.all(body.map((item, i) => {
49
49
  return new Promise(async (resolve) => {
50
50
  if (!item) return resolve(null);
51
51
  const { tag, method } = item;
52
52
  debug(`(parallel)invoke method "${method}" in module "${tag}"`);
53
- if (!metaMap.has(tag)) return resolve(await _chunkYJ3QHGTCjs.Context.filterRecord.default(new (0, _chunkYJ3QHGTCjs.BadRequestException)(`module "${tag}" doesn't exist`)));
53
+ if (!metaMap.has(tag)) return resolve(await _chunkLD7YMHIEjs.Context.filterRecord.default(new (0, _chunkLD7YMHIEjs.BadRequestException)(`module "${tag}" doesn't exist`)));
54
54
  const meta2 = metaMap.get(tag)[method];
55
- if (!meta2) return resolve(await _chunkYJ3QHGTCjs.Context.filterRecord.default(new (0, _chunkYJ3QHGTCjs.BadRequestException)(`"${method}" in "${tag}" doesn't exist`)));
56
- const aop = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
55
+ if (!meta2) return resolve(await _chunkLD7YMHIEjs.Context.filterRecord.default(new (0, _chunkLD7YMHIEjs.BadRequestException)(`"${method}" in "${tag}" doesn't exist`)));
56
+ const aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
57
57
  globalFilter,
58
58
  globalGuards,
59
59
  globalPipe
@@ -79,7 +79,7 @@ function bind(router, data, opts = {}) {
79
79
  getRequest: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => c.req.raw, "getRequest"),
80
80
  getResponse: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => c.res, "getResponse")
81
81
  };
82
- const context = new (0, _chunkYJ3QHGTCjs.Context)(contextData);
82
+ const context = new (0, _chunkLD7YMHIEjs.Context)(contextData);
83
83
  context.run(aop, resolve, resolve);
84
84
  });
85
85
  })).then((ret) => {
@@ -99,14 +99,14 @@ function bind(router, data, opts = {}) {
99
99
  const needBody = params.some((item) => item.type === "body");
100
100
  let aop;
101
101
  if (!dynamic) {
102
- aop = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
102
+ aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
103
103
  globalFilter,
104
104
  globalGuards,
105
105
  globalPipe
106
106
  });
107
107
  }
108
108
  const subApp = new (0, _hono.Hono)();
109
- _chunkYJ3QHGTCjs.Context.applyAddons(addons, subApp, "hono");
109
+ _chunkLD7YMHIEjs.Context.applyAddons(addons, subApp, "hono");
110
110
  subApp[http.method](http.route, async (c) => {
111
111
  debug(`invoke method "${method}" in module "${tag}"`);
112
112
  const contextData = {
@@ -133,12 +133,12 @@ function bind(router, data, opts = {}) {
133
133
  getRequest: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => c.req.raw, "getRequest"),
134
134
  getResponse: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => c.res, "getResponse")
135
135
  };
136
- const context = new (0, _chunkYJ3QHGTCjs.Context)(contextData);
136
+ const context = new (0, _chunkLD7YMHIEjs.Context)(contextData);
137
137
  if (http.headers) {
138
138
  for (const name in http.headers) c.header(name, http.headers[name]);
139
139
  }
140
140
  if (dynamic) {
141
- aop = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
141
+ aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
142
142
  globalFilter,
143
143
  globalGuards,
144
144
  globalPipe
@@ -3,7 +3,7 @@ import {
3
3
  Context,
4
4
  createControllerMetaMap,
5
5
  detectAopDep
6
- } from "../../chunk-VAHCYYCB.mjs";
6
+ } from "../../chunk-G5IH3TP7.mjs";
7
7
  import {
8
8
  __name
9
9
  } from "../../chunk-NQ55PA2X.mjs";
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkYJ3QHGTCjs = require('../../chunk-YJ3QHGTC.js');
7
+ var _chunkLD7YMHIEjs = require('../../chunk-LD7YMHIE.js');
8
8
 
9
9
 
10
10
  var _chunk4LLLQOMFjs = require('../../chunk-4LLLQOMF.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 = _chunkYJ3QHGTCjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
19
+ const metaMap = _chunkLD7YMHIEjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
20
20
  const { controller, http, method, tag } = meta2.data;
21
21
  if (controller === "http" && _optionalChain([http, 'optionalAccess', _ => _.method])) {
22
22
  debug(`register method "${method}" in module "${tag}"`);
23
23
  return true;
24
24
  }
25
25
  });
26
- _chunkYJ3QHGTCjs.detectAopDep.call(void 0, meta, {
26
+ _chunkLD7YMHIEjs.detectAopDep.call(void 0, meta, {
27
27
  addons: [
28
28
  ...globalAddons,
29
29
  ...parallelAddons
@@ -32,27 +32,27 @@ function bind(router, data, opts = {}) {
32
32
  });
33
33
  registerRoute();
34
34
  async function registerRoute() {
35
- _chunkYJ3QHGTCjs.Context.applyAddons(globalAddons, router, "hyper-express");
35
+ _chunkLD7YMHIEjs.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 _chunkYJ3QHGTCjs.Context.filterRecord.default(e);
41
+ const error = await _chunkLD7YMHIEjs.Context.filterRecord.default(e);
42
42
  return res.status(error.status).json(error);
43
43
  }
44
44
  _chunk4LLLQOMFjs.__name.call(void 0, errorHandler, "errorHandler");
45
- if (!Array.isArray(body)) return errorHandler(new (0, _chunkYJ3QHGTCjs.BadRequestException)("data format should be an array"));
45
+ if (!Array.isArray(body)) return errorHandler(new (0, _chunkLD7YMHIEjs.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
  if (!item) return resolve(null);
50
50
  const { tag, method } = item;
51
51
  debug(`(parallel)invoke method "${method}" in module "${tag}"`);
52
- if (!metaMap.has(tag)) return resolve(await _chunkYJ3QHGTCjs.Context.filterRecord.default(new (0, _chunkYJ3QHGTCjs.BadRequestException)(`module "${tag}" doesn't exist`)));
52
+ if (!metaMap.has(tag)) return resolve(await _chunkLD7YMHIEjs.Context.filterRecord.default(new (0, _chunkLD7YMHIEjs.BadRequestException)(`module "${tag}" doesn't exist`)));
53
53
  const meta2 = metaMap.get(tag)[method];
54
- if (!meta2) return resolve(await _chunkYJ3QHGTCjs.Context.filterRecord.default(new (0, _chunkYJ3QHGTCjs.BadRequestException)(`"${method}" in "${tag}" doesn't exist`)));
55
- const aop = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
54
+ if (!meta2) return resolve(await _chunkLD7YMHIEjs.Context.filterRecord.default(new (0, _chunkLD7YMHIEjs.BadRequestException)(`"${method}" in "${tag}" doesn't exist`)));
55
+ const aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
56
56
  globalFilter,
57
57
  globalGuards,
58
58
  globalPipe
@@ -78,7 +78,7 @@ function bind(router, data, opts = {}) {
78
78
  getRequest: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => req, "getRequest"),
79
79
  getResponse: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => res, "getResponse")
80
80
  };
81
- const context = new (0, _chunkYJ3QHGTCjs.Context)(contextData);
81
+ const context = new (0, _chunkLD7YMHIEjs.Context)(contextData);
82
82
  context.run(aop, resolve, resolve);
83
83
  });
84
84
  })).then((ret) => {
@@ -98,15 +98,15 @@ function bind(router, data, opts = {}) {
98
98
  const needBody = params.some((item) => item.type === "body");
99
99
  let aop;
100
100
  if (!dynamic) {
101
- aop = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
101
+ aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
102
102
  globalFilter,
103
103
  globalGuards,
104
104
  globalPipe
105
105
  });
106
106
  }
107
107
  const subRouter = new (0, _hyperexpress.Router)();
108
- _chunkYJ3QHGTCjs.Context.applyAddons(addons, subRouter, "hyper-express");
109
- subRouter[http.method](_chunkYJ3QHGTCjs.joinUrl.call(void 0, http.prefix, http.route), async (req, res, next) => {
108
+ _chunkLD7YMHIEjs.Context.applyAddons(addons, subRouter, "hyper-express");
109
+ subRouter[http.method](_chunkLD7YMHIEjs.joinUrl.call(void 0, http.prefix, http.route), async (req, res, next) => {
110
110
  debug(`invoke method "${method}" in module "${tag}"`);
111
111
  const contextData = {
112
112
  type: "hyper-express",
@@ -132,12 +132,12 @@ function bind(router, data, opts = {}) {
132
132
  getRequest: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => req, "getRequest"),
133
133
  getResponse: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => res, "getResponse")
134
134
  };
135
- const context = new (0, _chunkYJ3QHGTCjs.Context)(contextData);
135
+ const context = new (0, _chunkLD7YMHIEjs.Context)(contextData);
136
136
  if (http.headers) {
137
137
  for (const name in http.headers) res.set(name, http.headers[name]);
138
138
  }
139
139
  if (dynamic) {
140
- aop = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
140
+ aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
141
141
  globalFilter,
142
142
  globalGuards,
143
143
  globalPipe
@@ -4,7 +4,7 @@ import {
4
4
  createControllerMetaMap,
5
5
  detectAopDep,
6
6
  joinUrl
7
- } from "../../chunk-VAHCYYCB.mjs";
7
+ } from "../../chunk-G5IH3TP7.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "../../chunk-NQ55PA2X.mjs";
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkYJ3QHGTCjs = require('../../chunk-YJ3QHGTC.js');
7
+ var _chunkLD7YMHIEjs = require('../../chunk-LD7YMHIE.js');
8
8
 
9
9
 
10
10
 
@@ -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 = _chunkYJ3QHGTCjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
21
+ const metaMap = _chunkLD7YMHIEjs.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
- _chunkYJ3QHGTCjs.detectAopDep.call(void 0, meta, {
28
+ _chunkLD7YMHIEjs.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
- _chunkYJ3QHGTCjs.Context.applyAddons(globalAddons, router, "koa");
37
+ _chunkLD7YMHIEjs.Context.applyAddons(globalAddons, router, "koa");
38
38
  if (parallelRoute) {
39
39
  const subRouter = new (0, _router2.default)();
40
- _chunkYJ3QHGTCjs.Context.applyAddons(parallelAddons, subRouter, "koa");
40
+ _chunkLD7YMHIEjs.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 _chunkYJ3QHGTCjs.Context.filterRecord.default(e);
44
+ const error = await _chunkLD7YMHIEjs.Context.filterRecord.default(e);
45
45
  ctx.status = error.status;
46
46
  ctx.body = error;
47
47
  }
48
48
  _chunk4LLLQOMFjs.__name.call(void 0, errorHandler, "errorHandler");
49
- if (!Array.isArray(body)) return errorHandler(new (0, _chunkYJ3QHGTCjs.BadRequestException)("data format should be an array"));
49
+ if (!Array.isArray(body)) return errorHandler(new (0, _chunkLD7YMHIEjs.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 _chunkYJ3QHGTCjs.Context.filterRecord.default(new (0, _chunkYJ3QHGTCjs.BadRequestException)(`module "${tag}" doesn't exist`)));
56
+ if (!metaMap.has(tag)) return resolve(await _chunkLD7YMHIEjs.Context.filterRecord.default(new (0, _chunkLD7YMHIEjs.BadRequestException)(`module "${tag}" doesn't exist`)));
57
57
  const meta2 = metaMap.get(tag)[method];
58
- if (!meta2) return resolve(await _chunkYJ3QHGTCjs.Context.filterRecord.default(new (0, _chunkYJ3QHGTCjs.BadRequestException)(`"${method}" in "${tag}" doesn't exist`)));
59
- const aop = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
58
+ if (!meta2) return resolve(await _chunkLD7YMHIEjs.Context.filterRecord.default(new (0, _chunkLD7YMHIEjs.BadRequestException)(`"${method}" in "${tag}" doesn't exist`)));
59
+ const aop = _chunkLD7YMHIEjs.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__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => ctx.req, "getRequest"),
84
84
  getResponse: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => ctx.res, "getResponse")
85
85
  };
86
- const context = new (0, _chunkYJ3QHGTCjs.Context)(contextData);
86
+ const context = new (0, _chunkLD7YMHIEjs.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 = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
105
+ aop = _chunkLD7YMHIEjs.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
- _chunkYJ3QHGTCjs.Context.applyAddons(addons, subRouter, "koa");
113
- router[http.method](_chunkYJ3QHGTCjs.joinUrl.call(void 0, http.prefix, http.route), async (ctx, next) => {
112
+ _chunkLD7YMHIEjs.Context.applyAddons(addons, subRouter, "koa");
113
+ router[http.method](_chunkLD7YMHIEjs.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__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => ctx.req, "getRequest"),
138
138
  getResponse: /* @__PURE__ */ _chunk4LLLQOMFjs.__name.call(void 0, () => ctx.res, "getResponse")
139
139
  };
140
- const context = new (0, _chunkYJ3QHGTCjs.Context)(contextData);
140
+ const context = new (0, _chunkLD7YMHIEjs.Context)(contextData);
141
141
  if (http.headers) ctx.set(http.headers);
142
142
  if (dynamic) {
143
- aop = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
143
+ aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
144
144
  globalFilter,
145
145
  globalGuards,
146
146
  globalPipe
@@ -4,7 +4,7 @@ import {
4
4
  createControllerMetaMap,
5
5
  detectAopDep,
6
6
  joinUrl
7
- } from "../../chunk-VAHCYYCB.mjs";
7
+ } from "../../chunk-G5IH3TP7.mjs";
8
8
  import {
9
9
  HMR,
10
10
  __name
package/dist/index.js CHANGED
@@ -60,7 +60,7 @@ var _chunkUYZSUBX4js = require('./chunk-UYZSUBX4.js');
60
60
 
61
61
 
62
62
 
63
- var _chunkYJ3QHGTCjs = require('./chunk-YJ3QHGTC.js');
63
+ var _chunkLD7YMHIEjs = require('./chunk-LD7YMHIE.js');
64
64
 
65
65
 
66
66
 
@@ -138,9 +138,9 @@ var PFilter = class extends ServerBase {
138
138
  constructor(tag) {
139
139
  super();
140
140
  this.key = tag || _phecdacore.getTag.call(void 0, this);
141
- _chunkYJ3QHGTCjs.addFilter.call(void 0, this.key, this.use.bind(this));
141
+ _chunkLD7YMHIEjs.addFilter.call(void 0, this.key, this.use.bind(this));
142
142
  this.onUnmount(() => {
143
- delete _chunkYJ3QHGTCjs.Context.filterRecord[this.key];
143
+ delete _chunkLD7YMHIEjs.Context.filterRecord[this.key];
144
144
  });
145
145
  }
146
146
  };
@@ -156,9 +156,9 @@ var PGuard = (_class2 = class extends ServerBase {
156
156
  constructor(tag) {
157
157
  super();_class2.prototype.__init2.call(this);;
158
158
  this.key = tag || _phecdacore.getTag.call(void 0, this);
159
- _chunkYJ3QHGTCjs.addGuard.call(void 0, this.key, this.use.bind(this), this.priority);
159
+ _chunkLD7YMHIEjs.addGuard.call(void 0, this.key, this.use.bind(this), this.priority);
160
160
  this.onUnmount(() => {
161
- delete _chunkYJ3QHGTCjs.Context.guardRecord[this.key];
161
+ delete _chunkLD7YMHIEjs.Context.guardRecord[this.key];
162
162
  });
163
163
  }
164
164
  }, _class2);
@@ -173,9 +173,9 @@ var PPipe = class extends ServerBase {
173
173
  constructor(tag) {
174
174
  super();
175
175
  this.key = tag || _phecdacore.getTag.call(void 0, this);
176
- _chunkYJ3QHGTCjs.addPipe.call(void 0, this.key, this.use.bind(this));
176
+ _chunkLD7YMHIEjs.addPipe.call(void 0, this.key, this.use.bind(this));
177
177
  this.onUnmount(() => {
178
- delete _chunkYJ3QHGTCjs.Context.pipeRecord[this.key];
178
+ delete _chunkLD7YMHIEjs.Context.pipeRecord[this.key];
179
179
  });
180
180
  }
181
181
  };
@@ -191,9 +191,9 @@ var PAddon = (_class3 = class extends ServerBase {
191
191
  constructor(tag) {
192
192
  super();_class3.prototype.__init3.call(this);;
193
193
  this.key = tag || _phecdacore.getTag.call(void 0, this);
194
- _chunkYJ3QHGTCjs.addAddon.call(void 0, this.key, this.use.bind(this), this.priority);
194
+ _chunkLD7YMHIEjs.addAddon.call(void 0, this.key, this.use.bind(this), this.priority);
195
195
  this.onUnmount(() => {
196
- delete _chunkYJ3QHGTCjs.Context.addonRecord[this.key];
196
+ delete _chunkLD7YMHIEjs.Context.addonRecord[this.key];
197
197
  });
198
198
  }
199
199
  }, _class3);
@@ -211,27 +211,27 @@ var PExtension = class extends ServerBase {
211
211
  super();
212
212
  const key = this.key = tag || _phecdacore.getTag.call(void 0, this);
213
213
  if (this.pipe) {
214
- _chunkYJ3QHGTCjs.addPipe.call(void 0, key, this.pipe.bind(this));
214
+ _chunkLD7YMHIEjs.addPipe.call(void 0, key, this.pipe.bind(this));
215
215
  this.onUnmount(() => {
216
- delete _chunkYJ3QHGTCjs.Context.pipeRecord[key];
216
+ delete _chunkLD7YMHIEjs.Context.pipeRecord[key];
217
217
  });
218
218
  }
219
219
  if (this.addon) {
220
- _chunkYJ3QHGTCjs.addAddon.call(void 0, key, this.addon.bind(this), this.addonPriority);
220
+ _chunkLD7YMHIEjs.addAddon.call(void 0, key, this.addon.bind(this), this.addonPriority);
221
221
  this.onUnmount(() => {
222
- delete _chunkYJ3QHGTCjs.Context.addonRecord[key];
222
+ delete _chunkLD7YMHIEjs.Context.addonRecord[key];
223
223
  });
224
224
  }
225
225
  if (this.guard) {
226
- _chunkYJ3QHGTCjs.addGuard.call(void 0, key, this.guard.bind(this), this.guardPriority);
226
+ _chunkLD7YMHIEjs.addGuard.call(void 0, key, this.guard.bind(this), this.guardPriority);
227
227
  this.onUnmount(() => {
228
- delete _chunkYJ3QHGTCjs.Context.guardRecord[key];
228
+ delete _chunkLD7YMHIEjs.Context.guardRecord[key];
229
229
  });
230
230
  }
231
231
  if (this.filter) {
232
- _chunkYJ3QHGTCjs.addFilter.call(void 0, key, this.filter.bind(this));
232
+ _chunkLD7YMHIEjs.addFilter.call(void 0, key, this.filter.bind(this));
233
233
  this.onUnmount(() => {
234
- delete _chunkYJ3QHGTCjs.Context.filterRecord[key];
234
+ delete _chunkLD7YMHIEjs.Context.filterRecord[key];
235
235
  });
236
236
  }
237
237
  }
@@ -312,7 +312,7 @@ var HTTPGenerator = (_class6 = class extends Generator {constructor(...args4) {
312
312
  addMethod(args) {
313
313
  const { http, name, method, params, tag } = args;
314
314
  if (!_optionalChain([http, 'optionalAccess', _2 => _2.method])) return;
315
- const url = _chunkYJ3QHGTCjs.joinUrl.call(void 0, http.prefix, http.route).replace(/\/\:([^\/]*)/g, (_, js) => `/{{${js}}}`);
315
+ const url = _chunkLD7YMHIEjs.joinUrl.call(void 0, http.prefix, http.route).replace(/\/\:([^\/]*)/g, (_, js) => `/{{${js}}}`);
316
316
  if (!this.classMap[name]) this.classMap[name] = {};
317
317
  this.classMap[name][method] = `
318
318
  ${method}(...args){
@@ -359,7 +359,7 @@ var OpenAPIGenerator = (_class7 = class extends Generator {constructor(...args5)
359
359
  if (!_optionalChain([http, 'optionalAccess', _3 => _3.method])) return;
360
360
  const config = _phecdacore.getMergedMeta.call(void 0, model, method).openapi;
361
361
  if (!config) return;
362
- const path = _chunkYJ3QHGTCjs.joinUrl.call(void 0, http.prefix, http.route);
362
+ const path = _chunkLD7YMHIEjs.joinUrl.call(void 0, http.prefix, http.route);
363
363
  if (!this.paths[path]) this.paths[path] = {};
364
364
  this.paths[path][http.method] = {
365
365
  summary: config.summary,
@@ -538,4 +538,4 @@ var GraphGenerator = (_class9 = class extends Generator {constructor(...args6) {
538
538
 
539
539
 
540
540
 
541
- exports.Addon = _chunkUYZSUBX4js.Addon; exports.ApiDoc = _chunkUYZSUBX4js.ApiDoc; exports.Arg = _chunkUYZSUBX4js.Arg; exports.BadGatewayException = _chunkYJ3QHGTCjs.BadGatewayException; exports.BadRequestException = _chunkYJ3QHGTCjs.BadRequestException; exports.BaseParam = _chunkUYZSUBX4js.BaseParam; exports.Body = _chunkUYZSUBX4js.Body; exports.ConflictException = _chunkYJ3QHGTCjs.ConflictException; exports.Context = _chunkYJ3QHGTCjs.Context; exports.Controller = _chunkUYZSUBX4js.Controller; exports.Ctx = _chunkUYZSUBX4js.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunkUYZSUBX4js.Define; exports.Delete = _chunkUYZSUBX4js.Delete; exports.DocGenerator = DocGenerator; exports.ERROR_SYMBOL = _chunk4LLLQOMFjs.ERROR_SYMBOL; exports.Exception = _chunkYJ3QHGTCjs.Exception; exports.Factory = _chunkOLNN4U3Ojs.Factory; exports.Filter = _chunkUYZSUBX4js.Filter; exports.ForbiddenException = _chunkYJ3QHGTCjs.ForbiddenException; exports.FrameworkException = _chunkYJ3QHGTCjs.FrameworkException; exports.Generator = Generator; exports.Get = _chunkUYZSUBX4js.Get; exports.GraphGenerator = GraphGenerator; exports.Guard = _chunkUYZSUBX4js.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunkUYZSUBX4js.Head; exports.Header = _chunkUYZSUBX4js.Header; exports.HttpBase = HttpBase; exports.IS_DEV = _chunk4LLLQOMFjs.IS_DEV; exports.IS_ONLY_GENERATE = _chunk4LLLQOMFjs.IS_ONLY_GENERATE; exports.IS_PURE = _chunk4LLLQOMFjs.IS_PURE; exports.IS_STRICT = _chunk4LLLQOMFjs.IS_STRICT; exports.InvalidInputException = _chunkYJ3QHGTCjs.InvalidInputException; exports.LOG_LEVEL = _chunk4LLLQOMFjs.LOG_LEVEL; exports.ManyFiles = _chunkUYZSUBX4js.ManyFiles; exports.Meta = _chunkOLNN4U3Ojs.Meta; exports.Mixin = _chunk4LLLQOMFjs.Mixin; exports.NotFoundException = _chunkYJ3QHGTCjs.NotFoundException; exports.OneFile = _chunkUYZSUBX4js.OneFile; exports.OpenAPIGenerator = OpenAPIGenerator; exports.PAddon = PAddon; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PPipe = PPipe; exports.PS_EXIT_CODE = _chunk4LLLQOMFjs.PS_EXIT_CODE; exports.Param = _chunkUYZSUBX4js.Param; exports.Patch = _chunkUYZSUBX4js.Patch; exports.PayloadLargeException = _chunkYJ3QHGTCjs.PayloadLargeException; exports.Pipe = _chunkUYZSUBX4js.Pipe; exports.Post = _chunkUYZSUBX4js.Post; exports.Put = _chunkUYZSUBX4js.Put; exports.Query = _chunkUYZSUBX4js.Query; exports.Queue = _chunkUYZSUBX4js.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunkUYZSUBX4js.Route; exports.Rpc = _chunkUYZSUBX4js.Rpc; exports.RpcBase = RpcBase; exports.Search = _chunkUYZSUBX4js.Search; exports.ServerBase = ServerBase; exports.ServerPhecda = _chunkOLNN4U3Ojs.ServerPhecda; exports.ServiceUnavailableException = _chunkYJ3QHGTCjs.ServiceUnavailableException; exports.TimeoutException = _chunkYJ3QHGTCjs.TimeoutException; exports.TimerException = _chunkYJ3QHGTCjs.TimerException; exports.UnauthorizedException = _chunkYJ3QHGTCjs.UnauthorizedException; exports.UndefinedException = _chunkYJ3QHGTCjs.UndefinedException; exports.UnsupportedMediaTypeException = _chunkYJ3QHGTCjs.UnsupportedMediaTypeException; exports.ValidateException = _chunkYJ3QHGTCjs.ValidateException; exports.WorkerException = _chunkYJ3QHGTCjs.WorkerException; exports.addAddon = _chunkYJ3QHGTCjs.addAddon; exports.addFilter = _chunkYJ3QHGTCjs.addFilter; exports.addGuard = _chunkYJ3QHGTCjs.addGuard; exports.addPipe = _chunkYJ3QHGTCjs.addPipe; exports.defaultPipe = _chunkYJ3QHGTCjs.defaultPipe; exports.defaultServerInject = _chunkOLNN4U3Ojs.defaultServerInject; exports.emitter = _chunkOLNN4U3Ojs.emitter; exports.getLogger = _chunk4LLLQOMFjs.getLogger; exports.log = _chunk4LLLQOMFjs.log; exports.phecdaNamespace = _chunkOLNN4U3Ojs.phecdaNamespace; exports.runMiddleware = _chunk4LLLQOMFjs.runMiddleware; exports.setLogger = _chunk4LLLQOMFjs.setLogger; exports.useS = _chunkOLNN4U3Ojs.useS;
541
+ exports.Addon = _chunkUYZSUBX4js.Addon; exports.ApiDoc = _chunkUYZSUBX4js.ApiDoc; exports.Arg = _chunkUYZSUBX4js.Arg; exports.BadGatewayException = _chunkLD7YMHIEjs.BadGatewayException; exports.BadRequestException = _chunkLD7YMHIEjs.BadRequestException; exports.BaseParam = _chunkUYZSUBX4js.BaseParam; exports.Body = _chunkUYZSUBX4js.Body; exports.ConflictException = _chunkLD7YMHIEjs.ConflictException; exports.Context = _chunkLD7YMHIEjs.Context; exports.Controller = _chunkUYZSUBX4js.Controller; exports.Ctx = _chunkUYZSUBX4js.Ctx; exports.CustomResponse = CustomResponse; exports.Define = _chunkUYZSUBX4js.Define; exports.Delete = _chunkUYZSUBX4js.Delete; exports.DocGenerator = DocGenerator; exports.ERROR_SYMBOL = _chunk4LLLQOMFjs.ERROR_SYMBOL; exports.Exception = _chunkLD7YMHIEjs.Exception; exports.Factory = _chunkOLNN4U3Ojs.Factory; exports.Filter = _chunkUYZSUBX4js.Filter; exports.ForbiddenException = _chunkLD7YMHIEjs.ForbiddenException; exports.FrameworkException = _chunkLD7YMHIEjs.FrameworkException; exports.Generator = Generator; exports.Get = _chunkUYZSUBX4js.Get; exports.GraphGenerator = GraphGenerator; exports.Guard = _chunkUYZSUBX4js.Guard; exports.HTTPGenerator = HTTPGenerator; exports.Head = _chunkUYZSUBX4js.Head; exports.Header = _chunkUYZSUBX4js.Header; exports.HttpBase = HttpBase; exports.IS_DEV = _chunk4LLLQOMFjs.IS_DEV; exports.IS_ONLY_GENERATE = _chunk4LLLQOMFjs.IS_ONLY_GENERATE; exports.IS_PURE = _chunk4LLLQOMFjs.IS_PURE; exports.IS_STRICT = _chunk4LLLQOMFjs.IS_STRICT; exports.InvalidInputException = _chunkLD7YMHIEjs.InvalidInputException; exports.LOG_LEVEL = _chunk4LLLQOMFjs.LOG_LEVEL; exports.ManyFiles = _chunkUYZSUBX4js.ManyFiles; exports.Meta = _chunkOLNN4U3Ojs.Meta; exports.Mixin = _chunk4LLLQOMFjs.Mixin; exports.NotFoundException = _chunkLD7YMHIEjs.NotFoundException; exports.OneFile = _chunkUYZSUBX4js.OneFile; exports.OpenAPIGenerator = OpenAPIGenerator; exports.PAddon = PAddon; exports.PExtension = PExtension; exports.PFilter = PFilter; exports.PGuard = PGuard; exports.PPipe = PPipe; exports.PS_EXIT_CODE = _chunk4LLLQOMFjs.PS_EXIT_CODE; exports.Param = _chunkUYZSUBX4js.Param; exports.Patch = _chunkUYZSUBX4js.Patch; exports.PayloadLargeException = _chunkLD7YMHIEjs.PayloadLargeException; exports.Pipe = _chunkUYZSUBX4js.Pipe; exports.Post = _chunkUYZSUBX4js.Post; exports.Put = _chunkUYZSUBX4js.Put; exports.Query = _chunkUYZSUBX4js.Query; exports.Queue = _chunkUYZSUBX4js.Queue; exports.RPCGenerator = RPCGenerator; exports.Route = _chunkUYZSUBX4js.Route; exports.Rpc = _chunkUYZSUBX4js.Rpc; exports.RpcBase = RpcBase; exports.Search = _chunkUYZSUBX4js.Search; exports.ServerBase = ServerBase; exports.ServerPhecda = _chunkOLNN4U3Ojs.ServerPhecda; exports.ServiceUnavailableException = _chunkLD7YMHIEjs.ServiceUnavailableException; exports.TimeoutException = _chunkLD7YMHIEjs.TimeoutException; exports.TimerException = _chunkLD7YMHIEjs.TimerException; exports.UnauthorizedException = _chunkLD7YMHIEjs.UnauthorizedException; exports.UndefinedException = _chunkLD7YMHIEjs.UndefinedException; exports.UnsupportedMediaTypeException = _chunkLD7YMHIEjs.UnsupportedMediaTypeException; exports.ValidateException = _chunkLD7YMHIEjs.ValidateException; exports.WorkerException = _chunkLD7YMHIEjs.WorkerException; exports.addAddon = _chunkLD7YMHIEjs.addAddon; exports.addFilter = _chunkLD7YMHIEjs.addFilter; exports.addGuard = _chunkLD7YMHIEjs.addGuard; exports.addPipe = _chunkLD7YMHIEjs.addPipe; exports.defaultPipe = _chunkLD7YMHIEjs.defaultPipe; exports.defaultServerInject = _chunkOLNN4U3Ojs.defaultServerInject; exports.emitter = _chunkOLNN4U3Ojs.emitter; exports.getLogger = _chunk4LLLQOMFjs.getLogger; exports.log = _chunk4LLLQOMFjs.log; exports.phecdaNamespace = _chunkOLNN4U3Ojs.phecdaNamespace; exports.runMiddleware = _chunk4LLLQOMFjs.runMiddleware; exports.setLogger = _chunk4LLLQOMFjs.setLogger; exports.useS = _chunkOLNN4U3Ojs.useS;
package/dist/index.mjs CHANGED
@@ -60,7 +60,7 @@ import {
60
60
  addPipe,
61
61
  defaultPipe,
62
62
  joinUrl
63
- } from "./chunk-VAHCYYCB.mjs";
63
+ } from "./chunk-G5IH3TP7.mjs";
64
64
  import {
65
65
  ERROR_SYMBOL,
66
66
  IS_DEV,
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYJ3QHGTCjs = require('../../chunk-YJ3QHGTC.js');
5
+ var _chunkLD7YMHIEjs = require('../../chunk-LD7YMHIE.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 = _chunkYJ3QHGTCjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
20
+ const metaMap = _chunkLD7YMHIEjs.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
- _chunkYJ3QHGTCjs.detectAopDep.call(void 0, meta, {
27
+ _chunkLD7YMHIEjs.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
- _chunkYJ3QHGTCjs.Context.applyAddons(addons, workerMap[queue], "bullmq");
41
+ _chunkLD7YMHIEjs.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 = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
55
+ const aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
56
56
  globalFilter,
57
57
  globalGuards,
58
58
  globalPipe
59
59
  });
60
- const context = new (0, _chunkYJ3QHGTCjs.Context)({
60
+ const context = new (0, _chunkLD7YMHIEjs.Context)({
61
61
  type: "bullmq",
62
62
  category: "rpc",
63
63
  moduleMap,
@@ -2,7 +2,7 @@ import {
2
2
  Context,
3
3
  createControllerMetaMap,
4
4
  detectAopDep
5
- } from "../../chunk-VAHCYYCB.mjs";
5
+ } from "../../chunk-G5IH3TP7.mjs";
6
6
  import {
7
7
  HMR,
8
8
  __name
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYJ3QHGTCjs = require('../../chunk-YJ3QHGTC.js');
5
+ var _chunkLD7YMHIEjs = require('../../chunk-LD7YMHIE.js');
6
6
 
7
7
 
8
8
  var _chunk4LLLQOMFjs = require('../../chunk-4LLLQOMF.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 = _chunkYJ3QHGTCjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
15
+ const metaMap = _chunkLD7YMHIEjs.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
- _chunkYJ3QHGTCjs.detectAopDep.call(void 0, meta, {
22
+ _chunkLD7YMHIEjs.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 = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
34
+ const aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
35
35
  globalFilter,
36
36
  globalGuards,
37
37
  globalPipe
38
38
  });
39
- const context = new (0, _chunkYJ3QHGTCjs.Context)({
39
+ const context = new (0, _chunkLD7YMHIEjs.Context)({
40
40
  type: "electron",
41
41
  category: "rpc",
42
42
  moduleMap,
@@ -2,7 +2,7 @@ import {
2
2
  Context,
3
3
  createControllerMetaMap,
4
4
  detectAopDep
5
- } from "../../chunk-VAHCYYCB.mjs";
5
+ } from "../../chunk-G5IH3TP7.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "../../chunk-NQ55PA2X.mjs";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYJ3QHGTCjs = require('../../chunk-YJ3QHGTC.js');
5
+ var _chunkLD7YMHIEjs = require('../../chunk-LD7YMHIE.js');
6
6
 
7
7
 
8
8
  var _chunk4LLLQOMFjs = require('../../chunk-4LLLQOMF.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 = _chunkYJ3QHGTCjs.createControllerMetaMap.call(void 0, meta, (meta2) => {
16
+ const metaMap = _chunkLD7YMHIEjs.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
- _chunkYJ3QHGTCjs.detectAopDep.call(void 0, meta, {
23
+ _chunkLD7YMHIEjs.detectAopDep.call(void 0, meta, {
24
24
  guards: globalGuards,
25
25
  addons: globalAddons
26
26
  }, "rpc");
27
- _chunkYJ3QHGTCjs.Context.applyAddons(globalAddons, {
27
+ _chunkLD7YMHIEjs.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 = _chunkYJ3QHGTCjs.Context.getAop(meta2, {
61
+ const aop = _chunkLD7YMHIEjs.Context.getAop(meta2, {
62
62
  globalFilter,
63
63
  globalGuards,
64
64
  globalPipe
65
65
  });
66
- const context = new (0, _chunkYJ3QHGTCjs.Context)({
66
+ const context = new (0, _chunkLD7YMHIEjs.Context)({
67
67
  type: "kafka",
68
68
  category: "rpc",
69
69
  moduleMap,
@@ -2,7 +2,7 @@ import {
2
2
  Context,
3
3
  createControllerMetaMap,
4
4
  detectAopDep
5
- } from "../../chunk-VAHCYYCB.mjs";
5
+ } from "../../chunk-G5IH3TP7.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "../../chunk-NQ55PA2X.mjs";