@jetthai/cuora 1.1.483-dev.0 → 1.1.483-dev.1

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,8 @@
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.483-dev.1](https://github.com/jetthai/cuora-module/compare/v1.1.483-dev.0...v1.1.483-dev.1) (2026-11-12)
6
+
5
7
  ### [1.1.483-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.481-dev.1...v1.1.483-dev.0) (2026-11-11)
6
8
 
7
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.483-dev.0",
3
+ "version": "1.1.483-dev.1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -20,4 +20,4 @@ export const GAME_TYPE_LIST = [
20
20
 
21
21
  // OTP 自動驗證:主動打的 /self 未通過後,最多再等幾次 auth 例行輪詢的 /self、等待上限多久
22
22
  export const AUTO_VERIFY_MAX_USER_INFO_UPDATES = 2
23
- export const AUTO_VERIFY_WAIT_MS = 4000
23
+ export const AUTO_VERIFY_WAIT_MS = 5000
@@ -216,11 +216,11 @@ for (const entry of autoVerifyEntries) {
216
216
  })
217
217
  }
218
218
 
219
- test('auto verify waiting fails after the 4 second limit without polled /self', async (t) => {
219
+ test('auto verify waiting fails after the 5 second limit without polled /self', async (t) => {
220
220
  t.mock.timers.enable({ apis: ['setTimeout'] })
221
221
  const { service } = await startAutoVerify(autoVerifyEntries[0])
222
222
  try {
223
- t.mock.timers.tick(3999)
223
+ t.mock.timers.tick(4999)
224
224
  assert.equal(service.state.matches('autoVerifyWaiting'), true)
225
225
  t.mock.timers.tick(1)
226
226
  assert.equal(service.state.matches('fail'), true)
@@ -229,11 +229,11 @@ test('auto verify waiting fails after the 4 second limit without polled /self',
229
229
  }
230
230
  })
231
231
 
232
- test('the 4 second limit is not reset by a stale polled /self', async (t) => {
232
+ test('the 5 second limit is not reset by a stale polled /self', async (t) => {
233
233
  t.mock.timers.enable({ apis: ['setTimeout'] })
234
234
  const { service, request } = await startAutoVerify(autoVerifyEntries[0])
235
235
  try {
236
- t.mock.timers.tick(3000)
236
+ t.mock.timers.tick(4000)
237
237
  service.send({ type: 'USER_INFO_UPDATED', data: { ...request.contact, phone_verification_status: false } })
238
238
  t.mock.timers.tick(1000)
239
239
  assert.equal(service.state.matches('fail'), true)