@jetthai/cuora 1.1.373-dev-4 → 1.1.373-dev-5

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.373-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-4...v1.1.373-dev-5) (2025-08-22)
6
+
5
7
  ### [1.1.373-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-3...v1.1.373-dev-4) (2025-08-22)
6
8
 
7
9
  ### [1.1.373-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-2...v1.1.373-dev-3) (2025-08-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.373-dev-4",
3
+ "version": "1.1.373-dev-5",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
package/src/api/game.js CHANGED
@@ -57,10 +57,10 @@ export default {
57
57
  url: 'game/history/options',
58
58
  method: 'get',
59
59
  }),
60
- getListRoot: ({ timestamp } = {}) => ({
60
+ getListRoot: ({ timestamp, appSecret } = {}) => ({
61
61
  url: 'game/list/v3/root',
62
62
  method: 'get',
63
- params: { timestamp },
63
+ params: { timestamp, appSecret },
64
64
  }),
65
65
  getListCategory: ({ categoryId, timestamp, index }) => ({
66
66
  url: 'game/list/v3/category',
@@ -2,6 +2,7 @@ import { assign, createMachine } from 'xstate'
2
2
  import game from '../api/game.js'
3
3
 
4
4
  export default function (request) {
5
+ const { appSecret } = request.config
5
6
  return createMachine(
6
7
  {
7
8
  id: 'side',
@@ -78,10 +79,10 @@ export default function (request) {
78
79
  },
79
80
  services: {
80
81
  getMenu: async (context, event) => {
81
- return await request.send(game.getListRoot())
82
+ return await request.send(game.getListRoot({ appSecret }))
82
83
  },
83
84
  fetchUpdateMenu: async (context, event) => {
84
- return await request.send(game.getListRoot({ timestamp: context.menu.timestamp }))
85
+ return await request.send(game.getListRoot({ timestamp: context.menu.timestamp, appSecret }))
85
86
  },
86
87
  },
87
88
  }
@@ -2,6 +2,7 @@ import { assign, createMachine } from 'xstate'
2
2
  import game from '../api/game.js'
3
3
 
4
4
  export default function (request) {
5
+ const { appSecret } = request.config
5
6
  return createMachine(
6
7
  {
7
8
  id: 'side',
@@ -160,10 +161,10 @@ export default function (request) {
160
161
  },
161
162
  services: {
162
163
  getMenu: async (context, event) => {
163
- return await request.send(game.getListRoot())
164
+ return await request.send(game.getListRoot({ appSecret }))
164
165
  },
165
166
  fetchUpdateMenu: async (context, event) => {
166
- return await request.send(game.getListRoot({ timestamp: context.menu.timestamp }))
167
+ return await request.send(game.getListRoot({ timestamp: context.menu.timestamp, appSecret }))
167
168
  },
168
169
  },
169
170
  }