@jetthai/cuora 1.1.410 → 1.1.412

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.412](https://github.com/jetthai/cuora-module/compare/v1.1.411...v1.1.412) (2026-02-09)
6
+
7
+ ### [1.1.411](https://github.com/jetthai/cuora-module/compare/v1.1.410...v1.1.411) (2026-02-05)
8
+
5
9
  ### [1.1.410](https://github.com/jetthai/cuora-module/compare/v1.1.409...v1.1.410) (2026-02-02)
6
10
 
7
11
  ### [1.1.409](https://github.com/jetthai/cuora-module/compare/v1.1.408...v1.1.409) (2026-01-27)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.410",
3
+ "version": "1.1.412",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -101,7 +101,7 @@ export default function (request) {
101
101
  invoke: {
102
102
  src: 'fetchUserInfo',
103
103
  onDone: {
104
- target: 'loginSuccess',
104
+ target: 'otpChecking',
105
105
  actions: ['setUserInfo', 'extendToken'],
106
106
  },
107
107
  onError: {
@@ -109,6 +109,19 @@ export default function (request) {
109
109
  },
110
110
  },
111
111
  },
112
+ otpChecking: {
113
+ on: {
114
+ OTP_VERIFIED: {
115
+ target: 'loginSuccess',
116
+ },
117
+ OTP_SKIP: {
118
+ target: 'loginSuccess',
119
+ },
120
+ LOGOUT: {
121
+ target: 'leaving',
122
+ },
123
+ },
124
+ },
112
125
  loginSuccess: {
113
126
  after: {
114
127
  0: {
@@ -112,10 +112,15 @@ export default function (request) {
112
112
  actions: 'setResult',
113
113
  },
114
114
  onError: {
115
- target: 'loaded',
115
+ target: 'submitFail',
116
116
  },
117
117
  },
118
118
  },
119
+ submitFail: {
120
+ after: {
121
+ 0: { target: 'loaded' },
122
+ },
123
+ },
119
124
  processing: {},
120
125
  submitted: {},
121
126
  fail: {},
@@ -82,10 +82,15 @@ export default function (request, context) {
82
82
  actions: 'setResult',
83
83
  },
84
84
  onError: {
85
- target: 'calculated',
85
+ target: 'fail',
86
86
  },
87
87
  },
88
88
  },
89
+ fail: {
90
+ after: {
91
+ 0: { target: 'calculated' },
92
+ },
93
+ },
89
94
  submitted: {},
90
95
  },
91
96
  on: {
@@ -91,10 +91,15 @@ export default function (request) {
91
91
  actions: 'setResult',
92
92
  },
93
93
  onError: {
94
- target: 'loaded',
94
+ target: 'submitFail',
95
95
  },
96
96
  },
97
97
  },
98
+ submitFail: {
99
+ after: {
100
+ 0: { target: 'loaded' },
101
+ },
102
+ },
98
103
  submitted: {},
99
104
  fail: {},
100
105
  },
@@ -79,10 +79,15 @@ export default function (request, context) {
79
79
  actions: ['setResult', 'setTtl'],
80
80
  },
81
81
  onError: {
82
- target: 'calculated',
82
+ target: 'fail',
83
83
  },
84
84
  },
85
85
  },
86
+ fail: {
87
+ after: {
88
+ 0: { target: 'calculated' },
89
+ },
90
+ },
86
91
  submitted: {
87
92
  after: {
88
93
  1000: {