@fedify/fedify 1.6.0-dev.766 → 1.6.0-dev.768

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
@@ -8,6 +8,11 @@ Version 1.6.0
8
8
 
9
9
  To be released.
10
10
 
11
+ - Added `Context.lookupWebFinger()` method to make WebFinger lookups
12
+ accessible from the context. [[#227]]
13
+
14
+ [#227]: https://github.com/fedify-dev/fedify/issues/227
15
+
11
16
 
12
17
  Version 1.5.1
13
18
  -------------
package/README.md CHANGED
@@ -104,7 +104,7 @@ financial contributors:[^2]
104
104
 
105
105
  ### Backers
106
106
 
107
- yamanoku, taye, Encyclia, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
107
+ yamanoku, Encyclia, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
108
108
 
109
109
  ### One-time donations
110
110
 
package/SPONSORS.md CHANGED
@@ -25,7 +25,7 @@ Supporters
25
25
  Backers
26
26
  -------
27
27
 
28
- yamanoku, taye, Encyclia, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
28
+ yamanoku, Encyclia, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
29
29
 
30
30
  One-time donations
31
31
  ------------------
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.6.0-dev.766+83f9a103",
3
+ "version": "1.6.0-dev.768+71a0a1a7",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -16,6 +16,7 @@ import { lookupObject, traverseCollection, } from "../vocab/lookup.js";
16
16
  import { getTypeId } from "../vocab/type.js";
17
17
  import { Activity, CryptographicKey, Multikey, } from "../vocab/vocab.js";
18
18
  import { handleWebFinger } from "../webfinger/handler.js";
19
+ import { lookupWebFinger, } from "../webfinger/lookup.js";
19
20
  import { buildCollectionSynchronizationHeader } from "./collection.js";
20
21
  import { handleActor, handleCollection, handleInbox, handleObject, } from "./handler.js";
21
22
  import { InboxListenerSet, routeActivity } from "./inbox.js";
@@ -2012,6 +2013,14 @@ export class ContextImpl {
2012
2013
  userAgent: options?.userAgent ?? this.federation.userAgent,
2013
2014
  });
2014
2015
  }
2016
+ lookupWebFinger(resource, options = {}) {
2017
+ return lookupWebFinger(resource, {
2018
+ ...options,
2019
+ userAgent: options.userAgent ?? this.federation.userAgent,
2020
+ tracerProvider: options.tracerProvider ?? this.tracerProvider,
2021
+ allowPrivateAddress: this.federation.allowPrivateAddress,
2022
+ });
2023
+ }
2015
2024
  sendActivity(sender, recipients, activity, options = {}) {
2016
2025
  const tracer = this.tracerProvider.getTracer(metadata.name, metadata.version);
2017
2026
  return tracer.startActiveSpan(this.federation.outboxQueue == null || options.immediate