@jetthai/cuora 1.1.341-dev-2 → 1.1.341-dev-4

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,10 @@
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.341-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-3...v1.1.341-dev-4) (2025-03-03)
6
+
7
+ ### [1.1.341-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-2...v1.1.341-dev-3) (2025-03-03)
8
+
5
9
  ### [1.1.341-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-1...v1.1.341-dev-2) (2025-02-27)
6
10
 
7
11
  ### [1.1.341-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.341...v1.1.341-dev-1) (2025-02-27)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.341-dev-2",
3
+ "version": "1.1.341-dev-4",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -150,12 +150,8 @@ export default function (request) {
150
150
  }
151
151
  }),
152
152
  resetActivities: assign((context, event) => {
153
- const { activityList = [], specifyActivities = [] } = context
154
- const keepActivities = activityList.filter((activity) => specifyActivities.includes(activity.activityType))
155
153
  return {
156
154
  isPlaying: true,
157
- activityList: keepActivities,
158
- promotionList: [],
159
155
  }
160
156
  }),
161
157
  leaveGame: assign((context, event) => {
@@ -123,12 +123,8 @@ export default function (request) {
123
123
  }
124
124
  }),
125
125
  resetActivities: assign((context, event) => {
126
- const { activityList = [], detailNeededActivityTypes = [] } = context
127
- const keepActivities = activityList.filter((activity) => detailNeededActivityTypes.includes(activity.activityType))
128
126
  return {
129
127
  isPlaying: true,
130
- activityList: keepActivities,
131
- promotionList: [],
132
128
  }
133
129
  }),
134
130
  leaveGame: assign((context, event) => {
@@ -273,6 +273,18 @@ export default function (request) {
273
273
  callback({ type: 'ACTIVITY_INFO', data })
274
274
  })
275
275
 
276
+ // 監聽 activity-reward-info 事件
277
+ clientSocket.on('activity-reward-info', (data) => {
278
+ console.log('[socket][activity-reward-info]:', data)
279
+ callback({ type: 'ACTIVITY_INFO', data })
280
+ })
281
+
282
+ // 監聽 message-notice-info 事件
283
+ clientSocket.on('message-notice-info', (data) => {
284
+ console.log('[socket][message-notice-info]:', data)
285
+ callback({ type: 'ACTIVITY_INFO', data })
286
+ })
287
+
276
288
  // 監聽 payment-info 事件
277
289
  clientSocket.on('payment-info', (data) => {
278
290
  console.log('[socket][payment-info]:', data, data.windowType)