@fedify/fedify 1.0.10 → 1.0.11

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/CHANGES.md CHANGED
@@ -3,6 +3,15 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.0.11
7
+ --------------
8
+
9
+ Released on December 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
+
6
15
  Version 1.0.10
7
16
  --------------
8
17
 
@@ -344,10 +353,21 @@ Released on September 26, 2024.
344
353
  [#137]: https://github.com/dahlia/fedify/issues/137
345
354
 
346
355
 
356
+ Version 0.15.9
357
+ --------------
358
+
359
+ Released on November 22, 2024.
360
+
361
+ - Fixed a bug where `lookupWebFinger()` function had thrown a `TypeError`
362
+ when the *.well-known/webfinger* redirects to a relative URI. [[#166]]
363
+
364
+ [#166]: https://github.com/dahlia/fedify/issues/166
365
+
366
+
347
367
  Version 0.15.8
348
368
  --------------
349
369
 
350
- Released on November 159, 2024.
370
+ Released on November 19, 2024.
351
371
 
352
372
  - Fix a bug where `Actor`'s `inbox` and `outbox` properties had not been
353
373
  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": "1.0.10",
3
+ "version": "1.0.11",
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"}