@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.
File without changes
@@ -57,12 +57,12 @@ class Server {
57
57
  // @ts-ignore
58
58
  const {
59
59
  routes
60
- } = await import('.x/routes');
60
+ } = await require('.x/routes');
61
61
  this.routes = routes;
62
62
  }
63
63
  async applyHooks() {
64
64
  // @ts-ignore
65
- await import('.x/hooks');
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 import('.x/crons');
214
+ await require('.x/crons');
215
215
  }
216
216
  async applyAutoClose() {
217
217
  _x2.x.dispose.add(() => this.close());
@@ -52,12 +52,12 @@ export class Server {
52
52
  // @ts-ignore
53
53
  const {
54
54
  routes
55
- } = await import('.x/routes');
55
+ } = await require('.x/routes');
56
56
  this.routes = routes;
57
57
  }
58
58
  async applyHooks() {
59
59
  // @ts-ignore
60
- await import('.x/hooks');
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 import('.x/crons');
209
+ await require('.x/crons');
210
210
  }
211
211
  async applyAutoClose() {
212
212
  x.dispose.add(() => this.close());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.62.2",
3
+ "version": "2.62.3",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",