@fedify/fedify 1.5.0-dev.714 → 1.5.0-dev.715

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
@@ -27,6 +27,9 @@ To be released.
27
27
  - The `fetchKey()` function became to choose the public key of the actor
28
28
  if `keyId` has no fragment and the actor has only one public key. [[#211]]
29
29
 
30
+ - Added an optional parameter with `GetKeyOwnerOptions` type to
31
+ the `RequestContext.getSignedKeyOwner()` method.
32
+
30
33
  - Fixed a bug of the `fedify inbox` command where it had failed to render
31
34
  the web interface when the `fedify` command was installed using
32
35
  `deno install` command from JSR.
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.5.0-dev.714+56abdd05",
3
+ "version": "1.5.0-dev.715+385929d4",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -2244,13 +2244,17 @@ class RequestContextImpl extends ContextImpl {
2244
2244
  });
2245
2245
  }
2246
2246
  #signedKeyOwner = undefined;
2247
- async getSignedKeyOwner() {
2247
+ async getSignedKeyOwner(options = {}) {
2248
2248
  if (this.#signedKeyOwner !== undefined)
2249
2249
  return this.#signedKeyOwner;
2250
2250
  const key = await this.getSignedKey();
2251
2251
  if (key == null)
2252
2252
  return this.#signedKeyOwner = null;
2253
- return this.#signedKeyOwner = await getKeyOwner(key, this);
2253
+ return this.#signedKeyOwner = await getKeyOwner(key, {
2254
+ contextLoader: options.contextLoader ?? this.contextLoader,
2255
+ documentLoader: options.documentLoader ?? this.documentLoader,
2256
+ tracerProvider: options.tracerProvider ?? this.tracerProvider,
2257
+ });
2254
2258
  }
2255
2259
  }
2256
2260
  export class InboxContextImpl extends ContextImpl {