@jetthai/cuora 1.1.426-dev.2 → 1.1.426
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/.claude/settings.local.json +1 -3
- package/.prettierignore +1 -2
- package/CHANGELOG.md +2 -116
- package/package.json +1 -1
- package/scripts/auto-version.js +0 -1
- package/src/api/activity.js +0 -6
- package/src/machine/auth.js +0 -22
- package/src/machine/leaderboard.js +11 -8
package/.prettierignore
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
dist/
|
|
2
|
-
CHANGELOG.md
|
|
1
|
+
dist/
|
package/CHANGELOG.md
CHANGED
|
@@ -2,51 +2,7 @@
|
|
|
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.426
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* **scripts:** add CHANGELOG.md to prettierignore to prevent format conflict with standard-version ([d254b54](https://github.com/jetthai/cuora-module/commit/d254b54335c06b69f8af54d1bdb3f2995f75436f))
|
|
11
|
-
|
|
12
|
-
### [1.1.426-dev.1](https://github.com/jetthai/cuora-module/compare/v1.1.426-dev.0...v1.1.426-dev.1) (2026-04-01)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
* **scripts:** format and stage changes before standard-version to prevent rebase failure ([b5cb701](https://github.com/jetthai/cuora-module/commit/b5cb70155a0eaf516f96b76e6790cf57d80886a2))
|
|
18
|
-
|
|
19
|
-
### [1.1.426-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.425...v1.1.426-dev.0) (2026-04-01)
|
|
20
|
-
|
|
21
|
-
### Features
|
|
22
|
-
|
|
23
|
-
- **scripts:** auto pull --rebase before push in branch-auto-npm-publish ([761f5c8](https://github.com/jetthai/cuora-module/commit/761f5c8ac653d0a1578cbc610b7c9b1798066875))
|
|
24
|
-
- **scripts:** extend clean-tags to delete orphan and master-merged tags ([f24bc33](https://github.com/jetthai/cuora-module/commit/f24bc3337bcf558e67e613818ba5a79983675a26))
|
|
25
|
-
|
|
26
|
-
### Bug Fixes
|
|
27
|
-
|
|
28
|
-
- **scripts:** add --no-verify to git push in branch-auto-npm-publish to prevent pre-push hook infinite recursion ([4214aee](https://github.com/jetthai/cuora-module/commit/4214aeeed05834bce2537acd6ef816719c388b64))
|
|
29
|
-
- **scripts:** prevent infinite recursion in clean-tags pre-push hook ([5e9db84](https://github.com/jetthai/cuora-module/commit/5e9db84f1a655318b73839ab9a215f4dbe980772))
|
|
30
|
-
|
|
31
|
-
### [1.1.425-dev.4](https://github.com/jetthai/cuora-module/compare/v1.1.425-dev.3...v1.1.425-dev.4) (2026-03-31)
|
|
32
|
-
|
|
33
|
-
### [1.1.425-dev.3](https://github.com/jetthai/cuora-module/compare/v1.1.425...v1.1.425-dev.3) (2026-03-31)
|
|
34
|
-
|
|
35
|
-
### Features
|
|
36
|
-
|
|
37
|
-
- **scripts:** auto pull --rebase before push in branch-auto-npm-publish ([761f5c8](https://github.com/jetthai/cuora-module/commit/761f5c8ac653d0a1578cbc610b7c9b1798066875))
|
|
38
|
-
- **scripts:** extend clean-tags to delete orphan and master-merged tags ([f24bc33](https://github.com/jetthai/cuora-module/commit/f24bc3337bcf558e67e613818ba5a79983675a26))
|
|
39
|
-
|
|
40
|
-
### Bug Fixes
|
|
41
|
-
|
|
42
|
-
- **scripts:** add --no-verify to git push in branch-auto-npm-publish to prevent pre-push hook infinite recursion ([4214aee](https://github.com/jetthai/cuora-module/commit/4214aeeed05834bce2537acd6ef816719c388b64))
|
|
43
|
-
- **scripts:** prevent infinite recursion in clean-tags pre-push hook ([5e9db84](https://github.com/jetthai/cuora-module/commit/5e9db84f1a655318b73839ab9a215f4dbe980772))
|
|
44
|
-
|
|
45
|
-
### [1.1.425-dev.2](https://github.com/jetthai/cuora-module/compare/v1.1.425-dev.1...v1.1.425-dev.2) (2026-03-31)
|
|
46
|
-
|
|
47
|
-
### [1.1.425-dev.1](https://github.com/jetthai/cuora-module/compare/v1.1.425-dev.0...v1.1.425-dev.1) (2026-03-30)
|
|
48
|
-
|
|
49
|
-
### [1.1.425-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.425...v1.1.425-dev.0) (2026-03-30)
|
|
5
|
+
### [1.1.426](https://github.com/jetthai/cuora-module/compare/v1.1.425...v1.1.426) (2026-03-31)
|
|
50
6
|
|
|
51
7
|
### Features
|
|
52
8
|
|
|
@@ -62,77 +18,7 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
62
18
|
|
|
63
19
|
### [1.1.424](https://github.com/jetthai/cuora-module/compare/v1.1.423...v1.1.424) (2026-03-17)
|
|
64
20
|
|
|
65
|
-
### [1.1.
|
|
66
|
-
|
|
67
|
-
### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
|
|
68
|
-
|
|
69
|
-
### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
|
|
70
|
-
|
|
71
|
-
### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
|
|
72
|
-
|
|
73
|
-
### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
|
|
74
|
-
|
|
75
|
-
### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
|
|
76
|
-
|
|
77
|
-
### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
|
|
78
|
-
|
|
79
|
-
### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
|
|
80
|
-
|
|
81
|
-
### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
|
|
82
|
-
|
|
83
|
-
### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
|
|
84
|
-
|
|
85
|
-
### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
|
|
86
|
-
|
|
87
|
-
### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
|
|
88
|
-
|
|
89
|
-
### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
|
|
90
|
-
|
|
91
|
-
### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
|
|
92
|
-
|
|
93
|
-
### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
|
|
94
|
-
|
|
95
|
-
### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
|
|
96
|
-
|
|
97
|
-
### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
|
|
98
|
-
|
|
99
|
-
### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
|
|
100
|
-
|
|
101
|
-
### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
|
|
102
|
-
|
|
103
|
-
### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
|
|
104
|
-
|
|
105
|
-
### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
|
|
106
|
-
|
|
107
|
-
### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
|
|
108
|
-
|
|
109
|
-
### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
|
|
110
|
-
|
|
111
|
-
### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
|
|
112
|
-
|
|
113
|
-
### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
|
|
114
|
-
|
|
115
|
-
### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
|
|
116
|
-
|
|
117
|
-
### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
|
|
118
|
-
|
|
119
|
-
### [1.1.422-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.422-dev-1...v1.1.422-dev-2) (2026-03-17)
|
|
120
|
-
|
|
121
|
-
### [1.1.422-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.422-dev-1) (2026-03-16)
|
|
122
|
-
|
|
123
|
-
### [1.1.413-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-10...v1.1.413-dev-11) (2026-03-12)
|
|
124
|
-
|
|
125
|
-
### [1.1.413-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.413-dev-9...v1.1.413-dev-10) (2026-03-11)
|
|
126
|
-
|
|
127
|
-
### [1.1.413-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.413-dev-9) (2026-03-11)
|
|
128
|
-
|
|
129
|
-
### [1.1.413-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.420...v1.1.413-dev-8) (2026-03-10)
|
|
130
|
-
|
|
131
|
-
### [1.1.413-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.413-6...v1.1.413-dev-7) (2026-03-06)
|
|
132
|
-
|
|
133
|
-
### [1.1.413-6](https://github.com/jetthai/cuora-module/compare/v1.1.416...v1.1.413-6) (2026-03-06)
|
|
134
|
-
|
|
135
|
-
### [1.1.413-5](https://github.com/jetthai/cuora-module/compare/v1.1.413...v1.1.413-5) (2026-03-05)
|
|
21
|
+
### [1.1.423](https://github.com/jetthai/cuora-module/compare/v1.1.422...v1.1.423) (2026-03-17)
|
|
136
22
|
|
|
137
23
|
### [1.1.422](https://github.com/jetthai/cuora-module/compare/v1.1.421...v1.1.422) (2026-03-16)
|
|
138
24
|
|
package/package.json
CHANGED
package/scripts/auto-version.js
CHANGED
package/src/api/activity.js
CHANGED
|
@@ -87,12 +87,6 @@ export default {
|
|
|
87
87
|
getVipTable: ({ appSecret }) => ({ url: 'activities/viptable', method: 'get', params: { appSecret } }),
|
|
88
88
|
getLevelBonusInfo: () => ({ url: 'activities/level-bonus/info', method: 'get' }),
|
|
89
89
|
getRankingList: () => ({ url: 'activities/ranking', method: 'get' }),
|
|
90
|
-
getPublicRankingList: ({ appSecret }) => ({
|
|
91
|
-
url: 'activities/ranking/public/promotion-ranking',
|
|
92
|
-
method: 'get',
|
|
93
|
-
isPublic: true,
|
|
94
|
-
params: { appSecret },
|
|
95
|
-
}),
|
|
96
90
|
exchangeDiamond: ({ activityNo, exchangeAward = [] }) => ({
|
|
97
91
|
url: 'activities/exchange/diamond',
|
|
98
92
|
method: 'post',
|
package/src/machine/auth.js
CHANGED
|
@@ -110,28 +110,6 @@ export default function (request) {
|
|
|
110
110
|
},
|
|
111
111
|
},
|
|
112
112
|
otpChecking: {
|
|
113
|
-
initial: 'pending',
|
|
114
|
-
states: {
|
|
115
|
-
pending: {
|
|
116
|
-
after: {
|
|
117
|
-
TIMEOUT: {
|
|
118
|
-
target: 'fetching',
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
fetching: {
|
|
123
|
-
invoke: {
|
|
124
|
-
src: 'fetchUserInfo',
|
|
125
|
-
onDone: {
|
|
126
|
-
target: 'pending',
|
|
127
|
-
actions: ['setUserInfo', 'extendToken'],
|
|
128
|
-
},
|
|
129
|
-
onError: {
|
|
130
|
-
target: 'pending',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
113
|
on: {
|
|
136
114
|
OTP_VERIFIED: {
|
|
137
115
|
target: 'loginSuccess',
|
|
@@ -37,13 +37,12 @@ export default function (request) {
|
|
|
37
37
|
checking: {
|
|
38
38
|
always: [
|
|
39
39
|
{ target: 'idle', actions: 'setActivityDetail', cond: 'isExist' },
|
|
40
|
-
{ target: 'loading', cond: '
|
|
41
|
-
{ target: 'idle' },
|
|
40
|
+
{ target: 'loading', cond: 'hasActivityNo' },
|
|
42
41
|
],
|
|
43
42
|
},
|
|
44
43
|
loading: {
|
|
45
44
|
invoke: {
|
|
46
|
-
src: '
|
|
45
|
+
src: 'fetchPublicActivityDetail',
|
|
47
46
|
onDone: {
|
|
48
47
|
target: 'idle',
|
|
49
48
|
actions: ['setActivityMap', 'setActivityDetail'],
|
|
@@ -101,9 +100,8 @@ export default function (request) {
|
|
|
101
100
|
const { activityMap, activityNo } = context
|
|
102
101
|
return activityMap[activityNo]
|
|
103
102
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return !!context.activityNo && hasToken
|
|
103
|
+
hasActivityNo: (context, event) => {
|
|
104
|
+
return !!context.activityNo
|
|
107
105
|
},
|
|
108
106
|
},
|
|
109
107
|
services: {
|
|
@@ -118,10 +116,15 @@ export default function (request) {
|
|
|
118
116
|
const { data } = await request.send(hasToken ? api.getActivityList({ appSecret }) : api.getAllActivityList({ appSecret }))
|
|
119
117
|
return data
|
|
120
118
|
},
|
|
121
|
-
|
|
119
|
+
fetchPublicActivityDetail: async (context, event) => {
|
|
120
|
+
const hasToken = request.getToken()
|
|
122
121
|
const { activityNo } = context
|
|
123
122
|
let result = {}
|
|
124
|
-
|
|
123
|
+
if (hasToken) {
|
|
124
|
+
result = await request.send(api.getActivityDetail({ activityNo, appSecret }))
|
|
125
|
+
} else {
|
|
126
|
+
result = await request.send(api.getTournamentDetail({ activityNo, appSecret }))
|
|
127
|
+
}
|
|
125
128
|
return result.data
|
|
126
129
|
},
|
|
127
130
|
},
|