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.
- package/bin/cli.mjs +264 -261
- package/dist/{core-qL97H3d_.d.ts → core-D7uMDEXI.d.ts} +1 -1
- package/dist/{core-mOKtuP0F.d.mts → core-DCERPmy5.d.mts} +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-CZDDYaRV.d.mts} +1 -1
- package/dist/{meta-EGS-4cNY.d.ts → meta-CZDDYaRV.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/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-CoOCYe_X.d.mts → types-BbnTNTe3.d.mts} +1 -1
- package/dist/{types-NkRE3d35.d.ts → types-DG5DI_EC.d.ts} +1 -1
- package/dist/{types-BkU6kQWV.d.mts → types-LPSac5sm.d.mts} +1 -1
- package/dist/{types-DGUpAXle.d.ts → types-S1PZEcrK.d.ts} +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, a as ControllerMeta } from './meta-
|
|
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-
|
|
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-
|
|
4
|
-
import { F as Factory } from '../../core-
|
|
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-
|
|
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-
|
|
4
|
-
import { F as Factory } from '../../core-
|
|
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-
|
|
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
|
|
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-LPSac5sm.mjs';
|
|
3
|
+
import { F as Factory } from '../../core-DCERPmy5.mjs';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
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
|
|
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-S1PZEcrK.js';
|
|
3
|
+
import { F as Factory } from '../../core-D7uMDEXI.js';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
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,
|
|
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-LPSac5sm.mjs';
|
|
3
|
+
import { F as Factory } from '../../core-DCERPmy5.mjs';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
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,
|
|
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-S1PZEcrK.js';
|
|
3
|
+
import { F as Factory } from '../../core-D7uMDEXI.js';
|
|
4
4
|
import 'node:http';
|
|
5
|
-
import '../../meta-
|
|
5
|
+
import '../../meta-CZDDYaRV.js';
|
|
6
6
|
import 'phecda-core';
|
|
7
7
|
|
|
8
8
|
interface FastifyCtx extends HttpCtx {
|
package/dist/http/h3/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H3Event, Router
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
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-
|
|
5
|
+
import '../../meta-CZDDYaRV.mjs';
|
|
6
6
|
import 'node:http';
|
|
7
7
|
|
|
8
8
|
interface H3Ctx extends HttpCtx {
|
package/dist/http/h3/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { H3Event, Router
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
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-
|
|
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
|
|
2
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
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-
|
|
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
|
|
2
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
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-
|
|
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
|
|
2
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
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-
|
|
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
|
|
2
|
-
import { H as HttpCtx, a as HttpOptions } from '../../types-
|
|
3
|
-
import { F as Factory } from '../../core-
|
|
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-
|
|
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-
|
|
4
|
-
import { F as Factory } from '../../core-
|
|
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-
|
|
6
|
+
import '../../meta-CZDDYaRV.mjs';
|
|
7
7
|
import 'phecda-core';
|
|
8
8
|
|
|
9
9
|
interface KoaCtx extends HttpCtx {
|
package/dist/http/koa/index.d.ts
CHANGED
|
@@ -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-
|
|
4
|
-
import { F as Factory } from '../../core-
|
|
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-
|
|
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-
|
|
2
|
-
export { d as BaseRequestMethod, C as CustomResponse,
|
|
3
|
-
import { G as Generator } from './core-
|
|
4
|
-
export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-
|
|
1
|
+
import { B as BaseCtx, 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-
|
|
8
|
-
export { C as CookieSerializeOptions, a as HttpOptions } from './types-
|
|
9
|
-
import { R as RpcCtx } from './types-
|
|
10
|
-
export { a as RpcServerOptions } from './types-
|
|
7
|
+
import { H as HttpCtx } from './types-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-
|
|
2
|
-
export { d as BaseRequestMethod, C as CustomResponse,
|
|
3
|
-
import { G as Generator } from './core-
|
|
4
|
-
export { F as Factory, O as Options, S as ServerPhecda, d as defaultServerInject, e as emitter, p as phecdaNamespace, u as useS } from './core-
|
|
1
|
+
import { B as BaseCtx, 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-
|
|
8
|
-
export { C as CookieSerializeOptions, a as HttpOptions } from './types-
|
|
9
|
-
import { R as RpcCtx } from './types-
|
|
10
|
-
export { a as RpcServerOptions } from './types-
|
|
7
|
+
import { H as HttpCtx } from './types-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,
|
|
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,
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
5
|
+
import '../../meta-CZDDYaRV.mjs';
|
|
6
6
|
|
|
7
7
|
interface NatsCtx extends RpcCtx {
|
|
8
8
|
type: 'nats';
|
package/dist/rpc/nats/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NatsConnection } from 'nats';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
2
|
+
import { F as Factory } from '../../core-D7uMDEXI.js';
|
|
3
|
+
import { R as RpcCtx, a as RpcServerOptions } from '../../types-DG5DI_EC.js';
|
|
4
4
|
import 'phecda-core';
|
|
5
|
-
import '../../meta-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
5
|
+
import '../../meta-CZDDYaRV.js';
|
|
6
6
|
|
|
7
7
|
interface RedisCtx extends RpcCtx {
|
|
8
8
|
type: 'redis';
|
package/dist/rpc/ws/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import WS from 'ws';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
5
|
+
import '../../meta-CZDDYaRV.mjs';
|
|
6
6
|
|
|
7
7
|
interface WsCtx extends RpcCtx {
|
|
8
8
|
type: 'ws';
|
package/dist/rpc/ws/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import WS from 'ws';
|
|
2
|
-
import { F as Factory } from '../../core-
|
|
3
|
-
import { R as RpcCtx, a as RpcServerOptions } from '../../types-
|
|
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-
|
|
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-
|
|
6
|
-
import { C as CustomResponse } from './meta-
|
|
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-
|
|
6
|
-
import { C as CustomResponse } from './meta-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { IncomingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import { B as BaseCtx, D as DefaultOptions } from './meta-
|
|
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-
|
|
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.
|
|
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
|
},
|