@fedify/fedify 1.6.0 → 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.
- package/dist/codegen/schema.js +1 -1
- package/dist/compat/transformers.d.ts +1 -1
- package/dist/deno.js +4 -3
- package/dist/federation/callback.d.ts +1 -1
- package/dist/federation/context.d.ts +6 -0
- package/dist/federation/federation.d.ts +1 -1
- package/dist/federation/handler.test.js +11 -0
- package/dist/federation/middleware.test.js +2 -1
- package/dist/federation/mod.d.ts +5 -5
- package/dist/federation/send.test.js +1 -1
- package/dist/mod.d.ts +7 -7
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/dirname.js +1 -1
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/from_file_url.js +1 -1
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/dirname.js +2 -2
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/dirname.js +2 -2
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/from_file_url.js +1 -1
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/dirname.js +2 -2
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/from_file_url.js +1 -1
- package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js +2 -2
- package/dist/nodeinfo/handler.test.js +6 -0
- package/dist/runtime/authdocloader.test.js +1 -1
- package/dist/runtime/docloader.test.js +1 -1
- package/dist/sig/http.test.js +1 -1
- package/dist/testing/context.js +2 -1
- package/dist/vocab/actor.test.js +1 -1
- package/dist/vocab/lookup.test.js +1 -1
- package/dist/vocab/vocab.js +176 -176
- package/dist/webfinger/handler.test.js +4 -0
- package/package.json +2 -2
@@ -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.
|
3
|
+
"version": "1.6.1-dev.828+ae79e3c9",
|
4
4
|
"description": "An ActivityPub server framework",
|
5
5
|
"keywords": [
|
6
6
|
"ActivityPub",
|
@@ -111,7 +111,7 @@
|
|
111
111
|
},
|
112
112
|
"scripts": {
|
113
113
|
"build": "deno task codegen && tsdown",
|
114
|
-
"prepublish": "deno task codegen && tsdown",
|
114
|
+
"prepublish": "deno task codegen && tsdown && deno task check-version",
|
115
115
|
"test": "deno task codegen && tsdown && cd dist/ && node --test",
|
116
116
|
"test:bun": "deno task codegen && tsdown && cd dist/ && bun test --timeout 60000"
|
117
117
|
}
|