@jetthai/cuora 1.1.373-dev-2 → 1.1.373-dev-3

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-3](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-2...v1.1.373-dev-3) (2025-08-22)
6
+
5
7
  ### [1.1.373-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.373-dev-1...v1.1.373-dev-2) (2025-08-16)
6
8
 
7
9
  ### [1.1.373-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.373...v1.1.373-dev-1) (2025-08-15)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.373-dev-2",
3
+ "version": "1.1.373-dev-3",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
package/src/api/game.js CHANGED
@@ -67,20 +67,20 @@ export default {
67
67
  method: 'get',
68
68
  params: { categoryId, timestamp, index },
69
69
  }),
70
- getListAddition: ({ categoryId, timestamp, index }) => ({
70
+ getListAddition: ({ categoryId, timestamp, index, appSecret }) => ({
71
71
  url: 'game/list/v3/addition',
72
72
  method: 'get',
73
- params: { categoryId, timestamp, index },
73
+ params: { categoryId, timestamp, index, appSecret },
74
74
  }),
75
75
  getListCategoryByRange: ({ categoryId, timestamp, end }) => ({
76
76
  url: 'game/list/v3/categoryByRange',
77
77
  method: 'get',
78
78
  params: { categoryId, timestamp, end },
79
79
  }),
80
- getListAdditionByRange: ({ categoryId, timestamp, end }) => ({
80
+ getListAdditionByRange: ({ categoryId, timestamp, end, appSecret }) => ({
81
81
  url: 'game/list/v3/additionByRange',
82
82
  method: 'get',
83
- params: { categoryId, timestamp, end },
83
+ params: { categoryId, timestamp, end, appSecret },
84
84
  }),
85
85
  getListMyFavorite: ({ timestamp } = {}) => ({
86
86
  url: 'game/list/v3/myFavorite',
@@ -5,6 +5,7 @@ import { GAME_SEARCH } from '../util/constant.js'
5
5
 
6
6
  // 對應 intersectionObserver 版本
7
7
  export default function (request) {
8
+ const { appSecret } = request.config
8
9
  return createMachine(
9
10
  {
10
11
  id: 'game',
@@ -515,7 +516,7 @@ export default function (request) {
515
516
  })
516
517
  return list.filter((item) => item.downLine.length > 0).slice(0, 6)
517
518
  } else if (additionEnable) {
518
- const param = { categoryId: room.categoryId, index }
519
+ const param = { categoryId: room.categoryId, index, appSecret }
519
520
  requestChain = event.data.list.map((category, b) => {
520
521
  return request
521
522
  .send(
@@ -558,10 +559,10 @@ export default function (request) {
558
559
  },
559
560
  ]
560
561
  } else if (additionEnable) {
561
- const param = { categoryId: room.categoryId, index }
562
+ const param = { categoryId: room.categoryId, index, appSecret }
562
563
  return await Promise.all([request.send(api.getListCategory(param)), request.send(api.getListAddition(param))])
563
564
  } else {
564
- const param = { categoryId: room.categoryId, index }
565
+ const param = { categoryId: room.categoryId, index, appSecret }
565
566
  return await Promise.all([request.send(api.getListCategory(param))])
566
567
  }
567
568
  },
@@ -585,6 +586,7 @@ export default function (request) {
585
586
  categoryId: room.categoryId,
586
587
  end: index,
587
588
  timestamp: content.timestamp,
589
+ appSecret,
588
590
  })
589
591
  ),
590
592
  ])