@kimesh/kit 0.2.14 → 0.2.15-nightly.20260127043820

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 +4 -3
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -1778,6 +1778,8 @@ function generateKimeshDts() {
1778
1778
  * DO NOT EDIT - This file is auto-generated by Kimesh.
1779
1779
  */
1780
1780
 
1781
+ /// <reference types="vite/client" />
1782
+
1781
1783
  import type { KimeshConfig } from '@kimesh/kit'
1782
1784
 
1783
1785
  export {}
@@ -3048,9 +3050,8 @@ export default createMiddlewarePlugin({
3048
3050
  server.middlewares.use(async (req, res, next) => {
3049
3051
  const url = req.url || "/";
3050
3052
  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();
3053
+ if (url.startsWith("/@") || url.startsWith("/__") || url.startsWith("/node_modules") || pathname.startsWith("/.")) return next();
3054
+ if (!(req.headers.accept || "").includes("text/html")) return next();
3054
3055
  const extMatch = (pathname.split("/").pop() || "").match(/\.([a-zA-Z0-9]+)$/);
3055
3056
  if (extMatch) {
3056
3057
  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.20260127043820",
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",