@cloudbase/auth 3.3.2 → 3.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/auth",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "cloudbase javascript sdk auth componets",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -32,14 +32,14 @@
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
34
  "@cloudbase/adapter-wx_mp": "^1.3.1",
35
- "@cloudbase/oauth": "3.3.2",
36
- "@cloudbase/utilities": "3.3.2"
35
+ "@cloudbase/oauth": "3.3.3",
36
+ "@cloudbase/utilities": "3.3.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@cloudbase/types": "3.3.2",
39
+ "@cloudbase/types": "3.3.3",
40
40
  "@types/node": "^22.1.0",
41
41
  "terser-webpack-plugin": "^3.0.2",
42
42
  "webpack-bundle-analyzer": "^4.9.1"
43
43
  },
44
- "gitHead": "129b3ef32376458210158ee295e1a1be8a1362bc"
44
+ "gitHead": "9549ddd1a3f3fc6bc07a8853b49bd1d696b0558b"
45
45
  }
package/src/index.ts CHANGED
@@ -442,7 +442,9 @@ class Auth extends AuthV1Compat {
442
442
  */
443
443
  async signUp(params: authModels.SignUpRequest & { phone?: string }): Promise<SignUpRes> {
444
444
  if (params.phone_number || params.verification_code || params.verification_token || params.provider_token) {
445
- params.phone_number = this.formatPhone(params.phone_number)
445
+ if (params.phone_number) {
446
+ params.phone_number = this.formatPhone(params.phone_number)
447
+ }
446
448
  await this.oauthInstance.authApi.signUp(params)
447
449
  return this.createLoginState() as any
448
450
  }