@fedify/fedify 1.6.1-dev.856 → 1.6.1-dev.871
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-CM3gfkH6.js +36173 -0
- package/dist/{vocab/actor.js → actor-D7NMuy45.js} +5 -4
- package/dist/{vocab/actor.d.ts → actor-lFlm8FYo.d.ts} +2 -2
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js → assert-Dv75vaGI.js} +2 -1
- package/dist/assert_equals-ClvzlhZu.js +1020 -0
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js → assert_instance_of--9UCVKsi.js} +2 -1
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js → assert_is_error-D162gXcM.js} +2 -2
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js → assert_not_equals-Cyf5m9Ke.js} +2 -2
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_rejects.js → assert_rejects-FOHCtlD2.js} +23 -3
- package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js → assert_throws-CRfQJvVx.js} +3 -2
- package/dist/{runtime/authdocloader.js → authdocloader-BKZDAq91.js} +5 -4
- package/dist/authdocloader-OfYZlI31.js +51 -0
- package/dist/{federation/builder.js → builder-DSTiU6ue.js} +18 -17
- package/dist/{_virtual/rolldown_runtime.js → chunk-HsBuZ-b2.js} +1 -0
- package/dist/client-Dw1pCSIt.d.ts +299 -0
- package/dist/{nodeinfo/client.js → client-RN5A1Qgw.js} +3 -2
- package/dist/{federation/collection.js → collection-QaGK9TVn.js} +1 -0
- package/dist/compat/mod.d.ts +12 -2
- package/dist/compat/mod.js +2 -1
- package/dist/compat/transformers.test.d.ts +2 -1
- package/dist/compat/transformers.test.js +32 -8
- package/dist/context-CzJXjNR8.d.ts +2034 -0
- package/dist/{testing/context.js → context-DZKXS0DV.js} +5 -4
- package/dist/{x/denokv.js → denokv-iB_ggPGm.js} +3 -1
- package/dist/{testing/docloader.js → docloader-09nVWLAZ.js} +1 -0
- package/dist/{runtime/contexts.js → docloader-BcMxZ9JH.js} +420 -1
- package/dist/docloader-DDFam5Xn.js +4594 -0
- package/dist/{runtime/docloader.d.ts → docloader-DTRsVZPo.d.ts} +1 -1
- package/dist/esm-BxIKwi-M.js +1221 -0
- package/dist/federation/builder.test.d.ts +2 -1
- package/dist/federation/builder.test.js +22 -7
- package/dist/federation/collection.test.d.ts +2 -1
- package/dist/federation/collection.test.js +11 -3
- package/dist/federation/handler.test.d.ts +2 -1
- package/dist/federation/handler.test.js +40 -12
- package/dist/federation/inbox.test.d.ts +2 -1
- package/dist/federation/inbox.test.js +12 -5
- package/dist/federation/keycache.test.d.ts +2 -1
- package/dist/federation/keycache.test.js +12 -7
- package/dist/federation/kv.test.d.ts +2 -1
- package/dist/federation/kv.test.js +11 -3
- package/dist/federation/middleware.test.d.ts +2 -1
- package/dist/federation/middleware.test.js +107 -26
- package/dist/federation/mod.d.ts +13 -13
- package/dist/federation/mod.js +12 -8
- package/dist/federation/mq.test.d.ts +2 -1
- package/dist/federation/mq.test.js +153 -6
- package/dist/federation/retry.test.d.ts +2 -1
- package/dist/federation/retry.test.js +5 -5
- package/dist/federation/router.test.d.ts +2 -1
- package/dist/federation/router.test.js +24 -4
- package/dist/federation/send.test.d.ts +2 -1
- package/dist/federation/send.test.js +25 -13
- package/dist/{federation/mq.js → federation-Bmj7soSg.js} +47 -1
- package/dist/{node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/router.js → hongminhee__deno-mock-fetch-DJKLj_H-.js} +96 -1
- package/dist/{sig/http.js → http-BFvv3ZId.js} +5 -4
- package/dist/http-BImJcLfv.d.ts +258 -0
- package/dist/http-v1TqJ9Qa.js +720 -0
- package/dist/{federation/inbox.js → inbox-XV_W1qfB.js} +10 -4
- package/dist/key-BNM-ickE.js +16 -0
- package/dist/key-CVIQ7iUB.js +262 -0
- package/dist/{sig/key.js → key-DIk4Rloj.js} +2 -4
- package/dist/key-DiVhk5ik.js +10 -0
- package/dist/{federation/keycache.js → keycache-uTxsh7dt.js} +2 -1
- package/dist/{testing/keys.js → keys-D7lJqunm.js} +2 -2
- package/dist/{federation/kv.js → kv-DohFOP2C.js} +1 -0
- package/dist/{runtime/langstr.js → langstr-DbWheeIS.js} +1 -0
- package/dist/{sig/ld.js → ld-bOhcKpmk.js} +6 -6
- package/dist/{webfinger/lookup.js → lookup-B5KVF6HM.js} +1 -3
- package/dist/lookup-D3xTID-6.js +131 -0
- package/dist/{webfinger/jrd.d.ts → lookup-DAfStZtI.d.ts} +41 -1
- package/dist/{vocab/lookup.js → lookup-D_v0FFGL.js} +5 -5
- package/dist/middleware-BFedQWFA.js +33 -0
- package/dist/middleware-BiYIqI0b.js +3525 -0
- package/dist/{federation/middleware.js → middleware-CPAfRtS5.js} +957 -105
- package/dist/middleware-pAGwVkRf.js +17 -0
- package/dist/mod-1pDWKvUL.d.ts +2 -0
- package/dist/{runtime/key.d.ts → mod-BxwG4X3V.d.ts} +52 -7
- package/dist/{compat/transformers.d.ts → mod-CeLnlsqE.d.ts} +3 -4
- package/dist/{vocab/lookup.d.ts → mod-DysVoXOu.d.ts} +98 -3
- package/dist/mod-GIh5OYxW.d.ts +2 -0
- package/dist/{sig/ld.d.ts → mod-XT0mRthe.d.ts} +126 -4
- package/dist/mod-g0xFzAP9.d.ts +2 -0
- package/dist/mod.d.ts +18 -34
- package/dist/mod.js +17 -27
- package/dist/multibase-DeCHcK8L.js +316 -0
- package/dist/nodeinfo/client.test.d.ts +2 -1
- package/dist/nodeinfo/client.test.js +15 -4
- package/dist/nodeinfo/handler.test.d.ts +2 -1
- package/dist/nodeinfo/handler.test.js +39 -7
- package/dist/nodeinfo/mod.d.ts +4 -3
- package/dist/nodeinfo/mod.js +3 -3
- package/dist/nodeinfo/semver.test.d.ts +2 -1
- package/dist/nodeinfo/semver.test.js +11 -4
- package/dist/nodeinfo/types.test.d.ts +2 -1
- package/dist/nodeinfo/types.test.js +12 -4
- package/dist/{sig/owner.d.ts → owner-BjpObx-L.d.ts} +4 -6
- package/dist/{sig/owner.js → owner-tYPzPLFs.js} +4 -4
- package/dist/proof-D0cf4R25.js +595 -0
- package/dist/{sig/proof.js → proof-DIsZ1VTb.js} +5 -4
- package/dist/{federation/retry.js → retry-BiIhZWgD.js} +1 -0
- package/dist/{federation/router.js → router-D_aVZZUc.js} +20 -1
- package/dist/runtime/authdocloader.test.d.ts +2 -1
- package/dist/runtime/authdocloader.test.js +24 -9
- package/dist/runtime/docloader.test.d.ts +2 -1
- package/dist/runtime/docloader.test.js +15 -11
- package/dist/runtime/key.test.d.ts +2 -1
- package/dist/runtime/key.test.js +19 -4
- package/dist/runtime/langstr.test.d.ts +2 -1
- package/dist/runtime/langstr.test.js +11 -3
- package/dist/runtime/mod.d.ts +5 -4
- package/dist/runtime/mod.js +7 -4
- package/dist/runtime/multibase/multibase.test.d.ts +2 -1
- package/dist/runtime/multibase/multibase.test.js +11 -5
- package/dist/runtime/url.test.d.ts +2 -1
- package/dist/runtime/url.test.js +7 -6
- package/dist/{nodeinfo/semver.js → semver-CbbIgUsa.js} +1 -0
- package/dist/{federation/send.js → send-CFBOnY61.js} +3 -2
- package/dist/sig/http.test.d.ts +2 -1
- package/dist/sig/http.test.js +23 -12
- package/dist/sig/key.test.d.ts +2 -1
- package/dist/sig/key.test.js +21 -8
- package/dist/sig/ld.test.d.ts +2 -1
- package/dist/sig/ld.test.js +19 -11
- package/dist/sig/mod.d.ts +7 -5
- package/dist/sig/mod.js +7 -5
- package/dist/sig/owner.test.d.ts +2 -1
- package/dist/sig/owner.test.js +23 -9
- package/dist/sig/proof.test.d.ts +2 -1
- package/dist/sig/proof.test.js +22 -10
- package/dist/std__assert-CaBUULmX.js +151 -0
- package/dist/testing/docloader.test.d.ts +2 -1
- package/dist/testing/docloader.test.js +11 -3
- package/dist/testing/mod.d.ts +1 -0
- package/dist/testing/mod.js +2 -136
- package/dist/testing-jcGLO9Lp.js +143 -0
- package/dist/{compat/transformers.js → transformers-jxj-4o2K.js} +1 -1
- package/dist/{vocab/type.js → type-D2s5lmbZ.js} +1 -0
- package/dist/{nodeinfo/types.js → types-CqoqWDkp.js} +2 -1
- package/dist/types-D4p7qK8A.js +457 -0
- package/dist/{runtime/url.js → url-kTAI6_KP.js} +1 -0
- package/dist/vocab/actor.test.d.ts +2 -1
- package/dist/vocab/actor.test.js +5853 -14
- package/dist/vocab/lookup.test.d.ts +2 -1
- package/dist/vocab/lookup.test.js +20 -7
- package/dist/vocab/mod.d.ts +5 -5
- package/dist/vocab/mod.js +4 -5
- package/dist/vocab/type.test.d.ts +2 -1
- package/dist/vocab/type.test.js +9 -4
- package/dist/vocab/vocab.test.d.ts +2 -1
- package/dist/vocab/vocab.test.js +2440 -15
- package/dist/vocab-BSNlVPPE.js +172 -0
- package/dist/{vocab/vocab.js → vocab-BxrrllKY.js} +331 -182
- package/dist/{vocab/vocab.d.ts → vocab-CLWdoo7y.d.ts} +21 -9
- package/dist/webfinger/handler.test.d.ts +2 -1
- package/dist/webfinger/handler.test.js +39 -7
- package/dist/webfinger/lookup.test.d.ts +2 -1
- package/dist/webfinger/lookup.test.js +14 -4
- package/dist/webfinger/mod.d.ts +4 -2
- package/dist/webfinger/mod.js +3 -1
- package/dist/x/cfworkers.d.ts +49 -0
- package/dist/x/cfworkers.js +73 -0
- package/dist/x/cfworkers.test.d.ts +3 -0
- package/dist/x/cfworkers.test.js +153 -0
- package/dist/x/hono.d.ts +11 -2
- package/dist/x/sveltekit.d.ts +11 -2
- package/package.json +6 -1
- package/dist/codegen/fs.js +0 -23
- package/dist/codegen/schema.js +0 -88
- package/dist/codegen/type.js +0 -392
- package/dist/compat/types.d.ts +0 -18
- package/dist/deno.js +0 -137
- package/dist/federation/builder.d.ts +0 -19
- package/dist/federation/callback.d.ts +0 -211
- package/dist/federation/collection.d.ts +0 -36
- package/dist/federation/context.d.ts +0 -757
- package/dist/federation/federation.d.ts +0 -689
- package/dist/federation/handler.d.ts +0 -44
- package/dist/federation/handler.js +0 -543
- package/dist/federation/middleware.d.ts +0 -101
- package/dist/federation/negotiation.js +0 -63
- package/dist/federation/retry.d.ts +0 -71
- package/dist/federation/router.d.ts +0 -91
- package/dist/federation/send.d.ts +0 -29
- package/dist/node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/mod.js +0 -101
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js +0 -49
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js +0 -32
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js +0 -26
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater.js +0 -34
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater_or_equal.js +0 -34
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_strict_equals.js +0 -53
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_string_includes.js +0 -32
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assertion_error.js +0 -33
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/equal.js +0 -79
- package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/mod.js +0 -19
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/assertion_state.js +0 -177
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/build_message.js +0 -101
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff.js +0 -274
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff_str.js +0 -148
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js +0 -37
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/mod.js +0 -10
- package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/styles.js +0 -172
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/assert_path.js +0 -11
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/constants.js +0 -10
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/dirname.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/from_file_url.js +0 -13
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize_string.js +0 -60
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/strip_trailing_separators.js +0 -15
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_os.js +0 -9
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/extname.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/format.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/from_file_url.js +0 -34
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/glob_to_regexp.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/is_absolute.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join_globs.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/mod.js +0 -5
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize_glob.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/parse.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/_util.js +0 -13
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/dirname.js +0 -54
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/from_file_url.js +0 -27
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/join.js +0 -47
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/normalize.js +0 -59
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/relative.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/resolve.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_file_url.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_namespaced_path.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/from_file_url.js +0 -31
- package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js +0 -17
- package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js +0 -38
- package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js +0 -36
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_chars.js +0 -47
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_dumper_state.js +0 -4
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_loader_state.js +0 -884
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_schema.js +0 -120
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/binary.js +0 -92
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/bool.js +0 -41
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/float.js +0 -58
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/int.js +0 -118
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/map.js +0 -18
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/merge.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/nil.js +0 -23
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/omap.js +0 -31
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/pairs.js +0 -22
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/regexp.js +0 -29
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/seq.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/set.js +0 -17
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/str.js +0 -14
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/timestamp.js +0 -57
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/undefined.js +0 -24
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_utils.js +0 -17
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/mod.js +0 -5
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/parse.js +0 -54
- package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/stringify.js +0 -4
- package/dist/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.js +0 -68
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/AlwaysShrinkableArbitrary.js +0 -30
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayArbitrary.js +0 -203
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayInt64Arbitrary.js +0 -122
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/BigIntArbitrary.js +0 -63
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ConstantArbitrary.js +0 -58
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/FrequencyArbitrary.js +0 -136
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/IntegerArbitrary.js +0 -64
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/LazyArbitrary.js +0 -29
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/StringUnitArbitrary.js +0 -45
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/TupleArbitrary.js +0 -74
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/WithShrinkFromOtherArbitrary.js +0 -40
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/AnyArbitraryBuilder.js +0 -97
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/BoxedArbitraryBuilder.js +0 -13
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/CharacterArbitraryBuilder.js +0 -17
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/RestrictedIntegerArbitraryBuilder.js +0 -23
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/TypedIntArrayArbitraryBuilder.js +0 -32
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/data/GraphemeRanges.js +0 -990
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ArrayInt64.js +0 -98
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BiasNumericRange.js +0 -53
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BuildSlicedGenerator.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/CustomEqualSet.js +0 -27
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DepthContext.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleHelpers.js +0 -96
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleOnlyHelpers.js +0 -25
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatHelpers.js +0 -57
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatOnlyHelpers.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatingOnlyHelpers.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/GraphemeRangesHelpers.js +0 -58
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/MaxLengthFromMinLength.js +0 -72
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/NoUndefinedAsContext.js +0 -16
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/QualifiedObjectConstraints.js +0 -58
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueSet.js +0 -41
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueZeroSet.js +0 -33
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkBigInt.js +0 -37
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkInteger.js +0 -41
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SlicesForStringBuilder.js +0 -74
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/StrictlyEqualSet.js +0 -38
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/TokenizeString.js +0 -47
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/NoopSlicedGenerator.js +0 -21
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/SlicedBasedGenerator.js +0 -53
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToMap.js +0 -16
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToSet.js +0 -16
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/CodePointsToString.js +0 -17
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToCharString.js +0 -20
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToMappedConstant.js +0 -69
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToPrintableIndex.js +0 -18
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/KeyValuePairsToObject.js +0 -42
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/PatternsToString.js +0 -32
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/TimeToDate.js +0 -30
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/UnboxedToBoxed.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/anything.js +0 -14
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/array.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/bigInt.js +0 -38
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/boolean.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constant.js +0 -13
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constantFrom.js +0 -14
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/date.js +0 -30
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/dictionary.js +0 -27
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/double.js +0 -54
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float.js +0 -60
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float32Array.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float64Array.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicode.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js +0 -20
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int16Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int32Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int8Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/integer.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/letrec.js +0 -28
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/mapToConstant.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/maxSafeInteger.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/nat.js +0 -17
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/noBias.js +0 -11
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/oneof.js +0 -31
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/sparseArray.js +0 -68
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/string.js +0 -32
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/tuple.js +0 -13
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint16Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint32Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8Array.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8ClampedArray.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uniqueArray.js +0 -47
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Arbitrary.js +0 -184
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Value.js +0 -31
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js +0 -19
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IRawProperty.js +0 -12
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IgnoreEqualValuesProperty.js +0 -52
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.generic.js +0 -77
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.js +0 -22
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/SkipAfterProperty.js +0 -61
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/TimeoutProperty.js +0 -52
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/UnbiasedProperty.js +0 -29
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/DecorateProperty.js +0 -26
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Runner.js +0 -61
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/RunnerIterator.js +0 -47
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/SourceValuesIterator.js +0 -35
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Tosser.js +0 -33
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/GlobalParameters.js +0 -12
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/QualifiedParameters.js +0 -121
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/VerbosityLevel.js +0 -14
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/ExecutionStatus.js +0 -14
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/RunExecution.js +0 -116
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/PathWalker.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js +0 -135
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/symbols.js +0 -15
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/random/generator/Random.js +0 -48
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/LazyIterableIterator.js +0 -24
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/Stream.js +0 -84
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/StreamHelpers.js +0 -50
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/apply.js +0 -28
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/globals.js +0 -309
- package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/stringify.js +0 -217
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/CallHistory.js +0 -94
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/FetchMock.js +0 -143
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/IsSubsetOf.js +0 -103
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Matchers.js +0 -195
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/RequestUtils.js +0 -83
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Route.js +0 -137
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Router.js +0 -181
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/StatusTextMap.js +0 -73
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/TypeDescriptor.js +0 -97
- package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/index.js +0 -11
- package/dist/node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js +0 -87
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformArrayIntDistribution.js +0 -20
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformBigIntDistribution.js +0 -20
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformIntDistribution.js +0 -20
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformArrayIntDistribution.js +0 -20
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformBigIntDistribution.js +0 -32
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformIntDistribution.js +0 -43
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/ArrayInt.js +0 -139
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformArrayIntDistributionInternal.js +0 -26
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformIntDistributionInternal.js +0 -14
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/LinearCongruential.js +0 -53
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/MersenneTwister.js +0 -114
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/RandomGenerator.js +0 -26
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XorShift.js +0 -83
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XoroShiro.js +0 -83
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand-default.js +0 -44
- package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand.js +0 -22
- package/dist/node_modules/.pnpm/regexparam@3.0.0/node_modules/regexparam/dist/index.js +0 -37
- package/dist/nodeinfo/client.d.ts +0 -96
- package/dist/nodeinfo/handler.js +0 -46
- package/dist/nodeinfo/semver.d.ts +0 -78
- package/dist/nodeinfo/types.d.ts +0 -140
- package/dist/runtime/authdocloader.d.ts +0 -56
- package/dist/runtime/docloader.js +0 -291
- package/dist/runtime/key.js +0 -156
- package/dist/runtime/langstr.d.ts +0 -24
- package/dist/runtime/multibase/base.js +0 -32
- package/dist/runtime/multibase/constants.js +0 -172
- package/dist/runtime/multibase/index.js +0 -57
- package/dist/runtime/multibase/rfc4648.js +0 -61
- package/dist/runtime/multibase/util.js +0 -21
- package/dist/sig/http.d.ts +0 -143
- package/dist/sig/key.d.ts +0 -125
- package/dist/sig/proof.d.ts +0 -134
- package/dist/testing/fixtures/example.com/person.js +0 -29
- package/dist/testing/fixtures/example.com/person2.js +0 -48
- package/dist/vocab/constants.d.ts +0 -24
- package/dist/vocab/constants.js +0 -17
- package/dist/vocab/type.d.ts +0 -107
- package/dist/webfinger/handler.js +0 -140
- package/dist/webfinger/lookup.d.ts +0 -47
- /package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_object_match.js → compat-Bb5myD13.js} +0 -0
- /package/dist/{testing/fixtures → fixtures}/activitypub.academy/users/brauca_darradiul.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/announce.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/collection.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/create.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/cross-origin-actor.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/hong-gildong.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/invite.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/key.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/key2.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/object.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/orderedcollectionpage.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/paged/a.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/paged/b.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/paged-collection.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/person.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/person2.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/test.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/users/handle.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/example.com/wrong-type.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/remote.domain/users/bob.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/server.example/users/alice.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/w3id.org/identity/v1.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/w3id.org/security/data-integrity/v1.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/w3id.org/security/multikey/v1.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/w3id.org/security/v1.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/wizard.casa/users/hongminhee.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/activitystreams.json +0 -0
- /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/did/v1.json +0 -0
- /package/dist/{federation/kv.d.ts → kv-BmsWxOQ2.d.ts} +0 -0
- /package/dist/{federation/mq.d.ts → mq-Bue016Tz.d.ts} +0 -0
- /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/basename.js → nodeinfo-CyEbLjHs.js} +0 -0
- /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/common.js → runtime-BSkOVUWM.js} +0 -0
- /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/constants.js → sig-BXJO--F9.js} +0 -0
- /package/dist/{codegen → vocab}/schema.yaml +0 -0
- /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/dirname.js → webfinger-C3GIyXIg.js} +0 -0
@@ -1,17 +1,29 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { DocumentLoader } from "
|
4
|
-
import { LanguageString$1 as LanguageString } from "../runtime/langstr.js";
|
3
|
+
import { DocumentLoader } from "./docloader-DTRsVZPo.js";
|
5
4
|
import { Span, TracerProvider } from "@opentelemetry/api";
|
6
5
|
import { LanguageTag } from "@phensley/language-tag";
|
7
6
|
|
8
|
-
//#region
|
9
|
-
/**
|
10
|
-
*
|
11
|
-
* including other Core types such as {@link Activity},
|
12
|
-
* {@link IntransitiveActivity}, {@link Collection} and
|
13
|
-
* {@link OrderedCollection}.
|
7
|
+
//#region runtime/langstr.d.ts
|
8
|
+
/**
|
9
|
+
* A language-tagged string which corresponds to the `rdf:langString` type.
|
14
10
|
*/
|
11
|
+
/**
|
12
|
+
* A language-tagged string which corresponds to the `rdf:langString` type.
|
13
|
+
*/
|
14
|
+
declare class LanguageString extends String {
|
15
|
+
readonly language: LanguageTag;
|
16
|
+
/**
|
17
|
+
* Constructs a new `LanguageString`.
|
18
|
+
* @param value A string value written in the given language.
|
19
|
+
* @param language The language of the string. If a string is given, it will
|
20
|
+
* be parsed as a `LanguageTag`.
|
21
|
+
*/
|
22
|
+
constructor(value: string, language: LanguageTag | string);
|
23
|
+
}
|
24
|
+
|
25
|
+
//#endregion
|
26
|
+
//#region vocab/vocab.d.ts
|
15
27
|
/** Describes an object of any kind. The Object type serves as the base type for
|
16
28
|
* most of the other kinds of objects defined in the Activity Vocabulary,
|
17
29
|
* including other Core types such as {@link Activity},
|
@@ -14445,4 +14457,4 @@ declare class View extends Activity {
|
|
14445
14457
|
}
|
14446
14458
|
|
14447
14459
|
//#endregion
|
14448
|
-
export { Accept as Accept$1, Activity as Activity$1, Add as Add$1, Announce as Announce$1, Application as Application$1, Arrive as Arrive$1, Article as Article$1, Audio as Audio$1, Block as Block$1, ChatMessage as ChatMessage$1, Collection as Collection$1, CollectionPage as CollectionPage$1, Create as Create$1, CryptographicKey as CryptographicKey$1, DataIntegrityProof as DataIntegrityProof$1, Delete as Delete$1, DidService as DidService$1, Dislike as Dislike$1, Document as Document$1, Emoji as Emoji$1, EmojiReact as EmojiReact$1, Endpoints as Endpoints$1, Event as Event$1, Export as Export$1, Flag as Flag$1, Follow as Follow$1, Group as Group$1, Hashtag as Hashtag$1, Ignore as Ignore$1, Image as Image$1, IntransitiveActivity as IntransitiveActivity$1, Invite as Invite$1, Join as Join$1, Leave as Leave$1, Like as Like$1, Link as Link$
|
14460
|
+
export { Accept as Accept$1, Activity as Activity$1, Add as Add$1, Announce as Announce$1, Application as Application$1, Arrive as Arrive$1, Article as Article$1, Audio as Audio$1, Block as Block$1, ChatMessage as ChatMessage$1, Collection as Collection$1, CollectionPage as CollectionPage$1, Create as Create$1, CryptographicKey as CryptographicKey$1, DataIntegrityProof as DataIntegrityProof$1, Delete as Delete$1, DidService as DidService$1, Dislike as Dislike$1, Document as Document$1, Emoji as Emoji$1, EmojiReact as EmojiReact$1, Endpoints as Endpoints$1, Event as Event$1, Export as Export$1, Flag as Flag$1, Follow as Follow$1, Group as Group$1, Hashtag as Hashtag$1, Ignore as Ignore$1, Image as Image$1, IntransitiveActivity as IntransitiveActivity$1, Invite as Invite$1, Join as Join$1, LanguageString as LanguageString$1, Leave as Leave$1, Like as Like$1, Link as Link$1, Listen as Listen$1, Mention as Mention$1, Move as Move$1, Multikey as Multikey$1, Note as Note$1, Object$1, Offer as Offer$1, OrderedCollection as OrderedCollection$1, OrderedCollectionPage as OrderedCollectionPage$1, Organization as Organization$1, Page as Page$1, Person as Person$1, Place as Place$1, Profile as Profile$1, PropertyValue as PropertyValue$1, Question as Question$1, Read as Read$1, Reject as Reject$1, Relationship as Relationship$1, Remove as Remove$1, Service as Service$1, Source as Source$1, TentativeAccept as TentativeAccept$1, TentativeReject as TentativeReject$1, Tombstone as Tombstone$1, Travel as Travel$1, Undo as Undo$1, Update as Update$1, Video as Video$1, View as View$1 };
|
@@ -1,14 +1,46 @@
|
|
1
1
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
4
5
|
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import
|
11
|
-
import
|
6
|
+
import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
7
|
+
import "../assert-Dv75vaGI.js";
|
8
|
+
import "../assert_instance_of--9UCVKsi.js";
|
9
|
+
import { MemoryKvStore } from "../kv-DohFOP2C.js";
|
10
|
+
import { createFederation, handleWebFinger } from "../middleware-CPAfRtS5.js";
|
11
|
+
import "../docloader-BcMxZ9JH.js";
|
12
|
+
import "../url-kTAI6_KP.js";
|
13
|
+
import "../semver-CbbIgUsa.js";
|
14
|
+
import "../client-RN5A1Qgw.js";
|
15
|
+
import "../router-D_aVZZUc.js";
|
16
|
+
import "../types-CqoqWDkp.js";
|
17
|
+
import "../multibase-DeCHcK8L.js";
|
18
|
+
import { Image, Link, Person } from "../vocab-BxrrllKY.js";
|
19
|
+
import "../langstr-DbWheeIS.js";
|
20
|
+
import "../lookup-D3xTID-6.js";
|
21
|
+
import "../type-D2s5lmbZ.js";
|
22
|
+
import "../actor-D7NMuy45.js";
|
23
|
+
import "../key-CVIQ7iUB.js";
|
24
|
+
import "../http-BFvv3ZId.js";
|
25
|
+
import "../authdocloader-BKZDAq91.js";
|
26
|
+
import "../ld-bOhcKpmk.js";
|
27
|
+
import "../owner-tYPzPLFs.js";
|
28
|
+
import "../proof-DIsZ1VTb.js";
|
29
|
+
import "../lookup-D_v0FFGL.js";
|
30
|
+
import "../inbox-XV_W1qfB.js";
|
31
|
+
import "../builder-DSTiU6ue.js";
|
32
|
+
import "../collection-QaGK9TVn.js";
|
33
|
+
import "../keycache-uTxsh7dt.js";
|
34
|
+
import "../retry-BiIhZWgD.js";
|
35
|
+
import "../send-CFBOnY61.js";
|
36
|
+
import { test } from "../testing-jcGLO9Lp.js";
|
37
|
+
import "../std__assert-CaBUULmX.js";
|
38
|
+
import "../assert_rejects-FOHCtlD2.js";
|
39
|
+
import "../assert_is_error-D162gXcM.js";
|
40
|
+
import "../assert_not_equals-Cyf5m9Ke.js";
|
41
|
+
import "../assert_throws-CRfQJvVx.js";
|
42
|
+
import "../docloader-09nVWLAZ.js";
|
43
|
+
import { createRequestContext } from "../context-DZKXS0DV.js";
|
12
44
|
|
13
45
|
//#region webfinger/handler.test.ts
|
14
46
|
test("handleWebFinger()", async (t) => {
|
@@ -1,11 +1,21 @@
|
|
1
1
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
4
5
|
|
5
|
-
import {
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
6
|
+
import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
7
|
+
import "../assert-Dv75vaGI.js";
|
8
|
+
import "../assert_instance_of--9UCVKsi.js";
|
9
|
+
import "../docloader-BcMxZ9JH.js";
|
10
|
+
import "../url-kTAI6_KP.js";
|
11
|
+
import { lookupWebFinger } from "../lookup-D3xTID-6.js";
|
12
|
+
import { test } from "../testing-jcGLO9Lp.js";
|
13
|
+
import "../std__assert-CaBUULmX.js";
|
14
|
+
import "../assert_rejects-FOHCtlD2.js";
|
15
|
+
import "../assert_is_error-D162gXcM.js";
|
16
|
+
import "../assert_not_equals-Cyf5m9Ke.js";
|
17
|
+
import "../assert_throws-CRfQJvVx.js";
|
18
|
+
import { install, mock, uninstall } from "../hongminhee__deno-mock-fetch-DJKLj_H-.js";
|
9
19
|
import { withTimeout } from "@es-toolkit/es-toolkit";
|
10
20
|
|
11
21
|
//#region webfinger/lookup.test.ts
|
package/dist/webfinger/mod.d.ts
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import
|
4
|
-
import
|
3
|
+
import "../kv-BmsWxOQ2.js";
|
4
|
+
import "../docloader-DTRsVZPo.js";
|
5
|
+
import { Link$2 as Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger$1 as lookupWebFinger } from "../lookup-DAfStZtI.js";
|
6
|
+
import "../mod-GIh5OYxW.js";
|
5
7
|
export { Link, LookupWebFingerOptions, ResourceDescriptor, lookupWebFinger };
|
package/dist/webfinger/mod.js
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
import { Temporal } from "@js-temporal/polyfill";
|
3
3
|
import { URLPattern } from "urlpattern-polyfill";
|
4
4
|
|
5
|
-
import
|
5
|
+
import "../docloader-DDFam5Xn.js";
|
6
|
+
import { lookupWebFinger } from "../lookup-B5KVF6HM.js";
|
7
|
+
import "../webfinger-C3GIyXIg.js";
|
6
8
|
|
7
9
|
export { lookupWebFinger };
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
2
|
+
import { URLPattern } from "urlpattern-polyfill";
|
3
|
+
import { KvKey, KvStore, KvStoreSetOptions } from "../kv-BmsWxOQ2.js";
|
4
|
+
import { MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions } from "../mq-Bue016Tz.js";
|
5
|
+
import { KVNamespace, Queue } from "@cloudflare/workers-types/experimental";
|
6
|
+
|
7
|
+
//#region x/cfworkers.d.ts
|
8
|
+
/**
|
9
|
+
* Implementation of the {@link KvStore} interface for Cloudflare Workers KV
|
10
|
+
* binding. This class provides a wrapper around Cloudflare's KV namespace to
|
11
|
+
* store and retrieve JSON-serializable values using structured keys.
|
12
|
+
* @since 1.6.0
|
13
|
+
*/
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Implementation of the {@link KvStore} interface for Cloudflare Workers KV
|
17
|
+
* binding. This class provides a wrapper around Cloudflare's KV namespace to
|
18
|
+
* store and retrieve JSON-serializable values using structured keys.
|
19
|
+
* @since 1.6.0
|
20
|
+
*/
|
21
|
+
declare class WorkersKvStore implements KvStore {
|
22
|
+
#private;
|
23
|
+
constructor(namespace: KVNamespace<string>);
|
24
|
+
get<T = unknown>(key: KvKey): Promise<T | undefined>;
|
25
|
+
set(key: KvKey, value: unknown, options?: KvStoreSetOptions): Promise<void>;
|
26
|
+
delete(key: KvKey): Promise<void>;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Implementation of the {@link MessageQueue} interface for Cloudflare
|
30
|
+
* Workers Queues binding. This class provides a wrapper around Cloudflare's
|
31
|
+
* Queues to send messages to a queue.
|
32
|
+
*
|
33
|
+
* Note that this implementation does not support the `listen()` method,
|
34
|
+
* as Cloudflare Workers Queues do not support message consumption in the same
|
35
|
+
* way as other message queue systems. Instead, you should use
|
36
|
+
* the {@link Federation.processQueuedTask} method to process messages
|
37
|
+
* passed to the queue.
|
38
|
+
* @since 1.6.0
|
39
|
+
*/
|
40
|
+
declare class WorkersMessageQueue implements MessageQueue {
|
41
|
+
#private;
|
42
|
+
constructor(queue: Queue);
|
43
|
+
enqueue(message: any, options?: MessageQueueEnqueueOptions): Promise<void>;
|
44
|
+
enqueueMany(messages: any[], options?: MessageQueueEnqueueOptions): Promise<void>;
|
45
|
+
listen(_handler: (message: any) => Promise<void> | void, _options?: MessageQueueListenOptions): Promise<void>;
|
46
|
+
}
|
47
|
+
|
48
|
+
//#endregion
|
49
|
+
export { WorkersKvStore, WorkersMessageQueue };
|
@@ -0,0 +1,73 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
|
5
|
+
//#region x/cfworkers.ts
|
6
|
+
/**
|
7
|
+
* Implementation of the {@link KvStore} interface for Cloudflare Workers KV
|
8
|
+
* binding. This class provides a wrapper around Cloudflare's KV namespace to
|
9
|
+
* store and retrieve JSON-serializable values using structured keys.
|
10
|
+
* @since 1.6.0
|
11
|
+
*/
|
12
|
+
var WorkersKvStore = class {
|
13
|
+
#namespace;
|
14
|
+
constructor(namespace) {
|
15
|
+
this.#namespace = namespace;
|
16
|
+
}
|
17
|
+
#encodeKey(key) {
|
18
|
+
return JSON.stringify(key);
|
19
|
+
}
|
20
|
+
async get(key) {
|
21
|
+
const encodedKey = this.#encodeKey(key);
|
22
|
+
const { value, metadata } = await this.#namespace.getWithMetadata(encodedKey, "json");
|
23
|
+
return metadata == null || metadata.expires < Date.now() ? void 0 : value;
|
24
|
+
}
|
25
|
+
async set(key, value, options) {
|
26
|
+
const encodedKey = this.#encodeKey(key);
|
27
|
+
const metadata = options?.ttl == null ? {} : { expires: Date.now() + options.ttl.total("milliseconds") };
|
28
|
+
await this.#namespace.put(encodedKey, JSON.stringify(value), options?.ttl == null ? { metadata } : {
|
29
|
+
expirationTtl: Math.max(options.ttl.total("seconds"), 60),
|
30
|
+
metadata
|
31
|
+
});
|
32
|
+
}
|
33
|
+
delete(key) {
|
34
|
+
return this.#namespace.delete(this.#encodeKey(key));
|
35
|
+
}
|
36
|
+
};
|
37
|
+
/**
|
38
|
+
* Implementation of the {@link MessageQueue} interface for Cloudflare
|
39
|
+
* Workers Queues binding. This class provides a wrapper around Cloudflare's
|
40
|
+
* Queues to send messages to a queue.
|
41
|
+
*
|
42
|
+
* Note that this implementation does not support the `listen()` method,
|
43
|
+
* as Cloudflare Workers Queues do not support message consumption in the same
|
44
|
+
* way as other message queue systems. Instead, you should use
|
45
|
+
* the {@link Federation.processQueuedTask} method to process messages
|
46
|
+
* passed to the queue.
|
47
|
+
* @since 1.6.0
|
48
|
+
*/
|
49
|
+
var WorkersMessageQueue = class {
|
50
|
+
#queue;
|
51
|
+
constructor(queue) {
|
52
|
+
this.#queue = queue;
|
53
|
+
}
|
54
|
+
enqueue(message, options) {
|
55
|
+
return this.#queue.send(message, {
|
56
|
+
contentType: "json",
|
57
|
+
delaySeconds: options?.delay?.total("seconds") ?? 0
|
58
|
+
});
|
59
|
+
}
|
60
|
+
enqueueMany(messages, options) {
|
61
|
+
const requests = messages.map((msg) => ({
|
62
|
+
body: msg,
|
63
|
+
contentType: "json"
|
64
|
+
}));
|
65
|
+
return this.#queue.sendBatch(requests, { delaySeconds: options?.delay?.total("seconds") ?? 0 });
|
66
|
+
}
|
67
|
+
listen(_handler, _options) {
|
68
|
+
throw new TypeError("WorkersMessageQueue does not support listen(). Use Federation.processQueuedTask() method instead.");
|
69
|
+
}
|
70
|
+
};
|
71
|
+
|
72
|
+
//#endregion
|
73
|
+
export { WorkersKvStore, WorkersMessageQueue };
|
@@ -0,0 +1,153 @@
|
|
1
|
+
|
2
|
+
import { Temporal } from "@js-temporal/polyfill";
|
3
|
+
import { URLPattern } from "urlpattern-polyfill";
|
4
|
+
globalThis.addEventListener = () => {};
|
5
|
+
|
6
|
+
import { assertEquals } from "../assert_equals-ClvzlhZu.js";
|
7
|
+
import "../assert-Dv75vaGI.js";
|
8
|
+
import "../assert_instance_of--9UCVKsi.js";
|
9
|
+
import { test } from "../testing-jcGLO9Lp.js";
|
10
|
+
import "../std__assert-CaBUULmX.js";
|
11
|
+
import "../assert_rejects-FOHCtlD2.js";
|
12
|
+
import "../assert_is_error-D162gXcM.js";
|
13
|
+
import "../assert_not_equals-Cyf5m9Ke.js";
|
14
|
+
import "../assert_throws-CRfQJvVx.js";
|
15
|
+
import { delay } from "@es-toolkit/es-toolkit";
|
16
|
+
|
17
|
+
//#region x/cfworkers.ts
|
18
|
+
/**
|
19
|
+
* Implementation of the {@link KvStore} interface for Cloudflare Workers KV
|
20
|
+
* binding. This class provides a wrapper around Cloudflare's KV namespace to
|
21
|
+
* store and retrieve JSON-serializable values using structured keys.
|
22
|
+
* @since 1.6.0
|
23
|
+
*/
|
24
|
+
var WorkersKvStore = class {
|
25
|
+
#namespace;
|
26
|
+
constructor(namespace) {
|
27
|
+
this.#namespace = namespace;
|
28
|
+
}
|
29
|
+
#encodeKey(key) {
|
30
|
+
return JSON.stringify(key);
|
31
|
+
}
|
32
|
+
async get(key) {
|
33
|
+
const encodedKey = this.#encodeKey(key);
|
34
|
+
const { value, metadata } = await this.#namespace.getWithMetadata(encodedKey, "json");
|
35
|
+
return metadata == null || metadata.expires < Date.now() ? void 0 : value;
|
36
|
+
}
|
37
|
+
async set(key, value, options) {
|
38
|
+
const encodedKey = this.#encodeKey(key);
|
39
|
+
const metadata = options?.ttl == null ? {} : { expires: Date.now() + options.ttl.total("milliseconds") };
|
40
|
+
await this.#namespace.put(encodedKey, JSON.stringify(value), options?.ttl == null ? { metadata } : {
|
41
|
+
expirationTtl: Math.max(options.ttl.total("seconds"), 60),
|
42
|
+
metadata
|
43
|
+
});
|
44
|
+
}
|
45
|
+
delete(key) {
|
46
|
+
return this.#namespace.delete(this.#encodeKey(key));
|
47
|
+
}
|
48
|
+
};
|
49
|
+
/**
|
50
|
+
* Implementation of the {@link MessageQueue} interface for Cloudflare
|
51
|
+
* Workers Queues binding. This class provides a wrapper around Cloudflare's
|
52
|
+
* Queues to send messages to a queue.
|
53
|
+
*
|
54
|
+
* Note that this implementation does not support the `listen()` method,
|
55
|
+
* as Cloudflare Workers Queues do not support message consumption in the same
|
56
|
+
* way as other message queue systems. Instead, you should use
|
57
|
+
* the {@link Federation.processQueuedTask} method to process messages
|
58
|
+
* passed to the queue.
|
59
|
+
* @since 1.6.0
|
60
|
+
*/
|
61
|
+
var WorkersMessageQueue = class {
|
62
|
+
#queue;
|
63
|
+
constructor(queue) {
|
64
|
+
this.#queue = queue;
|
65
|
+
}
|
66
|
+
enqueue(message, options) {
|
67
|
+
return this.#queue.send(message, {
|
68
|
+
contentType: "json",
|
69
|
+
delaySeconds: options?.delay?.total("seconds") ?? 0
|
70
|
+
});
|
71
|
+
}
|
72
|
+
enqueueMany(messages, options) {
|
73
|
+
const requests = messages.map((msg) => ({
|
74
|
+
body: msg,
|
75
|
+
contentType: "json"
|
76
|
+
}));
|
77
|
+
return this.#queue.sendBatch(requests, { delaySeconds: options?.delay?.total("seconds") ?? 0 });
|
78
|
+
}
|
79
|
+
listen(_handler, _options) {
|
80
|
+
throw new TypeError("WorkersMessageQueue does not support listen(). Use Federation.processQueuedTask() method instead.");
|
81
|
+
}
|
82
|
+
};
|
83
|
+
|
84
|
+
//#endregion
|
85
|
+
//#region x/cfworkers.test.ts
|
86
|
+
test({
|
87
|
+
name: "WorkersKvStore",
|
88
|
+
ignore: !("navigator" in globalThis && navigator.userAgent === "Cloudflare-Workers"),
|
89
|
+
async fn(t) {
|
90
|
+
const { env } = t;
|
91
|
+
const store = new WorkersKvStore(env.KV1);
|
92
|
+
await t.step("set() & get()", async () => {
|
93
|
+
await store.set(["foo", "bar"], {
|
94
|
+
foo: 1,
|
95
|
+
bar: 2
|
96
|
+
});
|
97
|
+
assertEquals(await store.get(["foo", "bar"]), {
|
98
|
+
foo: 1,
|
99
|
+
bar: 2
|
100
|
+
});
|
101
|
+
assertEquals(await store.get(["foo"]), void 0);
|
102
|
+
await store.set(["foo", "baz"], "baz", { ttl: Temporal.Duration.from({ seconds: 0 }) });
|
103
|
+
assertEquals(await store.get(["foo", "baz"]), void 0);
|
104
|
+
});
|
105
|
+
await t.step("delete()", async () => {
|
106
|
+
await store.delete(["foo", "bar"]);
|
107
|
+
assertEquals(await store.get(["foo", "bar"]), void 0);
|
108
|
+
});
|
109
|
+
}
|
110
|
+
});
|
111
|
+
test({
|
112
|
+
name: "WorkersMessageQueue",
|
113
|
+
ignore: !("navigator" in globalThis && navigator.userAgent === "Cloudflare-Workers"),
|
114
|
+
async fn(t) {
|
115
|
+
const { env, messageBatches } = t;
|
116
|
+
const queue = new WorkersMessageQueue(env.Q1);
|
117
|
+
await queue.enqueue({
|
118
|
+
foo: 1,
|
119
|
+
bar: 2
|
120
|
+
});
|
121
|
+
await waitFor(() => messageBatches.length > 0, 5e3);
|
122
|
+
assertEquals(messageBatches.length, 1);
|
123
|
+
assertEquals(messageBatches[0].queue, "Q1");
|
124
|
+
assertEquals(messageBatches[0].messages.length, 1);
|
125
|
+
assertEquals(messageBatches[0].messages[0].body, {
|
126
|
+
foo: 1,
|
127
|
+
bar: 2
|
128
|
+
});
|
129
|
+
await queue.enqueue({
|
130
|
+
baz: 3,
|
131
|
+
qux: 4
|
132
|
+
}, { delay: Temporal.Duration.from({ seconds: 3 }) });
|
133
|
+
await delay(2e3);
|
134
|
+
assertEquals(messageBatches.length, 1);
|
135
|
+
await waitFor(() => messageBatches.length > 1, 6e3);
|
136
|
+
assertEquals(messageBatches[1].queue, "Q1");
|
137
|
+
assertEquals(messageBatches[1].messages.length, 1);
|
138
|
+
assertEquals(messageBatches[1].messages[0].body, {
|
139
|
+
baz: 3,
|
140
|
+
qux: 4
|
141
|
+
});
|
142
|
+
}
|
143
|
+
});
|
144
|
+
async function waitFor(predicate, timeoutMs) {
|
145
|
+
let delayed = 0;
|
146
|
+
while (!predicate()) {
|
147
|
+
await delay(500);
|
148
|
+
delayed += 500;
|
149
|
+
if (delayed > timeoutMs) throw new Error("Timeout");
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
//#endregion
|
package/dist/x/hono.d.ts
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import
|
3
|
+
import "../kv-BmsWxOQ2.js";
|
4
|
+
import "../docloader-DTRsVZPo.js";
|
5
|
+
import "../client-Dw1pCSIt.js";
|
6
|
+
import "../vocab-CLWdoo7y.js";
|
7
|
+
import "../actor-lFlm8FYo.js";
|
8
|
+
import "../http-BImJcLfv.js";
|
9
|
+
import "../owner-BjpObx-L.js";
|
10
|
+
import "../mod-DysVoXOu.js";
|
11
|
+
import "../lookup-DAfStZtI.js";
|
12
|
+
import { Federation } from "../context-CzJXjNR8.js";
|
13
|
+
import "../mq-Bue016Tz.js";
|
4
14
|
|
5
15
|
//#region x/hono.d.ts
|
6
|
-
|
7
16
|
interface HonoRequest {
|
8
17
|
raw: Request;
|
9
18
|
}
|
package/dist/x/sveltekit.d.ts
CHANGED
@@ -1,9 +1,18 @@
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
2
2
|
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import
|
3
|
+
import "../kv-BmsWxOQ2.js";
|
4
|
+
import "../docloader-DTRsVZPo.js";
|
5
|
+
import "../client-Dw1pCSIt.js";
|
6
|
+
import "../vocab-CLWdoo7y.js";
|
7
|
+
import "../actor-lFlm8FYo.js";
|
8
|
+
import "../http-BImJcLfv.js";
|
9
|
+
import "../owner-BjpObx-L.js";
|
10
|
+
import "../mod-DysVoXOu.js";
|
11
|
+
import "../lookup-DAfStZtI.js";
|
12
|
+
import { Federation } from "../context-CzJXjNR8.js";
|
13
|
+
import "../mq-Bue016Tz.js";
|
4
14
|
|
5
15
|
//#region x/sveltekit.d.ts
|
6
|
-
|
7
16
|
type RequestEvent = {
|
8
17
|
request: Request;
|
9
18
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "1.6.1-dev.
|
3
|
+
"version": "1.6.1-dev.871+ca12a15a",
|
4
4
|
"description": "An ActivityPub server framework",
|
5
5
|
"keywords": [
|
6
6
|
"ActivityPub",
|
@@ -68,6 +68,10 @@
|
|
68
68
|
"types": "./dist/webfinger/mod.d.ts",
|
69
69
|
"import": "./dist/webfinger/mod.js"
|
70
70
|
},
|
71
|
+
"./x/cfworkers": {
|
72
|
+
"types": "./dist/x/cfworkers.d.ts",
|
73
|
+
"import": "./dist/x/cfworkers.js"
|
74
|
+
},
|
71
75
|
"./x/hono": {
|
72
76
|
"types": "./dist/x/hono.d.ts",
|
73
77
|
"import": "./dist/x/hono.js"
|
@@ -99,6 +103,7 @@
|
|
99
103
|
"urlpattern-polyfill": "^10.1.0"
|
100
104
|
},
|
101
105
|
"devDependencies": {
|
106
|
+
"@cloudflare/workers-types": "^4.20250529.0",
|
102
107
|
"@hongminhee/deno-mock-fetch": "npm:@jsr/hongminhee__deno-mock-fetch@^0.3.2",
|
103
108
|
"@std/assert": "npm:@jsr/std__assert@^0.226.0",
|
104
109
|
"@std/path": "npm:@jsr/std__path@^1.0.9",
|
package/dist/codegen/fs.js
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { readdir } from "node:fs/promises";
|
6
|
-
import { join } from "node:path";
|
7
|
-
|
8
|
-
//#region codegen/fs.ts
|
9
|
-
/**
|
10
|
-
* Recursively read a directory, yielding the paths of all files. File paths
|
11
|
-
* are relative to the directory, and directories are not yielded.
|
12
|
-
* @param dir The directory to read.
|
13
|
-
* @returns An async iterable of file paths.
|
14
|
-
*/
|
15
|
-
async function* readDirRecursive(dir) {
|
16
|
-
for (const entry of await readdir(dir, { withFileTypes: true })) if (entry.isDirectory()) {
|
17
|
-
const path = join(dir, entry.name);
|
18
|
-
for await (const subentry of readDirRecursive(path)) yield join(entry.name, subentry);
|
19
|
-
} else yield entry.name;
|
20
|
-
}
|
21
|
-
|
22
|
-
//#endregion
|
23
|
-
export { readDirRecursive };
|
package/dist/codegen/schema.js
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { fromFileUrl } from "../node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/from_file_url.js";
|
6
|
-
import { dirname } from "../node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js";
|
7
|
-
import { join } from "../node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js";
|
8
|
-
import { parse } from "../node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/parse.js";
|
9
|
-
import { readDirRecursive } from "./fs.js";
|
10
|
-
import { Validator } from "@cfworker/json-schema";
|
11
|
-
import { readFile } from "node:fs/promises";
|
12
|
-
import { join as join$1 } from "node:path";
|
13
|
-
|
14
|
-
//#region codegen/schema.ts
|
15
|
-
/**
|
16
|
-
* An error that occurred while loading a schema file.
|
17
|
-
*/
|
18
|
-
var SchemaError = class extends Error {
|
19
|
-
/**
|
20
|
-
* The path of the schema file.
|
21
|
-
*/
|
22
|
-
path;
|
23
|
-
/**
|
24
|
-
* Constructs a new `SchemaError`.
|
25
|
-
* @param path The path of the schema file.
|
26
|
-
* @param message The error message.
|
27
|
-
*/
|
28
|
-
constructor(path, message) {
|
29
|
-
super(message);
|
30
|
-
this.path = path;
|
31
|
-
}
|
32
|
-
};
|
33
|
-
async function loadSchemaValidator() {
|
34
|
-
const thisFile = new URL(import.meta.url);
|
35
|
-
const schemaFile = join(dirname(thisFile), "schema.yaml");
|
36
|
-
let content;
|
37
|
-
if (schemaFile.protocol !== "file:") {
|
38
|
-
const response = await fetch(schemaFile);
|
39
|
-
content = await response.text();
|
40
|
-
} else content = await readFile(fromFileUrl(schemaFile), { encoding: "utf-8" });
|
41
|
-
const schemaObject = parse(content);
|
42
|
-
return new Validator(schemaObject);
|
43
|
-
}
|
44
|
-
let schemaValidator = void 0;
|
45
|
-
async function loadSchema(path) {
|
46
|
-
const content = await readFile(path, { encoding: "utf-8" });
|
47
|
-
const schema = parse(content);
|
48
|
-
if (schemaValidator == null) schemaValidator = await loadSchemaValidator();
|
49
|
-
const result = schemaValidator.validate(schema);
|
50
|
-
const errors = [];
|
51
|
-
if (result.valid) return schema;
|
52
|
-
for (const e of result.errors) errors.push(new SchemaError(path, `${path}:${e.instanceLocation}: ${e.error}`));
|
53
|
-
throw new AggregateError(errors);
|
54
|
-
}
|
55
|
-
/**
|
56
|
-
* Loads all schema files in the directory.
|
57
|
-
* @param dir The path of the directory to load schema files from.
|
58
|
-
* @returns A map from the qualified URI of a type to its {@link SchemaFile}.
|
59
|
-
* @throws {@link AggregateError} if any schema file is invalid. It contains
|
60
|
-
* all {@link SchemaError}s of the invalid schema files.
|
61
|
-
*/
|
62
|
-
async function loadSchemaFiles(dir) {
|
63
|
-
if (typeof dir !== "string") throw new TypeError("Expected a directory path in string");
|
64
|
-
const result = {};
|
65
|
-
const errors = [];
|
66
|
-
for await (const relPath of readDirRecursive(dir)) {
|
67
|
-
if (!relPath.match(/\.ya?ml$/i)) continue;
|
68
|
-
const path = join$1(dir, relPath);
|
69
|
-
let schema;
|
70
|
-
try {
|
71
|
-
schema = await loadSchema(path);
|
72
|
-
} catch (e) {
|
73
|
-
if (e instanceof AggregateError && e.errors.length > 0 && e.errors[0] instanceof SchemaError) {
|
74
|
-
errors.push(...e.errors);
|
75
|
-
continue;
|
76
|
-
}
|
77
|
-
throw e;
|
78
|
-
}
|
79
|
-
result[schema.uri] = schema;
|
80
|
-
}
|
81
|
-
if (errors.length > 0) throw new AggregateError(errors);
|
82
|
-
const entries = Object.entries(result);
|
83
|
-
entries.sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
84
|
-
return Object.fromEntries(entries);
|
85
|
-
}
|
86
|
-
|
87
|
-
//#endregion
|
88
|
-
export { loadSchemaFiles };
|