@seayoo-web/gamer-api 2.4.0 → 2.4.2

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
@@ -1418,7 +1418,7 @@ class Pr {
1418
1418
  if (!this.token.isLoggedIn)
1419
1419
  return { error: "not_logged_in" };
1420
1420
  const { ok: r, code: i } = await this.req.post(
1421
- "event/verify-activation-key",
1421
+ "verify-activation-key",
1422
1422
  {
1423
1423
  activation_key: t
1424
1424
  },
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.4.0",
4
+ "version": "2.4.2",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -30,8 +30,8 @@
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.13.1",
33
- "@seayoo-web/combo-webview": "^2.5.4",
34
33
  "@seayoo-web/request": "^3.2.0",
34
+ "@seayoo-web/combo-webview": "^2.5.4",
35
35
  "@seayoo-web/tsconfig": "^1.0.4",
36
36
  "@seayoo-web/utils": "^3.5.2",
37
37
  "@seayoo-web/scripts": "^2.5.7"
@@ -159,7 +159,7 @@ export declare class EventApi {
159
159
  verifyActivationKey(activationKey: string, requestOptions?: IRequestOptions): Promise<true | {
160
160
  readonly error: "not_logged_in";
161
161
  } | {
162
- error: RequestInternalError | "invalid_activation_key" | "invalid_activation_key";
162
+ error: RequestInternalError | "invalid_activation_key" | "activation_key_expired";
163
163
  }>;
164
164
  /**
165
165
  * 查询用户活动奖励列表