@fedify/fedify 2.0.0-dev.1908 → 2.0.0-dev.7
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/README.md +6 -0
- package/dist/{actor-DrFLTQdj.js → actor-B5o1xrFI.js} +1 -1
- package/dist/{actor-C6x8UgbE.cjs → actor-BLBfgCFC.cjs} +185 -185
- package/dist/{actor-C76CDThG.js → actor-CT1vyB17.js} +185 -185
- package/dist/{builder-GG0LDRaK.js → builder-CiifhBKW.js} +3 -3
- package/dist/compat/transformers.test.js +14 -14
- package/dist/{docloader-Buj0Y50A.js → docloader-DUfba_vD.js} +2 -2
- package/dist/{esm-vPU_GxaY.js → esm-p1rx_7cC.js} +32 -17
- package/dist/federation/builder.test.js +4 -4
- package/dist/federation/collection.test.js +2 -2
- package/dist/federation/handler.test.js +102 -15
- package/dist/federation/idempotency.test.js +15 -15
- package/dist/federation/inbox.test.js +3 -3
- package/dist/federation/keycache.test.js +3 -3
- package/dist/federation/kv.test.js +2 -2
- package/dist/federation/middleware.test.js +16 -16
- package/dist/federation/mod.cjs +7 -7
- package/dist/federation/mod.js +7 -7
- package/dist/federation/mq.test.js +2 -2
- package/dist/federation/negotiation.test.js +2 -2
- package/dist/federation/retry.test.js +2 -2
- package/dist/federation/router.test.js +2 -2
- package/dist/federation/send.test.js +52 -9
- package/dist/{http-ByZmUHwe.js → http-C78SwacJ.js} +2 -2
- package/dist/{http-CTi-owaL.cjs → http-ClCl_dis.cjs} +2 -2
- package/dist/{http-DO88HCOK.js → http-pgzDkXD0.js} +2 -2
- package/dist/{inbox-BwIgnk8R.js → inbox-BDF2VbZ8.js} +1 -1
- package/dist/{key-CrKmngwF.js → key-jo5CucF6.js} +2 -2
- package/dist/{keycache-CFv8xdnH.js → keycache-C5k5PTyM.js} +1 -1
- package/dist/{keys-B2yaEG79.js → keys-BSzUEVJu.js} +1 -1
- package/dist/{kv-cache-BbklA4EG.cjs → kv-cache-DVMGXeBd.cjs} +1 -1
- package/dist/{kv-cache-CykGg2IP.js → kv-cache-ONwNlGJb.js} +1 -1
- package/dist/{ld-Ckl2k3lF.js → ld-CWuhgMM4.js} +2 -2
- package/dist/{lookup-DrCNfWHm.js → lookup-BvK_-Lja.js} +4 -3
- package/dist/{lookup-D17ydBQd.cjs → lookup-DdOtSFct.cjs} +4 -3
- package/dist/{lookup-yP6Lo5JV.js → lookup-Dvhilldd.js} +193 -187
- package/dist/{middleware-X0RaVmfv.cjs → middleware-8uNpzeWq.cjs} +21 -9
- package/dist/middleware-BCFCgNNb.js +26 -0
- package/dist/middleware-BDTi2tq7.cjs +15 -0
- package/dist/{middleware-CdPISvYD.js → middleware-C7m5m72k.js} +18 -11
- package/dist/{middleware-Dv90Gwc-.js → middleware-DMZO9M2Z.js} +21 -9
- package/dist/middleware-NNEe-eQ5.js +15 -0
- package/dist/mod.cjs +7 -7
- package/dist/mod.js +7 -7
- package/dist/nodeinfo/client.test.js +3 -3
- package/dist/nodeinfo/handler.test.js +14 -14
- package/dist/nodeinfo/types.test.js +2 -2
- package/dist/otel-1BmGPuZc.js +64 -0
- package/dist/{owner-C8UEs7je.js → owner-_G6LyiEi.js} +44 -8
- package/dist/{proof-CWKgvgzL.js → proof-BkMSGqJy.js} +2 -2
- package/dist/{proof-CDW6KgLA.js → proof-BqpNTnd4.js} +45 -9
- package/dist/{proof-yc6sVqKg.cjs → proof-CZ_Wlbae.cjs} +44 -8
- package/dist/{send-z5jueBCW.js → send-BCzFH66x.js} +9 -4
- package/dist/sig/http.test.js +7 -7
- package/dist/sig/key.test.js +5 -5
- package/dist/sig/ld.test.js +6 -6
- package/dist/sig/mod.cjs +4 -4
- package/dist/sig/mod.js +4 -4
- package/dist/sig/owner.test.js +30 -6
- package/dist/sig/proof.test.js +6 -6
- package/dist/testing/docloader.test.js +2 -2
- package/dist/testing/mod.js +2 -2
- package/dist/{testing-bgnt5CjE.js → testing-cwlO8Sns.js} +1 -1
- package/dist/utils/docloader.test.js +8 -8
- package/dist/utils/kv-cache.test.js +2 -2
- package/dist/utils/mod.cjs +4 -4
- package/dist/utils/mod.js +4 -4
- package/dist/vocab/actor.test.js +4 -4
- package/dist/vocab/lookup.test.js +26 -4
- package/dist/vocab/mod.cjs +3 -3
- package/dist/vocab/mod.js +3 -3
- package/dist/vocab/type.test.js +2 -2
- package/dist/vocab/vocab.test.js +157 -157
- package/dist/{vocab-B4wXNBv8.js → vocab-BXz9NayY.js} +7 -2
- package/dist/{vocab-Hqae4yux.cjs → vocab-_gvYdHDB.cjs} +7 -2
- package/dist/webfinger/handler.test.js +14 -14
- package/dist/webfinger/lookup.test.js +3 -3
- package/dist/webfinger/mod.cjs +1 -1
- package/dist/webfinger/mod.js +1 -1
- package/package.json +7 -5
- package/dist/middleware-BSCsvvh-.js +0 -26
- package/dist/middleware-GFpHLL1X.cjs +0 -15
- package/dist/middleware-pl3iXZpj.js +0 -15
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { deno_default, lookupWebFinger } from "./lookup-
|
|
6
|
-
import { Object as Object$1, getTypeId } from "./actor-
|
|
5
|
+
import { deno_default, lookupWebFinger } from "./lookup-BvK_-Lja.js";
|
|
6
|
+
import { Object as Object$1, getTypeId } from "./actor-CT1vyB17.js";
|
|
7
7
|
import { getLogger } from "@logtape/logtape";
|
|
8
8
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
|
9
9
|
import { getDocumentLoader } from "@fedify/vocab-runtime";
|
|
@@ -136,9 +136,14 @@ async function lookupObject(identifier, options = {}) {
|
|
|
136
136
|
if (result.id != null) span.setAttribute("activitypub.object.id", result.id.href);
|
|
137
137
|
span.setAttribute("activitypub.object.type", getTypeId(result).href);
|
|
138
138
|
if (result.replyTargetIds.length > 0) span.setAttribute("activitypub.object.in_reply_to", result.replyTargetIds.map((id) => id.href));
|
|
139
|
+
span.addEvent("activitypub.object.fetched", {
|
|
140
|
+
"activitypub.object.type": getTypeId(result).href,
|
|
141
|
+
"activitypub.object.json": JSON.stringify(await result.toJsonLd(options))
|
|
142
|
+
});
|
|
139
143
|
}
|
|
140
144
|
return result;
|
|
141
145
|
} catch (error) {
|
|
146
|
+
span.recordException(error);
|
|
142
147
|
span.setStatus({
|
|
143
148
|
code: SpanStatusCode.ERROR,
|
|
144
149
|
message: String(error)
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
5
|
const require_chunk = require('./chunk-DqRYRqnO.cjs');
|
|
6
|
-
const require_lookup = require('./lookup-
|
|
7
|
-
const require_actor = require('./actor-
|
|
6
|
+
const require_lookup = require('./lookup-DdOtSFct.cjs');
|
|
7
|
+
const require_actor = require('./actor-BLBfgCFC.cjs');
|
|
8
8
|
const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
|
|
9
9
|
const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
|
|
10
10
|
const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
|
|
@@ -137,9 +137,14 @@ async function lookupObject(identifier, options = {}) {
|
|
|
137
137
|
if (result.id != null) span.setAttribute("activitypub.object.id", result.id.href);
|
|
138
138
|
span.setAttribute("activitypub.object.type", require_actor.getTypeId(result).href);
|
|
139
139
|
if (result.replyTargetIds.length > 0) span.setAttribute("activitypub.object.in_reply_to", result.replyTargetIds.map((id) => id.href));
|
|
140
|
+
span.addEvent("activitypub.object.fetched", {
|
|
141
|
+
"activitypub.object.type": require_actor.getTypeId(result).href,
|
|
142
|
+
"activitypub.object.json": JSON.stringify(await result.toJsonLd(options))
|
|
143
|
+
});
|
|
140
144
|
}
|
|
141
145
|
return result;
|
|
142
146
|
} catch (error) {
|
|
147
|
+
span.recordException(error);
|
|
143
148
|
span.setStatus({
|
|
144
149
|
code: __opentelemetry_api.SpanStatusCode.ERROR,
|
|
145
150
|
message: String(error)
|
|
@@ -3,30 +3,30 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { Image, Link, Person } from "../lookup-
|
|
6
|
+
import { Image, Link, Person } from "../lookup-Dvhilldd.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
10
|
import { MemoryKvStore } from "../kv-CRZrzyXm.js";
|
|
11
|
-
import { createFederation, handleWebFinger } from "../middleware-
|
|
11
|
+
import { createFederation, handleWebFinger } from "../middleware-C7m5m72k.js";
|
|
12
12
|
import "../client-pY7-3icS.js";
|
|
13
13
|
import "../types-C2XVl6gj.js";
|
|
14
|
-
import "../actor-
|
|
15
|
-
import "../key-
|
|
16
|
-
import "../http-
|
|
17
|
-
import "../ld-
|
|
18
|
-
import "../owner-
|
|
19
|
-
import "../proof-
|
|
20
|
-
import "../docloader-
|
|
14
|
+
import "../actor-B5o1xrFI.js";
|
|
15
|
+
import "../key-jo5CucF6.js";
|
|
16
|
+
import "../http-pgzDkXD0.js";
|
|
17
|
+
import "../ld-CWuhgMM4.js";
|
|
18
|
+
import "../owner-_G6LyiEi.js";
|
|
19
|
+
import "../proof-BkMSGqJy.js";
|
|
20
|
+
import "../docloader-DUfba_vD.js";
|
|
21
21
|
import "../kv-cache-DN9pfMBe.js";
|
|
22
|
-
import "../inbox-
|
|
23
|
-
import "../builder-
|
|
22
|
+
import "../inbox-BDF2VbZ8.js";
|
|
23
|
+
import "../builder-CiifhBKW.js";
|
|
24
24
|
import "../collection-BzWsN9pB.js";
|
|
25
|
-
import "../keycache-
|
|
25
|
+
import "../keycache-C5k5PTyM.js";
|
|
26
26
|
import "../negotiation-C4nFufNk.js";
|
|
27
27
|
import "../retry-CfF8Gn4d.js";
|
|
28
|
-
import "../send-
|
|
29
|
-
import { createRequestContext, test } from "../testing-
|
|
28
|
+
import "../send-BCzFH66x.js";
|
|
29
|
+
import { createRequestContext, test } from "../testing-cwlO8Sns.js";
|
|
30
30
|
import "../std__assert-DWivtrGR.js";
|
|
31
31
|
import "../assert_rejects-Ce45JcFg.js";
|
|
32
32
|
import "../assert_throws-BNXdRGWP.js";
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
globalThis.addEventListener = () => {};
|
|
5
5
|
|
|
6
|
-
import { lookupWebFinger } from "../lookup-
|
|
6
|
+
import { lookupWebFinger } from "../lookup-Dvhilldd.js";
|
|
7
7
|
import { assertEquals } from "../assert_equals-DSbWqCm3.js";
|
|
8
8
|
import "../assert-MZs1qjMx.js";
|
|
9
9
|
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import { test } from "../testing-
|
|
10
|
+
import { test } from "../testing-cwlO8Sns.js";
|
|
11
11
|
import "../std__assert-DWivtrGR.js";
|
|
12
12
|
import "../assert_rejects-Ce45JcFg.js";
|
|
13
13
|
import "../assert_throws-BNXdRGWP.js";
|
|
14
14
|
import "../assert_not_equals-C80BG-_5.js";
|
|
15
|
-
import { esm_default } from "../esm-
|
|
15
|
+
import { esm_default } from "../esm-p1rx_7cC.js";
|
|
16
16
|
import { withTimeout } from "es-toolkit";
|
|
17
17
|
|
|
18
18
|
//#region src/webfinger/lookup.test.ts
|
package/dist/webfinger/mod.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
3
|
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
4
|
|
|
5
|
-
const require_lookup = require('../lookup-
|
|
5
|
+
const require_lookup = require('../lookup-DdOtSFct.cjs');
|
|
6
6
|
require('../webfinger-vAtLmxOF.cjs');
|
|
7
7
|
|
|
8
8
|
exports.lookupWebFinger = require_lookup.lookupWebFinger;
|
package/dist/webfinger/mod.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
|
4
4
|
|
|
5
|
-
import { lookupWebFinger } from "../lookup-
|
|
5
|
+
import { lookupWebFinger } from "../lookup-BvK_-Lja.js";
|
|
6
6
|
import "../webfinger-C72Y8lrh.js";
|
|
7
7
|
|
|
8
8
|
export { lookupWebFinger };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/fedify",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.7+a392e496",
|
|
4
4
|
"description": "An ActivityPub server framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ActivityPub",
|
|
@@ -121,22 +121,24 @@
|
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"@js-temporal/polyfill": "^0.5.1",
|
|
124
|
-
"@logtape/logtape": "^1.
|
|
124
|
+
"@logtape/logtape": "^1.2.2",
|
|
125
125
|
"@multiformats/base-x": "^4.0.1",
|
|
126
126
|
"@opentelemetry/api": "^1.9.0",
|
|
127
|
+
"@opentelemetry/core": "^1.30.1",
|
|
128
|
+
"@opentelemetry/sdk-trace-base": "^1.30.1",
|
|
127
129
|
"@opentelemetry/semantic-conventions": "^1.27.0",
|
|
128
130
|
"asn1js": "^3.0.5",
|
|
129
131
|
"byte-encodings": "^1.0.11",
|
|
130
132
|
"es-toolkit": "^1.39.5",
|
|
131
133
|
"json-canon": "^1.0.1",
|
|
132
|
-
"jsonld": "^
|
|
134
|
+
"jsonld": "^9.0.0",
|
|
133
135
|
"multicodec": "^3.2.1",
|
|
134
136
|
"pkijs": "^3.2.4",
|
|
135
137
|
"structured-field-values": "^2.0.4",
|
|
136
138
|
"uri-template-router": "^1.0.0",
|
|
137
139
|
"url-template": "^3.1.1",
|
|
138
140
|
"urlpattern-polyfill": "^10.1.0",
|
|
139
|
-
"@fedify/vocab-runtime": "2.0.0-dev.
|
|
141
|
+
"@fedify/vocab-runtime": "2.0.0-dev.7+a392e496"
|
|
140
142
|
},
|
|
141
143
|
"devDependencies": {
|
|
142
144
|
"@std/assert": "npm:@jsr/std__assert@^0.226.0",
|
|
@@ -151,7 +153,7 @@
|
|
|
151
153
|
"tsx": "^4.19.4",
|
|
152
154
|
"typescript": "^5.9.3",
|
|
153
155
|
"wrangler": "^4.17.0",
|
|
154
|
-
"@fedify/vocab-tools": "^2.0.0-dev.
|
|
156
|
+
"@fedify/vocab-tools": "^2.0.0-dev.7+a392e496"
|
|
155
157
|
},
|
|
156
158
|
"scripts": {
|
|
157
159
|
"build": "deno task codegen && pnpm run --filter vocab-runtime build && pnpm run --filter vocab-tools build && tsdown",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
-
globalThis.addEventListener = () => {};
|
|
5
|
-
|
|
6
|
-
import "./lookup-yP6Lo5JV.js";
|
|
7
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CdPISvYD.js";
|
|
8
|
-
import "./client-pY7-3icS.js";
|
|
9
|
-
import "./types-C2XVl6gj.js";
|
|
10
|
-
import "./actor-DrFLTQdj.js";
|
|
11
|
-
import "./key-CrKmngwF.js";
|
|
12
|
-
import "./http-DO88HCOK.js";
|
|
13
|
-
import "./ld-Ckl2k3lF.js";
|
|
14
|
-
import "./owner-C8UEs7je.js";
|
|
15
|
-
import "./proof-CWKgvgzL.js";
|
|
16
|
-
import "./docloader-Buj0Y50A.js";
|
|
17
|
-
import "./kv-cache-DN9pfMBe.js";
|
|
18
|
-
import "./inbox-BwIgnk8R.js";
|
|
19
|
-
import "./builder-GG0LDRaK.js";
|
|
20
|
-
import "./collection-BzWsN9pB.js";
|
|
21
|
-
import "./keycache-CFv8xdnH.js";
|
|
22
|
-
import "./negotiation-C4nFufNk.js";
|
|
23
|
-
import "./retry-CfF8Gn4d.js";
|
|
24
|
-
import "./send-z5jueBCW.js";
|
|
25
|
-
|
|
26
|
-
export { FederationImpl };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const { Temporal } = require("@js-temporal/polyfill");
|
|
3
|
-
const { URLPattern } = require("urlpattern-polyfill");
|
|
4
|
-
|
|
5
|
-
require('./transformers-CoBS-oFG.cjs');
|
|
6
|
-
require('./lookup-D17ydBQd.cjs');
|
|
7
|
-
require('./actor-C6x8UgbE.cjs');
|
|
8
|
-
const require_middleware = require('./middleware-X0RaVmfv.cjs');
|
|
9
|
-
require('./http-CTi-owaL.cjs');
|
|
10
|
-
require('./proof-yc6sVqKg.cjs');
|
|
11
|
-
require('./types-CWgzGaqk.cjs');
|
|
12
|
-
require('./kv-cache-BbklA4EG.cjs');
|
|
13
|
-
require('./vocab-Hqae4yux.cjs');
|
|
14
|
-
|
|
15
|
-
exports.FederationImpl = require_middleware.FederationImpl;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
|
4
|
-
|
|
5
|
-
import "./transformers-BFT6d7J5.js";
|
|
6
|
-
import "./lookup-DrCNfWHm.js";
|
|
7
|
-
import "./actor-C76CDThG.js";
|
|
8
|
-
import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-Dv90Gwc-.js";
|
|
9
|
-
import "./http-ByZmUHwe.js";
|
|
10
|
-
import "./proof-CDW6KgLA.js";
|
|
11
|
-
import "./types-BtUjyi5y.js";
|
|
12
|
-
import "./kv-cache-CykGg2IP.js";
|
|
13
|
-
import "./vocab-B4wXNBv8.js";
|
|
14
|
-
|
|
15
|
-
export { FederationImpl };
|