icms-api 0.1.10 → 0.1.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.
@@ -18,15 +18,17 @@ export declare class ICMSClient {
18
18
  }>): Promise<Member | undefined>;
19
19
  logout(): Promise<void>;
20
20
  /**
21
- * 注册 C 端会员(手机号/邮箱 + 密码)
21
+ * 注册 C 端会员(手机号/邮箱 + 密码 + 邮箱验证码)
22
22
  * @param username 手机号或邮箱
23
23
  * @param password 密码
24
+ * @param validateCode 邮箱验证码(发送验证码后填写)
24
25
  * @param nickname 昵称(可选)
25
26
  * @returns 注册成功且已登录时返回 Member,否则 undefined
26
27
  */
27
- register({ username, password, nickname }: Readonly<{
28
+ register({ username, password, validateCode, nickname }: Readonly<{
28
29
  username: string;
29
30
  password: string;
31
+ validateCode: string;
30
32
  nickname?: string;
31
33
  }>): Promise<Member | undefined>;
32
34
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "icms-api",
3
3
  "private": false,
4
- "version": "0.1.10",
4
+ "version": "0.1.12",
5
5
  "description": "对iCMS内容管理系统API的封装,使用该API能快速使用iCMS搭建您的WebApp!",
6
6
  "type": "module",
7
7
  "main": "./dist/icms-api.cjs.js",
@@ -61,6 +61,6 @@
61
61
  "vitest": "^1.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@rock.chen/icms-http-client": "^1.1.2"
64
+ "@rock.chen/icms-http-client": "^1.1.3"
65
65
  }
66
66
  }