@jetthai/cuora 1.0.17 → 1.0.18
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 +2 -3
- package/plugin/game.js +2 -3
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.0.18](https://github.com/jetthai/cuora-module/compare/v1.0.17...v1.0.18) (2021-08-20)
|
|
6
|
+
|
|
5
7
|
### [1.0.17](https://github.com/jetthai/cuora-module/compare/v1.0.16...v1.0.17) (2021-08-19)
|
|
6
8
|
|
|
7
9
|
### [1.0.16](https://github.com/jetthai/cuora-module/compare/v1.0.15...v1.0.16) (2021-08-17)
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetthai/cuora",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"release": "standard-version"
|
|
9
|
-
"push": "git push --follow-tags origin master && npm publish"
|
|
8
|
+
"release": "standard-version && git push --follow-tags origin master && npm publish"
|
|
10
9
|
},
|
|
11
10
|
"repository": {
|
|
12
11
|
"type": "git",
|
package/plugin/game.js
CHANGED
|
@@ -373,7 +373,7 @@ function createStore({ $request }) {
|
|
|
373
373
|
return $request.send(api.logoutGame({ uid_site, provider_id: provider }))
|
|
374
374
|
},
|
|
375
375
|
// fnc
|
|
376
|
-
async connectGame({}, game) {
|
|
376
|
+
async connectGame({}, {game, lang = 'en_US'}) {
|
|
377
377
|
const {provider, game_id, game_type, mapping_id} = game
|
|
378
378
|
const params = {
|
|
379
379
|
provider_id: provider,
|
|
@@ -384,8 +384,7 @@ function createStore({ $request }) {
|
|
|
384
384
|
// todo - set false temporarily
|
|
385
385
|
// is_mobile: rootGetters['core/isMobileDevice'],
|
|
386
386
|
is_mobile: false,
|
|
387
|
-
|
|
388
|
-
lang: 'en_US',
|
|
387
|
+
lang: lang.replace('-', '_'),
|
|
389
388
|
// todo - set temporarily
|
|
390
389
|
// return_url: returnProviders.includes(game.provider) ? `${window.location.origin}/return` : window.location.href, // For providers to return.
|
|
391
390
|
return_url: window.location.href
|