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

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,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.338-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.338-dev-2...v1.1.338-dev-3) (2025-02-11)
6
+
5
7
  ### [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
8
 
7
9
  ### [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-3",
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