@jetthai/cuora 1.1.9 → 1.1.10
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 +2 -0
- package/package.json +1 -1
- package/src/machine/auth.js +11 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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.10](https://github.com/jetthai/cuora-module/compare/v1.1.9...v1.1.10) (2022-12-21)
|
|
6
|
+
|
|
5
7
|
### [1.1.9](https://github.com/jetthai/cuora-module/compare/v1.1.5-1...v1.1.9) (2022-12-07)
|
|
6
8
|
|
|
7
9
|
### [1.1.8](https://github.com/jetthai/cuora-module/compare/v1.1.7...v1.1.8) (2022-12-07)
|
package/package.json
CHANGED
package/src/machine/auth.js
CHANGED
|
@@ -98,7 +98,7 @@ export default function (request) {
|
|
|
98
98
|
initial: 'pending',
|
|
99
99
|
states: {
|
|
100
100
|
pending: {
|
|
101
|
-
always: [{ target: '#auth.
|
|
101
|
+
always: [{ target: '#auth.inlineFinish', cond: 'isNotInline' }],
|
|
102
102
|
after: {
|
|
103
103
|
TIMEOUT: {
|
|
104
104
|
target: 'fetching',
|
|
@@ -119,6 +119,13 @@ export default function (request) {
|
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
},
|
|
122
|
+
inlineFinish: {
|
|
123
|
+
after: {
|
|
124
|
+
0: {
|
|
125
|
+
target: 'login',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
122
129
|
login: {
|
|
123
130
|
initial: 'fetching',
|
|
124
131
|
states: {
|
|
@@ -327,7 +334,7 @@ export default function (request) {
|
|
|
327
334
|
{ channel: defaultChannel, subchannel: defaultSubchannel },
|
|
328
335
|
{ channel: channel, subchannel: subchannel },
|
|
329
336
|
],
|
|
330
|
-
referralCode
|
|
337
|
+
referralCode,
|
|
331
338
|
}
|
|
332
339
|
sentry.captureMessage(JSON.stringify(messages))
|
|
333
340
|
|
|
@@ -335,8 +342,8 @@ export default function (request) {
|
|
|
335
342
|
if (referralCode) {
|
|
336
343
|
referralObj.referralCode = referralCode
|
|
337
344
|
} else {
|
|
338
|
-
referralObj.channel = storage.get('channel') || defaultChannel || channel,
|
|
339
|
-
|
|
345
|
+
;(referralObj.channel = storage.get('channel') || defaultChannel || channel),
|
|
346
|
+
(referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel)
|
|
340
347
|
}
|
|
341
348
|
|
|
342
349
|
const redirectURL = urljoin(
|