@seayoo-web/gamer-api 2.13.11 → 2.13.12

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/dist/index.js CHANGED
@@ -200,9 +200,14 @@ class ia {
200
200
  const n = _();
201
201
  if (!this.idToken || n && !this.weixinToken)
202
202
  return !1;
203
- const { code: r, data: a } = await this.req.post("session/switch-game", c({ gameId: t }), fe, {
204
- message: !1
205
- });
203
+ const { code: r, data: a } = await this.req.post(
204
+ "session/switch-game",
205
+ c({ game_id: t }),
206
+ fe,
207
+ {
208
+ message: !1
209
+ }
210
+ );
206
211
  switch (r) {
207
212
  case "game_not_allowed":
208
213
  return !1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seayoo-web/gamer-api",
3
3
  "description": "agent for gamer api",
4
- "version": "2.13.11",
4
+ "version": "2.13.12",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -30,12 +30,12 @@
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.13.1",
33
+ "@seayoo-web/request": "3.4.2",
33
34
  "@seayoo-web/combo-webview": "2.8.0",
34
35
  "@seayoo-web/tsconfig": "1.0.5",
35
- "@seayoo-web/request": "3.4.2",
36
+ "@seayoo-web/scripts": "3.1.6",
36
37
  "@seayoo-web/utils": "4.1.3",
37
- "@seayoo-web/validator": "2.0.0",
38
- "@seayoo-web/scripts": "3.1.6"
38
+ "@seayoo-web/validator": "2.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@seayoo-web/combo-webview": "^2.8.0",
@@ -1,4 +1,4 @@
1
- export declare const console: Pick<Console, "log" | "error" | "warn">;
1
+ export declare const console: Pick<Console, "error" | "log" | "warn">;
2
2
  /** 检测是否在 combo webview */
3
3
  export declare function inComboWebview(): boolean;
4
4
  export declare function isRootEndpoint(path: string): boolean;