File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -283,6 +283,7 @@ export async function checkCommonPassword(password: string) {
283283 if ( error instanceof DOMException && error . name === 'AbortError' ) {
284284 console . warn ( 'Password check timed out' )
285285 }
286+ console . warn ( 'unknow error during password check' , error )
286287 return false
287288 }
288289}
Original file line number Diff line number Diff line change 11import { http , HttpResponse } from 'msw'
22
3- export const pwnedPasswordApiHandler = http . get (
4- 'https://api.pwnedpasswords.com/range/:prefix' ,
5- ( ) => {
3+ export const pwnedPasswordApiHandlers = [
4+ http . get ( 'https://api.pwnedpasswords.com/range/:prefix' , ( ) => {
65 return new HttpResponse ( '' , { status : 200 } )
7- } ,
8- )
6+ } ) ,
7+ ]
Original file line number Diff line number Diff line change 11import closeWithGrace from 'close-with-grace'
22import { setupServer } from 'msw/node'
3- import { pwnedPasswordApiHandler } from './common-password.ts'
3+ import { pwnedPasswordApiHandlers } from './common-password.ts'
44import { handlers as githubHandlers } from './github.ts'
55import { handlers as resendHandlers } from './resend.ts'
66import { handlers as tigrisHandlers } from './tigris.ts'
@@ -9,7 +9,7 @@ export const server = setupServer(
99 ...resendHandlers ,
1010 ...githubHandlers ,
1111 ...tigrisHandlers ,
12- pwnedPasswordApiHandler ,
12+ ... pwnedPasswordApiHandlers ,
1313)
1414
1515server . listen ( {
You can’t perform that action at this time.
0 commit comments