node-karin 1.0.10 → 1.0.11

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,12 @@
1
1
  # 更新日志
2
2
 
3
+ ## [1.0.11](https://github.com/KarinJS/Karin/compare/core-v1.0.10...core-v1.0.11) (2025-01-16)
4
+
5
+
6
+ ### 🐛 Bug Fixes
7
+
8
+ * fix [#231](https://github.com/KarinJS/Karin/issues/231) ([085f89d](https://github.com/KarinJS/Karin/commit/085f89d51beee4dbe715a3dc129432736ef3fe3d))
9
+
3
10
  ## [1.0.10](https://github.com/KarinJS/Karin/compare/core-v1.0.9...core-v1.0.10) (2025-01-15)
4
11
 
5
12
 
package/dist/index.js CHANGED
@@ -4834,8 +4834,9 @@ var init_ws = __esm({
4834
4834
  throw error;
4835
4835
  });
4836
4836
  wss.on("connection", (socket, request) => {
4837
+ var _a;
4837
4838
  debug(`wss:connection host: ${request.headers.host} url: ${request.url}`);
4838
- if (request.url === "/" || request.url === "/onebot/v11/ws/" || request.url === "/onebot/v11/ws/index") {
4839
+ if (((_a = request == null ? void 0 : request.headers) == null ? void 0 : _a.a) || request.url === "/" || request.url === "/onebot/v11/ws" || request.url === "/onebot/v11/ws/") {
4839
4840
  listeners.emit("ws:connection:onebot", socket, request);
4840
4841
  return;
4841
4842
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Lightweight, efficient, concise, and stable robot framework.",
5
5
  "keywords": [
6
6
  "node",