@fedify/fedify 2.1.0-dev.536 → 2.1.0-dev.565
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/{builder-Dw6lcJ0Q.js → builder-Deoi2N2z.js} +4 -4
- package/dist/{client-Dg7OfUDA.js → client-CoCIaTNO.js} +1 -1
- package/dist/compat/transformers.test.js +14 -14
- package/dist/{context-CZ5llAss.js → context-pa9aIrwp.js} +1 -1
- package/dist/{deno-BmfL7fdy.js → deno-CEdy89j9.js} +1 -1
- package/dist/{docloader-BGFSN_Bp.js → docloader-CL1QPJzN.js} +3 -3
- package/dist/{esm-DGl7uK1r.js → esm-nLm00z9V.js} +27 -1
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/collection.test.js +1 -1
- package/dist/federation/handler.test.js +29 -15
- package/dist/federation/idempotency.test.js +14 -14
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +1 -1
- package/dist/federation/kv.test.js +1 -1
- package/dist/federation/middleware.test.js +15 -15
- package/dist/federation/mod.cjs +4 -4
- package/dist/federation/mod.js +4 -4
- package/dist/federation/mq.test.js +1 -1
- package/dist/federation/negotiation.test.js +1 -1
- package/dist/federation/retry.test.js +1 -1
- package/dist/federation/router.test.js +1 -1
- package/dist/federation/send.test.js +7 -7
- package/dist/federation/webfinger.test.js +15 -15
- package/dist/{http-ijwLBFOG.js → http-Dm9n1mRe.js} +3 -3
- package/dist/{http-oab9zZ8G.js → http-VpqmUjje.js} +1 -1
- package/dist/{http-GIa3NEC0.cjs → http-iDlaLy8a.cjs} +1 -1
- package/dist/{inbox-DOdCahP_.js → inbox-CMtnW0RE.js} +2 -2
- package/dist/{key-C0mEbtT9.js → key-B0yADkL8.js} +2 -2
- package/dist/{kv-cache-BE-r-Jh1.cjs → kv-cache-551Om14-.cjs} +1 -1
- package/dist/{kv-cache-DgusQucH.js → kv-cache-BSATpUtX.js} +1 -1
- package/dist/{kv-cache-B__dHl7g.js → kv-cache-El7We5sy.js} +1 -1
- package/dist/{ld-GuCWC92E.js → ld-BBmbv1nb.js} +3 -3
- package/dist/middleware-BDr0P6dx.cjs +12 -0
- package/dist/middleware-BZ8WpBo6.js +26 -0
- package/dist/{middleware-B_bFRFpn.js → middleware-Cldp2YSv.js} +13 -13
- package/dist/{middleware-NScBQk86.js → middleware-Cx0tTbX1.js} +4 -4
- package/dist/{middleware-BjS6qK89.cjs → middleware-D11GYoP-.cjs} +4 -4
- package/dist/{middleware-CbwYrrrD.js → middleware-DpdPMZII.js} +4 -4
- package/dist/mod.cjs +4 -4
- package/dist/mod.js +4 -4
- package/dist/nodeinfo/client.test.js +3 -3
- package/dist/nodeinfo/handler.test.js +15 -15
- package/dist/nodeinfo/types.test.js +1 -1
- package/dist/otel/exporter.test.js +2 -2
- package/dist/{owner-ByzgflO4.js → owner-C1ZyG4NL.js} +1 -1
- package/dist/{proof-CfGLCinQ.cjs → proof-CgK60TcQ.cjs} +1 -1
- package/dist/{proof-DCmN3c-5.js → proof-DnRq8s8f.js} +1 -1
- package/dist/{proof-H7Bpqm89.js → proof-wclcUq0C.js} +3 -3
- package/dist/{send-lfh6MTrV.js → send-DNJyYRVU.js} +2 -2
- package/dist/sig/http.test.js +5 -5
- package/dist/sig/key.test.js +3 -3
- package/dist/sig/ld.test.js +4 -4
- package/dist/sig/mod.cjs +2 -2
- package/dist/sig/mod.js +2 -2
- package/dist/sig/owner.test.js +4 -4
- package/dist/sig/proof.test.js +5 -5
- package/dist/testing/mod.d.ts +1 -1
- package/dist/testing/mod.js +2 -2
- package/dist/utils/docloader.test.js +6 -6
- package/dist/utils/kv-cache.test.js +2 -2
- package/dist/utils/mod.cjs +2 -2
- package/dist/utils/mod.js +2 -2
- package/package.json +6 -6
- package/dist/dist-B5f6a8Tt.js +0 -281
- package/dist/middleware-BePBPe19.js +0 -26
- package/dist/middleware-ClbFNJuw.cjs +0 -12
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { deno_default } from "./deno-
|
|
6
|
+
import { deno_default } from "./deno-CEdy89j9.js";
|
|
7
7
|
import { Router, RouterError } from "./router-D9eI0s4b.js";
|
|
8
|
-
import { InboxListenerSet } from "./inbox-
|
|
9
|
-
import { getLogger } from "@logtape/logtape";
|
|
8
|
+
import { InboxListenerSet } from "./inbox-CMtnW0RE.js";
|
|
10
9
|
import { getTypeId } from "@fedify/vocab";
|
|
10
|
+
import { getLogger } from "@logtape/logtape";
|
|
11
11
|
import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
|
|
12
12
|
|
|
13
13
|
//#region src/federation/builder.ts
|
|
@@ -46,7 +46,7 @@ var FederationBuilderImpl = class {
|
|
|
46
46
|
this.collectionTypeIds = {};
|
|
47
47
|
}
|
|
48
48
|
async build(options) {
|
|
49
|
-
const { FederationImpl } = await import("./middleware-
|
|
49
|
+
const { FederationImpl } = await import("./middleware-BZ8WpBo6.js");
|
|
50
50
|
const f = new FederationImpl(options);
|
|
51
51
|
const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
|
|
52
52
|
f.router = this.router.clone();
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { getLogger } from "@logtape/logtape";
|
|
7
6
|
import { getUserAgent } from "@fedify/vocab-runtime";
|
|
7
|
+
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
|
|
9
9
|
//#region src/nodeinfo/client.ts
|
|
10
10
|
const logger = getLogger([
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
8
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
9
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-
|
|
13
|
-
import "../client-
|
|
10
|
+
import "../deno-CEdy89j9.js";
|
|
11
|
+
import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-Cldp2YSv.js";
|
|
12
|
+
import "../client-CoCIaTNO.js";
|
|
14
13
|
import "../router-D9eI0s4b.js";
|
|
15
14
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
22
|
-
import "../kv-cache-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
15
|
+
import "../key-B0yADkL8.js";
|
|
16
|
+
import "../http-Dm9n1mRe.js";
|
|
17
|
+
import "../ld-BBmbv1nb.js";
|
|
18
|
+
import "../owner-C1ZyG4NL.js";
|
|
19
|
+
import "../proof-wclcUq0C.js";
|
|
20
|
+
import "../docloader-CL1QPJzN.js";
|
|
21
|
+
import "../kv-cache-El7We5sy.js";
|
|
22
|
+
import "../inbox-CMtnW0RE.js";
|
|
23
|
+
import "../builder-Deoi2N2z.js";
|
|
25
24
|
import "../collection-CcnIw1qY.js";
|
|
26
25
|
import "../keycache-C7k8s1Bk.js";
|
|
27
26
|
import "../negotiation-5NPJL6zp.js";
|
|
28
27
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
28
|
+
import "../send-DNJyYRVU.js";
|
|
29
|
+
import { test } from "@fedify/fixture";
|
|
30
30
|
import { Follow, Person } from "@fedify/vocab";
|
|
31
31
|
|
|
32
32
|
//#region src/compat/transformers.test.ts
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { mockDocumentLoader } from "./dist-B5f6a8Tt.js";
|
|
7
6
|
import { RouterError } from "./router-D9eI0s4b.js";
|
|
7
|
+
import { mockDocumentLoader } from "@fedify/fixture";
|
|
8
8
|
import { lookupObject, traverseCollection } from "@fedify/vocab";
|
|
9
9
|
import { lookupWebFinger } from "@fedify/webfinger";
|
|
10
10
|
import { trace } from "@opentelemetry/api";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { validateCryptoKey } from "./key-
|
|
7
|
-
import { doubleKnock } from "./http-
|
|
8
|
-
import { getLogger } from "@logtape/logtape";
|
|
6
|
+
import { validateCryptoKey } from "./key-B0yADkL8.js";
|
|
7
|
+
import { doubleKnock } from "./http-Dm9n1mRe.js";
|
|
9
8
|
import { curry } from "es-toolkit";
|
|
10
9
|
import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
|
|
10
|
+
import { getLogger } from "@logtape/logtape";
|
|
11
11
|
|
|
12
12
|
//#region src/utils/docloader.ts
|
|
13
13
|
const logger = getLogger([
|
|
@@ -3,8 +3,34 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import "node:module";
|
|
7
7
|
|
|
8
|
+
//#region rolldown:runtime
|
|
9
|
+
var __create = Object.create;
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __commonJS = (cb, mod) => function() {
|
|
16
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
+
value: mod,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : target, mod));
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
8
34
|
//#region ../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js
|
|
9
35
|
var require_glob_to_regexp = __commonJS({ "../../node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js"(exports, module) {
|
|
10
36
|
module.exports = function(glob$1, opts) {
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import "../assert-MZs1qjMx.js";
|
|
9
8
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
9
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
10
|
+
import "../deno-CEdy89j9.js";
|
|
12
11
|
import "../router-D9eI0s4b.js";
|
|
13
|
-
import "../inbox-
|
|
14
|
-
import { createFederationBuilder } from "../builder-
|
|
12
|
+
import "../inbox-CMtnW0RE.js";
|
|
13
|
+
import { createFederationBuilder } from "../builder-Deoi2N2z.js";
|
|
15
14
|
import { assertExists } from "../std__assert-DWivtrGR.js";
|
|
16
15
|
import "../assert_rejects-Ce45JcFg.js";
|
|
17
16
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
18
17
|
import "../assert_not_equals-C80BG-_5.js";
|
|
18
|
+
import { test } from "@fedify/fixture";
|
|
19
19
|
import { Activity, Note, Person } from "@fedify/vocab";
|
|
20
20
|
|
|
21
21
|
//#region src/federation/builder.test.ts
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import "../assert-MZs1qjMx.js";
|
|
9
8
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
@@ -12,6 +11,7 @@ import "../std__assert-DWivtrGR.js";
|
|
|
12
11
|
import "../assert_rejects-Ce45JcFg.js";
|
|
13
12
|
import "../assert_throws-BNXdRGWP.js";
|
|
14
13
|
import "../assert_not_equals-C80BG-_5.js";
|
|
14
|
+
import { test } from "@fedify/fixture";
|
|
15
15
|
import { decodeHex } from "byte-encodings/hex";
|
|
16
16
|
|
|
17
17
|
//#region src/federation/collection.test.ts
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { createTestTracerProvider, mockDocumentLoader, test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
8
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
9
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
13
|
-
import "../client-
|
|
10
|
+
import "../deno-CEdy89j9.js";
|
|
11
|
+
import { createFederation, handleActor, handleCollection, handleCustomCollection, handleInbox, handleObject, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-Cldp2YSv.js";
|
|
12
|
+
import "../client-CoCIaTNO.js";
|
|
14
13
|
import "../router-D9eI0s4b.js";
|
|
15
14
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import { signRequest } from "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import "../proof-
|
|
21
|
-
import "../docloader-
|
|
22
|
-
import "../kv-cache-
|
|
23
|
-
import { InboxListenerSet } from "../inbox-
|
|
24
|
-
import "../builder-
|
|
15
|
+
import "../key-B0yADkL8.js";
|
|
16
|
+
import { signRequest } from "../http-Dm9n1mRe.js";
|
|
17
|
+
import "../ld-BBmbv1nb.js";
|
|
18
|
+
import "../owner-C1ZyG4NL.js";
|
|
19
|
+
import "../proof-wclcUq0C.js";
|
|
20
|
+
import "../docloader-CL1QPJzN.js";
|
|
21
|
+
import "../kv-cache-El7We5sy.js";
|
|
22
|
+
import { InboxListenerSet } from "../inbox-CMtnW0RE.js";
|
|
23
|
+
import "../builder-Deoi2N2z.js";
|
|
25
24
|
import "../collection-CcnIw1qY.js";
|
|
26
25
|
import "../keycache-C7k8s1Bk.js";
|
|
27
26
|
import "../negotiation-5NPJL6zp.js";
|
|
28
27
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
28
|
+
import "../send-DNJyYRVU.js";
|
|
30
29
|
import "../std__assert-DWivtrGR.js";
|
|
31
30
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
31
|
import "../assert_throws-BNXdRGWP.js";
|
|
33
32
|
import "../assert_not_equals-C80BG-_5.js";
|
|
34
|
-
import { createInboxContext, createRequestContext } from "../context-
|
|
33
|
+
import { createInboxContext, createRequestContext } from "../context-pa9aIrwp.js";
|
|
35
34
|
import { rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-ZbcByPg9.js";
|
|
35
|
+
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
36
36
|
import { Create, Note, Person } from "@fedify/vocab";
|
|
37
37
|
import { FetchError } from "@fedify/vocab-runtime";
|
|
38
38
|
|
|
@@ -105,6 +105,7 @@ test("handleActor()", async () => {
|
|
|
105
105
|
"https://w3id.org/security/data-integrity/v1",
|
|
106
106
|
"https://www.w3.org/ns/did/v1",
|
|
107
107
|
"https://w3id.org/security/multikey/v1",
|
|
108
|
+
"https://gotosocial.org/ns",
|
|
108
109
|
{
|
|
109
110
|
alsoKnownAs: {
|
|
110
111
|
"@id": "as:alsoKnownAs",
|
|
@@ -188,6 +189,7 @@ test("handleActor()", async () => {
|
|
|
188
189
|
"https://w3id.org/security/data-integrity/v1",
|
|
189
190
|
"https://www.w3.org/ns/did/v1",
|
|
190
191
|
"https://w3id.org/security/multikey/v1",
|
|
192
|
+
"https://gotosocial.org/ns",
|
|
191
193
|
{
|
|
192
194
|
alsoKnownAs: {
|
|
193
195
|
"@id": "as:alsoKnownAs",
|
|
@@ -328,6 +330,7 @@ test("handleObject()", async () => {
|
|
|
328
330
|
"@context": [
|
|
329
331
|
"https://www.w3.org/ns/activitystreams",
|
|
330
332
|
"https://w3id.org/security/data-integrity/v1",
|
|
333
|
+
"https://gotosocial.org/ns",
|
|
331
334
|
{
|
|
332
335
|
Emoji: "toot:Emoji",
|
|
333
336
|
Hashtag: "as:Hashtag",
|
|
@@ -415,6 +418,7 @@ test("handleObject()", async () => {
|
|
|
415
418
|
"@context": [
|
|
416
419
|
"https://www.w3.org/ns/activitystreams",
|
|
417
420
|
"https://w3id.org/security/data-integrity/v1",
|
|
421
|
+
"https://gotosocial.org/ns",
|
|
418
422
|
{
|
|
419
423
|
Emoji: "toot:Emoji",
|
|
420
424
|
Hashtag: "as:Hashtag",
|
|
@@ -557,6 +561,7 @@ test("handleCollection()", async () => {
|
|
|
557
561
|
"https://w3id.org/identity/v1",
|
|
558
562
|
"https://www.w3.org/ns/activitystreams",
|
|
559
563
|
"https://w3id.org/security/data-integrity/v1",
|
|
564
|
+
"https://gotosocial.org/ns",
|
|
560
565
|
{
|
|
561
566
|
toot: "http://joinmastodon.org/ns#",
|
|
562
567
|
misskey: "https://misskey-hub.net/ns#",
|
|
@@ -582,6 +587,7 @@ test("handleCollection()", async () => {
|
|
|
582
587
|
"@context": [
|
|
583
588
|
"https://www.w3.org/ns/activitystreams",
|
|
584
589
|
"https://w3id.org/security/data-integrity/v1",
|
|
590
|
+
"https://gotosocial.org/ns",
|
|
585
591
|
{
|
|
586
592
|
toot: "http://joinmastodon.org/ns#",
|
|
587
593
|
misskey: "https://misskey-hub.net/ns#",
|
|
@@ -665,6 +671,7 @@ test("handleCollection()", async () => {
|
|
|
665
671
|
"@context": [
|
|
666
672
|
"https://www.w3.org/ns/activitystreams",
|
|
667
673
|
"https://w3id.org/security/data-integrity/v1",
|
|
674
|
+
"https://gotosocial.org/ns",
|
|
668
675
|
{
|
|
669
676
|
toot: "http://joinmastodon.org/ns#",
|
|
670
677
|
misskey: "https://misskey-hub.net/ns#",
|
|
@@ -727,6 +734,7 @@ test("handleCollection()", async () => {
|
|
|
727
734
|
"@context": [
|
|
728
735
|
"https://www.w3.org/ns/activitystreams",
|
|
729
736
|
"https://w3id.org/security/data-integrity/v1",
|
|
737
|
+
"https://gotosocial.org/ns",
|
|
730
738
|
{
|
|
731
739
|
toot: "http://joinmastodon.org/ns#",
|
|
732
740
|
misskey: "https://misskey-hub.net/ns#",
|
|
@@ -781,6 +789,7 @@ test("handleCollection()", async () => {
|
|
|
781
789
|
"@context": [
|
|
782
790
|
"https://www.w3.org/ns/activitystreams",
|
|
783
791
|
"https://w3id.org/security/data-integrity/v1",
|
|
792
|
+
"https://gotosocial.org/ns",
|
|
784
793
|
{
|
|
785
794
|
toot: "http://joinmastodon.org/ns#",
|
|
786
795
|
misskey: "https://misskey-hub.net/ns#",
|
|
@@ -839,6 +848,7 @@ test("handleCollection()", async () => {
|
|
|
839
848
|
"@context": [
|
|
840
849
|
"https://www.w3.org/ns/activitystreams",
|
|
841
850
|
"https://w3id.org/security/data-integrity/v1",
|
|
851
|
+
"https://gotosocial.org/ns",
|
|
842
852
|
{
|
|
843
853
|
toot: "http://joinmastodon.org/ns#",
|
|
844
854
|
misskey: "https://misskey-hub.net/ns#",
|
|
@@ -1082,6 +1092,7 @@ test("respondWithObject()", async () => {
|
|
|
1082
1092
|
"@context": [
|
|
1083
1093
|
"https://www.w3.org/ns/activitystreams",
|
|
1084
1094
|
"https://w3id.org/security/data-integrity/v1",
|
|
1095
|
+
"https://gotosocial.org/ns",
|
|
1085
1096
|
{
|
|
1086
1097
|
Emoji: "toot:Emoji",
|
|
1087
1098
|
Hashtag: "as:Hashtag",
|
|
@@ -1174,6 +1185,7 @@ test("respondWithObjectIfAcceptable", async () => {
|
|
|
1174
1185
|
"@context": [
|
|
1175
1186
|
"https://www.w3.org/ns/activitystreams",
|
|
1176
1187
|
"https://w3id.org/security/data-integrity/v1",
|
|
1188
|
+
"https://gotosocial.org/ns",
|
|
1177
1189
|
{
|
|
1178
1190
|
Emoji: "toot:Emoji",
|
|
1179
1191
|
Hashtag: "as:Hashtag",
|
|
@@ -1285,6 +1297,7 @@ test("handleCustomCollection()", async () => {
|
|
|
1285
1297
|
"https://w3id.org/identity/v1",
|
|
1286
1298
|
"https://www.w3.org/ns/activitystreams",
|
|
1287
1299
|
"https://w3id.org/security/data-integrity/v1",
|
|
1300
|
+
"https://gotosocial.org/ns",
|
|
1288
1301
|
{
|
|
1289
1302
|
toot: "http://joinmastodon.org/ns#",
|
|
1290
1303
|
misskey: "https://misskey-hub.net/ns#",
|
|
@@ -1309,6 +1322,7 @@ test("handleCustomCollection()", async () => {
|
|
|
1309
1322
|
const CONTEXT = [
|
|
1310
1323
|
"https://www.w3.org/ns/activitystreams",
|
|
1311
1324
|
"https://w3id.org/security/data-integrity/v1",
|
|
1325
|
+
"https://gotosocial.org/ns",
|
|
1312
1326
|
{
|
|
1313
1327
|
toot: "http://joinmastodon.org/ns#",
|
|
1314
1328
|
misskey: "https://misskey-hub.net/ns#",
|
|
@@ -3,35 +3,35 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { mockDocumentLoader, test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import "../assert-MZs1qjMx.js";
|
|
9
8
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
9
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { createFederation } from "../middleware-
|
|
13
|
-
import "../client-
|
|
10
|
+
import "../deno-CEdy89j9.js";
|
|
11
|
+
import { createFederation } from "../middleware-Cldp2YSv.js";
|
|
12
|
+
import "../client-CoCIaTNO.js";
|
|
14
13
|
import "../router-D9eI0s4b.js";
|
|
15
14
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import "../http-
|
|
18
|
-
import "../ld-
|
|
19
|
-
import "../owner-
|
|
20
|
-
import { signObject } from "../proof-
|
|
21
|
-
import "../docloader-
|
|
22
|
-
import "../kv-cache-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
15
|
+
import "../key-B0yADkL8.js";
|
|
16
|
+
import "../http-Dm9n1mRe.js";
|
|
17
|
+
import "../ld-BBmbv1nb.js";
|
|
18
|
+
import "../owner-C1ZyG4NL.js";
|
|
19
|
+
import { signObject } from "../proof-wclcUq0C.js";
|
|
20
|
+
import "../docloader-CL1QPJzN.js";
|
|
21
|
+
import "../kv-cache-El7We5sy.js";
|
|
22
|
+
import "../inbox-CMtnW0RE.js";
|
|
23
|
+
import "../builder-Deoi2N2z.js";
|
|
25
24
|
import "../collection-CcnIw1qY.js";
|
|
26
25
|
import "../keycache-C7k8s1Bk.js";
|
|
27
26
|
import "../negotiation-5NPJL6zp.js";
|
|
28
27
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
28
|
+
import "../send-DNJyYRVU.js";
|
|
30
29
|
import "../std__assert-DWivtrGR.js";
|
|
31
30
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
31
|
import "../assert_throws-BNXdRGWP.js";
|
|
33
32
|
import "../assert_not_equals-C80BG-_5.js";
|
|
34
33
|
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey } from "../keys-ZbcByPg9.js";
|
|
34
|
+
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
35
35
|
import { Create, Follow, Person } from "@fedify/vocab";
|
|
36
36
|
|
|
37
37
|
//#region src/federation/idempotency.test.ts
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
|
-
import "../deno-
|
|
9
|
-
import { InboxListenerSet } from "../inbox-
|
|
7
|
+
import "../deno-CEdy89j9.js";
|
|
8
|
+
import { InboxListenerSet } from "../inbox-CMtnW0RE.js";
|
|
10
9
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
10
|
+
import { test } from "@fedify/fixture";
|
|
11
11
|
import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
|
|
12
12
|
|
|
13
13
|
//#region src/federation/inbox.test.ts
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
8
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
9
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
10
|
import { KvKeyCache } from "../keycache-C7k8s1Bk.js";
|
|
11
|
+
import { test } from "@fedify/fixture";
|
|
12
12
|
import { CryptographicKey, Multikey } from "@fedify/vocab";
|
|
13
13
|
|
|
14
14
|
//#region src/federation/keycache.test.ts
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import "../assert-MZs1qjMx.js";
|
|
9
8
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
@@ -12,6 +11,7 @@ import "../std__assert-DWivtrGR.js";
|
|
|
12
11
|
import "../assert_rejects-Ce45JcFg.js";
|
|
13
12
|
import "../assert_throws-BNXdRGWP.js";
|
|
14
13
|
import "../assert_not_equals-C80BG-_5.js";
|
|
14
|
+
import { test } from "@fedify/fixture";
|
|
15
15
|
|
|
16
16
|
//#region src/federation/kv.test.ts
|
|
17
17
|
test("MemoryKvStore", async (t) => {
|
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { esm_default } from "../esm-nLm00z9V.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import "../deno-
|
|
12
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-
|
|
13
|
-
import "../client-
|
|
11
|
+
import "../deno-CEdy89j9.js";
|
|
12
|
+
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "../middleware-Cldp2YSv.js";
|
|
13
|
+
import "../client-CoCIaTNO.js";
|
|
14
14
|
import { RouterError } from "../router-D9eI0s4b.js";
|
|
15
15
|
import "../types-CPz01LGH.js";
|
|
16
|
-
import "../key-
|
|
17
|
-
import { signRequest, verifyRequest } from "../http-
|
|
18
|
-
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-
|
|
19
|
-
import { doesActorOwnKey } from "../owner-
|
|
20
|
-
import { signObject, verifyObject } from "../proof-
|
|
21
|
-
import { getAuthenticatedDocumentLoader } from "../docloader-
|
|
22
|
-
import "../kv-cache-
|
|
23
|
-
import "../inbox-
|
|
24
|
-
import "../builder-
|
|
16
|
+
import "../key-B0yADkL8.js";
|
|
17
|
+
import { signRequest, verifyRequest } from "../http-Dm9n1mRe.js";
|
|
18
|
+
import { detachSignature, signJsonLd, verifyJsonLd } from "../ld-BBmbv1nb.js";
|
|
19
|
+
import { doesActorOwnKey } from "../owner-C1ZyG4NL.js";
|
|
20
|
+
import { signObject, verifyObject } from "../proof-wclcUq0C.js";
|
|
21
|
+
import { getAuthenticatedDocumentLoader } from "../docloader-CL1QPJzN.js";
|
|
22
|
+
import "../kv-cache-El7We5sy.js";
|
|
23
|
+
import "../inbox-CMtnW0RE.js";
|
|
24
|
+
import "../builder-Deoi2N2z.js";
|
|
25
25
|
import "../collection-CcnIw1qY.js";
|
|
26
26
|
import "../keycache-C7k8s1Bk.js";
|
|
27
27
|
import "../negotiation-5NPJL6zp.js";
|
|
28
28
|
import "../retry-D4GJ670a.js";
|
|
29
|
-
import "../send-
|
|
29
|
+
import "../send-DNJyYRVU.js";
|
|
30
30
|
import { assertStrictEquals } from "../std__assert-DWivtrGR.js";
|
|
31
31
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
33
33
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
|
34
34
|
import { ed25519Multikey, ed25519PrivateKey, ed25519PublicKey, rsaPrivateKey2, rsaPrivateKey3, rsaPublicKey2, rsaPublicKey3 } from "../keys-ZbcByPg9.js";
|
|
35
|
-
import {
|
|
35
|
+
import { mockDocumentLoader, test } from "@fedify/fixture";
|
|
36
36
|
import * as vocab from "@fedify/vocab";
|
|
37
37
|
import { getTypeId, lookupObject } from "@fedify/vocab";
|
|
38
38
|
import { FetchError, getDocumentLoader } from "@fedify/vocab-runtime";
|
package/dist/federation/mod.cjs
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
require('../transformers-3g8GZwkZ.cjs');
|
|
6
|
-
require('../http-
|
|
7
|
-
const require_middleware = require('../middleware-
|
|
8
|
-
require('../proof-
|
|
6
|
+
require('../http-iDlaLy8a.cjs');
|
|
7
|
+
const require_middleware = require('../middleware-D11GYoP-.cjs');
|
|
8
|
+
require('../proof-CgK60TcQ.cjs');
|
|
9
9
|
const require_federation = require('../federation-Bp3HI26G.cjs');
|
|
10
10
|
require('../types-Cd_hszr_.cjs');
|
|
11
|
-
require('../kv-cache-
|
|
11
|
+
require('../kv-cache-551Om14-.cjs');
|
|
12
12
|
|
|
13
13
|
exports.InProcessMessageQueue = require_federation.InProcessMessageQueue;
|
|
14
14
|
exports.MemoryKvStore = require_federation.MemoryKvStore;
|
package/dist/federation/mod.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
5
|
import "../transformers-C3FLHUd6.js";
|
|
6
|
-
import "../http-
|
|
7
|
-
import { Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-
|
|
8
|
-
import "../proof-
|
|
6
|
+
import "../http-VpqmUjje.js";
|
|
7
|
+
import { Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable } from "../middleware-Cx0tTbX1.js";
|
|
8
|
+
import "../proof-DnRq8s8f.js";
|
|
9
9
|
import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "../federation-DaMfqRm4.js";
|
|
10
10
|
import "../types-C93Ob9cU.js";
|
|
11
|
-
import "../kv-cache-
|
|
11
|
+
import "../kv-cache-BSATpUtX.js";
|
|
12
12
|
|
|
13
13
|
export { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue, Router, RouterError, SendActivityError, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, handleWebFinger, respondWithObject, respondWithObjectIfAcceptable };
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
8
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
@@ -11,6 +10,7 @@ import { assertGreater, assertGreaterOrEqual } from "../std__assert-DWivtrGR.js"
|
|
|
11
10
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
|
12
11
|
import "../assert_throws-BNXdRGWP.js";
|
|
13
12
|
import "../assert_not_equals-C80BG-_5.js";
|
|
13
|
+
import { test } from "@fedify/fixture";
|
|
14
14
|
import { delay } from "es-toolkit";
|
|
15
15
|
|
|
16
16
|
//#region src/federation/mq.ts
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
8
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
@@ -12,6 +11,7 @@ import "../std__assert-DWivtrGR.js";
|
|
|
12
11
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
|
13
12
|
import "../assert_throws-BNXdRGWP.js";
|
|
14
13
|
import "../assert_not_equals-C80BG-_5.js";
|
|
14
|
+
import { test } from "@fedify/fixture";
|
|
15
15
|
|
|
16
16
|
//#region src/federation/negotiation.test.ts
|
|
17
17
|
test("acceptsJsonLd()", () => {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { AssertionError, assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import { createExponentialBackoffPolicy } from "../retry-D4GJ670a.js";
|
|
9
8
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
|
9
|
+
import { test } from "@fedify/fixture";
|
|
10
10
|
|
|
11
11
|
//#region src/federation/retry.test.ts
|
|
12
12
|
test("createExponentialBackoffPolicy()", () => {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { test } from "../dist-B5f6a8Tt.js";
|
|
7
6
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
7
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
8
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
@@ -12,6 +11,7 @@ import "../std__assert-DWivtrGR.js";
|
|
|
12
11
|
import { assertFalse } from "../assert_rejects-Ce45JcFg.js";
|
|
13
12
|
import { assertThrows } from "../assert_throws-BNXdRGWP.js";
|
|
14
13
|
import "../assert_not_equals-C80BG-_5.js";
|
|
14
|
+
import { test } from "@fedify/fixture";
|
|
15
15
|
|
|
16
16
|
//#region src/federation/router.test.ts
|
|
17
17
|
function setUp(options = {}) {
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { esm_default } from "../esm-nLm00z9V.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import { assert } from "../assert-MZs1qjMx.js";
|
|
9
9
|
import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../deno-
|
|
11
|
-
import "../key-
|
|
12
|
-
import { verifyRequest } from "../http-
|
|
13
|
-
import { doesActorOwnKey } from "../owner-
|
|
14
|
-
import { SendActivityError, extractInboxes, sendActivity } from "../send-
|
|
10
|
+
import "../deno-CEdy89j9.js";
|
|
11
|
+
import "../key-B0yADkL8.js";
|
|
12
|
+
import { verifyRequest } from "../http-Dm9n1mRe.js";
|
|
13
|
+
import { doesActorOwnKey } from "../owner-C1ZyG4NL.js";
|
|
14
|
+
import { SendActivityError, extractInboxes, sendActivity } from "../send-DNJyYRVU.js";
|
|
15
15
|
import "../std__assert-DWivtrGR.js";
|
|
16
16
|
import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
|
|
17
17
|
import "../assert_throws-BNXdRGWP.js";
|
|
18
18
|
import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
|
|
19
19
|
import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-ZbcByPg9.js";
|
|
20
|
-
import {
|
|
20
|
+
import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
|
|
21
21
|
import { Activity, Application, Endpoints, Group, Person, Service } from "@fedify/vocab";
|
|
22
22
|
|
|
23
23
|
//#region src/federation/send.test.ts
|