@fedify/webfinger 2.2.19 → 2.2.21
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/README.md +4 -1
- package/deno.json +1 -1
- package/dist/lookup.test.cjs +661 -109
- package/dist/lookup.test.js +662 -109
- package/dist/mod.cjs +224 -84
- package/dist/mod.d.cts +2 -1
- package/dist/mod.d.ts +3 -2
- package/dist/mod.js +225 -85
- package/package.json +3 -3
- package/src/body.ts +11 -0
- package/src/lookup-impl.ts +343 -0
- package/src/lookup.test.ts +644 -36
- package/src/lookup.ts +4 -146
package/README.md
CHANGED
|
@@ -96,11 +96,14 @@ const result = await lookupWebFinger("acct:alice@example.com", {
|
|
|
96
96
|
// Maximum redirects to follow (default: 5)
|
|
97
97
|
maxRedirection: 3,
|
|
98
98
|
|
|
99
|
-
//
|
|
99
|
+
// Cancel sooner than the default 10-second lookup deadline
|
|
100
100
|
signal: AbortSignal.timeout(5000),
|
|
101
101
|
});
|
|
102
102
|
~~~~
|
|
103
103
|
|
|
104
|
+
Each lookup has a 10-second deadline across DNS resolution, redirects, and
|
|
105
|
+
response reading. A supplied signal can end it sooner but cannot extend it.
|
|
106
|
+
|
|
104
107
|
|
|
105
108
|
API
|
|
106
109
|
---
|