@jetthai/cuora 1.1.393-dev-1 → 1.1.393-dev-3
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.393-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.393-dev-2...v1.1.393-dev-3) (2025-10-31)
|
|
6
|
+
|
|
7
|
+
### [1.1.393-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.393-dev-1...v1.1.393-dev-2) (2025-10-30)
|
|
8
|
+
|
|
5
9
|
### [1.1.393-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.393...v1.1.393-dev-1) (2025-10-23)
|
|
6
10
|
|
|
7
11
|
### [1.1.393](https://github.com/jetthai/cuora-module/compare/v1.1.392...v1.1.393) (2025-10-17)
|
package/package.json
CHANGED
package/src/machine/auth.js
CHANGED
|
@@ -451,7 +451,7 @@ export default function (request) {
|
|
|
451
451
|
affiliateCode,
|
|
452
452
|
nickname,
|
|
453
453
|
}
|
|
454
|
-
sentry
|
|
454
|
+
sentry?.captureMessage(JSON.stringify(messages))
|
|
455
455
|
|
|
456
456
|
const referralObj = {}
|
|
457
457
|
if (![undefined, 'undefined', null, 'null'].includes(affiliateCode)) {
|
|
@@ -481,7 +481,7 @@ export default function (request) {
|
|
|
481
481
|
window.location.href = redirectURL
|
|
482
482
|
},
|
|
483
483
|
setUserInfo: assign((context, event) => {
|
|
484
|
-
sentry
|
|
484
|
+
sentry?.setUser({ id: event.data.uid_site })
|
|
485
485
|
return {
|
|
486
486
|
userInfo: event.data,
|
|
487
487
|
}
|
|
@@ -66,7 +66,13 @@ export default function (request) {
|
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
68
|
},
|
|
69
|
+
resetDebounce: {
|
|
70
|
+
entry: 'logResetDebounce',
|
|
71
|
+
always: 'debouncing',
|
|
72
|
+
},
|
|
69
73
|
debouncing: {
|
|
74
|
+
entry: 'logEnterDebouncing',
|
|
75
|
+
exit: 'logExitDebouncing',
|
|
70
76
|
after: {
|
|
71
77
|
500: {
|
|
72
78
|
target: 'fetchingTagsByKeyword',
|
|
@@ -74,6 +80,7 @@ export default function (request) {
|
|
|
74
80
|
},
|
|
75
81
|
},
|
|
76
82
|
fetchingTagsByKeyword: {
|
|
83
|
+
entry: 'logFetchingTagsByKeyword',
|
|
77
84
|
invoke: {
|
|
78
85
|
src: 'fetchTags',
|
|
79
86
|
onDone: {
|
|
@@ -135,12 +142,12 @@ export default function (request) {
|
|
|
135
142
|
},
|
|
136
143
|
on: {
|
|
137
144
|
SET_KEYWORD: {
|
|
138
|
-
target: '.
|
|
145
|
+
target: '.resetDebounce',
|
|
139
146
|
actions: ['setKeyword', 'setLang'],
|
|
140
147
|
cond: 'isInitialized',
|
|
141
148
|
},
|
|
142
149
|
CLEAR_KEYWORD: {
|
|
143
|
-
target: '.
|
|
150
|
+
target: '.resetDebounce',
|
|
144
151
|
actions: 'clearKeyword',
|
|
145
152
|
},
|
|
146
153
|
SET_TAG_ID: [
|
|
@@ -277,6 +284,58 @@ export default function (request) {
|
|
|
277
284
|
lang: event.data.lang,
|
|
278
285
|
}
|
|
279
286
|
}),
|
|
287
|
+
logResetDebounce: (context, event) => {
|
|
288
|
+
const now = new Date()
|
|
289
|
+
console.log('[Debounce] Reset triggered', {
|
|
290
|
+
keyword: context.keyword,
|
|
291
|
+
time:
|
|
292
|
+
now.toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' }) +
|
|
293
|
+
'.' +
|
|
294
|
+
now.getMilliseconds().toString().padStart(3, '0'),
|
|
295
|
+
message: '🔄 Timer will be reset',
|
|
296
|
+
})
|
|
297
|
+
},
|
|
298
|
+
logEnterDebouncing: (context, event) => {
|
|
299
|
+
const now = new Date()
|
|
300
|
+
const futureTime = new Date(Date.now() + 500)
|
|
301
|
+
console.log('[Debounce] Enter debouncing state - timer started', {
|
|
302
|
+
keyword: context.keyword,
|
|
303
|
+
time:
|
|
304
|
+
now.toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' }) +
|
|
305
|
+
'.' +
|
|
306
|
+
now.getMilliseconds().toString().padStart(3, '0'),
|
|
307
|
+
timer: '⏱️ 500ms countdown started',
|
|
308
|
+
willFetchAt:
|
|
309
|
+
futureTime.toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' }) +
|
|
310
|
+
'.' +
|
|
311
|
+
futureTime.getMilliseconds().toString().padStart(3, '0'),
|
|
312
|
+
})
|
|
313
|
+
},
|
|
314
|
+
logExitDebouncing: (context, event) => {
|
|
315
|
+
const now = new Date()
|
|
316
|
+
console.log('[Debounce] Exit debouncing state', {
|
|
317
|
+
keyword: context.keyword,
|
|
318
|
+
time:
|
|
319
|
+
now.toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' }) +
|
|
320
|
+
'.' +
|
|
321
|
+
now.getMilliseconds().toString().padStart(3, '0'),
|
|
322
|
+
reason:
|
|
323
|
+
event.type === 'xstate.after(500)#game_search_cash.debouncing'
|
|
324
|
+
? '✅ Timer completed (500ms elapsed)'
|
|
325
|
+
: '❌ Timer interrupted by new input',
|
|
326
|
+
})
|
|
327
|
+
},
|
|
328
|
+
logFetchingTagsByKeyword: (context, event) => {
|
|
329
|
+
const now = new Date()
|
|
330
|
+
console.log('[Debounce] Fetching tags by keyword', {
|
|
331
|
+
keyword: context.keyword,
|
|
332
|
+
time:
|
|
333
|
+
now.toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' }) +
|
|
334
|
+
'.' +
|
|
335
|
+
now.getMilliseconds().toString().padStart(3, '0'),
|
|
336
|
+
action: '🔍 Fetching tags for the current keyword',
|
|
337
|
+
})
|
|
338
|
+
},
|
|
280
339
|
},
|
|
281
340
|
guards: {
|
|
282
341
|
hasMainTags: (context, event) => {
|