ework-qq-bridge 0.1.2 → 0.1.3

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/package.json +1 -1
  2. package/src/ework.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-qq-bridge",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "QQ group <-> ework issue bridge (OneBot 11 reverse WebSocket)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/ework.ts CHANGED
@@ -4,7 +4,7 @@ export interface EworkClient {
4
4
  }
5
5
 
6
6
  export function createEworkClient(baseUrl: string, token: string): EworkClient {
7
- const root = baseUrl.replace(/\/+$/, "");
7
+ const root = baseUrl.replace(/\/+$/, "").replace(/\/api\/v1$/, "") + "/api/v1";
8
8
  const headers = {
9
9
  "Content-Type": "application/json",
10
10
  Authorization: `Bearer ${token}`,