@fedify/fedify 1.6.1-dev.826 → 1.6.1-dev.828

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.
Files changed (32) hide show
  1. package/dist/codegen/schema.js +1 -1
  2. package/dist/compat/transformers.d.ts +1 -1
  3. package/dist/deno.js +1 -1
  4. package/dist/federation/callback.d.ts +1 -1
  5. package/dist/federation/context.d.ts +6 -0
  6. package/dist/federation/federation.d.ts +1 -1
  7. package/dist/federation/handler.test.js +11 -0
  8. package/dist/federation/middleware.test.js +2 -1
  9. package/dist/federation/mod.d.ts +5 -5
  10. package/dist/federation/send.test.js +1 -1
  11. package/dist/mod.d.ts +7 -7
  12. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/dirname.js +1 -1
  13. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/from_file_url.js +1 -1
  14. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize.js +1 -1
  15. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/dirname.js +2 -2
  16. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/dirname.js +2 -2
  17. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/from_file_url.js +1 -1
  18. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/normalize.js +1 -1
  19. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/dirname.js +2 -2
  20. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/from_file_url.js +1 -1
  21. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/normalize.js +1 -1
  22. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js +2 -2
  23. package/dist/nodeinfo/handler.test.js +6 -0
  24. package/dist/runtime/authdocloader.test.js +1 -1
  25. package/dist/runtime/docloader.test.js +1 -1
  26. package/dist/sig/http.test.js +1 -1
  27. package/dist/testing/context.js +2 -1
  28. package/dist/vocab/actor.test.js +1 -1
  29. package/dist/vocab/lookup.test.js +1 -1
  30. package/dist/vocab/vocab.js +176 -176
  31. package/dist/webfinger/handler.test.js +4 -0
  32. package/package.json +1 -1
@@ -3,7 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
5
  import { Image, Link, Person } from "../vocab/vocab.js";
6
+ import { MemoryKvStore } from "../federation/kv.js";
6
7
  import { handleWebFinger } from "./handler.js";
8
+ import { createFederation } from "../federation/middleware.js";
7
9
  import { assertEquals } from "../node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js";
8
10
  import { test } from "../testing/mod.js";
9
11
  import { createRequestContext } from "../testing/context.js";
@@ -12,7 +14,9 @@ import { createRequestContext } from "../testing/context.js";
12
14
  test("handleWebFinger()", async (t) => {
13
15
  const url = new URL("https://example.com/.well-known/webfinger");
14
16
  function createContext(url$1) {
17
+ const federation = createFederation({ kv: new MemoryKvStore() });
15
18
  const context = createRequestContext({
19
+ federation,
16
20
  url: url$1,
17
21
  data: void 0,
18
22
  getActorUri(identifier) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.6.1-dev.826+95a0d541",
3
+ "version": "1.6.1-dev.828+ae79e3c9",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",