@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,44 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "../
|
|
7
|
-
import {
|
|
8
|
-
import "../
|
|
9
|
-
import "../
|
|
10
|
-
import { MemoryKvStore } from "../kv-QzKcOQgP.js";
|
|
11
|
-
import { createFederation, handleNodeInfo, handleNodeInfoJrd } from "../middleware-C5emnCh-.js";
|
|
12
|
-
import { parseSemVer } from "../semver-dArNLkR9.js";
|
|
13
|
-
import "../client-BgCucCG7.js";
|
|
14
|
-
import "../lookup-CySNcNcC.js";
|
|
15
|
-
import "../types-BIgY6c-l.js";
|
|
16
|
-
import "../actor-Ch9BTg3N.js";
|
|
17
|
-
import "../key-Cg0kO4dA.js";
|
|
18
|
-
import "../http-CxiIW4rD.js";
|
|
19
|
-
import "../authdocloader-COFZT9Wh.js";
|
|
20
|
-
import "../ld-b16r91YS.js";
|
|
21
|
-
import "../owner-Bs-sPbHX.js";
|
|
22
|
-
import "../proof-SgRikE_Y.js";
|
|
23
|
-
import "../inbox-DcDIqTbR.js";
|
|
24
|
-
import "../builder-YD0q32nG.js";
|
|
25
|
-
import "../collection-CSzG2j1P.js";
|
|
26
|
-
import "../keycache-hSs_XFSb.js";
|
|
27
|
-
import "../retry-D4GJ670a.js";
|
|
28
|
-
import "../send-C0gFHa2i.js";
|
|
29
|
-
import { createRequestContext, test } from "../testing-C1GIraJh.js";
|
|
30
|
-
import "../std__assert-X-_kMxKM.js";
|
|
31
|
-
import "../assert_rejects-DiIiJbZn.js";
|
|
32
|
-
import "../assert_is_error-BPGph1Jx.js";
|
|
33
|
-
import "../assert_not_equals-f3m3epl3.js";
|
|
34
|
-
import "../assert_throws-BOO88avQ.js";
|
|
35
|
-
|
|
1
|
+
import "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
globalThis.addEventListener = () => {};
|
|
4
|
+
import { i as createRequestContext, t as test } from "../testing-BLIh1cXz.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
|
+
import "../std__assert-2v7gYiZp.mjs";
|
|
7
|
+
import { t as MemoryKvStore } from "../kv-OuT2IU64.mjs";
|
|
8
|
+
import { a as createFederation, g as handleNodeInfoJrd, h as handleNodeInfo } from "../middleware-BXD5WJbj.mjs";
|
|
9
|
+
import { n as parseSemVer } from "../semver-CgD82xxg.mjs";
|
|
36
10
|
//#region src/nodeinfo/handler.test.ts
|
|
37
11
|
test("handleNodeInfo()", async () => {
|
|
38
12
|
const request = new Request("https://example.com/nodeinfo/2.1");
|
|
39
|
-
const federation = createFederation({ kv: new MemoryKvStore() });
|
|
40
13
|
const context = createRequestContext({
|
|
41
|
-
federation,
|
|
14
|
+
federation: createFederation({ kv: new MemoryKvStore() }),
|
|
42
15
|
data: void 0,
|
|
43
16
|
request,
|
|
44
17
|
url: new URL(request.url)
|
|
@@ -65,8 +38,7 @@ test("handleNodeInfo()", async () => {
|
|
|
65
38
|
});
|
|
66
39
|
assertEquals(response.status, 200);
|
|
67
40
|
assertEquals(response.headers.get("Content-Type"), "application/json; profile=\"http://nodeinfo.diaspora.software/ns/schema/2.1#\"");
|
|
68
|
-
|
|
69
|
-
assertEquals(json, {
|
|
41
|
+
assertEquals(await response.json(), {
|
|
70
42
|
"$schema": "http://nodeinfo.diaspora.software/ns/schema/2.1#",
|
|
71
43
|
version: "2.1",
|
|
72
44
|
software: {
|
|
@@ -93,9 +65,8 @@ test("handleNodeInfo()", async () => {
|
|
|
93
65
|
});
|
|
94
66
|
test("handleNodeInfoJrd()", async () => {
|
|
95
67
|
const request = new Request("https://example.com/.well-known/nodeinfo");
|
|
96
|
-
const federation = createFederation({ kv: new MemoryKvStore() });
|
|
97
68
|
let context = createRequestContext({
|
|
98
|
-
federation,
|
|
69
|
+
federation: createFederation({ kv: new MemoryKvStore() }),
|
|
99
70
|
data: void 0,
|
|
100
71
|
request,
|
|
101
72
|
url: new URL(request.url)
|
|
@@ -119,5 +90,5 @@ test("handleNodeInfoJrd()", async () => {
|
|
|
119
90
|
type: "application/json; profile=\"http://nodeinfo.diaspora.software/ns/schema/2.1#\""
|
|
120
91
|
}] });
|
|
121
92
|
});
|
|
122
|
-
|
|
123
|
-
|
|
93
|
+
//#endregion
|
|
94
|
+
export {};
|
package/dist/nodeinfo/mod.cjs
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
require('../docloader-irBWMSOZ.cjs');
|
|
6
|
-
const require_types = require('../types-BgUCCngg.cjs');
|
|
7
|
-
require('../nodeinfo-Co9lJrWl.cjs');
|
|
8
|
-
|
|
1
|
+
const { Temporal } = require("@js-temporal/polyfill");
|
|
2
|
+
const { URLPattern } = require("urlpattern-polyfill");
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const require_types = require("../types-B34v-m2N.cjs");
|
|
9
5
|
exports.formatSemVer = require_types.formatSemVer;
|
|
10
6
|
exports.getNodeInfo = require_types.getNodeInfo;
|
|
11
7
|
exports.nodeInfoToJson = require_types.nodeInfoToJson;
|
|
12
8
|
exports.parseNodeInfo = require_types.parseNodeInfo;
|
|
13
|
-
exports.parseSemVer = require_types.parseSemVer;
|
|
9
|
+
exports.parseSemVer = require_types.parseSemVer;
|
package/dist/nodeinfo/mod.d.cts
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
|
|
3
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-n6L4GtQL.cjs";
|
|
4
|
-
import "../mod-FZd39qVq.cjs";
|
|
5
|
-
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
|
1
|
+
import { a as InboundService, c as OutboundService, d as Software, f as Usage, g as parseSemVer, h as formatSemVer, i as parseNodeInfo, l as Protocol, m as SemVer, n as ParseNodeInfoOptions, o as JsonValue, p as nodeInfoToJson, r as getNodeInfo, s as NodeInfo, t as GetNodeInfoOptions, u as Services } from "../client-yc0Z0P6Y.cjs";
|
|
2
|
+
export { type GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, type ParseNodeInfoOptions, Protocol, type SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
package/dist/nodeinfo/mod.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
|
3
|
-
import "../
|
|
4
|
-
|
|
5
|
-
import { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../client-B3mQJNO7.js";
|
|
6
|
-
import "../mod-1pDWKvUL.js";
|
|
7
|
-
export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
|
3
|
+
import { a as InboundService, c as OutboundService, d as Software, f as Usage, g as parseSemVer, h as formatSemVer, i as parseNodeInfo, l as Protocol, m as SemVer, n as ParseNodeInfoOptions, o as JsonValue, p as nodeInfoToJson, r as getNodeInfo, s as NodeInfo, t as GetNodeInfoOptions, u as Services } from "../client-D7t26_op.js";
|
|
4
|
+
export { type GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, type ParseNodeInfoOptions, Protocol, type SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
package/dist/nodeinfo/mod.js
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "../docloader-BETPdM09.js";
|
|
6
|
-
import { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer } from "../types-Bu-epI-z.js";
|
|
7
|
-
import "../nodeinfo-DfycQ8Wf.js";
|
|
8
|
-
|
|
9
|
-
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
|
1
|
+
import "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
import { a as parseSemVer, i as formatSemVer, n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "../types-CXZk86AG.js";
|
|
4
|
+
export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
|
|
@@ -1,24 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "../
|
|
7
|
-
import {
|
|
8
|
-
import "../
|
|
9
|
-
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import { formatSemVer, parseSemVer } from "../semver-dArNLkR9.js";
|
|
11
|
-
import "../lookup-CySNcNcC.js";
|
|
12
|
-
import { test } from "../testing-C1GIraJh.js";
|
|
13
|
-
import "../std__assert-X-_kMxKM.js";
|
|
14
|
-
import "../assert_rejects-DiIiJbZn.js";
|
|
15
|
-
import "../assert_is_error-BPGph1Jx.js";
|
|
16
|
-
import "../assert_not_equals-f3m3epl3.js";
|
|
17
|
-
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
18
|
-
|
|
1
|
+
import "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
globalThis.addEventListener = () => {};
|
|
4
|
+
import { t as test } from "../testing-BLIh1cXz.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
|
+
import "../std__assert-2v7gYiZp.mjs";
|
|
7
|
+
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
8
|
+
import { n as parseSemVer, t as formatSemVer } from "../semver-CgD82xxg.mjs";
|
|
19
9
|
//#region src/nodeinfo/semver.test.ts
|
|
20
10
|
test("parseSemVer() handles major", async (t) => {
|
|
21
|
-
const
|
|
11
|
+
for (const [v, expected] of [
|
|
22
12
|
["1.2.3", 1],
|
|
23
13
|
[" 1.2.3 ", 1],
|
|
24
14
|
[" 2.2.3-4 ", 2],
|
|
@@ -26,14 +16,12 @@ test("parseSemVer() handles major", async (t) => {
|
|
|
26
16
|
["v5.2.3", 5],
|
|
27
17
|
[" v8.2.3 ", 8],
|
|
28
18
|
[" 13.2.3", 13]
|
|
29
|
-
]
|
|
30
|
-
|
|
31
|
-
const version = parseSemVer(v);
|
|
32
|
-
assertEquals(version.major, expected);
|
|
19
|
+
]) await t.step(v, () => {
|
|
20
|
+
assertEquals(parseSemVer(v).major, expected);
|
|
33
21
|
});
|
|
34
22
|
});
|
|
35
23
|
test("parseSemVer() handles minor", async (t) => {
|
|
36
|
-
const
|
|
24
|
+
for (const [v, expected] of [
|
|
37
25
|
["1.1.3", 1],
|
|
38
26
|
[" 1.1.3 ", 1],
|
|
39
27
|
[" 1.2.3-4 ", 2],
|
|
@@ -41,14 +29,12 @@ test("parseSemVer() handles minor", async (t) => {
|
|
|
41
29
|
["v1.5.3", 5],
|
|
42
30
|
[" v1.8.3 ", 8],
|
|
43
31
|
[" 1.13.3", 13]
|
|
44
|
-
]
|
|
45
|
-
|
|
46
|
-
const version = parseSemVer(v);
|
|
47
|
-
assertEquals(version.minor, expected);
|
|
32
|
+
]) await t.step(v, () => {
|
|
33
|
+
assertEquals(parseSemVer(v).minor, expected);
|
|
48
34
|
});
|
|
49
35
|
});
|
|
50
36
|
test("parseSemVer() handles patch", async (t) => {
|
|
51
|
-
const
|
|
37
|
+
for (const [v, expected] of [
|
|
52
38
|
["1.2.1", 1],
|
|
53
39
|
[" 1.2.1 ", 1],
|
|
54
40
|
[" 1.2.2-4 ", 2],
|
|
@@ -56,15 +42,13 @@ test("parseSemVer() handles patch", async (t) => {
|
|
|
56
42
|
["v1.2.5", 5],
|
|
57
43
|
[" v1.2.8 ", 8],
|
|
58
44
|
[" 1.2.13", 13]
|
|
59
|
-
]
|
|
60
|
-
|
|
61
|
-
const semver = parseSemVer(v);
|
|
62
|
-
const actual = semver.patch;
|
|
45
|
+
]) await t.step(v, () => {
|
|
46
|
+
const actual = parseSemVer(v).patch;
|
|
63
47
|
assertEquals(actual, expected);
|
|
64
48
|
});
|
|
65
49
|
});
|
|
66
50
|
test("parseSemVer() handles prerelease", async (t) => {
|
|
67
|
-
const
|
|
51
|
+
for (const [v, expected] of [
|
|
68
52
|
["1.2.2-alpha.1", ["alpha", 1]],
|
|
69
53
|
["0.6.1-1", [1]],
|
|
70
54
|
["1.0.0-beta.2", ["beta", 2]],
|
|
@@ -73,10 +57,8 @@ test("parseSemVer() handles prerelease", async (t) => {
|
|
|
73
57
|
["1.2.0-1b3-4", ["1b3-4"]],
|
|
74
58
|
["1.2.0-3.6-pre2", [3, "6-pre2"]],
|
|
75
59
|
["2.0.0", []]
|
|
76
|
-
]
|
|
77
|
-
|
|
78
|
-
const semver = parseSemVer(v);
|
|
79
|
-
assertEquals(semver.prerelease, expected);
|
|
60
|
+
]) await t.step(`${v} : ${JSON.stringify(expected)}`, () => {
|
|
61
|
+
assertEquals(parseSemVer(v).prerelease, expected);
|
|
80
62
|
});
|
|
81
63
|
});
|
|
82
64
|
test({
|
|
@@ -103,25 +85,23 @@ test({
|
|
|
103
85
|
}
|
|
104
86
|
});
|
|
105
87
|
test("parseSemVer() throws on invalid versions", async (t) => {
|
|
106
|
-
const
|
|
88
|
+
for (const v of [
|
|
107
89
|
"1.2.3.4",
|
|
108
90
|
"NOT VALID",
|
|
109
91
|
1.2,
|
|
110
92
|
null,
|
|
111
93
|
"Infinity.NaN.Infinity"
|
|
112
|
-
]
|
|
113
|
-
for (const v of versions) await t.step(`invalid ${v}`, () => {
|
|
94
|
+
]) await t.step(`invalid ${v}`, () => {
|
|
114
95
|
assertThrows(function() {
|
|
115
96
|
parseSemVer(v);
|
|
116
97
|
}, TypeError);
|
|
117
98
|
});
|
|
118
99
|
});
|
|
119
100
|
test("parseSemVer() handles big numeric prerelease", function() {
|
|
120
|
-
|
|
121
|
-
assertEquals(r.prerelease, ["beta", "90071992547409910"]);
|
|
101
|
+
assertEquals(parseSemVer(`1.2.3-beta.${Number.MAX_SAFE_INTEGER}0`).prerelease, ["beta", "90071992547409910"]);
|
|
122
102
|
});
|
|
123
103
|
test("formatSemVer()", async (t) => {
|
|
124
|
-
const
|
|
104
|
+
for (const [version, expected] of [
|
|
125
105
|
["0.0.0", "0.0.0"],
|
|
126
106
|
["1.2.3", "1.2.3"],
|
|
127
107
|
["1.2.3-pre", "1.2.3-pre"],
|
|
@@ -129,15 +109,12 @@ test("formatSemVer()", async (t) => {
|
|
|
129
109
|
["1.2.3+b", "1.2.3+b"],
|
|
130
110
|
["1.2.3+b.0", "1.2.3+b.0"],
|
|
131
111
|
["1.2.3-pre.0+b.0", "1.2.3-pre.0+b.0"]
|
|
132
|
-
]
|
|
133
|
-
for (const [version, expected] of versions) await t.step({
|
|
112
|
+
]) await t.step({
|
|
134
113
|
name: version,
|
|
135
114
|
fn: () => {
|
|
136
|
-
|
|
137
|
-
const actual = formatSemVer(v);
|
|
138
|
-
assertEquals(actual, expected);
|
|
115
|
+
assertEquals(formatSemVer(parseSemVer(version)), expected);
|
|
139
116
|
}
|
|
140
117
|
});
|
|
141
118
|
});
|
|
142
|
-
|
|
143
|
-
|
|
119
|
+
//#endregion
|
|
120
|
+
export {};
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "../
|
|
7
|
-
import {
|
|
8
|
-
import "../
|
|
9
|
-
import "../assert_instance_of-DHz7EHNU.js";
|
|
10
|
-
import "../semver-dArNLkR9.js";
|
|
11
|
-
import "../lookup-CySNcNcC.js";
|
|
12
|
-
import { nodeInfoToJson } from "../types-BIgY6c-l.js";
|
|
13
|
-
import { test } from "../testing-C1GIraJh.js";
|
|
14
|
-
import "../std__assert-X-_kMxKM.js";
|
|
15
|
-
import "../assert_rejects-DiIiJbZn.js";
|
|
16
|
-
import "../assert_is_error-BPGph1Jx.js";
|
|
17
|
-
import "../assert_not_equals-f3m3epl3.js";
|
|
18
|
-
import { assertThrows } from "../assert_throws-BOO88avQ.js";
|
|
19
|
-
|
|
1
|
+
import "@js-temporal/polyfill";
|
|
2
|
+
import "urlpattern-polyfill";
|
|
3
|
+
globalThis.addEventListener = () => {};
|
|
4
|
+
import { t as test } from "../testing-BLIh1cXz.mjs";
|
|
5
|
+
import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
|
|
6
|
+
import "../std__assert-2v7gYiZp.mjs";
|
|
7
|
+
import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
|
|
8
|
+
import { t as nodeInfoToJson } from "../types-CAnkAQGM.mjs";
|
|
20
9
|
//#region src/nodeinfo/types.test.ts
|
|
21
10
|
test("nodeInfoToJson()", () => {
|
|
22
11
|
const validInfo = {
|
|
@@ -203,5 +192,5 @@ test("nodeInfoToJson()", () => {
|
|
|
203
192
|
}
|
|
204
193
|
}), TypeError, "Invalid local comments");
|
|
205
194
|
});
|
|
206
|
-
|
|
207
|
-
|
|
195
|
+
//#endregion
|
|
196
|
+
export {};
|