@zhin.js/console 1.0.32 → 1.0.34

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @zhin.js/console
2
2
 
3
+ ## 1.0.34
4
+
5
+ ### Patch Changes
6
+
7
+ - 631da6e: fix: 约定公开路由前缀/pub
8
+ - Updated dependencies [631da6e]
9
+ - @zhin.js/http@1.0.31
10
+
11
+ ## 1.0.33
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [a8ce720]
16
+ - @zhin.js/core@1.0.37
17
+ - zhin.js@1.0.37
18
+ - @zhin.js/http@1.0.30
19
+
3
20
  ## 1.0.32
4
21
 
5
22
  ### Patch Changes
package/lib/index.js CHANGED
@@ -282,7 +282,7 @@ if (enabled) {
282
282
  };
283
283
  logger2.info(`Web \u63A7\u5236\u53F0\u5DF2\u542F\u52A8 (${"\u751F\u4EA7\u6A21\u5F0F, \u9759\u6001\u6587\u4EF6 + \u6309\u9700\u8F6C\u8BD1"})`);
284
284
  router.all("*all", async (ctx, next) => {
285
- if (ctx.path.startsWith("/api/") || ctx.path === "/api") {
285
+ if (ctx.path.startsWith("/api/") || ctx.path === "/api" || ctx.path.startsWith("/pub/") || ctx.path === "/pub") {
286
286
  return next();
287
287
  }
288
288
  const name = ctx.path.slice(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/console",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Web console service for Zhin.js with real-time monitoring",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -67,14 +67,14 @@
67
67
  "tailwindcss": "latest",
68
68
  "tsup": "^8.5.1",
69
69
  "vite": "^7.0.6",
70
- "zhin.js": "1.0.36"
70
+ "zhin.js": "1.0.37"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@types/ws": "^8.18.1",
74
74
  "@zhin.js/client": "^1.0.10",
75
- "@zhin.js/core": "^1.0.36",
76
- "@zhin.js/http": "^1.0.29",
77
- "zhin.js": "1.0.36"
75
+ "@zhin.js/core": "^1.0.37",
76
+ "@zhin.js/http": "^1.0.31",
77
+ "zhin.js": "1.0.37"
78
78
  },
79
79
  "files": [
80
80
  "lib",