phecda-server 8.5.2 → 8.5.3

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.
Files changed (44) hide show
  1. package/bin/cli.mjs +264 -261
  2. package/dist/{core-qL97H3d_.d.ts → core-D7uMDEXI.d.ts} +1 -1
  3. package/dist/{core-mOKtuP0F.d.mts → core-DCERPmy5.d.mts} +1 -1
  4. package/dist/helper.d.mts +1 -1
  5. package/dist/helper.d.ts +1 -1
  6. package/dist/http/elysia/index.d.mts +3 -3
  7. package/dist/http/elysia/index.d.ts +3 -3
  8. package/dist/http/express/index.d.mts +4 -4
  9. package/dist/http/express/index.d.ts +4 -4
  10. package/dist/http/fastify/index.d.mts +4 -4
  11. package/dist/http/fastify/index.d.ts +4 -4
  12. package/dist/http/h3/index.d.mts +4 -4
  13. package/dist/http/h3/index.d.ts +4 -4
  14. package/dist/http/hono/index.d.mts +4 -4
  15. package/dist/http/hono/index.d.ts +4 -4
  16. package/dist/http/hyper-express/index.d.mts +4 -4
  17. package/dist/http/hyper-express/index.d.ts +4 -4
  18. package/dist/http/koa/index.d.mts +3 -3
  19. package/dist/http/koa/index.d.ts +3 -3
  20. package/dist/index.d.mts +8 -8
  21. package/dist/index.d.ts +8 -8
  22. package/dist/{meta-EGS-4cNY.d.mts → meta-CZDDYaRV.d.mts} +1 -1
  23. package/dist/{meta-EGS-4cNY.d.ts → meta-CZDDYaRV.d.ts} +1 -1
  24. package/dist/rpc/bullmq/index.d.mts +3 -3
  25. package/dist/rpc/bullmq/index.d.ts +3 -3
  26. package/dist/rpc/electron/index.d.mts +3 -3
  27. package/dist/rpc/electron/index.d.ts +3 -3
  28. package/dist/rpc/kafka/index.d.mts +3 -3
  29. package/dist/rpc/kafka/index.d.ts +3 -3
  30. package/dist/rpc/nats/index.d.mts +3 -3
  31. package/dist/rpc/nats/index.d.ts +3 -3
  32. package/dist/rpc/rabbitmq/index.d.mts +3 -3
  33. package/dist/rpc/rabbitmq/index.d.ts +3 -3
  34. package/dist/rpc/redis/index.d.mts +3 -3
  35. package/dist/rpc/redis/index.d.ts +3 -3
  36. package/dist/rpc/ws/index.d.mts +3 -3
  37. package/dist/rpc/ws/index.d.ts +3 -3
  38. package/dist/test.d.mts +2 -2
  39. package/dist/test.d.ts +2 -2
  40. package/dist/{types-CoOCYe_X.d.mts → types-BbnTNTe3.d.mts} +1 -1
  41. package/dist/{types-NkRE3d35.d.ts → types-DG5DI_EC.d.ts} +1 -1
  42. package/dist/{types-BkU6kQWV.d.mts → types-LPSac5sm.d.mts} +1 -1
  43. package/dist/{types-DGUpAXle.d.ts → types-S1PZEcrK.d.ts} +1 -1
  44. package/package.json +10 -1
package/bin/cli.mjs CHANGED
@@ -1,262 +1,265 @@
1
1
  #! /usr/bin/env node
2
- import { fork } from 'child_process'
3
- import { createRequire } from 'module'
4
- import pc from 'picocolors'
5
- import cac from 'cac'
6
- import fse from 'fs-extra'
7
- import { log as psLog } from '../dist/index.mjs'
8
-
9
- const log = (...args) => {
10
- if (process.env.PS_BAN_CLI_LOG)
11
- return
12
-
13
- psLog(...args)
14
- }
15
-
16
- const cli = cac('phecda').option('-c,--config <config>', 'config file', {
17
- default: 'ps.json',
18
- }).option('-n,--node-args <node-args>', 'args that will be passed to nodejs', {
19
- default: '',
20
- })
21
-
22
- const require = createRequire(import.meta.url)
23
- let child
24
-
25
- let closePromise
26
- const nodeVersion = parseFloat(process.version.slice(1))
27
-
28
- if (nodeVersion < 18.19) {
29
- log(
30
- `Nodejs version less than 18.19(current is ${nodeVersion}) can't support hmr`,
31
- 'yellow',
32
- )
33
- }
34
-
35
- function startChild(file, args) {
36
- child = globalThis.PS_CREATE_CHILD?.() || fork(file, {
37
- env: { ...process.env },
38
- stdio: 'inherit',
39
- execArgv: [
40
- ...args,
41
- nodeVersion < 18.19
42
- ? '--loader=phecda-server/register/loader.mjs'
43
- : '--import=phecda-server/register',
44
- ],
45
- })
46
-
47
- closePromise = new Promise((resolve) => {
48
- child.once('exit', (code) => {
49
- if (code === 4171)
50
- startChild(file, args)
51
-
52
- if (code === 4172)
53
- return process.exit()
54
-
55
- child = undefined
56
-
57
- resolve()
58
- })
59
- })
60
- }
61
-
62
- function exit() {
63
- log('process exit')
64
-
65
- if (child) {
66
- child.kill()
67
- process.exit(0)
68
- }
69
- else {
70
- process.exit(0)
71
- }
72
- }
73
- process.on('SIGINT', () => {
74
- process.exit()
75
- })
76
-
77
- cli
78
- .command('init [root]', 'init config file')
79
- // .allowUnknownOptions()
80
- .option('-t,--tsconfig <tsconfig>', 'init tsconfig file', {
81
- default: 'tsconfig.json',
82
- })
83
- .action(async (root, options) => {
84
- if (root)
85
- process.chdir(root)
86
-
87
- let hasUnimport
88
-
89
- try {
90
- await import('unimport')
91
- hasUnimport = true
92
- }
93
-
94
- catch (e) {
95
- hasUnimport = false
96
- }
97
-
98
- if (hasUnimport) {
99
- try {
100
- await import('phecda-core')
101
- } catch (e) {
102
- log('please install \'phecda-core\' when using unimport', 'warn')
103
- }
104
- }
105
-
106
- const tsconfigPath = options.tsconfig
107
- const psconfigPath = process.env.PS_CONFIG_FILE || options.config
108
-
109
- if (!fse.existsSync(tsconfigPath)) {
110
- log(`create ${tsconfigPath}`)
111
-
112
- await fse.outputJSON(
113
- tsconfigPath,
114
- {
115
- compilerOptions: {
116
- target: 'esnext',
117
- useDefineForClassFields: false,
118
- experimentalDecorators: true,
119
- emitDecoratorMetadata: true,
120
- module: 'esnext',
121
- lib: ['esnext', 'DOM'],
122
- paths: {
123
-
124
- },
125
- strictPropertyInitialization: false,
126
- moduleResolution: 'bundler',
127
- strict: true,
128
- resolveJsonModule: true,
129
- esModuleInterop: true,
130
- noEmit: true,
131
- noUnusedLocals: true,
132
- noUnusedParameters: true,
133
- noImplicitReturns: true,
134
- skipLibCheck: true,
135
- },
136
- include: ['.', hasUnimport ? (process.env.PS_DTS_PATH || 'ps.d.ts') : false].filter(Boolean),
137
- },
138
-
139
- )
140
- }
141
-
142
- if (!fse.existsSync(psconfigPath)) {
143
- log(`create ${psconfigPath}`)
144
-
145
- await fse.outputJSON(psconfigPath, {
146
- $schema: './node_modules/phecda-server/assets/schema.json',
147
- resolve: [
148
- {
149
- source: 'controller',
150
- importer: 'http',
151
- path: '.ps/http.js',
152
- },
153
- {
154
- source: 'rpc',
155
- importer: 'client',
156
- path: '.ps/rpc.js',
157
- },
158
- ],
159
- unimport: hasUnimport && {
160
- dirs: [
161
- ],
162
- presets: [
163
- {
164
- package: 'phecda-server'
165
- }
166
- ],
167
- dirsScanOptions: {
168
- filePatterns: [
169
- '*.{service,controller,module,rpc,solo,guard,extension,pipe,filter,addon}.ts',
170
- ],
171
- },
172
- },
173
- moduleFile: [],
174
- })
175
- }
176
-
177
- log('init finish')
178
- })
179
-
180
- cli
181
- .command('<file> [root]', 'run file')
182
- .alias('run')
183
- // .allowUnknownOptions()
184
- .option('-p,--prod', 'prod mode', {
185
- default: false,
186
- })
187
- .action((file, root, options) => {
188
- const nodeArgs = options.nodeArgs.split(' ').filter(Boolean)
189
-
190
- if (root)
191
- process.chdir(root)
192
-
193
- if (options.prod)
194
- process.env.NODE_ENV = 'production'
195
- else
196
- process.env.NODE_ENV = 'development'
197
-
198
- process.env.PS_CONFIG_FILE = process.env.PS_CONFIG_FILE || options.config
199
-
200
- log('process start!')
201
-
202
- startChild(file, nodeArgs)
203
- console.log(`${pc.green('->')} press ${pc.green('e')} to exit`)
204
- console.log(`${pc.green('->')} press ${pc.green('r')} to relaunch`)
205
- console.log(`${pc.green('->')} press ${pc.green('c')} to clear terminal`)
206
- console.log(`${pc.green('->')} press ${pc.green('i')} to debug`)
207
-
208
- process.stdin.on('data', async (data) => {
209
- const args = [...nodeArgs]
210
- const input = data.toString().trim().toLocaleLowerCase()
211
- if (input === 'r') {
212
- if (child) {
213
- await child.kill()
214
- if (closePromise)
215
- await closePromise
216
- log('relaunch...')
217
- startChild(file, args)
218
- }
219
- else {
220
- log('relaunch...')
221
- startChild(file, args)
222
- }
223
- }
224
- if (input === 'e')
225
- exit()
226
-
227
- if (input === 'c')
228
- console.clear()
229
-
230
- if (input === 'i' || input.startsWith('i ')) {
231
- const [, arg] = input.split(' ')
232
-
233
- if (child) {
234
- child.send({
235
- type: 'inspect',
236
- arg
237
- })
238
- } else {
239
- args.push(`--inspect${arg ? `=${arg}` : ''}`)
240
- startChild(file, args)
241
- }
242
- }
243
- })
244
- })
245
-
246
- cli
247
- .command('generate <file> [root]', 'generate code(mainly for ci)')
248
- // .allowUnknownOptions()
249
- .action((file, root, options) => {
250
- const nodeArgs = options.nodeArgs.split(' ').filter(Boolean)
251
-
252
- if (root)
253
- process.chdir(root)
254
- process.env.PS_GENERATE = 'true'
255
- process.env.PS_CONFIG_FILE = process.env.PS_CONFIG_FILE || options.config
256
- startChild(file, nodeArgs)
257
- })
258
-
259
- cli.help()
260
- cli.version(require('../package.json').version)
261
-
262
- cli.parse()
2
+ import { fork } from 'child_process'
3
+ import { createRequire } from 'module'
4
+ import pc from 'picocolors'
5
+ import cac from 'cac'
6
+ import fse from 'fs-extra'
7
+ import { log as psLog } from '../dist/index.mjs'
8
+
9
+ const log = (...args) => {
10
+ if (process.env.PS_BAN_CLI_LOG)
11
+ return
12
+
13
+ psLog(...args)
14
+ }
15
+
16
+ const cli = cac('phecda').option('-c,--config <config>', 'config file', {
17
+ default: 'ps.json',
18
+ }).option('-n,--node-args <node-args>', 'args that will be passed to nodejs', {
19
+ default: '',
20
+ })
21
+
22
+ const require = createRequire(import.meta.url)
23
+ let child
24
+
25
+ let closePromise
26
+ const nodeVersion = parseFloat(process.version.slice(1))
27
+
28
+
29
+ const PORT_RELEASE_DELAY = process.env.PS_PORT_RELEASE_DELAY
30
+ ? Number(process.env.PS_PORT_RELEASE_DELAY)
31
+ : 50
32
+
33
+ if (nodeVersion < 18.19) {
34
+ log(
35
+ `Nodejs version less than 18.19(current is ${nodeVersion}) can't support hmr`,
36
+ 'yellow',
37
+ )
38
+ }
39
+
40
+ function startChild(file, args) {
41
+ child = fork(file, {
42
+ env: { ...process.env },
43
+ stdio: 'inherit',
44
+ execArgv: [
45
+ ...args,
46
+ nodeVersion < 18.19
47
+ ? '--loader=phecda-server/register/loader.mjs'
48
+ : '--import=phecda-server/register',
49
+ ],
50
+ })
51
+
52
+ closePromise = new Promise((resolve) => {
53
+ child.once('exit', (code) => {
54
+ setTimeout(() => {
55
+
56
+ child = undefined
57
+ resolve()
58
+
59
+ if (code === 4171)
60
+ startChild(file, args)
61
+
62
+ if (code === 4172)
63
+ return process.exit()
64
+ }, PORT_RELEASE_DELAY)
65
+ })
66
+ })
67
+ }
68
+
69
+ function exit() {
70
+ log('process exit')
71
+
72
+ if (child) {
73
+ child.kill()
74
+ process.exit(0)
75
+ }
76
+ else {
77
+ process.exit(0)
78
+ }
79
+ }
80
+ process.on('SIGINT', () => {
81
+ process.exit()
82
+ })
83
+
84
+ cli
85
+ .command('init [root]', 'init config file')
86
+ // .allowUnknownOptions()
87
+ .option('-t,--tsconfig <tsconfig>', 'init tsconfig file', {
88
+ default: 'tsconfig.json',
89
+ })
90
+ .action(async (root, options) => {
91
+ if (root)
92
+ process.chdir(root)
93
+
94
+ let hasUnimport
95
+
96
+ try {
97
+ await import('unimport')
98
+ hasUnimport = true
99
+ }
100
+
101
+ catch (e) {
102
+ hasUnimport = false
103
+ }
104
+
105
+ if (hasUnimport) {
106
+ try {
107
+ await import('phecda-core')
108
+ } catch (e) {
109
+ log('please install \'phecda-core\' when using unimport', 'warn')
110
+ }
111
+ }
112
+
113
+ const tsconfigPath = options.tsconfig
114
+ const psconfigPath = process.env.PS_CONFIG_FILE || options.config
115
+
116
+ if (!fse.existsSync(tsconfigPath)) {
117
+ log(`create ${tsconfigPath}`)
118
+
119
+ await fse.outputJSON(
120
+ tsconfigPath,
121
+ {
122
+ compilerOptions: {
123
+ target: 'esnext',
124
+ useDefineForClassFields: false,
125
+ experimentalDecorators: true,
126
+ emitDecoratorMetadata: true,
127
+ module: 'esnext',
128
+ lib: ['esnext', 'DOM'],
129
+ paths: {
130
+
131
+ },
132
+ strictPropertyInitialization: false,
133
+ moduleResolution: 'bundler',
134
+ strict: true,
135
+ resolveJsonModule: true,
136
+ esModuleInterop: true,
137
+ noEmit: true,
138
+ noUnusedLocals: true,
139
+ noUnusedParameters: true,
140
+ noImplicitReturns: true,
141
+ skipLibCheck: true,
142
+ },
143
+ include: ['.', hasUnimport ? (process.env.PS_DTS_PATH || 'ps.d.ts') : false].filter(Boolean),
144
+ },
145
+
146
+ )
147
+ }
148
+
149
+ if (!fse.existsSync(psconfigPath)) {
150
+ log(`create ${psconfigPath}`)
151
+
152
+ await fse.outputJSON(psconfigPath, {
153
+ $schema: './node_modules/phecda-server/assets/schema.json',
154
+ resolve: [
155
+ {
156
+ source: 'controller',
157
+ importer: 'http',
158
+ path: '.ps/http.js',
159
+ },
160
+ {
161
+ source: 'rpc',
162
+ importer: 'client',
163
+ path: '.ps/rpc.js',
164
+ },
165
+ ],
166
+ unimport: hasUnimport && {
167
+ dirs: [
168
+ ],
169
+ presets: [
170
+ {
171
+ package: 'phecda-server'
172
+ }
173
+ ],
174
+ dirsScanOptions: {
175
+ filePatterns: [
176
+ '*.{service,controller,module,rpc,solo,guard,extension,pipe,filter,addon}.ts',
177
+ ],
178
+ },
179
+ },
180
+ moduleFile: [],
181
+ })
182
+ }
183
+
184
+ log('init finish')
185
+ })
186
+
187
+ cli
188
+ .command('<file> [root]', 'run file')
189
+ .alias('run')
190
+ // .allowUnknownOptions()
191
+ .option('-p,--prod', 'prod mode', {
192
+ default: false,
193
+ })
194
+ .action((file, root, options) => {
195
+ const nodeArgs = options.nodeArgs.split(' ').filter(Boolean)
196
+
197
+ if (root)
198
+ process.chdir(root)
199
+
200
+ if (options.prod)
201
+ process.env.NODE_ENV = 'production'
202
+ else
203
+ process.env.NODE_ENV = 'development'
204
+
205
+ process.env.PS_CONFIG_FILE = process.env.PS_CONFIG_FILE || options.config
206
+
207
+ log('process start!')
208
+
209
+ startChild(file, nodeArgs)
210
+ console.log(`${pc.green('->')} press ${pc.green('e')} to exit`)
211
+ console.log(`${pc.green('->')} press ${pc.green('r')} to relaunch`)
212
+ console.log(`${pc.green('->')} press ${pc.green('c')} to clear terminal`)
213
+ console.log(`${pc.green('->')} press ${pc.green('i')} to debug`)
214
+
215
+ process.stdin.on('data', async (data) => {
216
+ const args = [...nodeArgs]
217
+ const input = data.toString().trim().toLocaleLowerCase()
218
+ if (input === 'r') {
219
+ if (child) {
220
+ await child.kill()
221
+ if (closePromise)
222
+ await closePromise
223
+ }
224
+ log('relaunch...')
225
+ startChild(file, args)
226
+ }
227
+ if (input === 'e')
228
+ exit()
229
+
230
+ if (input === 'c')
231
+ console.clear()
232
+
233
+ if (input === 'i' || input.startsWith('i ')) {
234
+ const [, arg] = input.split(' ')
235
+
236
+ if (child) {
237
+ child.send({
238
+ type: 'inspect',
239
+ arg
240
+ })
241
+ } else {
242
+ args.push(`--inspect${arg ? `=${arg}` : ''}`)
243
+ startChild(file, args)
244
+ }
245
+ }
246
+ })
247
+ })
248
+
249
+ cli
250
+ .command('generate <file> [root]', 'generate code(mainly for ci)')
251
+ // .allowUnknownOptions()
252
+ .action((file, root, options) => {
253
+ const nodeArgs = options.nodeArgs.split(' ').filter(Boolean)
254
+
255
+ if (root)
256
+ process.chdir(root)
257
+ process.env.PS_GENERATE = 'true'
258
+ process.env.PS_CONFIG_FILE = process.env.PS_CONFIG_FILE || options.config
259
+ startChild(file, nodeArgs)
260
+ })
261
+
262
+ cli.help()
263
+ cli.version(require('../package.json').version)
264
+
265
+ cli.parse()
@@ -1,5 +1,5 @@
1
1
  import { Construct } from 'phecda-core';
2
- import { M as Meta, E as Emitter } from './meta-EGS-4cNY.js';
2
+ import { M as Meta, E as Emitter } from './meta-CZDDYaRV.js';
3
3
 
4
4
  declare abstract class Generator {
5
5
  private _path;
@@ -1,5 +1,5 @@
1
1
  import { Construct } from 'phecda-core';
2
- import { M as Meta, E as Emitter } from './meta-EGS-4cNY.mjs';
2
+ import { M as Meta, E as Emitter } from './meta-CZDDYaRV.mjs';
3
3
 
4
4
  declare abstract class Generator {
5
5
  private _path;
package/dist/helper.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as Meta, a as ControllerMeta } from './meta-EGS-4cNY.mjs';
1
+ import { M as Meta, a as ControllerMeta } from './meta-CZDDYaRV.mjs';
2
2
  import { Construct } from 'phecda-core';
3
3
 
4
4
  declare function HMR(cb: (oldModels: Construct[], newModels: Construct[]) => any): void;
package/dist/helper.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { M as Meta, a as ControllerMeta } from './meta-EGS-4cNY.js';
1
+ import { M as Meta, a as ControllerMeta } from './meta-CZDDYaRV.js';
2
2
  import { Construct } from 'phecda-core';
3
3
 
4
4
  declare function HMR(cb: (oldModels: Construct[], newModels: Construct[]) => any): void;
@@ -1,9 +1,9 @@
1
1
  import { Elysia as Elysia$1, Context } from 'elysia';
2
2
  import { AnyLocalHook } from 'elysia/dist/types';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
4
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-LPSac5sm.mjs';
4
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
5
5
  import 'node:http';
6
- import '../../meta-EGS-4cNY.mjs';
6
+ import '../../meta-CZDDYaRV.mjs';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface ElysiaCtx extends HttpCtx {
@@ -1,9 +1,9 @@
1
1
  import { Elysia as Elysia$1, Context } from 'elysia';
2
2
  import { AnyLocalHook } from 'elysia/dist/types';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
4
- import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-S1PZEcrK.js';
4
+ import { F as Factory } from '../../core-D7uMDEXI.js';
5
5
  import 'node:http';
6
- import '../../meta-EGS-4cNY.js';
6
+ import '../../meta-CZDDYaRV.js';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface ElysiaCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { Request, Response, Router, RequestHandler } from 'express';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
3
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
1
+ import { RequestHandler, Request, Response, Router } from 'express';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-LPSac5sm.mjs';
3
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
4
4
  import 'node:http';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface ExpressCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { Request, Response, Router, RequestHandler } from 'express';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
3
- import { F as Factory } from '../../core-qL97H3d_.js';
1
+ import { RequestHandler, Request, Response, Router } from 'express';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-S1PZEcrK.js';
3
+ import { F as Factory } from '../../core-D7uMDEXI.js';
4
4
  import 'node:http';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface ExpressCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { FastifyRequest, FastifyReply, FastifyInstance, FastifyPluginCallback, FastifyRegisterOptions, FastifyPluginOptions, RouteShorthandOptions } from 'fastify';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
3
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
1
+ import { FastifyPluginCallback, RouteShorthandOptions, FastifyRequest, FastifyReply, FastifyInstance, FastifyRegisterOptions, FastifyPluginOptions } from 'fastify';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-LPSac5sm.mjs';
3
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
4
4
  import 'node:http';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface FastifyCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { FastifyRequest, FastifyReply, FastifyInstance, FastifyPluginCallback, FastifyRegisterOptions, FastifyPluginOptions, RouteShorthandOptions } from 'fastify';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
3
- import { F as Factory } from '../../core-qL97H3d_.js';
1
+ import { FastifyPluginCallback, RouteShorthandOptions, FastifyRequest, FastifyReply, FastifyInstance, FastifyRegisterOptions, FastifyPluginOptions } from 'fastify';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-S1PZEcrK.js';
3
+ import { F as Factory } from '../../core-D7uMDEXI.js';
4
4
  import 'node:http';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface FastifyCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { H3Event, Router, _RequestMiddleware } from 'h3';
2
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
1
+ import { _RequestMiddleware, H3Event, Router } from 'h3';
2
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-LPSac5sm.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
  import 'node:http';
7
7
 
8
8
  interface H3Ctx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { H3Event, Router, _RequestMiddleware } from 'h3';
2
- import { F as Factory } from '../../core-qL97H3d_.js';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
1
+ import { _RequestMiddleware, H3Event, Router } from 'h3';
2
+ import { F as Factory } from '../../core-D7uMDEXI.js';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-S1PZEcrK.js';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
  import 'node:http';
7
7
 
8
8
  interface H3Ctx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { Context, Hono, MiddlewareHandler } from 'hono';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
3
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
1
+ import { MiddlewareHandler, Context, Hono } from 'hono';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-LPSac5sm.mjs';
3
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
4
4
  import 'node:http';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HonoCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { Context, Hono, MiddlewareHandler } from 'hono';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
3
- import { F as Factory } from '../../core-qL97H3d_.js';
1
+ import { MiddlewareHandler, Context, Hono } from 'hono';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-S1PZEcrK.js';
3
+ import { F as Factory } from '../../core-D7uMDEXI.js';
4
4
  import 'node:http';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HonoCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { Request, Response, Router, MiddlewareHandler } from 'hyper-express';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
3
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
1
+ import { MiddlewareHandler, Request, Response, Router } from 'hyper-express';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-LPSac5sm.mjs';
3
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
4
4
  import 'node:http';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HyperExpressCtx extends HttpCtx {
@@ -1,8 +1,8 @@
1
- import { Request, Response, Router, MiddlewareHandler } from 'hyper-express';
2
- import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
3
- import { F as Factory } from '../../core-qL97H3d_.js';
1
+ import { MiddlewareHandler, Request, Response, Router } from 'hyper-express';
2
+ import { H as HttpCtx, a as HttpOptions } from '../../types-S1PZEcrK.js';
3
+ import { F as Factory } from '../../core-D7uMDEXI.js';
4
4
  import 'node:http';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
  import 'phecda-core';
7
7
 
8
8
  interface HyperExpressCtx extends HttpCtx {
@@ -1,9 +1,9 @@
1
1
  import Router, { RouterParamContext } from '@koa/router';
2
2
  import { DefaultContext, DefaultState } from 'koa';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-BkU6kQWV.mjs';
4
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-LPSac5sm.mjs';
4
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
5
5
  import 'node:http';
6
- import '../../meta-EGS-4cNY.mjs';
6
+ import '../../meta-CZDDYaRV.mjs';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface KoaCtx extends HttpCtx {
@@ -1,9 +1,9 @@
1
1
  import Router, { RouterParamContext } from '@koa/router';
2
2
  import { DefaultContext, DefaultState } from 'koa';
3
- import { H as HttpCtx, a as HttpOptions } from '../../types-DGUpAXle.js';
4
- import { F as Factory } from '../../core-qL97H3d_.js';
3
+ import { H as HttpCtx, a as HttpOptions } from '../../types-S1PZEcrK.js';
4
+ import { F as Factory } from '../../core-D7uMDEXI.js';
5
5
  import 'node:http';
6
- import '../../meta-EGS-4cNY.js';
6
+ import '../../meta-CZDDYaRV.js';
7
7
  import 'phecda-core';
8
8
 
9
9
  interface KoaCtx extends HttpCtx {
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
- import { B as BaseCtx, b as BaseError, a as ControllerMeta, D as DefaultOptions, c as ControllerMetaData, M as Meta, E as Emitter } from './meta-EGS-4cNY.mjs';
2
- export { d as BaseRequestMethod, C as CustomResponse, g as ERROR_SYMBOL, e as ExtractResponse, I as IS_DEV, h as IS_ONLY_GENERATE, j as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, f as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-EGS-4cNY.mjs';
3
- import { G as Generator } from './core-mOKtuP0F.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-mOKtuP0F.mjs';
1
+ import { B as BaseCtx, b as BaseError, a as ControllerMeta, D as DefaultOptions, c as ControllerMetaData, M as Meta, E as Emitter } from './meta-CZDDYaRV.mjs';
2
+ export { d as BaseRequestMethod, C 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-CZDDYaRV.mjs';
3
+ import { G as Generator } from './core-DCERPmy5.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-DCERPmy5.mjs';
5
5
  import { Construct, Base } from 'phecda-core';
6
6
  export * from 'phecda-core';
7
- import { H as HttpCtx } from './types-BkU6kQWV.mjs';
8
- export { C as CookieSerializeOptions, a as HttpOptions } from './types-BkU6kQWV.mjs';
9
- import { R as RpcCtx } from './types-CoOCYe_X.mjs';
10
- export { a as RpcServerOptions } from './types-CoOCYe_X.mjs';
7
+ import { H as HttpCtx } from './types-LPSac5sm.mjs';
8
+ export { C as CookieSerializeOptions, a as HttpOptions } from './types-LPSac5sm.mjs';
9
+ import { R as RpcCtx } from './types-BbnTNTe3.mjs';
10
+ export { a as RpcServerOptions } from './types-BbnTNTe3.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, b as BaseError, a as ControllerMeta, D as DefaultOptions, c as ControllerMetaData, M as Meta, E as Emitter } from './meta-EGS-4cNY.js';
2
- export { d as BaseRequestMethod, C as CustomResponse, g as ERROR_SYMBOL, e as ExtractResponse, I as IS_DEV, h as IS_ONLY_GENERATE, j as IS_PURE, i as IS_STRICT, L as LOG_LEVEL, f as MetaData, P as PS_EXIT_CODE, S as ServiceMetaData } from './meta-EGS-4cNY.js';
3
- import { G as Generator } from './core-qL97H3d_.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-qL97H3d_.js';
1
+ import { B as BaseCtx, b as BaseError, a as ControllerMeta, D as DefaultOptions, c as ControllerMetaData, M as Meta, E as Emitter } from './meta-CZDDYaRV.js';
2
+ export { d as BaseRequestMethod, C 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-CZDDYaRV.js';
3
+ import { G as Generator } from './core-D7uMDEXI.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-D7uMDEXI.js';
5
5
  import { Construct, Base } from 'phecda-core';
6
6
  export * from 'phecda-core';
7
- import { H as HttpCtx } from './types-DGUpAXle.js';
8
- export { C as CookieSerializeOptions, a as HttpOptions } from './types-DGUpAXle.js';
9
- import { R as RpcCtx } from './types-NkRE3d35.js';
10
- export { a as RpcServerOptions } from './types-NkRE3d35.js';
7
+ import { H as HttpCtx } from './types-S1PZEcrK.js';
8
+ export { C as CookieSerializeOptions, a as HttpOptions } from './types-S1PZEcrK.js';
9
+ import { R as RpcCtx } from './types-DG5DI_EC.js';
10
+ export { a as RpcServerOptions } from './types-DG5DI_EC.js';
11
11
  export { Mixin } from 'ts-mixer';
12
12
  import 'node:http';
13
13
 
@@ -91,4 +91,4 @@ interface ControllerMeta extends Meta {
91
91
  data: ControllerMetaData;
92
92
  }
93
93
 
94
- export { type BaseCtx as B, CustomResponse 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 ControllerMeta as a, type BaseError as b, type ControllerMetaData as c, type BaseRequestMethod as d, type ExtractResponse as e, type MetaData as f, ERROR_SYMBOL as g, IS_ONLY_GENERATE as h, IS_STRICT as i, IS_PURE as j };
94
+ export { type BaseCtx as B, CustomResponse 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 ControllerMeta as a, type BaseError as b, type ControllerMetaData as c, type BaseRequestMethod 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, CustomResponse 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 ControllerMeta as a, type BaseError as b, type ControllerMetaData as c, type BaseRequestMethod as d, type ExtractResponse as e, type MetaData as f, ERROR_SYMBOL as g, IS_ONLY_GENERATE as h, IS_STRICT as i, IS_PURE as j };
94
+ export { type BaseCtx as B, CustomResponse 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 ControllerMeta as a, type BaseError as b, type ControllerMetaData as c, type BaseRequestMethod 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-mOKtuP0F.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
2
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-BbnTNTe3.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.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-qL97H3d_.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
2
+ import { F as Factory } from '../../core-D7uMDEXI.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-DG5DI_EC.js';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
 
7
7
  interface BullmqCtx extends RpcCtx {
8
8
  type: 'bullmq';
@@ -1,8 +1,8 @@
1
1
  import Electron from 'electron';
2
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
2
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-BbnTNTe3.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.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-qL97H3d_.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
2
+ import { F as Factory } from '../../core-D7uMDEXI.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-DG5DI_EC.js';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
 
7
7
  interface ElectronCtx extends RpcCtx {
8
8
  type: 'electron';
@@ -1,8 +1,8 @@
1
1
  import { Consumer, Producer } from 'kafkajs';
2
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
2
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-BbnTNTe3.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.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-qL97H3d_.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
2
+ import { F as Factory } from '../../core-D7uMDEXI.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-DG5DI_EC.js';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
 
7
7
  interface KafkaCtx extends RpcCtx {
8
8
  type: 'kafka';
@@ -1,8 +1,8 @@
1
1
  import { NatsConnection } from 'nats';
2
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
2
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-BbnTNTe3.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
 
7
7
  interface NatsCtx extends RpcCtx {
8
8
  type: 'nats';
@@ -1,8 +1,8 @@
1
1
  import { NatsConnection } from 'nats';
2
- import { F as Factory } from '../../core-qL97H3d_.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
2
+ import { F as Factory } from '../../core-D7uMDEXI.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-DG5DI_EC.js';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
 
7
7
  interface NatsCtx extends RpcCtx {
8
8
  type: 'nats';
@@ -1,8 +1,8 @@
1
1
  import amqplib from 'amqplib';
2
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
2
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-BbnTNTe3.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
 
7
7
  interface RabbitmqCtx extends RpcCtx {
8
8
  type: 'rabbitmq';
@@ -1,8 +1,8 @@
1
1
  import amqplib from 'amqplib';
2
- import { F as Factory } from '../../core-qL97H3d_.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
2
+ import { F as Factory } from '../../core-D7uMDEXI.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-DG5DI_EC.js';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
 
7
7
  interface RabbitmqCtx extends RpcCtx {
8
8
  type: 'rabbitmq';
@@ -1,8 +1,8 @@
1
1
  import Redis from 'ioredis';
2
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
2
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-BbnTNTe3.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
 
7
7
  interface RedisCtx extends RpcCtx {
8
8
  type: 'redis';
@@ -1,8 +1,8 @@
1
1
  import Redis from 'ioredis';
2
- import { F as Factory } from '../../core-qL97H3d_.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
2
+ import { F as Factory } from '../../core-D7uMDEXI.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-DG5DI_EC.js';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
 
7
7
  interface RedisCtx extends RpcCtx {
8
8
  type: 'redis';
@@ -1,8 +1,8 @@
1
1
  import WS from 'ws';
2
- import { F as Factory } from '../../core-mOKtuP0F.mjs';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-CoOCYe_X.mjs';
2
+ import { F as Factory } from '../../core-DCERPmy5.mjs';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-BbnTNTe3.mjs';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.mjs';
5
+ import '../../meta-CZDDYaRV.mjs';
6
6
 
7
7
  interface WsCtx extends RpcCtx {
8
8
  type: 'ws';
@@ -1,8 +1,8 @@
1
1
  import WS from 'ws';
2
- import { F as Factory } from '../../core-qL97H3d_.js';
3
- import { R as RpcCtx, a as RpcServerOptions } from '../../types-NkRE3d35.js';
2
+ import { F as Factory } from '../../core-D7uMDEXI.js';
3
+ import { R as RpcCtx, a as RpcServerOptions } from '../../types-DG5DI_EC.js';
4
4
  import 'phecda-core';
5
- import '../../meta-EGS-4cNY.js';
5
+ import '../../meta-CZDDYaRV.js';
6
6
 
7
7
  interface WsCtx extends RpcCtx {
8
8
  type: 'ws';
package/dist/test.d.mts CHANGED
@@ -2,8 +2,8 @@ import * as supertest from 'supertest';
2
2
  import { Test } from 'supertest';
3
3
  import { Server } from 'node:http';
4
4
  import { Construct } from 'phecda-core';
5
- import { F as Factory } from './core-mOKtuP0F.mjs';
6
- import { C as CustomResponse } from './meta-EGS-4cNY.mjs';
5
+ import { F as Factory } from './core-DCERPmy5.mjs';
6
+ import { C as CustomResponse } from './meta-CZDDYaRV.mjs';
7
7
 
8
8
  type PickFuncKeys<Type> = {
9
9
  [Key in keyof Type]: Type[Key] extends (...args: any) => any ? (ReturnType<Type[Key]> extends CustomResponse<any> ? never : Key) : never;
package/dist/test.d.ts CHANGED
@@ -2,8 +2,8 @@ import * as supertest from 'supertest';
2
2
  import { Test } from 'supertest';
3
3
  import { Server } from 'node:http';
4
4
  import { Construct } from 'phecda-core';
5
- import { F as Factory } from './core-qL97H3d_.js';
6
- import { C as CustomResponse } from './meta-EGS-4cNY.js';
5
+ import { F as Factory } from './core-D7uMDEXI.js';
6
+ import { C as CustomResponse } from './meta-CZDDYaRV.js';
7
7
 
8
8
  type PickFuncKeys<Type> = {
9
9
  [Key in keyof Type]: Type[Key] extends (...args: any) => any ? (ReturnType<Type[Key]> extends CustomResponse<any> ? never : Key) : never;
@@ -1,4 +1,4 @@
1
- import { B as BaseCtx, D as DefaultOptions } from './meta-EGS-4cNY.mjs';
1
+ import { B as BaseCtx, D as DefaultOptions } from './meta-CZDDYaRV.mjs';
2
2
 
3
3
  interface RpcServerOptions extends DefaultOptions {
4
4
  defaultQueue?: string;
@@ -1,4 +1,4 @@
1
- import { B as BaseCtx, D as DefaultOptions } from './meta-EGS-4cNY.js';
1
+ import { B as BaseCtx, D as DefaultOptions } from './meta-CZDDYaRV.js';
2
2
 
3
3
  interface RpcServerOptions extends DefaultOptions {
4
4
  defaultQueue?: string;
@@ -1,5 +1,5 @@
1
1
  import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
2
- import { B as BaseCtx, D as DefaultOptions } from './meta-EGS-4cNY.mjs';
2
+ import { B as BaseCtx, D as DefaultOptions } from './meta-CZDDYaRV.mjs';
3
3
 
4
4
  interface HttpOptions extends DefaultOptions {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
2
- import { B as BaseCtx, D as DefaultOptions } from './meta-EGS-4cNY.js';
2
+ import { B as BaseCtx, D as DefaultOptions } from './meta-CZDDYaRV.js';
3
3
 
4
4
  interface HttpOptions extends DefaultOptions {
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-server",
3
- "version": "8.5.2",
3
+ "version": "8.5.3",
4
4
  "description": "server framework that provide IOC/type-reuse/http&rpc-adaptor",
5
5
  "author": "fgsreally",
6
6
  "license": "MIT",
@@ -137,6 +137,15 @@
137
137
  ],
138
138
  "kafka": [
139
139
  "dist/rpc/kafka/index.d.ts"
140
+ ],
141
+ "electron": [
142
+ "dist/rpc/electron/index.d.ts"
143
+ ],
144
+ "ws": [
145
+ "dist/rpc/ws/index.d.ts"
146
+ ],
147
+ "web-ext": [
148
+ "dist/rpc/web-ext/index.d.ts"
140
149
  ]
141
150
  }
142
151
  },