@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 +2 -0
- package/package.json +1 -1
- package/src/util/constant.js +1 -1
- package/test/auth_otp_v3.test.js +4 -4
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
package/src/util/constant.js
CHANGED
package/test/auth_otp_v3.test.js
CHANGED
|
@@ -216,11 +216,11 @@ for (const entry of autoVerifyEntries) {
|
|
|
216
216
|
})
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
test('auto verify waiting fails after the
|
|
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(
|
|
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
|
|
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(
|
|
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)
|