@jetthai/cuora 1.1.454-dev.0 → 1.1.454
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/commands/auto-git-flow.md +12 -5
- package/.claude/commands/commit-push.md +4 -15
- package/.claude/commands/sync-ai-prompts.md +1 -88
- package/.claude/settings.local.json +1 -3
- package/.github/copilot-instructions.md +395 -553
- package/.husky/post-checkout +3 -3
- package/.husky/pre-push +1 -1
- package/.prettierignore +1 -2
- package/AGENTS.md +395 -553
- package/AI_PROMPT_SOURCE.md +126 -664
- package/CHANGELOG.md +33 -268
- package/CLAUDE.md +395 -553
- package/GEMINI.md +395 -553
- package/README.md +137 -40
- package/package.json +1 -1
- package/scripts/auto-version.js +0 -1
- package/src/api/user.js +0 -12
- package/src/machine/auth.js +6 -0
- package/src/machine/deposit/crypto_bank_cash.js +5 -4
- package/src/machine/deposit/crypto_way_cash.js +5 -4
- package/src/machine/deposit/direct_cash.js +3 -7
- package/src/machine/deposit/loadcard_cash.js +8 -7
- package/src/machine/deposit/manual_cash.js +2 -8
- package/src/machine/deposit/qrcode_cash.js +7 -5
- package/src/machine/deposit/virtual_bank_cash.js +2 -5
- package/src/machine/user_sign_up.js +0 -3
- package/src/request/request.js +1 -3
- package/prepare-for-pr/JT-1776243420.md +0 -85
|
@@ -104,7 +104,6 @@ export default function (request) {
|
|
|
104
104
|
return {
|
|
105
105
|
signUpData: {
|
|
106
106
|
provider: 'local',
|
|
107
|
-
birthday,
|
|
108
107
|
...pickBindData(event.data),
|
|
109
108
|
birthday,
|
|
110
109
|
email,
|
|
@@ -128,7 +127,6 @@ export default function (request) {
|
|
|
128
127
|
return {
|
|
129
128
|
signUpData: {
|
|
130
129
|
provider: 'phone',
|
|
131
|
-
birthday,
|
|
132
130
|
...pickBindData(event.data),
|
|
133
131
|
birthday,
|
|
134
132
|
email,
|
|
@@ -151,7 +149,6 @@ export default function (request) {
|
|
|
151
149
|
return {
|
|
152
150
|
signUpData: {
|
|
153
151
|
provider: 'email',
|
|
154
|
-
birthday,
|
|
155
152
|
...pickBindData(event.data),
|
|
156
153
|
birthday,
|
|
157
154
|
email,
|
package/src/request/request.js
CHANGED
|
@@ -254,7 +254,7 @@ export default class Request {
|
|
|
254
254
|
// reject → onError → leaving → 乾淨登出,且一樣不送網路 → 洪水照止
|
|
255
255
|
if (!req.isPublic && !this.getToken()) return Promise.reject({ code: 'ERR_A103' })
|
|
256
256
|
|
|
257
|
-
const cancelToken = customToken
|
|
257
|
+
const cancelToken = customToken || this.source.token
|
|
258
258
|
|
|
259
259
|
// ERR_A103 No token provided 改由後端回傳:不再於送出前自行 throw,
|
|
260
260
|
const requestConfig = this._createConfig(req, cancelToken)
|
|
@@ -283,8 +283,6 @@ export default class Request {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
// 注意:send() 已不再預設附加 this.source.token(見 send 內註解),
|
|
287
|
-
// sourceUpdate 僅對「呼叫端明確以 this.source.token 為 customToken」的請求有效;保留以維持 API 相容。
|
|
288
286
|
sourceUpdate() {
|
|
289
287
|
this.source.cancel('Requests Cancelled')
|
|
290
288
|
this.source = this.axios.CancelToken.source()
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# JT-1776243420: Third-Party Register Carry Phone / Email Payload
|
|
2
|
-
|
|
3
|
-
## Key Changes
|
|
4
|
-
|
|
5
|
-
1. Extended third-party redirect payload assembly to read `tp_phone`, `tp_countryCode`, and `tp_email` from storage.
|
|
6
|
-
2. Preserved existing affiliate code / nickname behavior and appended new fields only when values are valid.
|
|
7
|
-
3. Cleans the temporary third-party storage keys after composing the redirect query.
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## Key Findings
|
|
12
|
-
|
|
13
|
-
### Strengths
|
|
14
|
-
|
|
15
|
-
1. The change is tightly scoped to the third-party auth redirect builder in `src/machine/auth.js:477-520`.
|
|
16
|
-
2. Existing affiliate code and nickname logic remains unchanged while phone / email are additive only.
|
|
17
|
-
3. Temporary keys are removed after payload composition, reducing leakage into later unrelated auth flows.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
### Behavior Observed
|
|
22
|
-
|
|
23
|
-
1. Static review confirms `phone`, `countryCode`, and `email` are appended only when storage values are not `undefined` / `null`.
|
|
24
|
-
2. Channel and subchannel fallback logic stays intact after the new fields are added.
|
|
25
|
-
3. No unrelated file changes were present in this repo for the review scope.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 🔧 Change Type
|
|
30
|
-
|
|
31
|
-
- [ ] 🐛 Bug fix
|
|
32
|
-
- [x] ✨ New feature
|
|
33
|
-
- [ ] 💄 Style
|
|
34
|
-
- [ ] ♻️ Refactor
|
|
35
|
-
- [ ] ⚡ Performance
|
|
36
|
-
- [ ] 🔧 Chore
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## 📱 Impact Scope
|
|
41
|
-
|
|
42
|
-
- Third-party register / login redirect query assembly in cuora shared auth machine.
|
|
43
|
-
- Downstream PWA clients that store `tp_phone`, `tp_countryCode`, and `tp_email` before `LOGIN_3PARTY`.
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Test Completion Status
|
|
48
|
-
|
|
49
|
-
| Item | Validation Tested | Status |
|
|
50
|
-
| -------------------------- | --------------------------------------------------------------------- | ------- |
|
|
51
|
-
| Diff hygiene | `git diff --check` in `cuora-module` | PASS |
|
|
52
|
-
| Shared auth payload review | Reviewed `src/machine/auth.js:477-520` against ticket intent | PASS |
|
|
53
|
-
| Runtime redirect execution | Not run in this repo directly; validated through client repos instead | NOT RUN |
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 📋 Spec Validation (Aligned with review-playbook)
|
|
58
|
-
|
|
59
|
-
| Spec Item | Evidence (File/Line/Result) | Status |
|
|
60
|
-
| ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ------ |
|
|
61
|
-
| Third-party flow can carry phone when client stored it | `src/machine/auth.js:479-520` reads `tp_phone` / `tp_countryCode` and appends them to `referralObj` | PASS |
|
|
62
|
-
| Third-party flow can carry email when client stored it | `src/machine/auth.js:481-520` reads `tp_email` and appends it to `referralObj` | PASS |
|
|
63
|
-
| Affiliate code and nickname keep original logic | `src/machine/auth.js:477-500` keeps `ac` / `nick_name` handling unchanged | PASS |
|
|
64
|
-
| Temporary third-party data does not leak into later unrelated flows | `src/machine/auth.js:518-520` removes the temporary storage keys after composing the redirect URL | PASS |
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## 📋 Standards Checklist (Summary)
|
|
69
|
-
|
|
70
|
-
| Category | Result | Notes |
|
|
71
|
-
| ---------------------- | ------- | --------------------------------------------------------------------------- |
|
|
72
|
-
| Memory Safety | PASS | Simple storage reads and object assembly only. |
|
|
73
|
-
| Rendering Performance | PASS | No rendering code touched. |
|
|
74
|
-
| Network Requests | PASS | Existing redirect flow only; no extra requests added. |
|
|
75
|
-
| Bundle Optimization | PASS | No new imports or heavy logic added. |
|
|
76
|
-
| Code Quality | PASS | Scope is narrow and branch contains only the required file change. |
|
|
77
|
-
| Vue / Nuxt Standards | NOT RUN | Shared module; not a Vue / Nuxt surface. |
|
|
78
|
-
| SSR Security Standards | PASS | Query parameters are assembled from existing client-side storage path only. |
|
|
79
|
-
| Project Conventions | PASS | Matches existing storage-guard pattern used for affiliate / nickname. |
|
|
80
|
-
|
|
81
|
-
## Conclusion
|
|
82
|
-
|
|
83
|
-
This repo’s shared auth-machine change matches the ticket intent and is internally consistent. Runtime behavior was not executed in `cuora-module` directly, but both client repos now pass the new storage keys into this shared payload path.
|
|
84
|
-
|
|
85
|
-
**Overall Result:** PASS (PARTIAL)
|