@kimesh/kit 0.2.14 → 0.2.15-nightly.20260127042941

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/dist/index.mjs +2 -3
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -3048,9 +3048,8 @@ export default createMiddlewarePlugin({
3048
3048
  server.middlewares.use(async (req, res, next) => {
3049
3049
  const url = req.url || "/";
3050
3050
  const pathname = url.split("?")[0];
3051
- if (url.startsWith("/@") || url.startsWith("/__") || url.startsWith("/node_modules")) return next();
3052
- const accept = req.headers.accept || "";
3053
- if (!accept.includes("text/html") && !accept.includes("*/*")) return next();
3051
+ if (url.startsWith("/@") || url.startsWith("/__") || url.startsWith("/node_modules") || pathname.startsWith("/.")) return next();
3052
+ if (!(req.headers.accept || "").includes("text/html")) return next();
3054
3053
  const extMatch = (pathname.split("/").pop() || "").match(/\.([a-zA-Z0-9]+)$/);
3055
3054
  if (extMatch) {
3056
3055
  const ext = extMatch[1].toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimesh/kit",
3
- "version": "0.2.14",
3
+ "version": "0.2.15-nightly.20260127042941",
4
4
  "description": "Build-time engine for Kimesh framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,9 +27,9 @@
27
27
  "test:watch": "vitest"
28
28
  },
29
29
  "dependencies": {
30
- "@kimesh/auto-import": "0.2.14",
31
- "@kimesh/layers": "0.2.14",
32
- "@kimesh/router-generator": "0.2.14",
30
+ "@kimesh/auto-import": "workspace:*",
31
+ "@kimesh/layers": "workspace:*",
32
+ "@kimesh/router-generator": "workspace:*",
33
33
  "@vitejs/plugin-vue": "^6.0.3",
34
34
  "c12": "^3.3.3",
35
35
  "consola": "^3.4.2",