@jayfong/x-server 2.62.2 → 2.62.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/lib/_cjs/cli/cli.js +0 -0
- package/lib/_cjs/core/server.js +3 -3
- package/lib/core/server.js +3 -3
- package/package.json +1 -1
package/lib/_cjs/cli/cli.js
CHANGED
|
File without changes
|
package/lib/_cjs/core/server.js
CHANGED
|
@@ -57,12 +57,12 @@ class Server {
|
|
|
57
57
|
// @ts-ignore
|
|
58
58
|
const {
|
|
59
59
|
routes
|
|
60
|
-
} = await
|
|
60
|
+
} = await require('.x/routes');
|
|
61
61
|
this.routes = routes;
|
|
62
62
|
}
|
|
63
63
|
async applyHooks() {
|
|
64
64
|
// @ts-ignore
|
|
65
|
-
await
|
|
65
|
+
await require('.x/hooks');
|
|
66
66
|
}
|
|
67
67
|
applyServices() {
|
|
68
68
|
_x2.x.register(...(this.options.services || []));
|
|
@@ -211,7 +211,7 @@ class Server {
|
|
|
211
211
|
}
|
|
212
212
|
async startCrons() {
|
|
213
213
|
// @ts-ignore
|
|
214
|
-
await
|
|
214
|
+
await require('.x/crons');
|
|
215
215
|
}
|
|
216
216
|
async applyAutoClose() {
|
|
217
217
|
_x2.x.dispose.add(() => this.close());
|
package/lib/core/server.js
CHANGED
|
@@ -52,12 +52,12 @@ export class Server {
|
|
|
52
52
|
// @ts-ignore
|
|
53
53
|
const {
|
|
54
54
|
routes
|
|
55
|
-
} = await
|
|
55
|
+
} = await require('.x/routes');
|
|
56
56
|
this.routes = routes;
|
|
57
57
|
}
|
|
58
58
|
async applyHooks() {
|
|
59
59
|
// @ts-ignore
|
|
60
|
-
await
|
|
60
|
+
await require('.x/hooks');
|
|
61
61
|
}
|
|
62
62
|
applyServices() {
|
|
63
63
|
x.register(...(this.options.services || []));
|
|
@@ -206,7 +206,7 @@ export class Server {
|
|
|
206
206
|
}
|
|
207
207
|
async startCrons() {
|
|
208
208
|
// @ts-ignore
|
|
209
|
-
await
|
|
209
|
+
await require('.x/crons');
|
|
210
210
|
}
|
|
211
211
|
async applyAutoClose() {
|
|
212
212
|
x.dispose.add(() => this.close());
|