@fedify/fedify 0.15.2 → 0.15.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGES.md CHANGED
@@ -3,6 +3,15 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 0.15.3
7
+ --------------
8
+
9
+ Released on October 23, 2024.
10
+
11
+ - The `fetchDocumentLoader()` function now preloads the following JSON-LD
12
+ context: <https://purl.archive.org/socialweb/webfinger>.
13
+
14
+
6
15
  Version 0.15.2
7
16
  --------------
8
17
 
@@ -625,5 +625,15 @@ const preloadedContexts = {
625
625
  },
626
626
  },
627
627
  },
628
+ "https://purl.archive.org/socialweb/webfinger": {
629
+ "@context": {
630
+ "wf": "https://purl.archive.org/socialweb/webfinger#",
631
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
632
+ "webfinger": {
633
+ "@id": "wf:webfinger",
634
+ "@type": "xsd:string",
635
+ },
636
+ },
637
+ },
628
638
  };
629
639
  export default preloadedContexts;
@@ -24,7 +24,7 @@ export async function handleWebFinger(request, { context, actorDispatcher, actor
24
24
  if (e instanceof TypeError) {
25
25
  return new Response("Invalid resource URL.", { status: 400 });
26
26
  }
27
- throw new e();
27
+ throw e;
28
28
  }
29
29
  if (actorDispatcher == null) {
30
30
  logger.error("Actor dispatcher is not set.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.15.2",
3
+ "version": "0.15.3",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1 +1 @@
1
- {"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../src/runtime/contexts.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAonB9C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../src/runtime/contexts.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA+nB9C,CAAC;AAEF,eAAe,iBAAiB,CAAC"}