@jetthai/cuora 1.1.53 → 1.1.55

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.55](https://github.com/jetthai/cuora-module/compare/v1.1.54...v1.1.55) (2023-03-02)
6
+
7
+ ### [1.1.54](https://github.com/jetthai/cuora-module/compare/v1.1.53...v1.1.54) (2023-03-01)
8
+
5
9
  ### [1.1.53](https://github.com/jetthai/cuora-module/compare/v1.1.51...v1.1.53) (2023-02-24)
6
10
 
7
11
  ### [1.1.52](https://github.com/jetthai/cuora-module/compare/v1.1.51...v1.1.52) (2023-02-23)
package/dist/bundle.mjs CHANGED
@@ -14604,7 +14604,7 @@ function user_sign_up (request) {
14604
14604
  sentry.captureMessage(JSON.stringify(messages));
14605
14605
 
14606
14606
  const referralObj = {};
14607
- if (referralCode) {
14607
+ if (![undefined, 'undefined', null, 'null'].includes(referralCode)) {
14608
14608
  referralObj.referralCode = referralCode;
14609
14609
  } else {
14610
14610
  (referralObj.channel = storage.get('channel') || defaultChannel || channel),
@@ -21073,8 +21073,11 @@ function auth_otp_v3 (request) {
21073
21073
  },
21074
21074
  },
21075
21075
  verification: {
21076
- always: [{ target: '#auth_otp.verified', cond: 'isAutoVerified' }, { target: '.idle' }],
21076
+ initial: 'checking',
21077
21077
  states: {
21078
+ checking: {
21079
+ always: [{ target: '#auth_otp.verified', cond: 'isAutoVerified' }, { target: 'idle' }],
21080
+ },
21078
21081
  idle: {
21079
21082
  on: {
21080
21083
  ACKNOWLEDGE: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.53",
3
+ "version": "1.1.55",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -116,8 +116,11 @@ export default function (request) {
116
116
  },
117
117
  },
118
118
  verification: {
119
- always: [{ target: '#auth_otp.verified', cond: 'isAutoVerified' }, { target: '.idle' }],
119
+ initial: 'checking',
120
120
  states: {
121
+ checking: {
122
+ always: [{ target: '#auth_otp.verified', cond: 'isAutoVerified' }, { target: 'idle' }],
123
+ },
121
124
  idle: {
122
125
  on: {
123
126
  ACKNOWLEDGE: {
@@ -125,7 +125,7 @@ export default function (request) {
125
125
  sentry.captureMessage(JSON.stringify(messages))
126
126
 
127
127
  const referralObj = {}
128
- if (referralCode) {
128
+ if (![undefined, 'undefined', null, 'null'].includes(referralCode)) {
129
129
  referralObj.referralCode = referralCode
130
130
  } else {
131
131
  ;(referralObj.channel = storage.get('channel') || defaultChannel || channel),