@jetthai/cuora 1.1.338-dev-2 → 1.1.338-dev-4

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 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.338-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.338-dev-3...v1.1.338-dev-4) (2025-02-12)
6
+
7
+ ### [1.1.338-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.338-dev-2...v1.1.338-dev-3) (2025-02-11)
8
+
5
9
  ### [1.1.338-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.338-dev-1...v1.1.338-dev-2) (2025-02-07)
6
10
 
7
11
  ### [1.1.338-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.338...v1.1.338-dev-1) (2025-02-04)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.338-dev-2",
3
+ "version": "1.1.338-dev-4",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -46,6 +46,7 @@ export default function (request) {
46
46
  gameURL: null,
47
47
  gameToken: null,
48
48
  gameHtml: null,
49
+ gameWalletType: null,
49
50
  switchGame: null,
50
51
  ...oldContext,
51
52
  },
@@ -431,6 +432,9 @@ export default function (request) {
431
432
  gameURL: (context, event) => {
432
433
  return event.data.gameURL
433
434
  },
435
+ gameWalletType: (context, event) => {
436
+ return event.data.gameWalletType
437
+ },
434
438
  }),
435
439
  clearGameInfo: assign((context, event) => {
436
440
  return { game: { providerId: null, gameId: null, gameTypeId: null, mappingId: null } }
@@ -593,8 +597,8 @@ export default function (request) {
593
597
  selected_wallet_type: walletMode,
594
598
  return_url: returnProviders.includes(providerId) ? `${window.location.origin}${context.base}return` : window.location.href, // For providers to return.
595
599
  }
596
- const { type, redirect_url, gameToken, gameHtml } = await request.send(api.playGame(params))
597
- return { type, gameToken, gameHtml, gameURL: redirect_url }
600
+ const { type, redirect_url, gameToken, gameHtml, wallet_type } = await request.send(api.playGame(params))
601
+ return { type, gameToken, gameHtml, gameURL: redirect_url, gameWalletType: wallet_type }
598
602
  },
599
603
  disconnectGame: async (context, event) => {
600
604
  const uid_site = event.data
@@ -408,7 +408,8 @@ export default function (request) {
408
408
  }
409
409
  }),
410
410
  updateWithdrawCondition: assign((context, event) => {
411
- const { enableWithdraw, enableWithdrawAmount, currentWithdrawLimit, targetWithdrawLimit, balance, freeGameDetail } = event.data
411
+ const { enableWithdraw, enableWithdrawAmount, currentWithdrawLimit, targetWithdrawLimit, balance, freeGameDetail, freeGameExpired } =
412
+ event.data
412
413
  const withdrawRules = event.data?.rules || []
413
414
  const rules = withdrawRules.filter((rule) => rule.maxWithdrawAmount > 0)
414
415
  const lastMatchedIndex = findLastIndex(rules, (rule) => balance >= rule.greaterEqualThen)
@@ -433,6 +434,7 @@ export default function (request) {
433
434
  enableWithdraw,
434
435
  withdrawRules,
435
436
  freeGameDetail,
437
+ freeGameExpired,
436
438
  }
437
439
  }),
438
440
  setWithdrawRulePreview: assign((context, event) => {