@jetthai/cuora 1.1.223 → 1.1.225
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 +8 -2
- package/package.json +1 -1
- package/src/api/common.js +1 -1
- package/src/machine/common.js +5 -5
- package/src/machine/game_v2_1.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,15 @@
|
|
|
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.
|
|
5
|
+
### [1.1.225](https://github.com/jetthai/cuora-module/compare/v1.1.221-layout-1...v1.1.225) (2024-02-07)
|
|
6
6
|
|
|
7
|
-
### [1.1.
|
|
7
|
+
### [1.1.224](https://github.com/jetthai/cuora-module/compare/v1.1.222...v1.1.224) (2024-02-02)
|
|
8
|
+
|
|
9
|
+
### [1.1.222](https://github.com/jetthai/cuora-module/compare/v1.1.221-layout...v1.1.222) (2024-02-02)
|
|
10
|
+
|
|
11
|
+
### [1.1.224](https://github.com/jetthai/cuora-module/compare/v1.1.222...v1.1.224) (2024-02-02)
|
|
12
|
+
|
|
13
|
+
### [1.1.222](https://github.com/jetthai/cuora-module/compare/v1.1.221...v1.1.222) (2024-02-02)
|
|
8
14
|
|
|
9
15
|
### [1.1.221](https://github.com/jetthai/cuora-module/compare/v1.1.220...v1.1.221) (2024-01-23)
|
|
10
16
|
|
package/package.json
CHANGED
package/src/api/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
getConfig: ({ appSecret }) => ({ url: 'getConfig', method: 'get', params: { appSecret }, isPublic: true }),
|
|
3
|
-
|
|
3
|
+
getLayoutConfig: ({ appSecret }) => ({ url: 'getQuickLayout', method: 'get', params: { appSecret }, isPublic: true }),
|
|
4
4
|
feeds: ({ appSecret }) => ({ url: 'feeds', method: 'get', params: { appSecret }, isPublic: true }),
|
|
5
5
|
broadcast: () => ({ url: 'broadcast', method: 'get', isPublic: true }),
|
|
6
6
|
getAnnouncements: ({ appSecret }) => ({ url: 'getAnnouncements', params: { appSecret }, method: 'get', isPublic: true }),
|
package/src/machine/common.js
CHANGED
|
@@ -29,7 +29,7 @@ export default function (request) {
|
|
|
29
29
|
},
|
|
30
30
|
paymentMethods: {},
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
layoutConfig: null,
|
|
33
33
|
userAgent: '',
|
|
34
34
|
isMobile: false,
|
|
35
35
|
announcementList: null,
|
|
@@ -160,11 +160,11 @@ export default function (request) {
|
|
|
160
160
|
},
|
|
161
161
|
actions: {
|
|
162
162
|
setConfig: assign((context, event) => {
|
|
163
|
-
const { siteConfig,
|
|
163
|
+
const { siteConfig, layoutConfig } = event.data
|
|
164
164
|
const { loginMethods = {}, registerMethods = {} } = siteConfig
|
|
165
165
|
return {
|
|
166
166
|
siteConfig: { ...siteConfig, loginMethods: pickBy(loginMethods), registerMethods: pickBy(registerMethods) },
|
|
167
|
-
|
|
167
|
+
layoutConfig,
|
|
168
168
|
}
|
|
169
169
|
}),
|
|
170
170
|
setUA: assign((context, event) => {
|
|
@@ -269,8 +269,8 @@ export default function (request) {
|
|
|
269
269
|
},
|
|
270
270
|
services: {
|
|
271
271
|
fetchConfig: async (context, event) => {
|
|
272
|
-
const [
|
|
273
|
-
return { siteConfig: JSON.parse(window.atob(config)),
|
|
272
|
+
const [site, layout] = await Promise.all([request.send(api.getConfig({ appSecret })), request.send(api.getLayoutConfig({ appSecret }))])
|
|
273
|
+
return { siteConfig: JSON.parse(window.atob(site.config)), layoutConfig: JSON.parse(window.atob(layout.config)) }
|
|
274
274
|
},
|
|
275
275
|
fetchFeeds: async (context, event) => {
|
|
276
276
|
return await request.send(api.feeds({ appSecret }))
|
package/src/machine/game_v2_1.js
CHANGED
|
@@ -472,7 +472,7 @@ export default function (request) {
|
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
474
|
connectGame: async (context, event) => {
|
|
475
|
-
const returnProviders = ['RSG', 'KP', 'EPICWIN', '
|
|
475
|
+
const returnProviders = ['RSG', 'KP', 'EPICWIN', 'AMBSLOT', 'SEXY_VENUS', 'SEXY_SEXYBCRT', 'PG', 'NPG']
|
|
476
476
|
const { lang, isMobile } = context
|
|
477
477
|
const { providerId, gameId, gameTypeId, mappingId } = context.game
|
|
478
478
|
const params = {
|