Loading .gitignore +0 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ dist/ deno.lock node_modules/ package-lock.json repomix-output.xml t.ts t2.ts CHANGES.md +6 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,12 @@ To be released. - The `--allow-private-address` or `-p` option allows looking up WebFinger information for private addresses (e.g., `localhost`). - Added `LookupWebFingerOptions.maxRedirection` option. [[#248], [#281] by Lee ByeongJun] [#248]: https://github.com/fedify-dev/fedify/issues/248 [#281]: https://github.com/fedify-dev/fedify/pull/281 Version 1.7.3 ------------- Loading fedify/webfinger/lookup.test.ts +9 −3 Original line number Diff line number Diff line Loading @@ -180,7 +180,9 @@ test({ if (redirectCount < 3) { return { status: 302, headers: { Location: `/.well-known/webfinger?redirect=${redirectCount}` }, headers: { Location: `/.well-known/webfinger?redirect=${redirectCount}`, }, }; } return { body: expected }; Loading @@ -191,14 +193,18 @@ test({ // Test with maxRedirection: 2 (should fail) redirectCount = 0; assertEquals( await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 2 }), await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 2, }), null, ); // Test with maxRedirection: 3 (should succeed) redirectCount = 0; assertEquals( await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 3 }), await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 3, }), expected, ); Loading Loading
.gitignore +0 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,6 @@ dist/ deno.lock node_modules/ package-lock.json repomix-output.xml t.ts t2.ts
CHANGES.md +6 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,12 @@ To be released. - The `--allow-private-address` or `-p` option allows looking up WebFinger information for private addresses (e.g., `localhost`). - Added `LookupWebFingerOptions.maxRedirection` option. [[#248], [#281] by Lee ByeongJun] [#248]: https://github.com/fedify-dev/fedify/issues/248 [#281]: https://github.com/fedify-dev/fedify/pull/281 Version 1.7.3 ------------- Loading
fedify/webfinger/lookup.test.ts +9 −3 Original line number Diff line number Diff line Loading @@ -180,7 +180,9 @@ test({ if (redirectCount < 3) { return { status: 302, headers: { Location: `/.well-known/webfinger?redirect=${redirectCount}` }, headers: { Location: `/.well-known/webfinger?redirect=${redirectCount}`, }, }; } return { body: expected }; Loading @@ -191,14 +193,18 @@ test({ // Test with maxRedirection: 2 (should fail) redirectCount = 0; assertEquals( await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 2 }), await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 2, }), null, ); // Test with maxRedirection: 3 (should succeed) redirectCount = 0; assertEquals( await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 3 }), await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 3, }), expected, ); Loading