@jetthai/cuora 1.1.466-dev.0 → 1.1.467-dev.0

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,14 +2,9 @@
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.466-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.466...v1.1.466-dev.0) (2026-09-06)
6
-
7
-
8
- ### Bug Fixes
9
-
10
- * **deposit:** 移除 crypto_way_cash 未使用的 sourceAddress 欄位 ([18a0247](https://github.com/jetthai/cuora-module/commit/18a024776ae315c7a2b2ba9018e8fdce1b660f1a))
5
+ ### [1.1.467-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.467...v1.1.467-dev.0) (2026-09-09)
11
6
 
12
- ### [1.1.465-dev.4](https://github.com/jetthai/cuora-module/compare/v1.1.465...v1.1.465-dev.4) (2026-08-24)
7
+ ### [1.1.466-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.466...v1.1.466-dev.0) (2026-09-06)
13
8
 
14
9
 
15
10
  ### Features
@@ -27,6 +22,12 @@ All notable changes to this project will be documented in this file. See [standa
27
22
  * **request:** 非 public 請求缺少 token 時改為 reject ERR_A103,觸發登出流程 ([e46281f](https://github.com/jetthai/cuora-module/commit/e46281f3ea16679404160366e4532969c3bf02ff))
28
23
  * **withdraw:** 修正法幣提款計算錯誤時的狀態轉移 ([a951ba8](https://github.com/jetthai/cuora-module/commit/a951ba803cccd1564a7dbe2645ea7c8d50f7da31))
29
24
 
25
+ ### [1.1.467](https://github.com/jetthai/cuora-module/compare/v1.1.466...v1.1.467) (2026-09-06)
26
+
27
+ ### Bug Fixes
28
+
29
+ - **deposit:** 移除 crypto_way_cash 未使用的 sourceAddress 欄位 ([18a0247](https://github.com/jetthai/cuora-module/commit/18a024776ae315c7a2b2ba9018e8fdce1b660f1a))
30
+
30
31
  ### [1.1.466](https://github.com/jetthai/cuora-module/compare/v1.1.465...v1.1.466) (2026-08-31)
31
32
 
32
33
  ### [1.1.465-dev.4](https://github.com/jetthai/cuora-module/compare/v1.1.465-dev.3...v1.1.465-dev.4) (2026-08-24)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.466-dev.0",
3
+ "version": "1.1.467-dev.0",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -25,7 +25,7 @@ export default function (request) {
25
25
  src: 'fetchList',
26
26
  onDone: {
27
27
  target: 'checking',
28
- actions: ['setActivityList', 'setTournamentList', 'setPromotionList', 'setProgressSummary'],
28
+ actions: ['setActivityList', 'setTournamentList', 'setPromotionList'],
29
29
  },
30
30
  onError: {
31
31
  target: 'pending',
@@ -40,7 +40,7 @@ export default function (request) {
40
40
  src: 'fetchActivityDetailList',
41
41
  onDone: {
42
42
  target: 'pending',
43
- actions: 'setActivityDetailList',
43
+ actions: ['setActivityDetailList', 'setProgressSummary'],
44
44
  },
45
45
  onError: {
46
46
  target: 'pending',
@@ -125,8 +125,9 @@ export default function (request) {
125
125
  }
126
126
  }),
127
127
  setActivityDetailList: assign((context, event) => {
128
+ const { activityDetailList } = event.data
128
129
  return {
129
- activityDetailList: event.data.map((item) => item.data),
130
+ activityDetailList: activityDetailList.map((item) => item.data),
130
131
  }
131
132
  }),
132
133
  resetActivities: assign((context, event) => {
@@ -161,34 +162,41 @@ export default function (request) {
161
162
  services: {
162
163
  fetchList: async (context, event) => {
163
164
  const hasToken = request.getToken()
164
- const siteConfig = window?.$nuxt?.$store?.state?.siteConfig
165
- const isProgressEnable = siteConfig?.frontendActivityProgressEnable
166
165
 
167
- const [{ data }, promotionList, progressSummaryRes] = await Promise.all([
166
+ const [{ data }, promotionList] = await Promise.all([
168
167
  hasToken ? request.send(activity.getActivityList({ appSecret })) : request.send(activity.getAllActivityList({ appSecret })),
169
168
  hasToken ? request.send(payment.getPromotionsList()) : [],
170
- hasToken && isProgressEnable ? request.send(activity.getProgressSummary({ appSecret })).catch(() => null) : null,
171
169
  ])
172
170
 
173
171
  return {
174
172
  activityList: data,
175
173
  promotionList,
176
- progressSummary: progressSummaryRes?.data || null,
177
174
  }
178
175
  },
179
176
  fetchActivityDetailList: async (context, event) => {
180
177
  await new Promise((resolve) => setTimeout(resolve, 1000)) // delay 1 second
181
178
  const hasToken = request.getToken()
179
+ const siteConfig = window?.$nuxt?.$store?.state?.siteConfig
180
+ const isProgressEnable = siteConfig?.frontendActivityProgressEnable
182
181
 
183
182
  const { activityList = [], detailNeededActivityTypes } = context
184
183
  const filteredActivityList = activityList.filter((activity) => detailNeededActivityTypes.includes(activity.activityType))
185
- return hasToken
186
- ? await Promise.all(
187
- filteredActivityList.map((item) => {
188
- return request.send(activity.getActivityDetail({ activityNo: item.activityNo, appSecret }))
189
- })
190
- )
191
- : []
184
+
185
+ const [activityDetailList, progressSummaryRes] = await Promise.all([
186
+ hasToken
187
+ ? Promise.all(
188
+ filteredActivityList.map((item) => {
189
+ return request.send(activity.getActivityDetail({ activityNo: item.activityNo, appSecret }))
190
+ })
191
+ )
192
+ : Promise.resolve([]),
193
+ hasToken && isProgressEnable ? request.send(activity.getProgressSummary({ appSecret })).catch(() => null) : Promise.resolve(null),
194
+ ])
195
+
196
+ return {
197
+ activityDetailList,
198
+ progressSummary: progressSummaryRes?.data || null,
199
+ }
192
200
  },
193
201
  },
194
202
  }