@jetthai/cuora 1.1.37 → 1.1.38
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/dist/bundle.mjs +3 -1
- package/package.json +1 -1
- package/src/machine/withdraw_vn.js +3 -1
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.38](https://github.com/jetthai/cuora-module/compare/v1.1.37...v1.1.38) (2023-01-13)
|
|
6
|
+
|
|
5
7
|
### [1.1.37](https://github.com/jetthai/cuora-module/compare/v1.1.36...v1.1.37) (2023-01-13)
|
|
6
8
|
|
|
7
9
|
### [1.1.36](https://github.com/jetthai/cuora-module/compare/v1.1.35...v1.1.36) (2023-01-12)
|
package/dist/bundle.mjs
CHANGED
|
@@ -15114,7 +15114,8 @@ function withdraw_vn (request) {
|
|
|
15114
15114
|
const { differAmountLimit, enableWithdraw, enableWithdrawAmount, maxWithdrawStatus, maximumWithdrawAmount, minimumWithdrawAmount } =
|
|
15115
15115
|
event.data?.withdrawRule;
|
|
15116
15116
|
|
|
15117
|
-
const
|
|
15117
|
+
const withdrawRules = event.data?.withdrawRule?.rules || [];
|
|
15118
|
+
const rules = withdrawRules.filter((rule) => rule.maxWithdrawAmount > 0);
|
|
15118
15119
|
|
|
15119
15120
|
const { balance } = context;
|
|
15120
15121
|
const lastMatchedIndex = findLastIndex_1(rules, (rule) => balance >= rule.greaterEqualThen);
|
|
@@ -15134,6 +15135,7 @@ function withdraw_vn (request) {
|
|
|
15134
15135
|
maxWithdrawAmount,
|
|
15135
15136
|
enableWithdrawAmount: +enableWithdrawAmount,
|
|
15136
15137
|
enableWithdraw,
|
|
15138
|
+
withdrawRules,
|
|
15137
15139
|
}
|
|
15138
15140
|
}),
|
|
15139
15141
|
setOtp: assign((context, event) => {
|
package/package.json
CHANGED
|
@@ -332,7 +332,8 @@ export default function (request) {
|
|
|
332
332
|
const { differAmountLimit, enableWithdraw, enableWithdrawAmount, maxWithdrawStatus, maximumWithdrawAmount, minimumWithdrawAmount } =
|
|
333
333
|
event.data?.withdrawRule
|
|
334
334
|
|
|
335
|
-
const
|
|
335
|
+
const withdrawRules = event.data?.withdrawRule?.rules || []
|
|
336
|
+
const rules = withdrawRules.filter((rule) => rule.maxWithdrawAmount > 0)
|
|
336
337
|
|
|
337
338
|
const { balance } = context
|
|
338
339
|
const lastMatchedIndex = findLastIndex(rules, (rule) => balance >= rule.greaterEqualThen)
|
|
@@ -352,6 +353,7 @@ export default function (request) {
|
|
|
352
353
|
maxWithdrawAmount,
|
|
353
354
|
enableWithdrawAmount: +enableWithdrawAmount,
|
|
354
355
|
enableWithdraw,
|
|
356
|
+
withdrawRules,
|
|
355
357
|
}
|
|
356
358
|
}),
|
|
357
359
|
setOtp: assign((context, event) => {
|