@jetthai/cuora 1.1.73 → 1.1.74-2
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 +6 -0
- package/dist/bundle.mjs +26 -14
- package/package.json +1 -1
- package/src/machine/auth.js +3 -3
- package/src/machine/deposit/loadcard_vn.js +17 -5
- package/src/machine/promotions.js +3 -3
- package/src/machine/user_sign_up.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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.74-2](https://github.com/jetthai/cuora-module/compare/v1.1.74-1...v1.1.74-2) (2023-04-29)
|
|
6
|
+
|
|
7
|
+
### [1.1.74-1](https://github.com/jetthai/cuora-module/compare/v1.1.74...v1.1.74-1) (2023-04-29)
|
|
8
|
+
|
|
9
|
+
### [1.1.74](https://github.com/jetthai/cuora-module/compare/v1.1.73...v1.1.74) (2023-04-09)
|
|
10
|
+
|
|
5
11
|
### [1.1.73](https://github.com/jetthai/cuora-module/compare/v1.1.72...v1.1.73) (2023-04-07)
|
|
6
12
|
|
|
7
13
|
### [1.1.72](https://github.com/jetthai/cuora-module/compare/v1.1.71...v1.1.72) (2023-04-07)
|
package/dist/bundle.mjs
CHANGED
|
@@ -15698,11 +15698,11 @@ function auth (request) {
|
|
|
15698
15698
|
const referralObj = {};
|
|
15699
15699
|
if (![undefined, 'undefined', null, 'null'].includes(referralCode)) {
|
|
15700
15700
|
referralObj.referralCode = referralCode;
|
|
15701
|
-
} else {
|
|
15702
|
-
(referralObj.channel = storage.get('channel') || defaultChannel || channel),
|
|
15703
|
-
(referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel);
|
|
15704
15701
|
}
|
|
15705
15702
|
|
|
15703
|
+
referralObj.channel = storage.get('channel') || defaultChannel || channel;
|
|
15704
|
+
referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel;
|
|
15705
|
+
|
|
15706
15706
|
const redirectURL = urljoin(
|
|
15707
15707
|
request.config.fullURL,
|
|
15708
15708
|
'login?' +
|
|
@@ -20320,11 +20320,11 @@ function user_sign_up (request) {
|
|
|
20320
20320
|
const referralObj = {};
|
|
20321
20321
|
if (![undefined, 'undefined', null, 'null'].includes(referralCode)) {
|
|
20322
20322
|
referralObj.referralCode = referralCode;
|
|
20323
|
-
} else {
|
|
20324
|
-
(referralObj.channel = storage.get('channel') || defaultChannel || channel),
|
|
20325
|
-
(referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel);
|
|
20326
20323
|
}
|
|
20327
20324
|
|
|
20325
|
+
referralObj.channel = storage.get('channel') || defaultChannel || channel;
|
|
20326
|
+
referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel;
|
|
20327
|
+
|
|
20328
20328
|
return await request.send(
|
|
20329
20329
|
auth$1.register({
|
|
20330
20330
|
...signUpData,
|
|
@@ -23246,7 +23246,7 @@ function loadcard_vn (request) {
|
|
|
23246
23246
|
actions: 'setAmount',
|
|
23247
23247
|
},
|
|
23248
23248
|
CONFIRM: {
|
|
23249
|
-
target: '
|
|
23249
|
+
target: 'debouncing',
|
|
23250
23250
|
},
|
|
23251
23251
|
BACK: {
|
|
23252
23252
|
target: 'loaded',
|
|
@@ -23272,10 +23272,22 @@ function loadcard_vn (request) {
|
|
|
23272
23272
|
calculating: {
|
|
23273
23273
|
invoke: {
|
|
23274
23274
|
src: 'fetchCalculation',
|
|
23275
|
-
onDone:
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
23275
|
+
onDone: [
|
|
23276
|
+
{
|
|
23277
|
+
target: 'submitting',
|
|
23278
|
+
actions: 'setCalculation',
|
|
23279
|
+
cond: 'jumpLinkEnable',
|
|
23280
|
+
},
|
|
23281
|
+
{
|
|
23282
|
+
target: 'cardInfo',
|
|
23283
|
+
actions: 'setCalculation',
|
|
23284
|
+
cond: 'isFreeWalletMode',
|
|
23285
|
+
},
|
|
23286
|
+
{
|
|
23287
|
+
target: 'calculated',
|
|
23288
|
+
actions: 'setCalculation',
|
|
23289
|
+
},
|
|
23290
|
+
],
|
|
23279
23291
|
onError: {
|
|
23280
23292
|
target: 'calculable',
|
|
23281
23293
|
},
|
|
@@ -27275,9 +27287,9 @@ function promotions (request) {
|
|
|
27275
27287
|
setPromotionsList: assign((context, event) => {
|
|
27276
27288
|
const promotionsList = JSON.parse(JSON.stringify(event.data));
|
|
27277
27289
|
const { noBonus, userInfo, siteConfig } = context;
|
|
27278
|
-
const { withdraw_rule, balance } = userInfo;
|
|
27279
|
-
const { currencyConversionLimit } = siteConfig;
|
|
27280
|
-
const balanceAvailable = parseFloat(`${balance}`) < parseFloat(`${currencyConversionLimit}`);
|
|
27290
|
+
const { withdraw_rule, balance, bank_amount } = userInfo;
|
|
27291
|
+
const { currencyConversionLimit, walletMode } = siteConfig;
|
|
27292
|
+
const balanceAvailable = parseFloat(`${walletMode === '4' ? bank_amount : balance}`) < parseFloat(`${currencyConversionLimit}`);
|
|
27281
27293
|
const isFreeLimitRule = withdraw_rule.includes('FREE_LIMIT');
|
|
27282
27294
|
const includesDefaultRule = withdraw_rule === 'DEFAULT' || withdraw_rule.includes('FREE_DEFAULT');
|
|
27283
27295
|
|
package/package.json
CHANGED
package/src/machine/auth.js
CHANGED
|
@@ -345,11 +345,11 @@ export default function (request) {
|
|
|
345
345
|
const referralObj = {}
|
|
346
346
|
if (![undefined, 'undefined', null, 'null'].includes(referralCode)) {
|
|
347
347
|
referralObj.referralCode = referralCode
|
|
348
|
-
} else {
|
|
349
|
-
;(referralObj.channel = storage.get('channel') || defaultChannel || channel),
|
|
350
|
-
(referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel)
|
|
351
348
|
}
|
|
352
349
|
|
|
350
|
+
referralObj.channel = storage.get('channel') || defaultChannel || channel
|
|
351
|
+
referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel
|
|
352
|
+
|
|
353
353
|
const redirectURL = urljoin(
|
|
354
354
|
request.config.fullURL,
|
|
355
355
|
'login?' +
|
|
@@ -105,7 +105,7 @@ export default function (request) {
|
|
|
105
105
|
actions: 'setAmount',
|
|
106
106
|
},
|
|
107
107
|
CONFIRM: {
|
|
108
|
-
target: '
|
|
108
|
+
target: 'debouncing',
|
|
109
109
|
},
|
|
110
110
|
BACK: {
|
|
111
111
|
target: 'loaded',
|
|
@@ -131,10 +131,22 @@ export default function (request) {
|
|
|
131
131
|
calculating: {
|
|
132
132
|
invoke: {
|
|
133
133
|
src: 'fetchCalculation',
|
|
134
|
-
onDone:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
onDone: [
|
|
135
|
+
{
|
|
136
|
+
target: 'submitting',
|
|
137
|
+
actions: 'setCalculation',
|
|
138
|
+
cond: 'jumpLinkEnable',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
target: 'cardInfo',
|
|
142
|
+
actions: 'setCalculation',
|
|
143
|
+
cond: 'isFreeWalletMode',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
target: 'calculated',
|
|
147
|
+
actions: 'setCalculation',
|
|
148
|
+
},
|
|
149
|
+
],
|
|
138
150
|
onError: {
|
|
139
151
|
target: 'calculable',
|
|
140
152
|
},
|
|
@@ -87,9 +87,9 @@ export default function (request) {
|
|
|
87
87
|
setPromotionsList: assign((context, event) => {
|
|
88
88
|
const promotionsList = JSON.parse(JSON.stringify(event.data))
|
|
89
89
|
const { noBonus, userInfo, siteConfig } = context
|
|
90
|
-
const { withdraw_rule, balance } = userInfo
|
|
91
|
-
const { currencyConversionLimit } = siteConfig
|
|
92
|
-
const balanceAvailable = parseFloat(`${balance}`) < parseFloat(`${currencyConversionLimit}`)
|
|
90
|
+
const { withdraw_rule, balance, bank_amount } = userInfo
|
|
91
|
+
const { currencyConversionLimit, walletMode } = siteConfig
|
|
92
|
+
const balanceAvailable = parseFloat(`${walletMode === '4' ? bank_amount : balance}`) < parseFloat(`${currencyConversionLimit}`)
|
|
93
93
|
const isFreeLimitRule = withdraw_rule.includes('FREE_LIMIT')
|
|
94
94
|
const includesDefaultRule = withdraw_rule === 'DEFAULT' || withdraw_rule.includes('FREE_DEFAULT')
|
|
95
95
|
|
|
@@ -127,11 +127,11 @@ export default function (request) {
|
|
|
127
127
|
const referralObj = {}
|
|
128
128
|
if (![undefined, 'undefined', null, 'null'].includes(referralCode)) {
|
|
129
129
|
referralObj.referralCode = referralCode
|
|
130
|
-
} else {
|
|
131
|
-
;(referralObj.channel = storage.get('channel') || defaultChannel || channel),
|
|
132
|
-
(referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel)
|
|
133
130
|
}
|
|
134
131
|
|
|
132
|
+
referralObj.channel = storage.get('channel') || defaultChannel || channel
|
|
133
|
+
referralObj.subchannel = storage.get('subchannel') || defaultSubchannel || subchannel
|
|
134
|
+
|
|
135
135
|
return await request.send(
|
|
136
136
|
auth.register({
|
|
137
137
|
...signUpData,
|