@jetthai/cuora 1.1.186 → 1.1.187
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 +3 -2
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.187](https://github.com/jetthai/cuora-module/compare/v1.1.186...v1.1.187) (2023-10-03)
|
|
6
|
+
|
|
5
7
|
### [1.1.186](https://github.com/jetthai/cuora-module/compare/v1.1.185...v1.1.186) (2023-09-23)
|
|
6
8
|
|
|
7
9
|
### [1.1.185](https://github.com/jetthai/cuora-module/compare/v1.1.184...v1.1.185) (2023-09-22)
|
package/package.json
CHANGED
package/src/machine/game_v2_1.js
CHANGED
|
@@ -37,6 +37,7 @@ export default function (request) {
|
|
|
37
37
|
mappingId: null,
|
|
38
38
|
portrait: null,
|
|
39
39
|
gameCode: null,
|
|
40
|
+
name: null,
|
|
40
41
|
},
|
|
41
42
|
lang: 'en_US',
|
|
42
43
|
isMobile: new UAParser().getResult().device.type,
|
|
@@ -347,8 +348,8 @@ export default function (request) {
|
|
|
347
348
|
return { game: { providerId: null, gameId: null, gameTypeId: null, mappingId: null } }
|
|
348
349
|
}),
|
|
349
350
|
setGameInfo: assign((context, event) => {
|
|
350
|
-
const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode } = event.data.game
|
|
351
|
-
return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode } }
|
|
351
|
+
const { providerId, gameId, gameTypeId, mappingId, portrait, gameCode, name } = event.data.game
|
|
352
|
+
return { game: { providerId, gameId, gameTypeId, mappingId, portrait: portrait ? 1 : 0, gameCode, name } }
|
|
352
353
|
}),
|
|
353
354
|
setLang: assign((context, event) => {
|
|
354
355
|
const lang = event.data.locale.replace('-', '_')
|