@jetthai/cuora 1.1.188-branchCode-1 → 1.1.188-branchCode-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 +2 -0
- package/package.json +1 -1
- package/src/machine/game_v2_1.js +15 -13
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.188-branchCode-2](https://github.com/jetthai/cuora-module/compare/v1.1.188-branchCode-1...v1.1.188-branchCode-2) (2023-10-17)
|
|
6
|
+
|
|
5
7
|
### [1.1.188-branchCode-1](https://github.com/jetthai/cuora-module/compare/v1.1.188-branchCode...v1.1.188-branchCode-1) (2023-10-12)
|
|
6
8
|
|
|
7
9
|
### [1.1.188-branchCode](https://github.com/jetthai/cuora-module/compare/v1.1.188...v1.1.188-branchCode) (2023-10-11)
|
package/package.json
CHANGED
package/src/machine/game_v2_1.js
CHANGED
|
@@ -141,11 +141,11 @@ export default function (request) {
|
|
|
141
141
|
src: 'disconnectGame',
|
|
142
142
|
onDone: {
|
|
143
143
|
target: 'idle',
|
|
144
|
-
actions: 'setGameURL',
|
|
144
|
+
// actions: 'setGameURL',
|
|
145
145
|
},
|
|
146
146
|
onError: {
|
|
147
147
|
target: 'idle',
|
|
148
|
-
actions: 'setGameURL',
|
|
148
|
+
// actions: 'setGameURL',
|
|
149
149
|
},
|
|
150
150
|
},
|
|
151
151
|
},
|
|
@@ -331,15 +331,15 @@ export default function (request) {
|
|
|
331
331
|
}
|
|
332
332
|
}),
|
|
333
333
|
setGameURL: assign({
|
|
334
|
-
type: (context, event) => {
|
|
335
|
-
|
|
336
|
-
},
|
|
337
|
-
gameToken: (context, event) => {
|
|
338
|
-
|
|
339
|
-
},
|
|
340
|
-
content: (context, event) => {
|
|
341
|
-
|
|
342
|
-
},
|
|
334
|
+
// type: (context, event) => {
|
|
335
|
+
// return event.data.type
|
|
336
|
+
// },
|
|
337
|
+
// gameToken: (context, event) => {
|
|
338
|
+
// return event.data.game_token
|
|
339
|
+
// },
|
|
340
|
+
// content: (context, event) => {
|
|
341
|
+
// return event.data.content
|
|
342
|
+
// },
|
|
343
343
|
gameURL: (context, event) => {
|
|
344
344
|
return event.data.gameURL
|
|
345
345
|
},
|
|
@@ -483,8 +483,10 @@ export default function (request) {
|
|
|
483
483
|
lang,
|
|
484
484
|
return_url: returnProviders.includes(providerId) ? `${window.location.origin}${context.base}return` : window.location.href, // For providers to return.
|
|
485
485
|
}
|
|
486
|
-
const {
|
|
487
|
-
return {
|
|
486
|
+
const { redirect_url } = await request.send(api.playGame(params))
|
|
487
|
+
return { gameURL: redirect_url }
|
|
488
|
+
// const { type, redirect_url, game_token, content } = await request.send(api.playGame(params))
|
|
489
|
+
// return { type, game_token, content, gameURL: redirect_url }
|
|
488
490
|
},
|
|
489
491
|
disconnectGame: async (context, event) => {
|
|
490
492
|
const uid_site = event.data
|