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.
- package/package.json +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
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};
|