phecda-server 8.5.2 → 8.5.4
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/bin/cli.mjs +264 -261
- package/dist/{core-mOKtuP0F.d.mts → core-BYxcQ8kf.d.mts} +1 -1
- package/dist/{core-qL97H3d_.d.ts → core-BiS3xJKx.d.ts} +1 -1
- package/dist/helper.d.mts +1 -1
- package/dist/helper.d.ts +1 -1
- package/dist/http/elysia/index.d.mts +3 -3
- package/dist/http/elysia/index.d.ts +3 -3
- package/dist/http/express/index.d.mts +4 -4
- package/dist/http/express/index.d.ts +4 -4
- package/dist/http/fastify/index.d.mts +4 -4
- package/dist/http/fastify/index.d.ts +4 -4
- package/dist/http/h3/index.d.mts +4 -4
- package/dist/http/h3/index.d.ts +4 -4
- package/dist/http/hono/index.d.mts +4 -4
- package/dist/http/hono/index.d.ts +4 -4
- package/dist/http/hyper-express/index.d.mts +4 -4
- package/dist/http/hyper-express/index.d.ts +4 -4
- package/dist/http/koa/index.d.mts +3 -3
- package/dist/http/koa/index.d.ts +3 -3
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/{meta-EGS-4cNY.d.mts → meta-Csp1xcSR.d.mts} +1 -1
- package/dist/{meta-EGS-4cNY.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/electron/index.d.mts +3 -3
- package/dist/rpc/electron/index.d.ts +3 -3
- package/dist/rpc/kafka/index.d.mts +3 -3
- package/dist/rpc/kafka/index.d.ts +3 -3
- package/dist/rpc/nats/index.d.mts +3 -3
- package/dist/rpc/nats/index.d.ts +3 -3
- package/dist/rpc/rabbitmq/index.d.mts +3 -3
- package/dist/rpc/rabbitmq/index.d.ts +3 -3
- package/dist/rpc/redis/index.d.mts +3 -3
- package/dist/rpc/redis/index.d.ts +3 -3
- 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/test.d.mts +2 -2
- package/dist/test.d.ts +2 -2
- package/dist/{types-DGUpAXle.d.ts → types-Bs64nYvd.d.ts} +1 -1
- package/dist/{types-BkU6kQWV.d.mts → types-CjVwVyJT.d.mts} +1 -1
- package/dist/{types-NkRE3d35.d.ts → types-DExQe0qk.d.ts} +1 -1
- package/dist/{types-CoOCYe_X.d.mts → types-DSlyrmns.d.mts} +1 -1
- 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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
if (input === '
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
if (input === '
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
cli.
|
|
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()
|
package/dist/helper.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Meta,
|
|
1
|
+
import { M as Meta, C as ControllerMeta } from './meta-Csp1xcSR.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,
|
|
1
|
+
import { M as Meta, C as ControllerMeta } from './meta-Csp1xcSR.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-
|
|
4
|
-
import { F as Factory } from '../../core-
|
|
3
|
+
import { H as HttpCtx, a as HttpOptions } from '../../types-CjVwVyJT.mjs';
|
|
4
|
+
import { F as Factory } from '../../core-BYxcQ8kf.mjs';
|
|
5
5
|
import 'node:http';
|
|
6
|
-
import '../../meta-
|
|
6
|
+
import '../../meta-Csp1xcSR.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-
|
|
4
|
-
import { F as Factory } from '../../core-
|
|
3
|
+
import { H as HttpCtx, a as HttpOptions } from '../../types-Bs64nYvd.js';
|
|
4
|
+
import { F as Factory } from '../../core-BiS3xJKx.js';
|
|
5
5
|
import 'node:http';
|
|
6
|
-
import '../../meta-
|
|
6
|
+
import '../../meta-Csp1xcSR.js';
|
|
7
7
|
import 'phecda-core';
|
|
8
8
|
|
|
9
9
|
interface ElysiaCtx extends HttpCtx {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Request, Response, Router
|
|
2
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
1
|
+
import { RequestHandler, Request, Response, Router } from 'express';
|
|
2
|
+
import { H as HttpCtx, a as HttpOptions } from '../../types-CjVwVyJT.mjs';
|
|
3
|
+
import { F as Factory } from '../../core-BYxcQ8kf.mjs';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.mjs';
|
|
6
6
|
import 'phecda-core';
|
|
7
7
|
|
|
8
8
|
interface ExpressCtx extends HttpCtx {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Request, Response, Router
|
|
2
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
1
|
+
import { RequestHandler, Request, Response, Router } from 'express';
|
|
2
|
+
import { H as HttpCtx, a as HttpOptions } from '../../types-Bs64nYvd.js';
|
|
3
|
+
import { F as Factory } from '../../core-BiS3xJKx.js';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.js';
|
|
6
6
|
import 'phecda-core';
|
|
7
7
|
|
|
8
8
|
interface ExpressCtx extends HttpCtx {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FastifyRequest, FastifyReply, FastifyInstance,
|
|
2
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
1
|
+
import { FastifyPluginCallback, RouteShorthandOptions, FastifyRequest, FastifyReply, FastifyInstance, FastifyRegisterOptions, FastifyPluginOptions } from 'fastify';
|
|
2
|
+
import { H as HttpCtx, a as HttpOptions } from '../../types-CjVwVyJT.mjs';
|
|
3
|
+
import { F as Factory } from '../../core-BYxcQ8kf.mjs';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.mjs';
|
|
6
6
|
import 'phecda-core';
|
|
7
7
|
|
|
8
8
|
interface FastifyCtx extends HttpCtx {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FastifyRequest, FastifyReply, FastifyInstance,
|
|
2
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
1
|
+
import { FastifyPluginCallback, RouteShorthandOptions, FastifyRequest, FastifyReply, FastifyInstance, FastifyRegisterOptions, FastifyPluginOptions } from 'fastify';
|
|
2
|
+
import { H as HttpCtx, a as HttpOptions } from '../../types-Bs64nYvd.js';
|
|
3
|
+
import { F as Factory } from '../../core-BiS3xJKx.js';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-Csp1xcSR.js';
|
|
6
6
|
import 'phecda-core';
|
|
7
7
|
|
|
8
8
|
interface FastifyCtx extends HttpCtx {
|