@jetthai/cuora 1.1.31 → 1.1.33
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 +4 -0
- package/dist/bundle.mjs +2 -2
- package/package.json +1 -1
- package/src/machine/promotions.js +1 -1
- package/src/machine/withdraw_vn.js +1 -1
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.33](https://github.com/jetthai/cuora-module/compare/v1.1.32...v1.1.33) (2023-01-10)
|
|
6
|
+
|
|
7
|
+
### [1.1.32](https://github.com/jetthai/cuora-module/compare/v1.1.31...v1.1.32) (2023-01-09)
|
|
8
|
+
|
|
5
9
|
### [1.1.31](https://github.com/jetthai/cuora-module/compare/v1.1.30...v1.1.31) (2023-01-09)
|
|
6
10
|
|
|
7
11
|
### [1.1.30](https://github.com/jetthai/cuora-module/compare/v1.1.29...v1.1.30) (2023-01-09)
|
package/dist/bundle.mjs
CHANGED
|
@@ -15114,7 +15114,7 @@ function withdraw_vn (request) {
|
|
|
15114
15114
|
const { differAmountLimit, enableWithdraw, enableWithdrawAmount, maxWithdrawStatus, maximumWithdrawAmount, minimumWithdrawAmount } =
|
|
15115
15115
|
event.data?.withdrawRule;
|
|
15116
15116
|
|
|
15117
|
-
const rules = event.data.rules.filter((rule) => rule.maxWithdrawAmount > 0);
|
|
15117
|
+
const rules = (event.data?.withdrawRule || []).rules.filter((rule) => rule.maxWithdrawAmount > 0);
|
|
15118
15118
|
|
|
15119
15119
|
const { balance } = context;
|
|
15120
15120
|
const lastMatchedIndex = findLastIndex_1(rules, (rule) => balance >= rule.greaterEqualThen);
|
|
@@ -20437,7 +20437,7 @@ function promotions (request) {
|
|
|
20437
20437
|
target: 'joined',
|
|
20438
20438
|
},
|
|
20439
20439
|
onError: {
|
|
20440
|
-
target: '
|
|
20440
|
+
target: 'loaded',
|
|
20441
20441
|
},
|
|
20442
20442
|
},
|
|
20443
20443
|
},
|
package/package.json
CHANGED
|
@@ -332,7 +332,7 @@ export default function (request) {
|
|
|
332
332
|
const { differAmountLimit, enableWithdraw, enableWithdrawAmount, maxWithdrawStatus, maximumWithdrawAmount, minimumWithdrawAmount } =
|
|
333
333
|
event.data?.withdrawRule
|
|
334
334
|
|
|
335
|
-
const rules = event.data.rules.filter((rule) => rule.maxWithdrawAmount > 0)
|
|
335
|
+
const rules = (event.data?.withdrawRule || []).rules.filter((rule) => rule.maxWithdrawAmount > 0)
|
|
336
336
|
|
|
337
337
|
const { balance } = context
|
|
338
338
|
const lastMatchedIndex = findLastIndex(rules, (rule) => balance >= rule.greaterEqualThen)
|