@hono/node-server 1.1.0 → 1.1.1

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.
@@ -51,6 +51,8 @@ const serveStatic = (options = { root: "" }) => {
51
51
  root: options.root,
52
52
  defaultDocument: options.index ?? "index.html"
53
53
  });
54
+ if (!path)
55
+ return next();
54
56
  path = `./${path}`;
55
57
  if (!(0, import_fs.existsSync)(path)) {
56
58
  return next();
@@ -29,6 +29,8 @@ var serveStatic = (options = { root: "" }) => {
29
29
  root: options.root,
30
30
  defaultDocument: options.index ?? "index.html"
31
31
  });
32
+ if (!path)
33
+ return next();
32
34
  path = `./${path}`;
33
35
  if (!existsSync(path)) {
34
36
  return next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hono/node-server",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Node.js Adapter for Hono",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -65,7 +65,7 @@
65
65
  "@types/node": "^18.7.16",
66
66
  "@types/supertest": "^2.0.12",
67
67
  "esbuild": "^0.18.13",
68
- "hono": "^3.3.0",
68
+ "hono": "^3.3.4",
69
69
  "jest": "^29.6.1",
70
70
  "np": "^7.7.0",
71
71
  "publint": "^0.1.16",