@fedify/fedify 0.15.8 → 0.15.9

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -3,10 +3,21 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 0.15.9
7
+ --------------
8
+
9
+ Released on November 22, 2024.
10
+
11
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
12
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
13
+
14
+ [#166]: https://github.com/dahlia/fedify/issues/166
15
+
16
+
6
17
  Version 0.15.8
7
18
  --------------
8
19
 
9
- Released on November 159, 2024.
20
+ Released on November 19, 2024.
10
21
 
11
22
  - Fix a bug where `Actor`'s `inbox` and `outbox` properties had not been
12
23
  able to be set to an `OrderedCollectionPage` object, even though it is
@@ -40,7 +40,7 @@ export async function lookupWebFinger(resource) {
40
40
  }
41
41
  if (response.status >= 300 && response.status < 400 &&
42
42
  response.headers.has("Location")) {
43
- url = new URL(response.headers.get("Location"));
43
+ url = new URL(response.headers.get("Location"), response.url == null || response.url === "" ? url : response.url);
44
44
  continue;
45
45
  }
46
46
  if (!response.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.15.8",
3
+ "version": "0.15.9",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1 +1 @@
1
- {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/webfinger/lookup.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,GAAG,GAAG,MAAM,GACrB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAgEpC"}
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/webfinger/lookup.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAInD;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,GAAG,GAAG,MAAM,GACrB,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAmEpC"}