@jetthai/cuora 1.1.340-dev-3 → 1.1.340-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,24 @@
|
|
|
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.340-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.340-dev-4...v1.1.340-dev-5) (2025-02-27)
|
|
6
|
+
|
|
7
|
+
### [1.1.340-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.341...v1.1.340-dev-4) (2025-02-26)
|
|
8
|
+
|
|
9
|
+
### [1.1.340-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.340-dev-2...v1.1.340-dev-3) (2025-02-23)
|
|
10
|
+
|
|
11
|
+
### [1.1.340-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.340-dev-1...v1.1.340-dev-2) (2025-02-19)
|
|
12
|
+
|
|
13
|
+
### [1.1.340-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.340...v1.1.340-dev-1) (2025-02-19)
|
|
14
|
+
|
|
15
|
+
### [1.1.338-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.338-dev-9...v1.1.338-dev-10) (2025-02-17)
|
|
16
|
+
|
|
17
|
+
### [1.1.338-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.338-dev-8...v1.1.338-dev-9) (2025-02-17)
|
|
18
|
+
|
|
19
|
+
### [1.1.338-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.338-dev-7...v1.1.338-dev-8) (2025-02-14)
|
|
20
|
+
|
|
21
|
+
### [1.1.338-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.338-perf-1...v1.1.338-dev-7) (2025-02-14)
|
|
22
|
+
|
|
5
23
|
### [1.1.340-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.340-dev-2...v1.1.340-dev-3) (2025-02-23)
|
|
6
24
|
|
|
7
25
|
### [1.1.340-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.340-dev-1...v1.1.340-dev-2) (2025-02-19)
|
package/package.json
CHANGED
|
@@ -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) => {
|
package/src/machine/websocket.js
CHANGED
|
@@ -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)
|