@versori/run 0.0.1-alpha.1 → 0.0.1-alpha.3
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/esm/_dnt.polyfills.d.ts +14 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +12 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/application.d.ts +383 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/application.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/application.js +526 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/body.d.ts +71 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/body.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/body.js +236 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/context.d.ts +163 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/context.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/context.js +287 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/deps.d.ts +19 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/deps.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/deps.js +21 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts +51 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.js +147 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts +17 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.js +100 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts +26 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.js +112 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts +48 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.js +152 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts +20 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.js +53 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts +67 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.js +127 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts +114 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.js +211 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware.d.ts +36 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/middleware.js +34 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/mod.d.ts +111 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/mod.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/mod.js +109 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts +2 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.js +75 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/request.d.ts +133 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/request.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/request.js +246 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/response.d.ts +148 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/response.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/response.js +295 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/router.d.ts +363 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/router.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/router.js +636 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/send.d.ts +75 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/send.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/send.js +196 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/testing.d.ts +33 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/testing.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/testing.js +112 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/types.d.ts +77 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/types.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/types.js +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts +3 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.js +16 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts +3 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.js +3 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts +7 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.js +20 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts +6 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.js +17 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts +6 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.js +13 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts +3 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.js +10 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts +31 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.js +56 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts +9 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.js +75 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts +17 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts.map +1 -0
- package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.js +37 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts +16 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.js +125 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts +363 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.js +602 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts +9 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.js +285 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts +16 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.js +208 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts +6 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.js +28 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts +123 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.js +233 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts +56 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.js +165 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts +56 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.js +205 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/method.d.ts +29 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/method.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/method.js +62 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/range.d.ts +324 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/range.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/range.js +503 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts +178 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.js +262 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/status.d.ts +389 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/status.d.ts.map +1 -0
- package/esm/deps/jsr.io/@oak/commons/1.0.0/status.js +386 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assert.d.ts +16 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assert.js +22 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +30 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +2 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts +21 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.js +32 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts +34 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.js +55 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +2 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +2 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +26 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +40 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.js +163 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts +40 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.js +81 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts +38 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.js +40 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts +34 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.js +123 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts +31 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.js +113 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts +31 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.js +140 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/etag.d.ts +148 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/etag.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/etag.js +135 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts +148 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.js +37 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts +200 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.js +1150 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.js +33 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts +15 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.js +122 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts +43 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.js +57 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts +33 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.js +77 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts +22 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.js +43 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts +31 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.js +114 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts +25 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.js +31 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +9103 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +9138 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +234 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +36 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +57 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +49 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +62 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +89 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +57 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +44 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +112 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +81 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +74 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +134 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +49 -0
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/esm/src/dsl/http/default.d.ts +23 -0
- package/esm/src/dsl/http/default.d.ts.map +1 -0
- package/esm/src/dsl/http/default.js +25 -0
- package/esm/src/dsl/http/types.d.ts +53 -0
- package/esm/src/dsl/http/types.d.ts.map +1 -0
- package/esm/src/dsl/http/types.js +2 -0
- package/esm/src/dsl/http/versori/configloader.d.ts +12 -0
- package/esm/src/dsl/http/versori/configloader.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/configloader.js +14 -0
- package/esm/src/dsl/http/versori/connectapi.d.ts +11 -0
- package/esm/src/dsl/http/versori/connectapi.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/connectapi.js +57 -0
- package/esm/src/dsl/http/versori/credentials/client.d.ts +10 -0
- package/esm/src/dsl/http/versori/credentials/client.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/client.js +30 -0
- package/esm/src/dsl/http/versori/credentials/credentials.d.ts +42 -0
- package/esm/src/dsl/http/versori/credentials/credentials.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/credentials.js +34 -0
- package/esm/src/dsl/http/versori/credentials/mod.d.ts +2 -0
- package/esm/src/dsl/http/versori/credentials/mod.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/mod.js +1 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts +10 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_pb.js +14 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts +69 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.js +76 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts +10 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_pb.js +14 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts +34 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.js +40 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts +165 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/credentials/v1alpha1/credential_pb.js +155 -0
- package/esm/src/dsl/http/versori/internalauth.d.ts +10 -0
- package/esm/src/dsl/http/versori/internalauth.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/internalauth.js +74 -0
- package/esm/src/dsl/http/versori/roundtripper.d.ts +31 -0
- package/esm/src/dsl/http/versori/roundtripper.d.ts.map +1 -0
- package/esm/src/dsl/http/versori/roundtripper.js +227 -0
- package/esm/src/dsl/triggers/WebhookTrigger.d.ts +13 -0
- package/esm/src/dsl/triggers/WebhookTrigger.d.ts.map +1 -0
- package/esm/src/dsl/triggers/WebhookTrigger.js +31 -0
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +11 -1
- package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/esm/src/interpreter/memory/MemoryInterpreter.js +63 -21
- package/esm/src/interpreter/memory/ObservableCompiler.d.ts +4 -0
- package/esm/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
- package/esm/src/interpreter/memory/ObservableCompiler.js +2 -0
- package/esm/src/interpreter/memory/compilers/http.d.ts.map +1 -1
- package/esm/src/interpreter/memory/compilers/http.js +3 -1
- package/esm/src/interpreter/memory/compilers/webhook.d.ts +4 -0
- package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -0
- package/esm/src/interpreter/memory/compilers/webhook.js +40 -0
- package/package.json +5 -1
- package/script/_dnt.polyfills.d.ts +14 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +12 -0
- package/script/deps/deno.land/x/oak@v17.1.4/application.d.ts +383 -0
- package/script/deps/deno.land/x/oak@v17.1.4/application.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/application.js +554 -0
- package/script/deps/deno.land/x/oak@v17.1.4/body.d.ts +71 -0
- package/script/deps/deno.land/x/oak@v17.1.4/body.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/body.js +240 -0
- package/script/deps/deno.land/x/oak@v17.1.4/context.d.ts +163 -0
- package/script/deps/deno.land/x/oak@v17.1.4/context.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/context.js +291 -0
- package/script/deps/deno.land/x/oak@v17.1.4/deps.d.ts +19 -0
- package/script/deps/deno.land/x/oak@v17.1.4/deps.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/deps.js +60 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts +51 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.js +151 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts +17 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.js +127 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts +26 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.js +140 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts +48 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.js +180 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts +20 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.js +57 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts +67 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.js +130 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts +114 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.js +218 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware.d.ts +36 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/middleware.js +38 -0
- package/script/deps/deno.land/x/oak@v17.1.4/mod.d.ts +111 -0
- package/script/deps/deno.land/x/oak@v17.1.4/mod.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/mod.js +159 -0
- package/script/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts +2 -0
- package/script/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/node_shims.js +100 -0
- package/script/deps/deno.land/x/oak@v17.1.4/request.d.ts +133 -0
- package/script/deps/deno.land/x/oak@v17.1.4/request.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/request.js +250 -0
- package/script/deps/deno.land/x/oak@v17.1.4/response.d.ts +148 -0
- package/script/deps/deno.land/x/oak@v17.1.4/response.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/response.js +299 -0
- package/script/deps/deno.land/x/oak@v17.1.4/router.d.ts +363 -0
- package/script/deps/deno.land/x/oak@v17.1.4/router.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/router.js +641 -0
- package/script/deps/deno.land/x/oak@v17.1.4/send.d.ts +75 -0
- package/script/deps/deno.land/x/oak@v17.1.4/send.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/send.js +222 -0
- package/script/deps/deno.land/x/oak@v17.1.4/testing.d.ts +33 -0
- package/script/deps/deno.land/x/oak@v17.1.4/testing.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/testing.js +118 -0
- package/script/deps/deno.land/x/oak@v17.1.4/types.d.ts +77 -0
- package/script/deps/deno.land/x/oak@v17.1.4/types.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/types.js +2 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts +3 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.js +19 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts +3 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.js +6 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts +7 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.js +23 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts +6 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.js +20 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts +6 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.js +16 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts +3 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.js +13 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts +31 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.js +59 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts +9 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.js +80 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts +17 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts.map +1 -0
- package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.js +70 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts +16 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.js +128 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts +363 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.js +608 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts +9 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.js +288 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts +16 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.js +211 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts +6 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.js +32 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts +123 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.js +239 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts +56 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.js +169 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts +56 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.js +212 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/method.d.ts +29 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/method.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/method.js +66 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/range.d.ts +324 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/range.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/range.js +536 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts +178 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.js +267 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/status.d.ts +389 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/status.d.ts.map +1 -0
- package/script/deps/jsr.io/@oak/commons/1.0.0/status.js +396 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assert.d.ts +16 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assert.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assert.js +25 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +26 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +34 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/_types.js +3 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts +21 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/1.0.5/concat.js +35 -0
- package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts +34 -0
- package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.js +58 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_types.js +3 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +2 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +29 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +40 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64.js +167 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts +40 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.js +108 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts +38 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.js +44 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts +34 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.js +126 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts +31 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.js +116 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts +31 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.js +143 -0
- package/script/deps/jsr.io/@std/http/1.0.13/etag.d.ts +148 -0
- package/script/deps/jsr.io/@std/http/1.0.13/etag.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/http/1.0.13/etag.js +140 -0
- package/script/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts +148 -0
- package/script/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/http/1.0.13/negotiation.js +42 -0
- package/script/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts +200 -0
- package/script/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/http/1.0.13/user_agent.js +1154 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_db.js +40 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts +15 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/_util.js +132 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts +43 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.js +60 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts +33 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.js +80 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts +22 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.js +46 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts +31 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.js +117 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts +25 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.js +34 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +9103 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +9140 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/_os.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/basename.js +39 -0
- package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/dirname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/extname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
- package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/mod.js +73 -0
- package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/normalize.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.js +52 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +32 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +65 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.js +92 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +33 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +60 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.js +47 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +115 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.js +84 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join.js +77 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +44 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +137 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +180 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +52 -0
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
- package/script/src/dsl/http/default.d.ts +23 -0
- package/script/src/dsl/http/default.d.ts.map +1 -0
- package/script/src/dsl/http/default.js +29 -0
- package/script/src/dsl/http/types.d.ts +53 -0
- package/script/src/dsl/http/types.d.ts.map +1 -0
- package/script/src/dsl/http/types.js +3 -0
- package/script/src/dsl/http/versori/configloader.d.ts +12 -0
- package/script/src/dsl/http/versori/configloader.d.ts.map +1 -0
- package/script/src/dsl/http/versori/configloader.js +40 -0
- package/script/src/dsl/http/versori/connectapi.d.ts +11 -0
- package/script/src/dsl/http/versori/connectapi.d.ts.map +1 -0
- package/script/src/dsl/http/versori/connectapi.js +61 -0
- package/script/src/dsl/http/versori/credentials/client.d.ts +10 -0
- package/script/src/dsl/http/versori/credentials/client.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/client.js +32 -0
- package/script/src/dsl/http/versori/credentials/credentials.d.ts +42 -0
- package/script/src/dsl/http/versori/credentials/credentials.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/credentials.js +38 -0
- package/script/src/dsl/http/versori/credentials/mod.d.ts +2 -0
- package/script/src/dsl/http/versori/credentials/mod.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/mod.js +5 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts +10 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_pb.js +17 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts +69 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/oauth2/v1/token_service_pb.js +79 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts +10 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_pb.js +17 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts +34 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/tokens/v1/token_service_pb.js +43 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts +165 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.d.ts.map +1 -0
- package/script/src/dsl/http/versori/credentials/v1alpha1/credential_pb.js +158 -0
- package/script/src/dsl/http/versori/internalauth.d.ts +10 -0
- package/script/src/dsl/http/versori/internalauth.d.ts.map +1 -0
- package/script/src/dsl/http/versori/internalauth.js +101 -0
- package/script/src/dsl/http/versori/roundtripper.d.ts +31 -0
- package/script/src/dsl/http/versori/roundtripper.d.ts.map +1 -0
- package/script/src/dsl/http/versori/roundtripper.js +255 -0
- package/script/src/dsl/triggers/WebhookTrigger.d.ts +13 -0
- package/script/src/dsl/triggers/WebhookTrigger.d.ts.map +1 -0
- package/script/src/dsl/triggers/WebhookTrigger.js +36 -0
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts +11 -1
- package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
- package/script/src/interpreter/memory/MemoryInterpreter.js +63 -21
- package/script/src/interpreter/memory/ObservableCompiler.d.ts +4 -0
- package/script/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
- package/script/src/interpreter/memory/ObservableCompiler.js +2 -0
- package/script/src/interpreter/memory/compilers/http.d.ts.map +1 -1
- package/script/src/interpreter/memory/compilers/http.js +3 -1
- package/script/src/interpreter/memory/compilers/webhook.d.ts +4 -0
- package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -0
- package/script/src/interpreter/memory/compilers/webhook.js +43 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the oak authors. All rights reserved. MIT license.
|
|
3
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
9
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
10
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
11
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
12
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
13
|
+
};
|
|
14
|
+
var _Response_instances, _Response_body, _Response_bodySet, _Response_domResponse, _Response_headers, _Response_jsonBodyReplacer, _Response_request, _Response_resources, _Response_status, _Response_type, _Response_writable, _Response_getBodyInit, _Response_setContentType;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Response = exports.REDIRECT_BACK = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Contains the {@linkcode Response} abstraction used by oak.
|
|
19
|
+
*
|
|
20
|
+
* Most end users would not need to directly access this module.
|
|
21
|
+
*
|
|
22
|
+
* @module
|
|
23
|
+
*/
|
|
24
|
+
const deps_js_1 = require("./deps.js");
|
|
25
|
+
const http_server_native_request_js_1 = require("./http_server_native_request.js");
|
|
26
|
+
const type_guards_js_1 = require("./utils/type_guards.js");
|
|
27
|
+
const consts_js_1 = require("./utils/consts.js");
|
|
28
|
+
const encode_url_js_1 = require("./utils/encode_url.js");
|
|
29
|
+
const streams_js_1 = require("./utils/streams.js");
|
|
30
|
+
/** A symbol that indicates to `response.redirect()` to attempt to redirect
|
|
31
|
+
* back to the request referrer. For example:
|
|
32
|
+
*
|
|
33
|
+
* ```ts
|
|
34
|
+
* import { Application, REDIRECT_BACK } from "jsr:@oak/oak/";
|
|
35
|
+
*
|
|
36
|
+
* const app = new Application();
|
|
37
|
+
*
|
|
38
|
+
* app.use((ctx) => {
|
|
39
|
+
* if (ctx.request.url.pathName === "/back") {
|
|
40
|
+
* ctx.response.redirect(REDIRECT_BACK, "/");
|
|
41
|
+
* }
|
|
42
|
+
* });
|
|
43
|
+
*
|
|
44
|
+
* await app.listen({ port: 80 });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
exports.REDIRECT_BACK = Symbol("redirect backwards");
|
|
48
|
+
async function convertBodyToBodyInit(body, type, jsonBodyReplacer) {
|
|
49
|
+
let result;
|
|
50
|
+
if (consts_js_1.BODY_TYPES.includes(typeof body)) {
|
|
51
|
+
result = String(body);
|
|
52
|
+
type = type ?? ((0, type_guards_js_1.isHtml)(result) ? "html" : "text/plain");
|
|
53
|
+
}
|
|
54
|
+
else if ((0, type_guards_js_1.isFsFile)(body)) {
|
|
55
|
+
result = body.readable;
|
|
56
|
+
}
|
|
57
|
+
else if (ArrayBuffer.isView(body) || body instanceof ArrayBuffer ||
|
|
58
|
+
body instanceof Blob || body instanceof URLSearchParams) {
|
|
59
|
+
// deno-lint-ignore no-explicit-any
|
|
60
|
+
result = body;
|
|
61
|
+
}
|
|
62
|
+
else if (body instanceof ReadableStream) {
|
|
63
|
+
result = body.pipeThrough(new streams_js_1.Uint8ArrayTransformStream());
|
|
64
|
+
}
|
|
65
|
+
else if (body instanceof FormData) {
|
|
66
|
+
result = body;
|
|
67
|
+
type = undefined;
|
|
68
|
+
}
|
|
69
|
+
else if ((0, type_guards_js_1.isAsyncIterable)(body)) {
|
|
70
|
+
result = (0, streams_js_1.readableStreamFromAsyncIterable)(body);
|
|
71
|
+
}
|
|
72
|
+
else if (body && typeof body === "object") {
|
|
73
|
+
result = JSON.stringify(body, jsonBodyReplacer);
|
|
74
|
+
type = type ?? "json";
|
|
75
|
+
}
|
|
76
|
+
else if (typeof body === "function") {
|
|
77
|
+
const result = body.call(null);
|
|
78
|
+
return convertBodyToBodyInit(await result, type, jsonBodyReplacer);
|
|
79
|
+
}
|
|
80
|
+
else if (body) {
|
|
81
|
+
throw new TypeError("Response body was set but could not be converted.");
|
|
82
|
+
}
|
|
83
|
+
return [result, type];
|
|
84
|
+
}
|
|
85
|
+
/** An interface to control what response will be sent when the middleware
|
|
86
|
+
* finishes processing the request.
|
|
87
|
+
*
|
|
88
|
+
* The response is usually accessed via the context's `.response` property.
|
|
89
|
+
*
|
|
90
|
+
* ### Example
|
|
91
|
+
*
|
|
92
|
+
* ```ts
|
|
93
|
+
* import { Application, Status } from "jsr:@oak/oak/";
|
|
94
|
+
*
|
|
95
|
+
* const app = new Application();
|
|
96
|
+
*
|
|
97
|
+
* app.use((ctx) => {
|
|
98
|
+
* ctx.response.body = { hello: "oak" };
|
|
99
|
+
* ctx.response.type = "json";
|
|
100
|
+
* ctx.response.status = Status.OK;
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
class Response {
|
|
105
|
+
/** The body of the response. The body will be automatically processed when
|
|
106
|
+
* the response is being sent and converted to a `Uint8Array` or a
|
|
107
|
+
* `Deno.Reader`.
|
|
108
|
+
*
|
|
109
|
+
* Automatic conversion to a `Deno.Reader` occurs for async iterables. */
|
|
110
|
+
get body() {
|
|
111
|
+
return __classPrivateFieldGet(this, _Response_body, "f");
|
|
112
|
+
}
|
|
113
|
+
/** The body of the response. The body will be automatically processed when
|
|
114
|
+
* the response is being sent and converted to a `Uint8Array` or a
|
|
115
|
+
* `Deno.Reader`.
|
|
116
|
+
*
|
|
117
|
+
* Automatic conversion to a `Deno.Reader` occurs for async iterables. */
|
|
118
|
+
set body(value) {
|
|
119
|
+
if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
|
|
120
|
+
throw new Error("The response is not writable.");
|
|
121
|
+
}
|
|
122
|
+
__classPrivateFieldSet(this, _Response_bodySet, true, "f");
|
|
123
|
+
__classPrivateFieldSet(this, _Response_body, value, "f");
|
|
124
|
+
}
|
|
125
|
+
/** Headers that will be returned in the response. */
|
|
126
|
+
get headers() {
|
|
127
|
+
return __classPrivateFieldGet(this, _Response_headers, "f");
|
|
128
|
+
}
|
|
129
|
+
/** Headers that will be returned in the response. */
|
|
130
|
+
set headers(value) {
|
|
131
|
+
if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
|
|
132
|
+
throw new Error("The response is not writable.");
|
|
133
|
+
}
|
|
134
|
+
__classPrivateFieldSet(this, _Response_headers, value, "f");
|
|
135
|
+
}
|
|
136
|
+
/** The HTTP status of the response. If this has not been explicitly set,
|
|
137
|
+
* reading the value will return what would be the value of status if the
|
|
138
|
+
* response were sent at this point in processing the middleware. If the body
|
|
139
|
+
* has been set, the status will be `200 OK`. If a value for the body has
|
|
140
|
+
* not been set yet, the status will be `404 Not Found`. */
|
|
141
|
+
get status() {
|
|
142
|
+
if (__classPrivateFieldGet(this, _Response_status, "f")) {
|
|
143
|
+
return __classPrivateFieldGet(this, _Response_status, "f");
|
|
144
|
+
}
|
|
145
|
+
return this.body != null
|
|
146
|
+
? deps_js_1.Status.OK
|
|
147
|
+
: __classPrivateFieldGet(this, _Response_bodySet, "f")
|
|
148
|
+
? deps_js_1.Status.NoContent
|
|
149
|
+
: deps_js_1.Status.NotFound;
|
|
150
|
+
}
|
|
151
|
+
/** The HTTP status of the response. If this has not been explicitly set,
|
|
152
|
+
* reading the value will return what would be the value of status if the
|
|
153
|
+
* response were sent at this point in processing the middleware. If the body
|
|
154
|
+
* has been set, the status will be `200 OK`. If a value for the body has
|
|
155
|
+
* not been set yet, the status will be `404 Not Found`. */
|
|
156
|
+
set status(value) {
|
|
157
|
+
if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
|
|
158
|
+
throw new Error("The response is not writable.");
|
|
159
|
+
}
|
|
160
|
+
__classPrivateFieldSet(this, _Response_status, value, "f");
|
|
161
|
+
}
|
|
162
|
+
/** The media type, or extension of the response. Setting this value will
|
|
163
|
+
* ensure an appropriate `Content-Type` header is added to the response. */
|
|
164
|
+
get type() {
|
|
165
|
+
return __classPrivateFieldGet(this, _Response_type, "f");
|
|
166
|
+
}
|
|
167
|
+
/** The media type, or extension of the response. Setting this value will
|
|
168
|
+
* ensure an appropriate `Content-Type` header is added to the response. */
|
|
169
|
+
set type(value) {
|
|
170
|
+
if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
|
|
171
|
+
throw new Error("The response is not writable.");
|
|
172
|
+
}
|
|
173
|
+
__classPrivateFieldSet(this, _Response_type, value, "f");
|
|
174
|
+
}
|
|
175
|
+
/** A read-only property which determines if the response is writable or not.
|
|
176
|
+
* Once the response has been processed, this value is set to `false`. */
|
|
177
|
+
get writable() {
|
|
178
|
+
return __classPrivateFieldGet(this, _Response_writable, "f");
|
|
179
|
+
}
|
|
180
|
+
constructor(request, jsonBodyReplacer) {
|
|
181
|
+
_Response_instances.add(this);
|
|
182
|
+
_Response_body.set(this, void 0);
|
|
183
|
+
_Response_bodySet.set(this, false);
|
|
184
|
+
_Response_domResponse.set(this, void 0);
|
|
185
|
+
_Response_headers.set(this, new Headers());
|
|
186
|
+
_Response_jsonBodyReplacer.set(this, void 0);
|
|
187
|
+
_Response_request.set(this, void 0);
|
|
188
|
+
_Response_resources.set(this, []);
|
|
189
|
+
_Response_status.set(this, void 0);
|
|
190
|
+
_Response_type.set(this, void 0);
|
|
191
|
+
_Response_writable.set(this, true);
|
|
192
|
+
__classPrivateFieldSet(this, _Response_request, request, "f");
|
|
193
|
+
__classPrivateFieldSet(this, _Response_jsonBodyReplacer, jsonBodyReplacer, "f");
|
|
194
|
+
}
|
|
195
|
+
/** Add a resource to the list of resources that will be closed when the
|
|
196
|
+
* request is destroyed. */
|
|
197
|
+
addResource(resource) {
|
|
198
|
+
__classPrivateFieldGet(this, _Response_resources, "f").push(resource);
|
|
199
|
+
}
|
|
200
|
+
/** Release any resources that are being tracked by the response.
|
|
201
|
+
*
|
|
202
|
+
* @param closeResources close any resource IDs registered with the response
|
|
203
|
+
*/
|
|
204
|
+
destroy(closeResources = true) {
|
|
205
|
+
__classPrivateFieldSet(this, _Response_writable, false, "f");
|
|
206
|
+
__classPrivateFieldSet(this, _Response_body, undefined, "f");
|
|
207
|
+
__classPrivateFieldSet(this, _Response_domResponse, undefined, "f");
|
|
208
|
+
if (closeResources) {
|
|
209
|
+
for (const resource of __classPrivateFieldGet(this, _Response_resources, "f")) {
|
|
210
|
+
try {
|
|
211
|
+
resource.close();
|
|
212
|
+
}
|
|
213
|
+
catch {
|
|
214
|
+
// we don't care about errors here
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
redirect(url, alt = "/") {
|
|
220
|
+
if (url === exports.REDIRECT_BACK) {
|
|
221
|
+
url = __classPrivateFieldGet(this, _Response_request, "f").headers.get("Referer") ?? String(alt);
|
|
222
|
+
}
|
|
223
|
+
else if (typeof url === "object") {
|
|
224
|
+
url = String(url);
|
|
225
|
+
}
|
|
226
|
+
this.headers.set("Location", (0, encode_url_js_1.encodeUrl)(url));
|
|
227
|
+
if (!this.status || !(0, deps_js_1.isRedirectStatus)(this.status)) {
|
|
228
|
+
this.status = deps_js_1.Status.Found;
|
|
229
|
+
}
|
|
230
|
+
if (__classPrivateFieldGet(this, _Response_request, "f").accepts("html")) {
|
|
231
|
+
url = encodeURI(url);
|
|
232
|
+
this.type = "text/html; charset=UTF-8";
|
|
233
|
+
this.body = `Redirecting to <a href="${url}">${url}</a>.`;
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
this.type = "text/plain; charset=UTF-8";
|
|
237
|
+
this.body = `Redirecting to ${url}.`;
|
|
238
|
+
}
|
|
239
|
+
async toDomResponse() {
|
|
240
|
+
if (__classPrivateFieldGet(this, _Response_domResponse, "f")) {
|
|
241
|
+
return __classPrivateFieldGet(this, _Response_domResponse, "f");
|
|
242
|
+
}
|
|
243
|
+
const bodyInit = await __classPrivateFieldGet(this, _Response_instances, "m", _Response_getBodyInit).call(this);
|
|
244
|
+
__classPrivateFieldGet(this, _Response_instances, "m", _Response_setContentType).call(this);
|
|
245
|
+
const { headers } = this;
|
|
246
|
+
// If there is no body and no content type and no set length, then set the
|
|
247
|
+
// content length to 0
|
|
248
|
+
if (!(bodyInit ||
|
|
249
|
+
headers.has("Content-Type") ||
|
|
250
|
+
headers.has("Content-Length"))) {
|
|
251
|
+
headers.append("Content-Length", "0");
|
|
252
|
+
}
|
|
253
|
+
__classPrivateFieldSet(this, _Response_writable, false, "f");
|
|
254
|
+
const status = this.status;
|
|
255
|
+
const responseInit = {
|
|
256
|
+
headers,
|
|
257
|
+
status,
|
|
258
|
+
statusText: deps_js_1.STATUS_TEXT[status],
|
|
259
|
+
};
|
|
260
|
+
return __classPrivateFieldSet(this, _Response_domResponse, new http_server_native_request_js_1.DomResponse(bodyInit, responseInit), "f");
|
|
261
|
+
}
|
|
262
|
+
with(responseOrBody, init) {
|
|
263
|
+
if (__classPrivateFieldGet(this, _Response_domResponse, "f") || !__classPrivateFieldGet(this, _Response_writable, "f")) {
|
|
264
|
+
throw new Error("A response has already been finalized.");
|
|
265
|
+
}
|
|
266
|
+
__classPrivateFieldSet(this, _Response_writable, false, "f");
|
|
267
|
+
__classPrivateFieldSet(this, _Response_domResponse, responseOrBody instanceof http_server_native_request_js_1.DomResponse
|
|
268
|
+
? responseOrBody
|
|
269
|
+
: new http_server_native_request_js_1.DomResponse(responseOrBody, init), "f");
|
|
270
|
+
}
|
|
271
|
+
[(_Response_body = new WeakMap(), _Response_bodySet = new WeakMap(), _Response_domResponse = new WeakMap(), _Response_headers = new WeakMap(), _Response_jsonBodyReplacer = new WeakMap(), _Response_request = new WeakMap(), _Response_resources = new WeakMap(), _Response_status = new WeakMap(), _Response_type = new WeakMap(), _Response_writable = new WeakMap(), _Response_instances = new WeakSet(), _Response_getBodyInit = async function _Response_getBodyInit() {
|
|
272
|
+
const [body, type] = await convertBodyToBodyInit(this.body, this.type, __classPrivateFieldGet(this, _Response_jsonBodyReplacer, "f"));
|
|
273
|
+
this.type = type;
|
|
274
|
+
return body;
|
|
275
|
+
}, _Response_setContentType = function _Response_setContentType() {
|
|
276
|
+
if (this.type) {
|
|
277
|
+
const contentTypeString = (0, deps_js_1.contentType)(this.type);
|
|
278
|
+
if (contentTypeString && !this.headers.has("Content-Type")) {
|
|
279
|
+
this.headers.append("Content-Type", contentTypeString);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}, Symbol.for("Deno.customInspect"))](inspect) {
|
|
283
|
+
const { body, headers, status, type, writable } = this;
|
|
284
|
+
return `${this.constructor.name} ${inspect({ body, headers, status, type, writable })}`;
|
|
285
|
+
}
|
|
286
|
+
[Symbol.for("nodejs.util.inspect.custom")](depth,
|
|
287
|
+
// deno-lint-ignore no-explicit-any
|
|
288
|
+
options, inspect) {
|
|
289
|
+
if (depth < 0) {
|
|
290
|
+
return options.stylize(`[${this.constructor.name}]`, "special");
|
|
291
|
+
}
|
|
292
|
+
const newOptions = Object.assign({}, options, {
|
|
293
|
+
depth: options.depth === null ? null : options.depth - 1,
|
|
294
|
+
});
|
|
295
|
+
const { body, headers, status, type, writable } = this;
|
|
296
|
+
return `${options.stylize(this.constructor.name, "special")} ${inspect({ body, headers, status, type, writable }, newOptions)}`;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
exports.Response = Response;
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains the router of oak. Typical usage is the creation of an application
|
|
3
|
+
* instance, the creation of a router instance, registration of route
|
|
4
|
+
* middleware, registration of router with the application, and then starting to
|
|
5
|
+
* listen for requests.
|
|
6
|
+
*
|
|
7
|
+
* # Example
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { Application } from "jsr:@oak/oak/application";
|
|
11
|
+
* import { Router } from "jsr:@oak/oak/router";
|
|
12
|
+
*
|
|
13
|
+
* const app = new Application();
|
|
14
|
+
* const router = new Router();
|
|
15
|
+
* router.get("/", (ctx) => {
|
|
16
|
+
* ctx.response.body = "hello world!";
|
|
17
|
+
* });
|
|
18
|
+
* app.use(router.routes());
|
|
19
|
+
* app.use(router.allowedMethods());
|
|
20
|
+
*
|
|
21
|
+
* app.listen();
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @module
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Adapted directly from @koa/router at
|
|
28
|
+
* https://github.com/koajs/router/ which is licensed as:
|
|
29
|
+
*
|
|
30
|
+
* The MIT License (MIT)
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) 2015 Alexander C. Mingoia
|
|
33
|
+
*
|
|
34
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
35
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
36
|
+
* in the Software without restriction, including without limitation the rights
|
|
37
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
38
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
39
|
+
* furnished to do so, subject to the following conditions:
|
|
40
|
+
*
|
|
41
|
+
* The above copyright notice and this permission notice shall be included in
|
|
42
|
+
* all copies or substantial portions of the Software.
|
|
43
|
+
*
|
|
44
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
45
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
46
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
47
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
48
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
49
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
50
|
+
* THE SOFTWARE.
|
|
51
|
+
*/
|
|
52
|
+
import type { State } from "./application.js";
|
|
53
|
+
import type { Context } from "./context.js";
|
|
54
|
+
import { type HTTPMethods, type ParseOptions, type RedirectStatus, type TokensToRegexpOptions } from "./deps.js";
|
|
55
|
+
import { type Middleware } from "./middleware.js";
|
|
56
|
+
/** Options which can be specified when calling the `.allowedMethods()` method
|
|
57
|
+
* on a {@linkcode Router} instance. */
|
|
58
|
+
export interface RouterAllowedMethodsOptions {
|
|
59
|
+
/** Use the value returned from this function instead of an HTTP error
|
|
60
|
+
* `MethodNotAllowed`. */
|
|
61
|
+
methodNotAllowed?(): any;
|
|
62
|
+
/** Use the value returned from this function instead of an HTTP error
|
|
63
|
+
* `NotImplemented`. */
|
|
64
|
+
notImplemented?(): any;
|
|
65
|
+
/** When dealing with a non-implemented method or a method not allowed, throw
|
|
66
|
+
* an error instead of setting the status and header for the response. */
|
|
67
|
+
throw?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/** The internal abstraction of a route used by the oak {@linkcode Router}. */
|
|
70
|
+
export interface Route<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> {
|
|
71
|
+
/** The HTTP methods that this route handles. */
|
|
72
|
+
methods: HTTPMethods[];
|
|
73
|
+
/** The middleware that will be applied to this route. */
|
|
74
|
+
middleware: RouterMiddleware<R, P, S>[];
|
|
75
|
+
/** An optional name for the route. */
|
|
76
|
+
name?: string;
|
|
77
|
+
/** Options that were used to create the route. */
|
|
78
|
+
options: LayerOptions;
|
|
79
|
+
/** The parameters that are identified in the route that will be parsed out
|
|
80
|
+
* on matched requests. */
|
|
81
|
+
paramNames: (keyof P)[];
|
|
82
|
+
/** The path that this route manages. */
|
|
83
|
+
path: string;
|
|
84
|
+
/** The regular expression used for matching and parsing parameters for the
|
|
85
|
+
* route. */
|
|
86
|
+
regexp: RegExp;
|
|
87
|
+
}
|
|
88
|
+
/** The context passed router middleware. */
|
|
89
|
+
export interface RouterContext<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> extends Context<S> {
|
|
90
|
+
/** When matching the route, an array of the capturing groups from the regular
|
|
91
|
+
* expression. */
|
|
92
|
+
captures: string[];
|
|
93
|
+
/** The routes that were matched for this request. */
|
|
94
|
+
matched?: Layer<R, P, S>[];
|
|
95
|
+
/** Any parameters parsed from the route when matched. */
|
|
96
|
+
params: P;
|
|
97
|
+
/** A reference to the router instance. */
|
|
98
|
+
router: Router;
|
|
99
|
+
/** If the matched route has a `name`, the matched route name is provided
|
|
100
|
+
* here. */
|
|
101
|
+
routeName?: string;
|
|
102
|
+
/** Overrides the matched path for future route middleware, when a
|
|
103
|
+
* `routerPath` option is not defined on the `Router` options. */
|
|
104
|
+
routerPath?: string;
|
|
105
|
+
}
|
|
106
|
+
/** The interface that {@linkcode Router} middleware should adhere to. */
|
|
107
|
+
export interface RouterMiddleware<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> {
|
|
108
|
+
(context: RouterContext<R, P, S>, next: () => Promise<unknown>): Promise<unknown> | unknown;
|
|
109
|
+
/** For route parameter middleware, the `param` key for this parameter will
|
|
110
|
+
* be set. */
|
|
111
|
+
param?: keyof P;
|
|
112
|
+
router?: Router<any>;
|
|
113
|
+
}
|
|
114
|
+
/** Options which can be specified when creating a new instance of a
|
|
115
|
+
* {@linkcode Router}. */
|
|
116
|
+
export interface RouterOptions {
|
|
117
|
+
/** Override the default set of methods supported by the router. */
|
|
118
|
+
methods?: HTTPMethods[];
|
|
119
|
+
/** Only handle routes where the requested path starts with the prefix. */
|
|
120
|
+
prefix?: string;
|
|
121
|
+
/** Override the `request.url.pathname` when matching middleware to run. */
|
|
122
|
+
routerPath?: string;
|
|
123
|
+
/** Determines if routes are matched in a case sensitive way. Defaults to
|
|
124
|
+
* `false`. */
|
|
125
|
+
sensitive?: boolean;
|
|
126
|
+
/** Determines if routes are matched strictly, where the trailing `/` is not
|
|
127
|
+
* optional. Defaults to `false`. */
|
|
128
|
+
strict?: boolean;
|
|
129
|
+
}
|
|
130
|
+
/** Middleware that will be called by the router when handling a specific
|
|
131
|
+
* parameter, which the middleware will be called when a request matches the
|
|
132
|
+
* route parameter. */
|
|
133
|
+
export interface RouterParamMiddleware<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> {
|
|
134
|
+
(param: string, context: RouterContext<R, P, S>, next: () => Promise<unknown>): Promise<unknown> | unknown;
|
|
135
|
+
router?: Router<any>;
|
|
136
|
+
}
|
|
137
|
+
interface ParamsDictionary {
|
|
138
|
+
[key: string]: string;
|
|
139
|
+
}
|
|
140
|
+
type RemoveTail<S extends string, Tail extends string> = S extends `${infer P}${Tail}` ? P : S;
|
|
141
|
+
type GetRouteParams<S extends string> = RemoveTail<RemoveTail<RemoveTail<S, `/${string}`>, `-${string}`>, `.${string}`>;
|
|
142
|
+
/** A dynamic type which attempts to determine the route params based on
|
|
143
|
+
* matching the route string. */
|
|
144
|
+
export type RouteParams<Route extends string> = string extends Route ? ParamsDictionary : Route extends `${string}(${string}` ? ParamsDictionary : Route extends `${string}:${infer Rest}` ? (GetRouteParams<Rest> extends never ? ParamsDictionary : GetRouteParams<Rest> extends `${infer ParamName}?` ? {
|
|
145
|
+
[P in ParamName]?: string;
|
|
146
|
+
} : {
|
|
147
|
+
[P in GetRouteParams<Rest>]: string;
|
|
148
|
+
}) & (Rest extends `${GetRouteParams<Rest>}${infer Next}` ? RouteParams<Next> : unknown) : Record<string | number, string | undefined>;
|
|
149
|
+
type LayerOptions = TokensToRegexpOptions & ParseOptions & {
|
|
150
|
+
ignoreCaptures?: boolean;
|
|
151
|
+
name?: string;
|
|
152
|
+
};
|
|
153
|
+
type UrlOptions = TokensToRegexpOptions & ParseOptions & {
|
|
154
|
+
/** When generating a URL from a route, add the query to the URL. If an
|
|
155
|
+
* object */
|
|
156
|
+
query?: URLSearchParams | Record<string, string> | string;
|
|
157
|
+
};
|
|
158
|
+
/** An internal class used to group together middleware when using multiple
|
|
159
|
+
* middlewares with a router. */
|
|
160
|
+
export declare class Layer<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> {
|
|
161
|
+
#private;
|
|
162
|
+
methods: HTTPMethods[];
|
|
163
|
+
name?: string;
|
|
164
|
+
path: string;
|
|
165
|
+
stack: RouterMiddleware<R, P, S>[];
|
|
166
|
+
constructor(path: string, methods: HTTPMethods[], middleware: RouterMiddleware<R, P, S> | RouterMiddleware<R, P, S>[], { name, ...opts }?: LayerOptions);
|
|
167
|
+
clone(): Layer<R, P, S>;
|
|
168
|
+
match(path: string): boolean;
|
|
169
|
+
params(captures: string[], existingParams?: RouteParams<R>): RouteParams<R>;
|
|
170
|
+
captures(path: string): string[];
|
|
171
|
+
url(params?: RouteParams<R>, options?: UrlOptions): string;
|
|
172
|
+
param(param: string, fn: RouterParamMiddleware<any, any, any>): this;
|
|
173
|
+
setPrefix(prefix: string): this;
|
|
174
|
+
toJSON(): Route<any, any, any>;
|
|
175
|
+
}
|
|
176
|
+
/** An interface for registering middleware that will run when certain HTTP
|
|
177
|
+
* methods and paths are requested, as well as provides a way to parameterize
|
|
178
|
+
* parts of the requested path.
|
|
179
|
+
*
|
|
180
|
+
* ### Basic example
|
|
181
|
+
*
|
|
182
|
+
* ```ts
|
|
183
|
+
* import { Application, Router } from "jsr:@oak/oak/";
|
|
184
|
+
*
|
|
185
|
+
* const router = new Router();
|
|
186
|
+
* router.get("/", (ctx, next) => {
|
|
187
|
+
* // handle the GET endpoint here
|
|
188
|
+
* });
|
|
189
|
+
* router.all("/item/:item", (ctx, next) => {
|
|
190
|
+
* // called for all HTTP verbs/requests
|
|
191
|
+
* ctx.params.item; // contains the value of `:item` from the parsed URL
|
|
192
|
+
* });
|
|
193
|
+
*
|
|
194
|
+
* const app = new Application();
|
|
195
|
+
* app.use(router.routes());
|
|
196
|
+
* app.use(router.allowedMethods());
|
|
197
|
+
*
|
|
198
|
+
* app.listen({ port: 8080 });
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
export declare class Router<RS extends State = Record<string, any>> {
|
|
202
|
+
#private;
|
|
203
|
+
constructor(opts?: RouterOptions);
|
|
204
|
+
/** Register named middleware for the specified routes when specified methods
|
|
205
|
+
* are requested. */
|
|
206
|
+
add<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(methods: HTTPMethods[] | HTTPMethods, name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
207
|
+
/** Register middleware for the specified routes when the specified methods is
|
|
208
|
+
* requested. */
|
|
209
|
+
add<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(methods: HTTPMethods[] | HTTPMethods, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
210
|
+
/** Register middleware for the specified routes when the specified methods
|
|
211
|
+
* are requested with explicit path parameters. */
|
|
212
|
+
add<P extends RouteParams<string>, S extends State = RS>(methods: HTTPMethods[] | HTTPMethods, nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
213
|
+
/** Register named middleware for the specified routes when the `DELETE`,
|
|
214
|
+
* `GET`, `POST`, or `PUT` method is requested. */
|
|
215
|
+
all<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
216
|
+
/** Register middleware for the specified routes when the `DELETE`,
|
|
217
|
+
* `GET`, `POST`, or `PUT` method is requested. */
|
|
218
|
+
all<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
219
|
+
/** Register middleware for the specified routes when the `DELETE`,
|
|
220
|
+
* `GET`, `POST`, or `PUT` method is requested with explicit path parameters.
|
|
221
|
+
*/
|
|
222
|
+
all<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
223
|
+
/** Middleware that handles requests for HTTP methods registered with the
|
|
224
|
+
* router. If none of the routes handle a method, then "not allowed" logic
|
|
225
|
+
* will be used. If a method is supported by some routes, but not the
|
|
226
|
+
* particular matched router, then "not implemented" will be returned.
|
|
227
|
+
*
|
|
228
|
+
* The middleware will also automatically handle the `OPTIONS` method,
|
|
229
|
+
* responding with a `200 OK` when the `Allowed` header sent to the allowed
|
|
230
|
+
* methods for a given route.
|
|
231
|
+
*
|
|
232
|
+
* By default, a "not allowed" request will respond with a `405 Not Allowed`
|
|
233
|
+
* and a "not implemented" will respond with a `501 Not Implemented`. Setting
|
|
234
|
+
* the option `.throw` to `true` will cause the middleware to throw an
|
|
235
|
+
* `HTTPError` instead of setting the response status. The error can be
|
|
236
|
+
* overridden by providing a `.notImplemented` or `.notAllowed` method in the
|
|
237
|
+
* options, of which the value will be returned will be thrown instead of the
|
|
238
|
+
* HTTP error. */
|
|
239
|
+
allowedMethods(options?: RouterAllowedMethodsOptions): Middleware;
|
|
240
|
+
/** Register named middleware for the specified routes when the `DELETE`,
|
|
241
|
+
* method is requested. */
|
|
242
|
+
delete<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
243
|
+
/** Register middleware for the specified routes when the `DELETE`,
|
|
244
|
+
* method is requested. */
|
|
245
|
+
delete<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
246
|
+
/** Register middleware for the specified routes when the `DELETE`,
|
|
247
|
+
* method is requested with explicit path parameters. */
|
|
248
|
+
delete<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
249
|
+
/** Iterate over the routes currently added to the router. To be compatible
|
|
250
|
+
* with the iterable interfaces, both the key and value are set to the value
|
|
251
|
+
* of the route. */
|
|
252
|
+
entries(): IterableIterator<[Route<string>, Route<string>]>;
|
|
253
|
+
/** Iterate over the routes currently added to the router, calling the
|
|
254
|
+
* `callback` function for each value. */
|
|
255
|
+
forEach(callback: (value1: Route<string>, value2: Route<string>, router: this) => void, thisArg?: any): void;
|
|
256
|
+
/** Register named middleware for the specified routes when the `GET`,
|
|
257
|
+
* method is requested. */
|
|
258
|
+
get<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
259
|
+
/** Register middleware for the specified routes when the `GET`,
|
|
260
|
+
* method is requested. */
|
|
261
|
+
get<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
262
|
+
/** Register middleware for the specified routes when the `GET`,
|
|
263
|
+
* method is requested with explicit path parameters. */
|
|
264
|
+
get<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
265
|
+
/** Register named middleware for the specified routes when the `HEAD`,
|
|
266
|
+
* method is requested. */
|
|
267
|
+
head<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
268
|
+
/** Register middleware for the specified routes when the `HEAD`,
|
|
269
|
+
* method is requested. */
|
|
270
|
+
head<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
271
|
+
/** Register middleware for the specified routes when the `HEAD`,
|
|
272
|
+
* method is requested with explicit path parameters. */
|
|
273
|
+
head<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
274
|
+
/** Iterate over the routes currently added to the router. To be compatible
|
|
275
|
+
* with the iterable interfaces, the key is set to the value of the route. */
|
|
276
|
+
keys(): IterableIterator<Route<string>>;
|
|
277
|
+
/** Register named middleware for the specified routes when the `OPTIONS`,
|
|
278
|
+
* method is requested. */
|
|
279
|
+
options<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
280
|
+
/** Register middleware for the specified routes when the `OPTIONS`,
|
|
281
|
+
* method is requested. */
|
|
282
|
+
options<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
283
|
+
/** Register middleware for the specified routes when the `OPTIONS`,
|
|
284
|
+
* method is requested with explicit path parameters. */
|
|
285
|
+
options<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
286
|
+
/** Register param middleware, which will be called when the particular param
|
|
287
|
+
* is parsed from the route. */
|
|
288
|
+
param<R extends string, S extends State = RS>(param: keyof RouteParams<R>, middleware: RouterParamMiddleware<R, RouteParams<R>, S>): Router<S>;
|
|
289
|
+
/** Register named middleware for the specified routes when the `PATCH`,
|
|
290
|
+
* method is requested. */
|
|
291
|
+
patch<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
292
|
+
/** Register middleware for the specified routes when the `PATCH`,
|
|
293
|
+
* method is requested. */
|
|
294
|
+
patch<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
295
|
+
/** Register middleware for the specified routes when the `PATCH`,
|
|
296
|
+
* method is requested with explicit path parameters. */
|
|
297
|
+
patch<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
298
|
+
/** Register named middleware for the specified routes when the `POST`,
|
|
299
|
+
* method is requested. */
|
|
300
|
+
post<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
301
|
+
/** Register middleware for the specified routes when the `POST`,
|
|
302
|
+
* method is requested. */
|
|
303
|
+
post<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
304
|
+
/** Register middleware for the specified routes when the `POST`,
|
|
305
|
+
* method is requested with explicit path parameters. */
|
|
306
|
+
post<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
307
|
+
/** Set the router prefix for this router. */
|
|
308
|
+
prefix(prefix: string): this;
|
|
309
|
+
/** Register named middleware for the specified routes when the `PUT`
|
|
310
|
+
* method is requested. */
|
|
311
|
+
put<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
312
|
+
/** Register middleware for the specified routes when the `PUT`
|
|
313
|
+
* method is requested. */
|
|
314
|
+
put<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
315
|
+
/** Register middleware for the specified routes when the `PUT`
|
|
316
|
+
* method is requested with explicit path parameters. */
|
|
317
|
+
put<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
318
|
+
/** Register a direction middleware, where when the `source` path is matched
|
|
319
|
+
* the router will redirect the request to the `destination` path. A `status`
|
|
320
|
+
* of `302 Found` will be set by default.
|
|
321
|
+
*
|
|
322
|
+
* The `source` and `destination` can be named routes. */
|
|
323
|
+
redirect(source: string, destination: string | URL, status?: RedirectStatus): this;
|
|
324
|
+
/** Return middleware that will do all the route processing that the router
|
|
325
|
+
* has been configured to handle. Typical usage would be something like this:
|
|
326
|
+
*
|
|
327
|
+
* ```ts
|
|
328
|
+
* import { Application, Router } from "jsr:@oak/oak/";
|
|
329
|
+
*
|
|
330
|
+
* const app = new Application();
|
|
331
|
+
* const router = new Router();
|
|
332
|
+
*
|
|
333
|
+
* // register routes
|
|
334
|
+
*
|
|
335
|
+
* app.use(router.routes());
|
|
336
|
+
* app.use(router.allowedMethods());
|
|
337
|
+
* await app.listen({ port: 80 });
|
|
338
|
+
* ```
|
|
339
|
+
*/
|
|
340
|
+
routes(): Middleware;
|
|
341
|
+
/** Generate a URL pathname for a named route, interpolating the optional
|
|
342
|
+
* params provided. Also accepts an optional set of options. */
|
|
343
|
+
url<P extends RouteParams<string> = RouteParams<string>>(name: string, params?: P, options?: UrlOptions): string | undefined;
|
|
344
|
+
/** Register middleware to be used on every matched route. */
|
|
345
|
+
use<P extends RouteParams<string> = RouteParams<string>, S extends State = RS>(middleware: RouterMiddleware<string, P, S>, ...middlewares: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
346
|
+
/** Register middleware to be used on every route that matches the supplied
|
|
347
|
+
* `path`. */
|
|
348
|
+
use<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
349
|
+
/** Register middleware to be used on every route that matches the supplied
|
|
350
|
+
* `path` with explicit path parameters. */
|
|
351
|
+
use<P extends RouteParams<string>, S extends State = RS>(path: string, middleware: RouterMiddleware<string, P, S>, ...middlewares: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
352
|
+
use<P extends RouteParams<string> = RouteParams<string>, S extends State = RS>(path: string[], middleware: RouterMiddleware<string, P, S>, ...middlewares: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
|
|
353
|
+
/** Iterate over the routes currently added to the router. */
|
|
354
|
+
values(): IterableIterator<Route<string, RouteParams<string>, RS>>;
|
|
355
|
+
/** Provide an iterator interface that iterates over the routes registered
|
|
356
|
+
* with the router. */
|
|
357
|
+
[Symbol.iterator](): IterableIterator<Route<string, RouteParams<string>, RS>>;
|
|
358
|
+
/** Generate a URL pathname based on the provided path, interpolating the
|
|
359
|
+
* optional params provided. Also accepts an optional set of options. */
|
|
360
|
+
static url<R extends string>(path: R, params?: RouteParams<R>, options?: UrlOptions): string;
|
|
361
|
+
}
|
|
362
|
+
export {};
|
|
363
|
+
//# sourceMappingURL=router.d.ts.map
|