@fedify/fedify 1.10.5 → 1.10.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/dist/{actor-CjkHF7Cj.cjs → actor-BGIAXtRd.cjs} +3112 -4674
- package/dist/{actor-Ch9BTg3N.js → actor-C-_2S5Mn.mjs} +8 -15
- package/dist/{actor-CQdxP8N-.js → actor-Cujbx4Zv.js} +1205 -2768
- package/dist/{actor-eeONG_sv.d.ts → actor-DXwwgFeR.d.ts} +3 -3
- package/dist/{actor-D190nbTD.d.cts → actor-DxvGbmjm.d.cts} +3 -3
- package/dist/{assert-MZs1qjMx.js → assert-DikXweDx.mjs} +5 -9
- package/dist/{assert_equals-DSbWqCm3.js → assert_equals-Ew3jOFa3.mjs} +55 -69
- package/dist/{assert_instance_of-DHz7EHNU.js → assert_instance_of-C4Ri6VuN.mjs} +5 -9
- package/dist/{assert_is_error-BPGph1Jx.js → assert_is_error-C50x8tnw.mjs} +5 -9
- package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals--wG9hV7u.mjs} +6 -13
- package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-CJC9ThS-.mjs} +6 -11
- package/dist/{assert_throws-BOO88avQ.js → assert_throws-BIL7gChy.mjs} +6 -10
- package/dist/{authdocloader-fR-Fqcpa.js → authdocloader-1Sk2bqFx.mjs} +9 -14
- package/dist/{authdocloader-COFZT9Wh.js → authdocloader-D4Y6iyTF.js} +8 -15
- package/dist/{authdocloader-zc5ibOmU.cjs → authdocloader-DQfruCir.cjs} +14 -22
- package/dist/{builder-YD0q32nG.js → builder-CZbrDRl7.mjs} +31 -40
- package/dist/{client-B3mQJNO7.d.ts → client-D7t26_op.d.ts} +2 -2
- package/dist/{client-BgCucCG7.js → client-Dyb8MI3u.mjs} +11 -15
- package/dist/{client-n6L4GtQL.d.cts → client-yc0Z0P6Y.d.cts} +2 -2
- package/dist/{collection-CSzG2j1P.js → collection-BD6-SZ6O.mjs} +7 -12
- package/dist/compat/mod.cjs +5 -8
- package/dist/compat/mod.d.cts +78 -12
- package/dist/compat/mod.d.ts +78 -12
- package/dist/compat/mod.js +4 -8
- package/dist/compat/transformers.test.mjs +62 -0
- package/dist/{context-Cr5DIxq_.d.ts → context-C6n2yrj0.d.ts} +33 -26
- package/dist/{context-WJoO0SQs.d.cts → context-PfghnHYj.d.cts} +33 -26
- package/dist/{denokv-D0nfNQ1x.js → denokv-NJPMXyK0.mjs} +22 -11
- package/dist/{docloader-BucCRHZI.d.ts → docloader-D7k5A9JP.d.ts} +2 -7
- package/dist/{docloader-ChxNLZAA.d.cts → docloader-DbM94pGY.d.cts} +2 -7
- package/dist/{docloader-BETPdM09.js → docloader-Dtaju6oI.js} +18 -156
- package/dist/{docloader-irBWMSOZ.cjs → docloader-Q3DfzuUi.cjs} +116 -220
- package/dist/{esm-iGH0sRsE.js → esm-DOJg552-.mjs} +49 -85
- package/dist/federation/{builder.test.js → builder.test.mjs} +22 -41
- package/dist/federation/collection.test.d.mts +2 -0
- package/dist/federation/collection.test.mjs +21 -0
- package/dist/federation/handler.test.d.mts +2 -0
- package/dist/federation/{handler.test.js → handler.test.mjs} +29 -58
- package/dist/federation/idempotency.test.d.mts +2 -0
- package/dist/federation/{idempotency.test.js → idempotency.test.mjs} +29 -59
- package/dist/federation/inbox.test.d.mts +2 -0
- package/dist/federation/{inbox.test.js → inbox.test.mjs} +10 -15
- package/dist/federation/keycache.test.d.mts +2 -0
- package/dist/federation/{keycache.test.js → keycache.test.mjs} +13 -18
- package/dist/federation/kv.test.d.mts +2 -0
- package/dist/federation/{kv.test.js → kv.test.mjs} +12 -26
- package/dist/federation/middleware.test.d.mts +2 -0
- package/dist/federation/{middleware.test.js → middleware.test.mjs} +182 -197
- package/dist/federation/mod.cjs +245 -21
- package/dist/federation/mod.d.cts +4 -13
- package/dist/federation/mod.d.ts +4 -13
- package/dist/federation/mod.js +240 -18
- package/dist/federation/mq.test.d.mts +2 -0
- package/dist/federation/{mq.test.js → mq.test.mjs} +23 -38
- package/dist/federation/retry.test.d.mts +2 -0
- package/dist/federation/{retry.test.js → retry.test.mjs} +9 -14
- package/dist/federation/router.test.d.mts +2 -0
- package/dist/federation/{router.test.js → router.test.mjs} +12 -19
- package/dist/federation/send.test.d.mts +2 -0
- package/dist/federation/{send.test.js → send.test.mjs} +24 -34
- package/dist/{http-PgdBoDIj.js → http-BRwSVBn1.mjs} +16 -32
- package/dist/{http-DS9z_HzB.d.ts → http-BYXQvoZQ.d.ts} +5 -9
- package/dist/{http-C_1RU1U_.d.cts → http-CMzg-A9P.d.cts} +5 -9
- package/dist/{http-CQAqR_vx.cjs → http-DCrun8ql.cjs} +51 -68
- package/dist/{http-CxiIW4rD.js → http-DRnRwr3i.js} +17 -33
- package/dist/{inbox-DcDIqTbR.js → inbox-pD1nbb_5.mjs} +17 -25
- package/dist/key-Cmbps6xt.cjs +4 -0
- package/dist/{key-dNFkodH5.cjs → key-DEYIxAFs.cjs} +42 -50
- package/dist/key-DMO0TgTa.mjs +5 -0
- package/dist/{key-I-ibyaZH.js → key-DdL5Oc59.mjs} +12 -18
- package/dist/{key-Cg0kO4dA.js → key-vIzWPiil.js} +19 -19
- package/dist/{keycache-hSs_XFSb.js → keycache-BVR9f06Y.mjs} +6 -10
- package/dist/{keys-CElJez9H.js → keys-Co-0pK8a.mjs} +6 -10
- package/dist/{kv-DipCBaw2.d.ts → kv-C6UC8M9S.d.ts} +1 -1
- package/dist/{kv-BqEOXcZv.d.cts → kv-ClC9WJh5.d.cts} +1 -1
- package/dist/{kv-QzKcOQgP.js → kv-OuT2IU64.mjs} +6 -10
- package/dist/{ld-b16r91YS.js → ld-BFaDk5gX.mjs} +17 -31
- package/dist/{lookup-CySNcNcC.js → lookup-CMYXdjVH.mjs} +8 -17
- package/dist/{lookup-Bfq9Jpm0.cjs → lookup-CZGJqSjm.cjs} +16 -23
- package/dist/{lookup-CiSAeWJl.js → lookup-jlmCTRsO.js} +5 -11
- package/dist/middleware-BWlZ-wms.cjs +4 -0
- package/dist/{middleware-C5emnCh-.js → middleware-BXD5WJbj.mjs} +276 -321
- package/dist/{middleware-Dxo56yae.cjs → middleware-BhMQrJXH.cjs} +494 -547
- package/dist/{middleware-Bs4xDuXR.js → middleware-CmA2E9Bu.js} +349 -393
- package/dist/middleware-H3Ce7yn3.mjs +5 -0
- package/dist/{mod-D5rfgGFE.d.cts → mod-BQ3lrlXU.d.cts} +3 -3
- package/dist/{mod-Dz5Y15Uy.d.cts → mod-C72agZIN.d.cts} +4 -4
- package/dist/{mod-CxMBb_dd.d.cts → mod-CDbqB60V.d.cts} +2 -2
- package/dist/{mod-DS4kJskR.d.ts → mod-Lj0W1nnG.d.ts} +3 -3
- package/dist/{mod-BZfdiPBo.d.ts → mod-_HNKaczF.d.ts} +4 -4
- package/dist/{mod-ChbckRnC.d.ts → mod-lHd-Zdd_.d.ts} +2 -2
- package/dist/mod.cjs +31 -33
- package/dist/mod.d.cts +15 -17
- package/dist/mod.d.ts +15 -17
- package/dist/mod.js +20 -23
- package/dist/{mq-B7R1Q-M5.d.cts → mq-CrItclRD.d.cts} +1 -1
- package/dist/{mq-CRGm1e_F.d.ts → mq-D_ZZRdby.d.ts} +1 -1
- package/dist/nodeinfo/client.test.d.mts +2 -0
- package/dist/nodeinfo/{client.test.js → client.test.mjs} +23 -45
- package/dist/nodeinfo/handler.test.d.mts +2 -0
- package/dist/nodeinfo/{handler.test.js → handler.test.mjs} +14 -43
- package/dist/nodeinfo/mod.cjs +5 -9
- package/dist/nodeinfo/mod.d.cts +2 -5
- package/dist/nodeinfo/mod.d.ts +2 -5
- package/dist/nodeinfo/mod.js +4 -9
- package/dist/nodeinfo/semver.test.d.mts +2 -0
- package/dist/nodeinfo/{semver.test.js → semver.test.mjs} +28 -51
- package/dist/nodeinfo/types.test.d.mts +2 -0
- package/dist/nodeinfo/{types.test.js → types.test.mjs} +10 -21
- package/dist/otel/exporter.test.d.mts +2 -0
- package/dist/otel/{exporter.test.js → exporter.test.mjs} +122 -180
- package/dist/otel/mod.cjs +16 -22
- package/dist/otel/mod.d.cts +2 -2
- package/dist/otel/mod.d.ts +2 -2
- package/dist/otel/mod.js +9 -16
- package/dist/{otel-Chy5T2Xh.js → otel-0v4Zy01l.mjs} +5 -10
- package/dist/{owner-AcrG3Xz1.d.cts → owner-0yNTyGMb.d.cts} +4 -4
- package/dist/{owner-Bs-sPbHX.js → owner-CNdS8zxf.mjs} +11 -16
- package/dist/{owner-8NMhXwJd.d.ts → owner-CPEbNpnZ.d.ts} +4 -4
- package/dist/{proof-SgRikE_Y.js → proof-Co7YmDpv.mjs} +20 -32
- package/dist/{proof-flD2DeA-.js → proof-DHPbi_Mx.js} +34 -60
- package/dist/{proof-BvQS195q.cjs → proof-DcPdtve2.cjs} +115 -140
- package/dist/{retry-D4GJ670a.js → retry-Ddbq3AcK.mjs} +4 -7
- package/dist/rolldown-runtime-C7fyD9f2.js +15 -0
- package/dist/runtime/authdocloader.test.d.mts +2 -0
- package/dist/runtime/{authdocloader.test.js → authdocloader.test.mjs} +16 -28
- package/dist/runtime/docloader.test.d.mts +2 -0
- package/dist/runtime/{docloader.test.js → docloader.test.mjs} +55 -77
- package/dist/runtime/key.test.d.mts +2 -0
- package/dist/runtime/{key.test.js → key.test.mjs} +27 -57
- package/dist/runtime/langstr.test.d.mts +2 -0
- package/dist/runtime/{langstr.test.js → langstr.test.mjs} +9 -19
- package/dist/runtime/link.test.d.mts +2 -0
- package/dist/runtime/{link.test.js → link.test.mjs} +7 -11
- package/dist/runtime/mod.cjs +7 -13
- package/dist/runtime/mod.d.cts +103 -6
- package/dist/runtime/mod.d.ts +103 -6
- package/dist/runtime/mod.js +6 -13
- package/dist/runtime/multibase/multibase.test.d.mts +2 -0
- package/dist/runtime/multibase/{multibase.test.js → multibase.test.mjs} +16 -33
- package/dist/runtime/url.test.d.mts +2 -0
- package/dist/runtime/{url.test.js → url.test.mjs} +10 -15
- package/dist/{semver-dArNLkR9.js → semver-CgD82xxg.mjs} +13 -28
- package/dist/{send-C0gFHa2i.js → send-BRCWNcMa.mjs} +7 -12
- package/dist/sig/http.test.d.mts +2 -0
- package/dist/sig/{http.test.js → http.test.mjs} +119 -203
- package/dist/sig/key.test.d.mts +2 -0
- package/dist/sig/{key.test.js → key.test.mjs} +13 -22
- package/dist/sig/ld.test.d.mts +2 -0
- package/dist/sig/{ld.test.js → ld.test.mjs} +24 -39
- package/dist/sig/mod.cjs +7 -13
- package/dist/sig/mod.d.cts +3 -7
- package/dist/sig/mod.d.ts +3 -7
- package/dist/sig/mod.js +6 -13
- package/dist/sig/owner.test.d.mts +2 -0
- package/dist/sig/{owner.test.js → owner.test.mjs} +23 -39
- package/dist/sig/proof.test.d.mts +2 -0
- package/dist/sig/{proof.test.js → proof.test.mjs} +18 -31
- package/dist/{std__assert-X-_kMxKM.js → std__assert-2v7gYiZp.mjs} +13 -24
- package/dist/testing/docloader.test.d.mts +2 -0
- package/dist/testing/docloader.test.mjs +12 -0
- package/dist/testing/{mod.d.ts → mod.d.mts} +371 -541
- package/dist/testing/mod.mjs +5 -0
- package/dist/{testing-C1GIraJh.js → testing-BLIh1cXz.mjs} +27 -35
- package/dist/{transformers-BFT6d7J5.js → transformers-BV4OeK9o.js} +3 -7
- package/dist/{transformers-CoBS-oFG.cjs → transformers-CLtJ5H8o.cjs} +20 -25
- package/dist/{types-BgUCCngg.cjs → types-B34v-m2N.cjs} +45 -64
- package/dist/{types-BIgY6c-l.js → types-CAnkAQGM.mjs} +5 -9
- package/dist/{types-Bu-epI-z.js → types-CXZk86AG.js} +18 -36
- package/dist/vocab/actor.test.d.mts +2 -0
- package/dist/vocab/{actor.test.js → actor.test.mjs} +308 -550
- package/dist/vocab/cjs.test.d.mts +2 -0
- package/dist/vocab/cjs.test.mjs +14 -0
- package/dist/vocab/lookup.test.d.mts +2 -0
- package/dist/vocab/{lookup.test.js → lookup.test.mjs} +34 -51
- package/dist/vocab/mod.cjs +256 -16
- package/dist/vocab/mod.d.cts +3 -5
- package/dist/vocab/mod.d.ts +3 -5
- package/dist/vocab/mod.js +249 -10
- package/dist/vocab/type.test.d.mts +2 -0
- package/dist/vocab/type.test.mjs +16 -0
- package/dist/vocab/vocab.test.d.mts +2 -0
- package/dist/vocab/{vocab.test.js → vocab.test.mjs} +178 -311
- package/dist/{vocab-BASuuzcJ.d.ts → vocab-DaT4UsJF.d.ts} +2 -2
- package/dist/{vocab-DPMmFPJ1.d.cts → vocab-DnlmNyXi.d.cts} +2 -2
- package/dist/{type-DUhon7qK.js → vocab-rT_94Pke.mjs} +1178 -2876
- package/dist/webfinger/handler.test.d.mts +2 -0
- package/dist/webfinger/{handler.test.js → handler.test.mjs} +23 -56
- package/dist/webfinger/lookup.test.d.mts +2 -0
- package/dist/webfinger/{lookup.test.js → lookup.test.mjs} +13 -27
- package/dist/webfinger/mod.cjs +5 -9
- package/dist/webfinger/mod.d.cts +1 -3
- package/dist/webfinger/mod.d.ts +1 -3
- package/dist/webfinger/mod.js +4 -9
- package/dist/x/cfworkers.cjs +25 -14
- package/dist/x/cfworkers.d.cts +33 -6
- package/dist/x/cfworkers.d.ts +33 -6
- package/dist/x/cfworkers.js +22 -12
- package/dist/x/cfworkers.test.d.mts +2 -0
- package/dist/x/{cfworkers.test.js → cfworkers.test.mjs} +28 -26
- package/dist/x/hono.cjs +25 -14
- package/dist/x/hono.d.cts +1 -11
- package/dist/x/hono.d.ts +1 -11
- package/dist/x/hono.js +22 -12
- package/dist/x/sveltekit.cjs +23 -12
- package/dist/x/sveltekit.d.cts +1 -11
- package/dist/x/sveltekit.d.ts +1 -11
- package/dist/x/sveltekit.js +20 -10
- package/package.json +2 -2
- package/dist/chunk-DqRYRqnO.cjs +0 -34
- package/dist/compat/transformers.test.d.ts +0 -3
- package/dist/compat/transformers.test.js +0 -86
- package/dist/compat-DmDDELst.cjs +0 -4
- package/dist/compat-nxUqe4Z-.js +0 -4
- package/dist/federation/builder.test.d.ts +0 -3
- package/dist/federation/collection.test.d.ts +0 -3
- package/dist/federation/collection.test.js +0 -35
- package/dist/federation/handler.test.d.ts +0 -3
- package/dist/federation/idempotency.test.d.ts +0 -3
- package/dist/federation/inbox.test.d.ts +0 -3
- package/dist/federation/keycache.test.d.ts +0 -3
- package/dist/federation/kv.test.d.ts +0 -3
- package/dist/federation/middleware.test.d.ts +0 -3
- package/dist/federation/mq.test.d.ts +0 -3
- package/dist/federation/retry.test.d.ts +0 -3
- package/dist/federation/router.test.d.ts +0 -3
- package/dist/federation/send.test.d.ts +0 -3
- package/dist/federation-C15gGOh1.cjs +0 -266
- package/dist/federation-K-xsO03l.js +0 -248
- package/dist/key-Bnod5wJl.js +0 -10
- package/dist/key-C6swTX71.js +0 -10
- package/dist/key-_Uq8gkmM.cjs +0 -10
- package/dist/middleware-BWsOtDIF.cjs +0 -17
- package/dist/middleware-Bm4bJzjg.js +0 -26
- package/dist/middleware-BvODpE_U.js +0 -17
- package/dist/mod-C2tOeRkN.d.cts +0 -1
- package/dist/mod-CD7gfdq3.d.ts +0 -104
- package/dist/mod-CnULG6Aa.d.ts +0 -82
- package/dist/mod-FZd39qVq.d.cts +0 -1
- package/dist/mod-JUhOKMHj.d.cts +0 -102
- package/dist/mod-OQfb33eH.d.cts +0 -80
- package/dist/nodeinfo/client.test.d.ts +0 -3
- package/dist/nodeinfo/handler.test.d.ts +0 -3
- package/dist/nodeinfo/semver.test.d.ts +0 -3
- package/dist/nodeinfo/types.test.d.ts +0 -3
- package/dist/nodeinfo-Co9lJrWl.cjs +0 -4
- package/dist/nodeinfo-DfycQ8Wf.js +0 -4
- package/dist/otel/exporter.test.d.ts +0 -3
- package/dist/runtime/authdocloader.test.d.ts +0 -3
- package/dist/runtime/docloader.test.d.ts +0 -3
- package/dist/runtime/key.test.d.ts +0 -3
- package/dist/runtime/langstr.test.d.ts +0 -3
- package/dist/runtime/link.test.d.ts +0 -3
- package/dist/runtime/multibase/multibase.test.d.ts +0 -3
- package/dist/runtime/url.test.d.ts +0 -3
- package/dist/runtime-C58AJWSv.cjs +0 -4
- package/dist/runtime-DPYEDf-o.js +0 -4
- package/dist/sig/http.test.d.ts +0 -3
- package/dist/sig/key.test.d.ts +0 -3
- package/dist/sig/ld.test.d.ts +0 -3
- package/dist/sig/owner.test.d.ts +0 -3
- package/dist/sig/proof.test.d.ts +0 -3
- package/dist/sig-ByHXzqUi.cjs +0 -4
- package/dist/sig-Cj3tk-ig.js +0 -4
- package/dist/testing/docloader.test.d.ts +0 -3
- package/dist/testing/docloader.test.js +0 -24
- package/dist/testing/mod.js +0 -10
- package/dist/vocab/actor.test.d.ts +0 -3
- package/dist/vocab/lookup.test.d.ts +0 -3
- package/dist/vocab/type.test.d.ts +0 -3
- package/dist/vocab/type.test.js +0 -25
- package/dist/vocab/vocab.test.d.ts +0 -3
- package/dist/vocab-5i6DEIi6.cjs +0 -294
- package/dist/vocab-CBavAdew.js +0 -258
- package/dist/webfinger/handler.test.d.ts +0 -3
- package/dist/webfinger/lookup.test.d.ts +0 -3
- package/dist/webfinger-BjOEdFPs.cjs +0 -4
- package/dist/webfinger-De_bU0iE.js +0 -4
- package/dist/x/cfworkers.test.d.ts +0 -3
- /package/dist/{mod-1pDWKvUL.d.ts → compat/transformers.test.d.mts} +0 -0
- /package/dist/{mod-g0xFzAP9.d.ts → federation/builder.test.d.mts} +0 -0
|
@@ -1,141 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
+
//#region \0rolldown/runtime.js
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
21
|
+
value: mod,
|
|
22
|
+
enumerable: true
|
|
23
|
+
}) : target, mod));
|
|
24
|
+
//#endregion
|
|
25
|
+
let _logtape_logtape = require("@logtape/logtape");
|
|
26
|
+
let _opentelemetry_api = require("@opentelemetry/api");
|
|
27
|
+
let node_process = require("node:process");
|
|
28
|
+
node_process = __toESM(node_process);
|
|
29
|
+
let node_dns_promises = require("node:dns/promises");
|
|
30
|
+
let node_net = require("node:net");
|
|
12
31
|
//#region deno.json
|
|
13
32
|
var name = "@fedify/fedify";
|
|
14
|
-
var version = "1.10.
|
|
15
|
-
var license = "MIT";
|
|
16
|
-
var exports$1 = {
|
|
17
|
-
".": "./src/mod.ts",
|
|
18
|
-
"./compat": "./src/compat/mod.ts",
|
|
19
|
-
"./federation": "./src/federation/mod.ts",
|
|
20
|
-
"./nodeinfo": "./src/nodeinfo/mod.ts",
|
|
21
|
-
"./runtime": "./src/runtime/mod.ts",
|
|
22
|
-
"./sig": "./src/sig/mod.ts",
|
|
23
|
-
"./testing": "./src/testing/mod.ts",
|
|
24
|
-
"./vocab": "./src/vocab/mod.ts",
|
|
25
|
-
"./webfinger": "./src/webfinger/mod.ts",
|
|
26
|
-
"./otel": "./src/otel/mod.ts",
|
|
27
|
-
"./x/cfworkers": "./src/x/cfworkers.ts",
|
|
28
|
-
"./x/denokv": "./src/x/denokv.ts",
|
|
29
|
-
"./x/fresh": "./src/x/fresh.ts",
|
|
30
|
-
"./x/hono": "./src/x/hono.ts",
|
|
31
|
-
"./x/sveltekit": "./src/x/sveltekit.ts"
|
|
32
|
-
};
|
|
33
|
-
var imports = {
|
|
34
|
-
"@cfworker/json-schema": "npm:@cfworker/json-schema@^4.1.1",
|
|
35
|
-
"@multiformats/base-x": "npm:@multiformats/base-x@^4.0.1",
|
|
36
|
-
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
|
|
37
|
-
"@opentelemetry/core": "npm:@opentelemetry/core@^1.30.1",
|
|
38
|
-
"@opentelemetry/sdk-trace-base": "npm:@opentelemetry/sdk-trace-base@^1.30.1",
|
|
39
|
-
"@opentelemetry/semantic-conventions": "npm:@opentelemetry/semantic-conventions@^1.27.0",
|
|
40
|
-
"@phensley/language-tag": "npm:@phensley/language-tag@^1.9.0",
|
|
41
|
-
"@std/assert": "jsr:@std/assert@^0.226.0",
|
|
42
|
-
"@std/testing": "jsr:@std/testing@^0.224.0",
|
|
43
|
-
"@std/url": "jsr:@std/url@^0.225.1",
|
|
44
|
-
"asn1js": "npm:asn1js@^3.0.5",
|
|
45
|
-
"byte-encodings": "npm:byte-encodings@^1.0.11",
|
|
46
|
-
"es-toolkit": "jsr:@es-toolkit/es-toolkit@^1.39.5",
|
|
47
|
-
"fast-check": "npm:fast-check@^3.22.0",
|
|
48
|
-
"fetch-mock": "npm:fetch-mock@^12.5.2",
|
|
49
|
-
"json-canon": "npm:json-canon@^1.0.1",
|
|
50
|
-
"jsonld": "npm:jsonld@^9.0.0",
|
|
51
|
-
"multicodec": "npm:multicodec@^3.2.1",
|
|
52
|
-
"pkijs": "npm:pkijs@^3.2.4",
|
|
53
|
-
"structured-field-values": "npm:structured-field-values@^2.0.4",
|
|
54
|
-
"uri-template-router": "npm:uri-template-router@^1.0.0",
|
|
55
|
-
"url-template": "npm:url-template@^3.1.1"
|
|
56
|
-
};
|
|
57
|
-
var include = ["src/vocab/vocab.ts"];
|
|
58
|
-
var exclude = [
|
|
59
|
-
".test-report.xml",
|
|
60
|
-
"apidoc/",
|
|
61
|
-
"dist/",
|
|
62
|
-
"node_modules/",
|
|
63
|
-
"npm/",
|
|
64
|
-
"pnpm-lock.yaml",
|
|
65
|
-
"src/cfworkers/dist/",
|
|
66
|
-
"src/cfworkers/fixtures/",
|
|
67
|
-
"src/cfworkers/imports.ts",
|
|
68
|
-
"src/cfworkers/README.md",
|
|
69
|
-
"src/cfworkers/server.ts",
|
|
70
|
-
"src/cfworkers/server.js",
|
|
71
|
-
"src/cfworkers/server.js.map",
|
|
72
|
-
"src/codegen/schema.yaml",
|
|
73
|
-
"src/vocab/*.yaml",
|
|
74
|
-
"!src/vocab/vocab.ts"
|
|
75
|
-
];
|
|
76
|
-
var tasks = {
|
|
77
|
-
"codegen": "GENPATH=vocab-$(deno eval \"console.log(crypto.randomUUID());\").ts && deno run --allow-read --allow-write --check src/codegen/main.ts src/vocab/ ../runtime/ src/vocab/$GENPATH && deno fmt src/vocab/$GENPATH && mv src/vocab/$GENPATH src/vocab/vocab.ts && deno cache src/vocab/vocab.ts && deno check src/vocab/vocab.ts",
|
|
78
|
-
"cache": {
|
|
79
|
-
"command": "deno cache src/mod.ts",
|
|
80
|
-
"dependencies": ["codegen"]
|
|
81
|
-
},
|
|
82
|
-
"check": {
|
|
83
|
-
"command": "deno fmt --check && deno lint && deno check src/**/*.ts",
|
|
84
|
-
"dependencies": ["codegen"]
|
|
85
|
-
},
|
|
86
|
-
"test": {
|
|
87
|
-
"command": "deno test --check --doc --allow-read --allow-write --allow-env --unstable-kv --trace-leaks --parallel",
|
|
88
|
-
"dependencies": ["codegen"]
|
|
89
|
-
},
|
|
90
|
-
"coverage": "deno task test --clean --coverage && deno coverage --html coverage",
|
|
91
|
-
"bench": {
|
|
92
|
-
"command": "deno bench --allow-read --allow-write --allow-net --allow-env --allow-run --unstable-kv",
|
|
93
|
-
"dependencies": ["codegen"]
|
|
94
|
-
},
|
|
95
|
-
"apidoc": {
|
|
96
|
-
"command": "deno doc --html --name=Fedify --output=apidoc/ src/mod.ts",
|
|
97
|
-
"dependencies": ["codegen"]
|
|
98
|
-
},
|
|
99
|
-
"publish": {
|
|
100
|
-
"command": "deno publish",
|
|
101
|
-
"dependencies": ["codegen"]
|
|
102
|
-
},
|
|
103
|
-
"pnpm:install": "pnpm install",
|
|
104
|
-
"pnpm:build": {
|
|
105
|
-
"command": "pnpm exec tsdown",
|
|
106
|
-
"dependencies": ["codegen", "pnpm:install"]
|
|
107
|
-
},
|
|
108
|
-
"test:node": {
|
|
109
|
-
"command": "cd dist/ && node --test",
|
|
110
|
-
"dependencies": ["pnpm:build"]
|
|
111
|
-
},
|
|
112
|
-
"test:bun": {
|
|
113
|
-
"command": "cd dist/ && bun test --timeout 60000",
|
|
114
|
-
"dependencies": ["pnpm:build"]
|
|
115
|
-
},
|
|
116
|
-
"test:cfworkers": {
|
|
117
|
-
"command": "pnpm exec wrangler deploy --dry-run --outdir src/cfworkers && node --import=tsx src/cfworkers/client.ts",
|
|
118
|
-
"dependencies": ["pnpm:build"]
|
|
119
|
-
},
|
|
120
|
-
"test-all": { "dependencies": [
|
|
121
|
-
"check",
|
|
122
|
-
"test",
|
|
123
|
-
"test:node",
|
|
124
|
-
"test:bun",
|
|
125
|
-
"test:cfworkers"
|
|
126
|
-
] }
|
|
127
|
-
};
|
|
128
|
-
var deno_default = {
|
|
129
|
-
name,
|
|
130
|
-
version,
|
|
131
|
-
license,
|
|
132
|
-
exports: exports$1,
|
|
133
|
-
imports,
|
|
134
|
-
include,
|
|
135
|
-
exclude,
|
|
136
|
-
tasks
|
|
137
|
-
};
|
|
138
|
-
|
|
33
|
+
var version = "1.10.7";
|
|
139
34
|
//#endregion
|
|
140
35
|
//#region src/runtime/contexts.ts
|
|
141
36
|
const preloadedContexts = {
|
|
@@ -4358,8 +4253,6 @@ const preloadedContexts = {
|
|
|
4358
4253
|
}
|
|
4359
4254
|
} }
|
|
4360
4255
|
};
|
|
4361
|
-
var contexts_default = preloadedContexts;
|
|
4362
|
-
|
|
4363
4256
|
//#endregion
|
|
4364
4257
|
//#region src/runtime/link.ts
|
|
4365
4258
|
const parametersNeedLowerCase = ["rel", "type"];
|
|
@@ -4541,7 +4434,6 @@ var HttpHeaderLink = class HttpHeaderLink {
|
|
|
4541
4434
|
return new this(...inputs).toString();
|
|
4542
4435
|
}
|
|
4543
4436
|
};
|
|
4544
|
-
|
|
4545
4437
|
//#endregion
|
|
4546
4438
|
//#region src/runtime/url.ts
|
|
4547
4439
|
var UrlError = class extends Error {
|
|
@@ -4560,8 +4452,7 @@ async function validatePublicUrl(url) {
|
|
|
4560
4452
|
if (hostname.startsWith("[") && hostname.endsWith("]")) hostname = hostname.substring(1, hostname.length - 2);
|
|
4561
4453
|
if (hostname === "localhost") throw new UrlError("Localhost is not allowed");
|
|
4562
4454
|
if ("Deno" in globalThis && !(0, node_net.isIP)(hostname)) {
|
|
4563
|
-
|
|
4564
|
-
if (netPermission.state !== "granted") return;
|
|
4455
|
+
if ((await Deno.permissions.query({ name: "net" })).state !== "granted") return;
|
|
4565
4456
|
}
|
|
4566
4457
|
if ("Bun" in globalThis) {
|
|
4567
4458
|
if (hostname === "example.com" || hostname.endsWith(".example.com")) return;
|
|
@@ -4597,13 +4488,11 @@ function expandIPv6Address(address) {
|
|
|
4597
4488
|
if (address.startsWith("::")) address = "0000" + address;
|
|
4598
4489
|
if (address.endsWith("::")) address = address + "0000";
|
|
4599
4490
|
address = address.replace("::", ":0000".repeat(8 - (address.match(/:/g) || []).length) + ":");
|
|
4600
|
-
|
|
4601
|
-
return parts.map((part) => part.padStart(4, "0")).join(":");
|
|
4491
|
+
return address.split(":").map((part) => part.padStart(4, "0")).join(":");
|
|
4602
4492
|
}
|
|
4603
|
-
|
|
4604
4493
|
//#endregion
|
|
4605
4494
|
//#region src/runtime/docloader.ts
|
|
4606
|
-
const logger = (0,
|
|
4495
|
+
const logger = (0, _logtape_logtape.getLogger)([
|
|
4607
4496
|
"fedify",
|
|
4608
4497
|
"runtime",
|
|
4609
4498
|
"docloader"
|
|
@@ -4666,7 +4555,7 @@ function logRequest(request) {
|
|
|
4666
4555
|
* @throws {FetchError} If the response is not OK.
|
|
4667
4556
|
* @internal
|
|
4668
4557
|
*/
|
|
4669
|
-
async function getRemoteDocument(url, response, fetch
|
|
4558
|
+
async function getRemoteDocument(url, response, fetch) {
|
|
4670
4559
|
const documentUrl = response.url === "" ? url : response.url;
|
|
4671
4560
|
const docUrl = new URL(documentUrl);
|
|
4672
4561
|
if (!response.ok) {
|
|
@@ -4704,7 +4593,7 @@ async function getRemoteDocument(url, response, fetch$1) {
|
|
|
4704
4593
|
alternateUrl: altUri.href,
|
|
4705
4594
|
url: documentUrl
|
|
4706
4595
|
});
|
|
4707
|
-
return await fetch
|
|
4596
|
+
return await fetch(altUri.href);
|
|
4708
4597
|
}
|
|
4709
4598
|
}
|
|
4710
4599
|
}
|
|
@@ -4730,15 +4619,14 @@ async function getRemoteDocument(url, response, fetch$1) {
|
|
|
4730
4619
|
attrPattern.lastIndex = 0;
|
|
4731
4620
|
while ((attrMatch = attrPattern.exec(tagContent)) !== null) {
|
|
4732
4621
|
const key = attrMatch[1].toLowerCase();
|
|
4733
|
-
|
|
4734
|
-
attribs[key] = value;
|
|
4622
|
+
attribs[key] = attrMatch[2] ?? attrMatch[3] ?? attrMatch[4] ?? "";
|
|
4735
4623
|
}
|
|
4736
4624
|
if (attribs.rel === "alternate" && "type" in attribs && (attribs.type === "application/activity+json" || attribs.type === "application/ld+json" || attribs.type.startsWith("application/ld+json;")) && "href" in attribs && new URL(attribs.href, docUrl).href !== docUrl.href) {
|
|
4737
4625
|
logger.debug("Found alternate document: {alternateUrl} from {url}", {
|
|
4738
4626
|
alternateUrl: attribs.href,
|
|
4739
4627
|
url: documentUrl
|
|
4740
4628
|
});
|
|
4741
|
-
return await fetch
|
|
4629
|
+
return await fetch(new URL(attribs.href, docUrl).href);
|
|
4742
4630
|
}
|
|
4743
4631
|
}
|
|
4744
4632
|
document = JSON.parse(html);
|
|
@@ -4773,16 +4661,15 @@ async function getRemoteDocument(url, response, fetch$1) {
|
|
|
4773
4661
|
* @since 1.3.0
|
|
4774
4662
|
*/
|
|
4775
4663
|
function getDocumentLoader({ allowPrivateAddress, skipPreloadedContexts, userAgent } = {}) {
|
|
4776
|
-
const
|
|
4777
|
-
const tracer = tracerProvider.getTracer(deno_default.name, deno_default.version);
|
|
4664
|
+
const tracer = _opentelemetry_api.trace.getTracerProvider().getTracer(name, version);
|
|
4778
4665
|
async function load(url, options, redirected = 0, visited = /* @__PURE__ */ new Set()) {
|
|
4779
4666
|
options?.signal?.throwIfAborted();
|
|
4780
4667
|
const currentUrl = new URL(url).href;
|
|
4781
|
-
if (!skipPreloadedContexts && currentUrl in
|
|
4668
|
+
if (!skipPreloadedContexts && currentUrl in preloadedContexts) {
|
|
4782
4669
|
logger.debug("Using preloaded context: {url}.", { url: currentUrl });
|
|
4783
4670
|
return {
|
|
4784
4671
|
contextUrl: null,
|
|
4785
|
-
document:
|
|
4672
|
+
document: preloadedContexts[currentUrl],
|
|
4786
4673
|
documentUrl: currentUrl
|
|
4787
4674
|
};
|
|
4788
4675
|
}
|
|
@@ -4797,7 +4684,7 @@ function getDocumentLoader({ allowPrivateAddress, skipPreloadedContexts, userAge
|
|
|
4797
4684
|
}
|
|
4798
4685
|
visited.add(currentUrl);
|
|
4799
4686
|
return await tracer.startActiveSpan("activitypub.fetch_document", {
|
|
4800
|
-
kind:
|
|
4687
|
+
kind: _opentelemetry_api.SpanKind.CLIENT,
|
|
4801
4688
|
attributes: { "url.full": currentUrl }
|
|
4802
4689
|
}, async (span) => {
|
|
4803
4690
|
try {
|
|
@@ -4834,7 +4721,7 @@ function getDocumentLoader({ allowPrivateAddress, skipPreloadedContexts, userAge
|
|
|
4834
4721
|
} catch (error) {
|
|
4835
4722
|
span.recordException(error);
|
|
4836
4723
|
span.setStatus({
|
|
4837
|
-
code:
|
|
4724
|
+
code: _opentelemetry_api.SpanStatusCode.ERROR,
|
|
4838
4725
|
message: String(error)
|
|
4839
4726
|
});
|
|
4840
4727
|
throw error;
|
|
@@ -4850,8 +4737,7 @@ const _fetchDocumentLoader_allowPrivateAddress = getDocumentLoader({ allowPrivat
|
|
|
4850
4737
|
function fetchDocumentLoader(url, arg = false) {
|
|
4851
4738
|
const allowPrivateAddress = typeof arg === "boolean" ? arg : false;
|
|
4852
4739
|
logger.warn("fetchDocumentLoader() function is deprecated. Use getDocumentLoader() function instead.");
|
|
4853
|
-
|
|
4854
|
-
return loader(url);
|
|
4740
|
+
return (allowPrivateAddress ? _fetchDocumentLoader_allowPrivateAddress : _fetchDocumentLoader)(url);
|
|
4855
4741
|
}
|
|
4856
4742
|
/**
|
|
4857
4743
|
* Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
|
|
@@ -4877,11 +4763,11 @@ function kvCache({ loader, kv, prefix, rules }) {
|
|
|
4877
4763
|
return null;
|
|
4878
4764
|
}
|
|
4879
4765
|
return async (url, options) => {
|
|
4880
|
-
if (url in
|
|
4766
|
+
if (url in preloadedContexts) {
|
|
4881
4767
|
logger.debug("Using preloaded context: {url}.", { url });
|
|
4882
4768
|
return {
|
|
4883
4769
|
contextUrl: null,
|
|
4884
|
-
document:
|
|
4770
|
+
document: preloadedContexts[url],
|
|
4885
4771
|
documentUrl: url
|
|
4886
4772
|
};
|
|
4887
4773
|
}
|
|
@@ -4919,79 +4805,89 @@ function kvCache({ loader, kv, prefix, rules }) {
|
|
|
4919
4805
|
* @since 1.3.0
|
|
4920
4806
|
*/
|
|
4921
4807
|
function getUserAgent({ software, url } = {}) {
|
|
4922
|
-
const fedify = `Fedify/${
|
|
4808
|
+
const fedify = `Fedify/${version}`;
|
|
4923
4809
|
const runtime = globalThis.Deno?.version?.deno != null ? `Deno/${Deno.version.deno}` : globalThis.process?.versions?.bun != null ? `Bun/${node_process.default.versions.bun}` : "navigator" in globalThis && navigator.userAgent === "Cloudflare-Workers" ? navigator.userAgent : globalThis.process?.versions?.node != null ? `Node.js/${node_process.default.versions.node}` : null;
|
|
4924
4810
|
const userAgent = software == null ? [fedify] : [software, fedify];
|
|
4925
4811
|
if (runtime != null) userAgent.push(runtime);
|
|
4926
4812
|
if (url != null) userAgent.push(`+${url.toString()}`);
|
|
4927
|
-
|
|
4928
|
-
return `${first} (${userAgent.join("; ")})`;
|
|
4813
|
+
return `${userAgent.shift()} (${userAgent.join("; ")})`;
|
|
4929
4814
|
}
|
|
4930
|
-
|
|
4931
4815
|
//#endregion
|
|
4932
|
-
Object.defineProperty(exports,
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4816
|
+
Object.defineProperty(exports, "FetchError", {
|
|
4817
|
+
enumerable: true,
|
|
4818
|
+
get: function() {
|
|
4819
|
+
return FetchError;
|
|
4820
|
+
}
|
|
4821
|
+
});
|
|
4822
|
+
Object.defineProperty(exports, "UrlError", {
|
|
4823
|
+
enumerable: true,
|
|
4824
|
+
get: function() {
|
|
4825
|
+
return UrlError;
|
|
4826
|
+
}
|
|
4827
|
+
});
|
|
4828
|
+
Object.defineProperty(exports, "__toESM", {
|
|
4829
|
+
enumerable: true,
|
|
4830
|
+
get: function() {
|
|
4831
|
+
return __toESM;
|
|
4832
|
+
}
|
|
4833
|
+
});
|
|
4834
|
+
Object.defineProperty(exports, "createRequest", {
|
|
4835
|
+
enumerable: true,
|
|
4836
|
+
get: function() {
|
|
4837
|
+
return createRequest;
|
|
4838
|
+
}
|
|
4937
4839
|
});
|
|
4938
|
-
Object.defineProperty(exports,
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4840
|
+
Object.defineProperty(exports, "fetchDocumentLoader", {
|
|
4841
|
+
enumerable: true,
|
|
4842
|
+
get: function() {
|
|
4843
|
+
return fetchDocumentLoader;
|
|
4844
|
+
}
|
|
4943
4845
|
});
|
|
4944
|
-
Object.defineProperty(exports,
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4846
|
+
Object.defineProperty(exports, "getDocumentLoader", {
|
|
4847
|
+
enumerable: true,
|
|
4848
|
+
get: function() {
|
|
4849
|
+
return getDocumentLoader;
|
|
4850
|
+
}
|
|
4949
4851
|
});
|
|
4950
|
-
Object.defineProperty(exports,
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4852
|
+
Object.defineProperty(exports, "getRemoteDocument", {
|
|
4853
|
+
enumerable: true,
|
|
4854
|
+
get: function() {
|
|
4855
|
+
return getRemoteDocument;
|
|
4856
|
+
}
|
|
4955
4857
|
});
|
|
4956
|
-
Object.defineProperty(exports,
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4858
|
+
Object.defineProperty(exports, "getUserAgent", {
|
|
4859
|
+
enumerable: true,
|
|
4860
|
+
get: function() {
|
|
4861
|
+
return getUserAgent;
|
|
4862
|
+
}
|
|
4961
4863
|
});
|
|
4962
|
-
Object.defineProperty(exports,
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4864
|
+
Object.defineProperty(exports, "kvCache", {
|
|
4865
|
+
enumerable: true,
|
|
4866
|
+
get: function() {
|
|
4867
|
+
return kvCache;
|
|
4868
|
+
}
|
|
4967
4869
|
});
|
|
4968
|
-
Object.defineProperty(exports,
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4870
|
+
Object.defineProperty(exports, "logRequest", {
|
|
4871
|
+
enumerable: true,
|
|
4872
|
+
get: function() {
|
|
4873
|
+
return logRequest;
|
|
4874
|
+
}
|
|
4973
4875
|
});
|
|
4974
|
-
Object.defineProperty(exports,
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4876
|
+
Object.defineProperty(exports, "name", {
|
|
4877
|
+
enumerable: true,
|
|
4878
|
+
get: function() {
|
|
4879
|
+
return name;
|
|
4880
|
+
}
|
|
4979
4881
|
});
|
|
4980
|
-
Object.defineProperty(exports,
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4882
|
+
Object.defineProperty(exports, "validatePublicUrl", {
|
|
4883
|
+
enumerable: true,
|
|
4884
|
+
get: function() {
|
|
4885
|
+
return validatePublicUrl;
|
|
4886
|
+
}
|
|
4985
4887
|
});
|
|
4986
|
-
Object.defineProperty(exports,
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4888
|
+
Object.defineProperty(exports, "version", {
|
|
4889
|
+
enumerable: true,
|
|
4890
|
+
get: function() {
|
|
4891
|
+
return version;
|
|
4892
|
+
}
|
|
4991
4893
|
});
|
|
4992
|
-
Object.defineProperty(exports, 'validatePublicUrl', {
|
|
4993
|
-
enumerable: true,
|
|
4994
|
-
get: function () {
|
|
4995
|
-
return validatePublicUrl;
|
|
4996
|
-
}
|
|
4997
|
-
});
|