huxy-node-server 1.0.0-beta.4 → 1.0.0-beta.5

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huxy-node-server",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "一个精炼、高性能的 Express.js 服务器模板,为现代 Node.js 应用程序设计,提供灵活的功能和最佳实践。",
5
5
  "type": "module",
6
6
  "module": "./src/index.js",
package/src/index.js CHANGED
@@ -217,6 +217,7 @@ var T = (e = import.meta.url) => oe(te(e)),
217
217
  var ne = {port: 9e3, host: 'localhost', basepath: '/', buildPath: './build'},
218
218
  ie = (e, r) =>
219
219
  h({...ne, ...e}, async (t, o, s) => {
220
+ await r?.(t, o, s);
220
221
  let {basepath: i, buildPath: n} = t;
221
222
  (o.use(
222
223
  i,
@@ -230,8 +231,7 @@ var ne = {port: 9e3, host: 'localhost', basepath: '/', buildPath: './build'},
230
231
  ),
231
232
  o.get(`${i}/{*splat}`.replace('//', '/'), (c, l) => {
232
233
  l.sendFile($(n, 'index.html'));
233
- }),
234
- await r?.(t, o, s));
234
+ }));
235
235
  }),
236
236
  O = ie;
237
237
  var tt = {startServer: h, startStatic: O, logger: a, createLogger: p, dateTime: m, localIPs: u, nodeArgs: x, getEnvConfig: d, checkPort: f, getDirName: T, resolvePath: S};