@fedify/fedify 1.6.0-dev.767 → 1.6.0-dev.769
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 +5 -0
- package/esm/deno.js +1 -1
- package/esm/federation/middleware.js +9 -0
- package/esm/vocab/vocab.js +176 -176
- package/package.json +1 -1
- package/types/federation/context.d.ts +14 -0
- package/types/federation/context.d.ts.map +1 -1
- package/types/federation/middleware.d.ts +3 -0
- package/types/federation/middleware.d.ts.map +1 -1
package/CHANGES.md
CHANGED
package/esm/deno.js
CHANGED
@@ -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
|