Skip to content

Commit 0a0c0a2

Browse files
committed
Refactor PwnedPasswords API response handling and update import path for CUID
1 parent a9f4b3c commit 0a0c0a2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/lib/clients/pwned-passwords.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ export class PwnedPasswords extends APIClient {
77
super(new URL("https://api.pwnedpasswords.com"));
88
}
99

10-
protected override async after(response: Response): Promise<Response> {
10+
protected override async after(
11+
_: Request,
12+
response: Response,
13+
): Promise<Response> {
1114
if (response.ok) return response;
1215
throw new Error(`PwnedPasswords API failed: ${response.statusText}`);
1316
}

src/lib/entities/entity.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, expect, test } from "bun:test";
22

3-
import type { CUID } from "app:lib/string-parser";
3+
import { CUID } from "../parsers/string-parser";
44
import { TableEntity } from "./entity";
55

66
describe(TableEntity.name, () => {

0 commit comments

Comments
 (0)