@jetthai/cuora 1.1.49 → 1.1.51
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 +8 -0
- package/dist/bundle.mjs +16 -2
- package/package.json +1 -1
- package/src/machine/deposit/qrcode_v2.js +1 -0
- package/src/machine/promotions.js +13 -1
- package/src/machine/reward.js +1 -0
- package/src/util/deviceToken.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.51](https://github.com/jetthai/cuora-module/compare/v1.1.48-1...v1.1.51) (2023-02-17)
|
|
6
|
+
|
|
7
|
+
### [1.1.50](https://github.com/jetthai/cuora-module/compare/v1.1.49...v1.1.50) (2023-02-16)
|
|
8
|
+
|
|
9
|
+
### [1.1.49](https://github.com/jetthai/cuora-module/compare/v1.1.48...v1.1.49) (2023-02-15)
|
|
10
|
+
|
|
11
|
+
### [1.1.50](https://github.com/jetthai/cuora-module/compare/v1.1.49...v1.1.50) (2023-02-16)
|
|
12
|
+
|
|
5
13
|
### [1.1.49](https://github.com/jetthai/cuora-module/compare/v1.1.48...v1.1.49) (2023-02-15)
|
|
6
14
|
|
|
7
15
|
### [1.1.48](https://github.com/jetthai/cuora-module/compare/v1.1.47...v1.1.48) (2023-02-10)
|
package/dist/bundle.mjs
CHANGED
|
@@ -9664,7 +9664,7 @@ const getDeviceToken = async ({ fpToken, sentry, hosts }) => {
|
|
|
9664
9664
|
|
|
9665
9665
|
console.log('[Device Token]', `${dt} from ${endpoints}`);
|
|
9666
9666
|
} catch (error) {
|
|
9667
|
-
console.error('[Device Token]', `${dt} from ${endpoints}
|
|
9667
|
+
console.error('[Device Token]', `${dt} from ${endpoints}`, error);
|
|
9668
9668
|
sentry?.captureException(error);
|
|
9669
9669
|
} finally {
|
|
9670
9670
|
return dt
|
|
@@ -13931,6 +13931,7 @@ function reward (request) {
|
|
|
13931
13931
|
on: {
|
|
13932
13932
|
RECEIVE_REWARD: {
|
|
13933
13933
|
target: 'receiving',
|
|
13934
|
+
actions: 'setCallback',
|
|
13934
13935
|
},
|
|
13935
13936
|
BACK: {
|
|
13936
13937
|
target: 'idle',
|
|
@@ -17840,6 +17841,7 @@ function qrcode_v2 (request) {
|
|
|
17840
17841
|
},
|
|
17841
17842
|
],
|
|
17842
17843
|
KEY_IN: {
|
|
17844
|
+
target: 'pending',
|
|
17843
17845
|
actions: 'setAmount',
|
|
17844
17846
|
},
|
|
17845
17847
|
},
|
|
@@ -21260,6 +21262,7 @@ function promotions (request) {
|
|
|
21260
21262
|
withdrawRule: {},
|
|
21261
21263
|
promotionsList: [],
|
|
21262
21264
|
selectedPromo: {},
|
|
21265
|
+
callback: () => {},
|
|
21263
21266
|
},
|
|
21264
21267
|
states: {
|
|
21265
21268
|
loading: {
|
|
@@ -21304,6 +21307,7 @@ function promotions (request) {
|
|
|
21304
21307
|
on: {
|
|
21305
21308
|
CONFIRM: {
|
|
21306
21309
|
target: 'applying',
|
|
21310
|
+
actions: 'setCallback',
|
|
21307
21311
|
},
|
|
21308
21312
|
BACK: {
|
|
21309
21313
|
target: 'loaded',
|
|
@@ -21321,7 +21325,9 @@ function promotions (request) {
|
|
|
21321
21325
|
},
|
|
21322
21326
|
},
|
|
21323
21327
|
},
|
|
21324
|
-
applied: {
|
|
21328
|
+
applied: {
|
|
21329
|
+
entry: 'doCallback',
|
|
21330
|
+
},
|
|
21325
21331
|
fail: {},
|
|
21326
21332
|
},
|
|
21327
21333
|
},
|
|
@@ -21372,6 +21378,14 @@ function promotions (request) {
|
|
|
21372
21378
|
withdrawRule: event.data,
|
|
21373
21379
|
}
|
|
21374
21380
|
}),
|
|
21381
|
+
setCallback: assign((context, event) => {
|
|
21382
|
+
return {
|
|
21383
|
+
callback: event.data?.callback || (() => {}),
|
|
21384
|
+
}
|
|
21385
|
+
}),
|
|
21386
|
+
doCallback: (context, event) => {
|
|
21387
|
+
context.callback();
|
|
21388
|
+
},
|
|
21375
21389
|
reset: assign((context, event) => {
|
|
21376
21390
|
return {
|
|
21377
21391
|
amount: null,
|
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ export default function (request) {
|
|
|
13
13
|
withdrawRule: {},
|
|
14
14
|
promotionsList: [],
|
|
15
15
|
selectedPromo: {},
|
|
16
|
+
callback: () => {},
|
|
16
17
|
},
|
|
17
18
|
states: {
|
|
18
19
|
loading: {
|
|
@@ -57,6 +58,7 @@ export default function (request) {
|
|
|
57
58
|
on: {
|
|
58
59
|
CONFIRM: {
|
|
59
60
|
target: 'applying',
|
|
61
|
+
actions: 'setCallback',
|
|
60
62
|
},
|
|
61
63
|
BACK: {
|
|
62
64
|
target: 'loaded',
|
|
@@ -74,7 +76,9 @@ export default function (request) {
|
|
|
74
76
|
},
|
|
75
77
|
},
|
|
76
78
|
},
|
|
77
|
-
applied: {
|
|
79
|
+
applied: {
|
|
80
|
+
entry: 'doCallback',
|
|
81
|
+
},
|
|
78
82
|
fail: {},
|
|
79
83
|
},
|
|
80
84
|
},
|
|
@@ -125,6 +129,14 @@ export default function (request) {
|
|
|
125
129
|
withdrawRule: event.data,
|
|
126
130
|
}
|
|
127
131
|
}),
|
|
132
|
+
setCallback: assign((context, event) => {
|
|
133
|
+
return {
|
|
134
|
+
callback: event.data?.callback || (() => {}),
|
|
135
|
+
}
|
|
136
|
+
}),
|
|
137
|
+
doCallback: (context, event) => {
|
|
138
|
+
context.callback()
|
|
139
|
+
},
|
|
128
140
|
reset: assign((context, event) => {
|
|
129
141
|
return {
|
|
130
142
|
amount: null,
|
package/src/machine/reward.js
CHANGED
package/src/util/deviceToken.js
CHANGED
|
@@ -21,7 +21,7 @@ const getDeviceToken = async ({ fpToken, sentry, hosts }) => {
|
|
|
21
21
|
|
|
22
22
|
console.log('[Device Token]', `${dt} from ${endpoints}`)
|
|
23
23
|
} catch (error) {
|
|
24
|
-
console.error('[Device Token]', `${dt} from ${endpoints}
|
|
24
|
+
console.error('[Device Token]', `${dt} from ${endpoints}`, error)
|
|
25
25
|
sentry?.captureException(error)
|
|
26
26
|
} finally {
|
|
27
27
|
return dt
|