@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,63 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
//#region federation/negotiation.ts
|
6
|
-
function compareSpecs(a, b) {
|
7
|
-
return b.q - a.q || (b.s ?? 0) - (a.s ?? 0) || (a.o ?? 0) - (b.o ?? 0) || a.i - b.i || 0;
|
8
|
-
}
|
9
|
-
function isQuality(spec) {
|
10
|
-
return spec.q > 0;
|
11
|
-
}
|
12
|
-
const simpleMediaTypeRegExp = /^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;
|
13
|
-
function splitKeyValuePair(str) {
|
14
|
-
const [key, value] = str.split("=");
|
15
|
-
return [key.toLowerCase(), value];
|
16
|
-
}
|
17
|
-
function parseMediaType(str, i) {
|
18
|
-
const match = simpleMediaTypeRegExp.exec(str);
|
19
|
-
if (!match) return;
|
20
|
-
const [, type, subtype, parameters] = match;
|
21
|
-
if (!type || !subtype) return;
|
22
|
-
const params = Object.create(null);
|
23
|
-
let q = 1;
|
24
|
-
if (parameters) {
|
25
|
-
const kvps = parameters.split(";").map((p) => p.trim()).map(splitKeyValuePair);
|
26
|
-
for (const [key, val] of kvps) {
|
27
|
-
const value = val && val[0] === `"` && val[val.length - 1] === `"` ? val.slice(1, val.length - 1) : val;
|
28
|
-
if (key === "q" && value) {
|
29
|
-
q = parseFloat(value);
|
30
|
-
break;
|
31
|
-
}
|
32
|
-
params[key] = value;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
return {
|
36
|
-
type,
|
37
|
-
subtype,
|
38
|
-
params,
|
39
|
-
i,
|
40
|
-
o: void 0,
|
41
|
-
q,
|
42
|
-
s: void 0
|
43
|
-
};
|
44
|
-
}
|
45
|
-
function parseAccept(accept) {
|
46
|
-
const accepts = accept.split(",").map((p) => p.trim());
|
47
|
-
const mediaTypes = [];
|
48
|
-
for (const [index, accept$1] of accepts.entries()) {
|
49
|
-
const mediaType = parseMediaType(accept$1.trim(), index);
|
50
|
-
if (mediaType) mediaTypes.push(mediaType);
|
51
|
-
}
|
52
|
-
return mediaTypes;
|
53
|
-
}
|
54
|
-
function getFullType(spec) {
|
55
|
-
return `${spec.type}/${spec.subtype}`;
|
56
|
-
}
|
57
|
-
function preferredMediaTypes(accept) {
|
58
|
-
const accepts = parseAccept(accept === void 0 ? "*/*" : accept ?? "");
|
59
|
-
return accepts.filter(isQuality).sort(compareSpecs).map(getFullType);
|
60
|
-
}
|
61
|
-
|
62
|
-
//#endregion
|
63
|
-
export { preferredMediaTypes };
|
@@ -1,71 +0,0 @@
|
|
1
|
-
import { Temporal } from "@js-temporal/polyfill";
|
2
|
-
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
|
4
|
-
//#region federation/retry.d.ts
|
5
|
-
/**
|
6
|
-
* The context passed to a {@link RetryPolicy} callback.
|
7
|
-
* @since 0.12.0
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* The context passed to a {@link RetryPolicy} callback.
|
11
|
-
* @since 0.12.0
|
12
|
-
*/
|
13
|
-
interface RetryContext {
|
14
|
-
/**
|
15
|
-
* The elapsed time since the first attempt.
|
16
|
-
*/
|
17
|
-
readonly elapsedTime: Temporal.Duration;
|
18
|
-
/**
|
19
|
-
* The number of attempts so far.
|
20
|
-
*/
|
21
|
-
readonly attempts: number;
|
22
|
-
}
|
23
|
-
/**
|
24
|
-
* A policy that determines the delay before the next retry.
|
25
|
-
* @param context The retry context.
|
26
|
-
* @returns The delay before the next retry, or `null` to stop retrying.
|
27
|
-
* It must not negative.
|
28
|
-
* @since 0.12.0
|
29
|
-
*/
|
30
|
-
type RetryPolicy = (context: RetryContext) => Temporal.Duration | null;
|
31
|
-
/**
|
32
|
-
* Options for {@link createExponentialBackoffPolicy} function.
|
33
|
-
* @since 0.12.0
|
34
|
-
*/
|
35
|
-
interface CreateExponentialBackoffPolicyOptions {
|
36
|
-
/**
|
37
|
-
* The initial delay before the first retry. Defaults to 1 second.
|
38
|
-
*/
|
39
|
-
readonly initialDelay?: Temporal.DurationLike;
|
40
|
-
/**
|
41
|
-
* The maximum delay between retries. Defaults to 12 hours.
|
42
|
-
*/
|
43
|
-
readonly maxDelay?: Temporal.DurationLike;
|
44
|
-
/**
|
45
|
-
* The maximum number of attempts before giving up.
|
46
|
-
* Defaults to 10.
|
47
|
-
*/
|
48
|
-
readonly maxAttempts?: number;
|
49
|
-
/**
|
50
|
-
* The factor to multiply the previous delay by for each retry.
|
51
|
-
* Defaults to 2.
|
52
|
-
*/
|
53
|
-
readonly factor?: number;
|
54
|
-
/**
|
55
|
-
* Whether to add jitter to the delay to avoid synchronization.
|
56
|
-
* Turned on by default.
|
57
|
-
*/
|
58
|
-
readonly jitter?: boolean;
|
59
|
-
}
|
60
|
-
/**
|
61
|
-
* Creates an exponential backoff retry policy. The delay between retries
|
62
|
-
* starts at the `initialDelay` and is multiplied by the `factor` for each
|
63
|
-
* subsequent retry, up to the `maxDelay`. The policy will give up after
|
64
|
-
* `maxAttempts` attempts. The actual delay is randomized to avoid
|
65
|
-
* synchronization (jitter).
|
66
|
-
* @param options The options for the policy.
|
67
|
-
* @returns The retry policy.
|
68
|
-
* @since 0.12.0
|
69
|
-
*/
|
70
|
-
declare function createExponentialBackoffPolicy(options?: CreateExponentialBackoffPolicyOptions): RetryPolicy; //#endregion
|
71
|
-
export { CreateExponentialBackoffPolicyOptions, RetryContext, RetryPolicy, createExponentialBackoffPolicy as createExponentialBackoffPolicy$1 };
|
@@ -1,91 +0,0 @@
|
|
1
|
-
import { Temporal } from "@js-temporal/polyfill";
|
2
|
-
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
|
4
|
-
//#region federation/router.d.ts
|
5
|
-
/**
|
6
|
-
* Options for the {@link Router}.
|
7
|
-
* @since 0.12.0
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* Options for the {@link Router}.
|
11
|
-
* @since 0.12.0
|
12
|
-
*/
|
13
|
-
interface RouterOptions {
|
14
|
-
/**
|
15
|
-
* Whether to ignore trailing slashes when matching paths.
|
16
|
-
*/
|
17
|
-
trailingSlashInsensitive?: boolean;
|
18
|
-
}
|
19
|
-
/**
|
20
|
-
* The result of {@link Router.route} method.
|
21
|
-
* @since 1.3.0
|
22
|
-
*/
|
23
|
-
interface RouterRouteResult {
|
24
|
-
/**
|
25
|
-
* The matched route name.
|
26
|
-
*/
|
27
|
-
name: string;
|
28
|
-
/**
|
29
|
-
* The URL template of the matched route.
|
30
|
-
*/
|
31
|
-
template: string;
|
32
|
-
/**
|
33
|
-
* The values extracted from the URL.
|
34
|
-
*/
|
35
|
-
values: Record<string, string>;
|
36
|
-
}
|
37
|
-
/**
|
38
|
-
* URL router and constructor based on URI Template
|
39
|
-
* ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
|
40
|
-
*/
|
41
|
-
declare class Router {
|
42
|
-
#private;
|
43
|
-
/**
|
44
|
-
* Whether to ignore trailing slashes when matching paths.
|
45
|
-
* @since 1.6.0
|
46
|
-
*/
|
47
|
-
trailingSlashInsensitive: boolean;
|
48
|
-
/**
|
49
|
-
* Create a new {@link Router}.
|
50
|
-
* @param options Options for the router.
|
51
|
-
*/
|
52
|
-
constructor(options?: RouterOptions);
|
53
|
-
/**
|
54
|
-
* Checks if a path name exists in the router.
|
55
|
-
* @param name The name of the path.
|
56
|
-
* @returns `true` if the path name exists, otherwise `false`.
|
57
|
-
*/
|
58
|
-
has(name: string): boolean;
|
59
|
-
/**
|
60
|
-
* Adds a new path rule to the router.
|
61
|
-
* @param template The path pattern.
|
62
|
-
* @param name The name of the path.
|
63
|
-
* @returns The names of the variables in the path pattern.
|
64
|
-
*/
|
65
|
-
add(template: string, name: string): Set<string>;
|
66
|
-
/**
|
67
|
-
* Resolves a path name and values from a URL, if any match.
|
68
|
-
* @param url The URL to resolve.
|
69
|
-
* @returns The name of the path and its values, if any match. Otherwise,
|
70
|
-
* `null`.
|
71
|
-
*/
|
72
|
-
route(url: string): RouterRouteResult | null;
|
73
|
-
/**
|
74
|
-
* Constructs a URL/path from a path name and values.
|
75
|
-
* @param name The name of the path.
|
76
|
-
* @param values The values to expand the path with.
|
77
|
-
* @returns The URL/path, if the name exists. Otherwise, `null`.
|
78
|
-
*/
|
79
|
-
build(name: string, values: Record<string, string>): string | null;
|
80
|
-
}
|
81
|
-
/**
|
82
|
-
* An error thrown by the {@link Router}.
|
83
|
-
*/
|
84
|
-
declare class RouterError extends Error {
|
85
|
-
/**
|
86
|
-
* Create a new {@link RouterError}.
|
87
|
-
* @param message The error message.
|
88
|
-
*/
|
89
|
-
constructor(message: string);
|
90
|
-
} //#endregion
|
91
|
-
export { Router as Router$1, RouterError as RouterError$1, RouterOptions, RouterRouteResult };
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { Temporal } from "@js-temporal/polyfill";
|
2
|
-
import { URLPattern } from "urlpattern-polyfill";
|
3
|
-
import { TracerProvider } from "@opentelemetry/api";
|
4
|
-
|
5
|
-
//#region federation/send.d.ts
|
6
|
-
/**
|
7
|
-
* A key pair for an actor who sends an activity.
|
8
|
-
* @since 0.10.0
|
9
|
-
*/
|
10
|
-
|
11
|
-
/**
|
12
|
-
* A key pair for an actor who sends an activity.
|
13
|
-
* @since 0.10.0
|
14
|
-
*/
|
15
|
-
interface SenderKeyPair {
|
16
|
-
/**
|
17
|
-
* The actor's private key to sign the request.
|
18
|
-
*/
|
19
|
-
privateKey: CryptoKey;
|
20
|
-
/**
|
21
|
-
* The public key ID that corresponds to the private key.
|
22
|
-
*/
|
23
|
-
keyId: URL;
|
24
|
-
} //#endregion
|
25
|
-
|
26
|
-
/**
|
27
|
-
* Parameters for {@link sendActivity}.
|
28
|
-
*/
|
29
|
-
export { SenderKeyPair };
|
@@ -1,101 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { router } from "./router.js";
|
6
|
-
|
7
|
-
//#region node_modules/.pnpm/@jsr+hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/mod.js
|
8
|
-
var UnhandledRouteError = class extends Error {
|
9
|
-
routes;
|
10
|
-
request;
|
11
|
-
constructor(init) {
|
12
|
-
const { request, routes } = init;
|
13
|
-
const method = request.method;
|
14
|
-
const reqPath = new URL(request.url).pathname;
|
15
|
-
const routesNumber = Object.entries(routes).length;
|
16
|
-
const routePlural = routesNumber === 1 ? "route has a handler" : "routes have handlers";
|
17
|
-
super(`${method} ${reqPath} (${routesNumber} ${routePlural})`);
|
18
|
-
this.name = this.constructor.name;
|
19
|
-
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
20
|
-
this.routes = routes;
|
21
|
-
this.request = request;
|
22
|
-
}
|
23
|
-
};
|
24
|
-
/**
|
25
|
-
* Get a set of functions that do not share any state with the globals.
|
26
|
-
*
|
27
|
-
* The returned object can be destructured.
|
28
|
-
*
|
29
|
-
* ```
|
30
|
-
* const { fetch, mock, remove, reset } = sandbox()
|
31
|
-
* ```
|
32
|
-
*/ function sandbox() {
|
33
|
-
const routeStore = new Map();
|
34
|
-
async function fetch(input, init) {
|
35
|
-
if (input instanceof URL) input = input.toString();
|
36
|
-
const req = new Request(input, init);
|
37
|
-
const routes = Object.fromEntries(routeStore.entries());
|
38
|
-
return await router(routes, (request) => {
|
39
|
-
throw new UnhandledRouteError({
|
40
|
-
request,
|
41
|
-
routes
|
42
|
-
});
|
43
|
-
}, (_, error) => {
|
44
|
-
throw error;
|
45
|
-
})(req);
|
46
|
-
}
|
47
|
-
function mock$1(route, handler) {
|
48
|
-
routeStore.set(route, handler);
|
49
|
-
}
|
50
|
-
function remove$1(route) {
|
51
|
-
routeStore.delete(route);
|
52
|
-
}
|
53
|
-
function reset$1() {
|
54
|
-
routeStore.clear();
|
55
|
-
}
|
56
|
-
return {
|
57
|
-
reset: reset$1,
|
58
|
-
mock: mock$1,
|
59
|
-
remove: remove$1,
|
60
|
-
fetch
|
61
|
-
};
|
62
|
-
}
|
63
|
-
const globalMockFetch = sandbox();
|
64
|
-
/** This is the function that replaces `fetch` when you call `install()`. */ const mockedFetch = globalMockFetch.fetch;
|
65
|
-
/**
|
66
|
-
* Mock a new route, or override an existing handler.
|
67
|
-
*
|
68
|
-
* The route uses URLPattern syntax, with the additional extension of
|
69
|
-
* (optional) method routing by prefixing with the method,
|
70
|
-
* eg. `"POST@/user/:id"`.
|
71
|
-
*
|
72
|
-
* The handler function may be asynchronous.
|
73
|
-
*
|
74
|
-
* ```
|
75
|
-
* mock("GET@/users/:id", async (_req, params) => {
|
76
|
-
* const id = parseInt(params["id"]);
|
77
|
-
* const data = await magicallyGetMyUserData(id);
|
78
|
-
* return new Response(JSON.stringify(data));
|
79
|
-
* })
|
80
|
-
* ```
|
81
|
-
*/ const mock = globalMockFetch.mock;
|
82
|
-
/** Remove an existing route handler. */ const remove = globalMockFetch.remove;
|
83
|
-
/** Remove all existing route handlers. */ const reset = globalMockFetch.reset;
|
84
|
-
const originalFetch = globalThis.fetch;
|
85
|
-
/**
|
86
|
-
* Replace `globalThis.fetch` with `mockedFetch` (or another function that
|
87
|
-
* matches the `fetch` signature)
|
88
|
-
*
|
89
|
-
* To restore the original `globalThis.fetch`, call `uninstall()`.
|
90
|
-
*/ const install = (replacement) => {
|
91
|
-
globalThis.fetch = replacement ?? mockedFetch;
|
92
|
-
};
|
93
|
-
/**
|
94
|
-
* Restore `globalThis.fetch` to what it was before this library was imported.
|
95
|
-
*/ const uninstall = () => {
|
96
|
-
globalThis.fetch = originalFetch;
|
97
|
-
reset();
|
98
|
-
};
|
99
|
-
|
100
|
-
//#endregion
|
101
|
-
export { install, mock, uninstall };
|
@@ -1,49 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { AssertionError } from "./assertion_error.js";
|
6
|
-
import { equal } from "./equal.js";
|
7
|
-
import { buildMessage } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/build_message.js";
|
8
|
-
import { diff } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff.js";
|
9
|
-
import { diffStr } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff_str.js";
|
10
|
-
import { format } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js";
|
11
|
-
|
12
|
-
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js
|
13
|
-
/**
|
14
|
-
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
15
|
-
* deeply equal, then throw.
|
16
|
-
*
|
17
|
-
* Type parameter can be specified to ensure values under comparison have the
|
18
|
-
* same type.
|
19
|
-
*
|
20
|
-
* @example Usage
|
21
|
-
* ```ts no-eval
|
22
|
-
* import { assertEquals } from "@std/assert/assert-equals";
|
23
|
-
*
|
24
|
-
* assertEquals("world", "world"); // Doesn't throw
|
25
|
-
* assertEquals("hello", "world"); // Throws
|
26
|
-
* ```
|
27
|
-
*
|
28
|
-
* Note: formatter option is experimental and may be removed in the future.
|
29
|
-
*
|
30
|
-
* @typeParam T The type of the values to compare. This is usually inferred.
|
31
|
-
* @param actual The actual value to compare.
|
32
|
-
* @param expected The expected value to compare.
|
33
|
-
* @param msg The optional message to display if the assertion fails.
|
34
|
-
* @param options The optional object for the assertion.
|
35
|
-
*/ function assertEquals(actual, expected, msg) {
|
36
|
-
if (equal(actual, expected)) return;
|
37
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
38
|
-
let message = `Values are not equal${msgSuffix}`;
|
39
|
-
const actualString = format(actual);
|
40
|
-
const expectedString = format(expected);
|
41
|
-
const stringDiff = typeof actual === "string" && typeof expected === "string";
|
42
|
-
const diffResult = stringDiff ? diffStr(actual, expected) : diff(actualString.split("\n"), expectedString.split("\n"));
|
43
|
-
const diffMsg = buildMessage(diffResult, { stringDiff }).join("\n");
|
44
|
-
message = `${message}\n${diffMsg}`;
|
45
|
-
throw new AssertionError(message);
|
46
|
-
}
|
47
|
-
|
48
|
-
//#endregion
|
49
|
-
export { assertEquals };
|
@@ -1,32 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { AssertionError } from "./assertion_error.js";
|
6
|
-
|
7
|
-
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js
|
8
|
-
/**
|
9
|
-
* Make an assertion that actual is not null or undefined.
|
10
|
-
* If not then throw.
|
11
|
-
*
|
12
|
-
* @example Usage
|
13
|
-
* ```ts no-eval
|
14
|
-
* import { assertExists } from "@std/assert/assert-exists";
|
15
|
-
*
|
16
|
-
* assertExists("something"); // Doesn't throw
|
17
|
-
* assertExists(undefined); // Throws
|
18
|
-
* ```
|
19
|
-
*
|
20
|
-
* @typeParam T The type of the actual value.
|
21
|
-
* @param actual The actual value to check.
|
22
|
-
* @param msg The optional message to include in the error if the assertion fails.
|
23
|
-
*/ function assertExists(actual, msg) {
|
24
|
-
if (actual === void 0 || actual === null) {
|
25
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
26
|
-
msg = `Expected actual: "${actual}" to not be null or undefined${msgSuffix}`;
|
27
|
-
throw new AssertionError(msg);
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
//#endregion
|
32
|
-
export { assertExists };
|
@@ -1,26 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { AssertionError } from "./assertion_error.js";
|
6
|
-
|
7
|
-
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js
|
8
|
-
/**
|
9
|
-
* Make an assertion, error will be thrown if `expr` have truthy value.
|
10
|
-
*
|
11
|
-
* @example Usage
|
12
|
-
* ```ts no-eval
|
13
|
-
* import { assertFalse } from "@std/assert/assert-false";
|
14
|
-
*
|
15
|
-
* assertFalse(false); // Doesn't throw
|
16
|
-
* assertFalse(true); // Throws
|
17
|
-
* ```
|
18
|
-
*
|
19
|
-
* @param expr The expression to test.
|
20
|
-
* @param msg The optional message to display if the assertion fails.
|
21
|
-
*/ function assertFalse(expr, msg = "") {
|
22
|
-
if (expr) throw new AssertionError(msg);
|
23
|
-
}
|
24
|
-
|
25
|
-
//#endregion
|
26
|
-
export { assertFalse };
|
@@ -1,34 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { AssertionError } from "./assertion_error.js";
|
6
|
-
import { format } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js";
|
7
|
-
|
8
|
-
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater.js
|
9
|
-
/**
|
10
|
-
* Make an assertion that `actual` is greater than `expected`.
|
11
|
-
* If not then throw.
|
12
|
-
*
|
13
|
-
* @example Usage
|
14
|
-
* ```ts no-eval
|
15
|
-
* import { assertGreater } from "@std/assert/assert-greater";
|
16
|
-
*
|
17
|
-
* assertGreater(2, 1); // Doesn't throw
|
18
|
-
* assertGreater(1, 1); // Throws
|
19
|
-
* assertGreater(0, 1); // Throws
|
20
|
-
* ```
|
21
|
-
*
|
22
|
-
* @typeParam T The type of the values to compare.
|
23
|
-
* @param actual The actual value to compare.
|
24
|
-
* @param expected The expected value to compare.
|
25
|
-
* @param msg The optional message to display if the assertion fails.
|
26
|
-
*/ function assertGreater(actual, expected, msg) {
|
27
|
-
if (actual > expected) return;
|
28
|
-
const actualString = format(actual);
|
29
|
-
const expectedString = format(expected);
|
30
|
-
throw new AssertionError(msg ?? `Expect ${actualString} > ${expectedString}`);
|
31
|
-
}
|
32
|
-
|
33
|
-
//#endregion
|
34
|
-
export { assertGreater };
|
@@ -1,34 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { AssertionError } from "./assertion_error.js";
|
6
|
-
import { format } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js";
|
7
|
-
|
8
|
-
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater_or_equal.js
|
9
|
-
/**
|
10
|
-
* Make an assertion that `actual` is greater than or equal to `expected`.
|
11
|
-
* If not then throw.
|
12
|
-
*
|
13
|
-
* @example Usage
|
14
|
-
* ```ts no-eval
|
15
|
-
* import { assertGreaterOrEqual } from "@std/assert/assert-greater-or-equal";
|
16
|
-
*
|
17
|
-
* assertGreaterOrEqual(2, 1); // Doesn't throw
|
18
|
-
* assertGreaterOrEqual(1, 1); // Doesn't throw
|
19
|
-
* assertGreaterOrEqual(0, 1); // Throws
|
20
|
-
* ```
|
21
|
-
*
|
22
|
-
* @typeParam T The type of the values to compare.
|
23
|
-
* @param actual The actual value to compare.
|
24
|
-
* @param expected The expected value to compare.
|
25
|
-
* @param msg The optional message to display if the assertion fails.
|
26
|
-
*/ function assertGreaterOrEqual(actual, expected, msg) {
|
27
|
-
if (actual >= expected) return;
|
28
|
-
const actualString = format(actual);
|
29
|
-
const expectedString = format(expected);
|
30
|
-
throw new AssertionError(msg ?? `Expect ${actualString} >= ${expectedString}`);
|
31
|
-
}
|
32
|
-
|
33
|
-
//#endregion
|
34
|
-
export { assertGreaterOrEqual };
|
@@ -1,53 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { AssertionError } from "./assertion_error.js";
|
6
|
-
import { red } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/styles.js";
|
7
|
-
import { buildMessage } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/build_message.js";
|
8
|
-
import { diff } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff.js";
|
9
|
-
import { diffStr } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff_str.js";
|
10
|
-
import { format } from "../../../../@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js";
|
11
|
-
|
12
|
-
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_strict_equals.js
|
13
|
-
/**
|
14
|
-
* Make an assertion that `actual` and `expected` are equal using
|
15
|
-
* {@linkcode Object.is} for equality comparison. If not, then throw.
|
16
|
-
*
|
17
|
-
* @example Usage
|
18
|
-
* ```ts no-eval
|
19
|
-
* import { assertStrictEquals } from "@std/assert/assert-strict-equals";
|
20
|
-
*
|
21
|
-
* const a = {};
|
22
|
-
* const b = a;
|
23
|
-
* assertStrictEquals(a, b); // Doesn't throw
|
24
|
-
*
|
25
|
-
* const c = {};
|
26
|
-
* const d = {};
|
27
|
-
* assertStrictEquals(c, d); // Throws
|
28
|
-
* ```
|
29
|
-
*
|
30
|
-
* @typeParam T The type of the expected value.
|
31
|
-
* @param actual The actual value to compare.
|
32
|
-
* @param expected The expected value to compare.
|
33
|
-
* @param msg The optional message to display if the assertion fails.
|
34
|
-
*/ function assertStrictEquals(actual, expected, msg) {
|
35
|
-
if (Object.is(actual, expected)) return;
|
36
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
37
|
-
let message;
|
38
|
-
const actualString = format(actual);
|
39
|
-
const expectedString = format(expected);
|
40
|
-
if (actualString === expectedString) {
|
41
|
-
const withOffset = actualString.split("\n").map((l) => ` ${l}`).join("\n");
|
42
|
-
message = `Values have the same structure but are not reference-equal${msgSuffix}\n\n${red(withOffset)}\n`;
|
43
|
-
} else {
|
44
|
-
const stringDiff = typeof actual === "string" && typeof expected === "string";
|
45
|
-
const diffResult = stringDiff ? diffStr(actual, expected) : diff(actualString.split("\n"), expectedString.split("\n"));
|
46
|
-
const diffMsg = buildMessage(diffResult, { stringDiff }).join("\n");
|
47
|
-
message = `Values are not strictly equal${msgSuffix}\n${diffMsg}`;
|
48
|
-
}
|
49
|
-
throw new AssertionError(message);
|
50
|
-
}
|
51
|
-
|
52
|
-
//#endregion
|
53
|
-
export { assertStrictEquals };
|
@@ -1,32 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
import { AssertionError } from "./assertion_error.js";
|
6
|
-
|
7
|
-
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_string_includes.js
|
8
|
-
/**
|
9
|
-
* Make an assertion that actual includes expected. If not
|
10
|
-
* then throw.
|
11
|
-
*
|
12
|
-
* @example Usage
|
13
|
-
* ```ts no-eval
|
14
|
-
* import { assertStringIncludes } from "@std/assert/assert-string-includes";
|
15
|
-
*
|
16
|
-
* assertStringIncludes("Hello", "ello"); // Doesn't throw
|
17
|
-
* assertStringIncludes("Hello", "world"); // Throws
|
18
|
-
* ```
|
19
|
-
*
|
20
|
-
* @param actual The actual string to check for inclusion.
|
21
|
-
* @param expected The expected string to check for inclusion.
|
22
|
-
* @param msg The optional message to display if the assertion fails.
|
23
|
-
*/ function assertStringIncludes(actual, expected, msg) {
|
24
|
-
if (!actual.includes(expected)) {
|
25
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
26
|
-
msg = `Expected actual: "${actual}" to contain: "${expected}"${msgSuffix}`;
|
27
|
-
throw new AssertionError(msg);
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
//#endregion
|
32
|
-
export { assertStringIncludes };
|
@@ -1,33 +0,0 @@
|
|
1
|
-
|
2
|
-
import { Temporal } from "@js-temporal/polyfill";
|
3
|
-
import { URLPattern } from "urlpattern-polyfill";
|
4
|
-
|
5
|
-
//#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assertion_error.js
|
6
|
-
/**
|
7
|
-
* Error thrown when an assertion fails.
|
8
|
-
*
|
9
|
-
* @example Usage
|
10
|
-
* ```ts no-eval
|
11
|
-
* import { AssertionError } from "@std/assert/assertion-error";
|
12
|
-
*
|
13
|
-
* throw new AssertionError("Assertion failed");
|
14
|
-
* ```
|
15
|
-
*/ var AssertionError = class extends Error {
|
16
|
-
/** Constructs a new instance.
|
17
|
-
*
|
18
|
-
* @example Usage
|
19
|
-
* ```ts no-eval
|
20
|
-
* import { AssertionError } from "@std/assert/assertion-error";
|
21
|
-
*
|
22
|
-
* throw new AssertionError("Assertion failed");
|
23
|
-
* ```
|
24
|
-
*
|
25
|
-
* @param message The error message.
|
26
|
-
*/ constructor(message) {
|
27
|
-
super(message);
|
28
|
-
this.name = "AssertionError";
|
29
|
-
}
|
30
|
-
};
|
31
|
-
|
32
|
-
//#endregion
|
33
|
-
export { AssertionError };
|