@versori/run 0.0.1-alpha.4 → 0.0.1-alpha.6

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.
Files changed (847) hide show
  1. package/esm/mod.d.ts +0 -1
  2. package/esm/mod.d.ts.map +1 -1
  3. package/esm/mod.js +0 -1
  4. package/esm/src/dsl/triggers/mod.d.ts +2 -0
  5. package/esm/src/dsl/triggers/mod.d.ts.map +1 -1
  6. package/esm/src/dsl/triggers/mod.js +1 -0
  7. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  8. package/esm/src/interpreter/memory/MemoryInterpreter.js +9 -10
  9. package/esm/src/interpreter/memory/ObservableCompiler.d.ts +1 -1
  10. package/esm/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
  11. package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
  12. package/esm/src/interpreter/memory/compilers/webhook.js +5 -7
  13. package/package.json +2 -2
  14. package/script/mod.d.ts +0 -1
  15. package/script/mod.d.ts.map +1 -1
  16. package/script/mod.js +0 -1
  17. package/script/src/dsl/triggers/mod.d.ts +2 -0
  18. package/script/src/dsl/triggers/mod.d.ts.map +1 -1
  19. package/script/src/dsl/triggers/mod.js +3 -1
  20. package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  21. package/script/src/interpreter/memory/MemoryInterpreter.js +12 -10
  22. package/script/src/interpreter/memory/ObservableCompiler.d.ts +1 -1
  23. package/script/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
  24. package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -1
  25. package/script/src/interpreter/memory/compilers/webhook.js +5 -7
  26. package/esm/_dnt.polyfills.d.ts +0 -14
  27. package/esm/_dnt.polyfills.d.ts.map +0 -1
  28. package/esm/_dnt.polyfills.js +0 -12
  29. package/esm/deps/deno.land/x/oak@v17.1.4/application.d.ts +0 -383
  30. package/esm/deps/deno.land/x/oak@v17.1.4/application.d.ts.map +0 -1
  31. package/esm/deps/deno.land/x/oak@v17.1.4/application.js +0 -526
  32. package/esm/deps/deno.land/x/oak@v17.1.4/body.d.ts +0 -71
  33. package/esm/deps/deno.land/x/oak@v17.1.4/body.d.ts.map +0 -1
  34. package/esm/deps/deno.land/x/oak@v17.1.4/body.js +0 -236
  35. package/esm/deps/deno.land/x/oak@v17.1.4/context.d.ts +0 -163
  36. package/esm/deps/deno.land/x/oak@v17.1.4/context.d.ts.map +0 -1
  37. package/esm/deps/deno.land/x/oak@v17.1.4/context.js +0 -287
  38. package/esm/deps/deno.land/x/oak@v17.1.4/deps.d.ts +0 -19
  39. package/esm/deps/deno.land/x/oak@v17.1.4/deps.d.ts.map +0 -1
  40. package/esm/deps/deno.land/x/oak@v17.1.4/deps.js +0 -21
  41. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts +0 -51
  42. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts.map +0 -1
  43. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.js +0 -147
  44. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts +0 -17
  45. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts.map +0 -1
  46. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.js +0 -100
  47. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts +0 -26
  48. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts.map +0 -1
  49. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.js +0 -112
  50. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts +0 -48
  51. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts.map +0 -1
  52. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.js +0 -152
  53. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts +0 -20
  54. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts.map +0 -1
  55. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.js +0 -53
  56. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts +0 -67
  57. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts.map +0 -1
  58. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.js +0 -127
  59. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts +0 -114
  60. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts.map +0 -1
  61. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.js +0 -211
  62. package/esm/deps/deno.land/x/oak@v17.1.4/middleware.d.ts +0 -36
  63. package/esm/deps/deno.land/x/oak@v17.1.4/middleware.d.ts.map +0 -1
  64. package/esm/deps/deno.land/x/oak@v17.1.4/middleware.js +0 -34
  65. package/esm/deps/deno.land/x/oak@v17.1.4/mod.d.ts +0 -111
  66. package/esm/deps/deno.land/x/oak@v17.1.4/mod.d.ts.map +0 -1
  67. package/esm/deps/deno.land/x/oak@v17.1.4/mod.js +0 -109
  68. package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts +0 -2
  69. package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts.map +0 -1
  70. package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.js +0 -75
  71. package/esm/deps/deno.land/x/oak@v17.1.4/request.d.ts +0 -133
  72. package/esm/deps/deno.land/x/oak@v17.1.4/request.d.ts.map +0 -1
  73. package/esm/deps/deno.land/x/oak@v17.1.4/request.js +0 -246
  74. package/esm/deps/deno.land/x/oak@v17.1.4/response.d.ts +0 -148
  75. package/esm/deps/deno.land/x/oak@v17.1.4/response.d.ts.map +0 -1
  76. package/esm/deps/deno.land/x/oak@v17.1.4/response.js +0 -295
  77. package/esm/deps/deno.land/x/oak@v17.1.4/router.d.ts +0 -363
  78. package/esm/deps/deno.land/x/oak@v17.1.4/router.d.ts.map +0 -1
  79. package/esm/deps/deno.land/x/oak@v17.1.4/router.js +0 -636
  80. package/esm/deps/deno.land/x/oak@v17.1.4/send.d.ts +0 -75
  81. package/esm/deps/deno.land/x/oak@v17.1.4/send.d.ts.map +0 -1
  82. package/esm/deps/deno.land/x/oak@v17.1.4/send.js +0 -196
  83. package/esm/deps/deno.land/x/oak@v17.1.4/testing.d.ts +0 -33
  84. package/esm/deps/deno.land/x/oak@v17.1.4/testing.d.ts.map +0 -1
  85. package/esm/deps/deno.land/x/oak@v17.1.4/testing.js +0 -112
  86. package/esm/deps/deno.land/x/oak@v17.1.4/types.d.ts +0 -77
  87. package/esm/deps/deno.land/x/oak@v17.1.4/types.d.ts.map +0 -1
  88. package/esm/deps/deno.land/x/oak@v17.1.4/types.js +0 -1
  89. package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts +0 -3
  90. package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts.map +0 -1
  91. package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.js +0 -16
  92. package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts +0 -3
  93. package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts.map +0 -1
  94. package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.js +0 -3
  95. package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts +0 -7
  96. package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts.map +0 -1
  97. package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.js +0 -20
  98. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts +0 -6
  99. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts.map +0 -1
  100. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.js +0 -17
  101. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts +0 -6
  102. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts.map +0 -1
  103. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.js +0 -13
  104. package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts +0 -3
  105. package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts.map +0 -1
  106. package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.js +0 -10
  107. package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts +0 -31
  108. package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts.map +0 -1
  109. package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.js +0 -56
  110. package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts +0 -9
  111. package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts.map +0 -1
  112. package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.js +0 -75
  113. package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts +0 -17
  114. package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts.map +0 -1
  115. package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.js +0 -37
  116. package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts +0 -16
  117. package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts.map +0 -1
  118. package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.js +0 -125
  119. package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts +0 -363
  120. package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts.map +0 -1
  121. package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.js +0 -602
  122. package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts +0 -9
  123. package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts.map +0 -1
  124. package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.js +0 -285
  125. package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts +0 -16
  126. package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts.map +0 -1
  127. package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.js +0 -208
  128. package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts +0 -6
  129. package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts.map +0 -1
  130. package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.js +0 -28
  131. package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts +0 -123
  132. package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts.map +0 -1
  133. package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.js +0 -233
  134. package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts +0 -56
  135. package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts.map +0 -1
  136. package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.js +0 -165
  137. package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts +0 -56
  138. package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts.map +0 -1
  139. package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.js +0 -205
  140. package/esm/deps/jsr.io/@oak/commons/1.0.0/method.d.ts +0 -29
  141. package/esm/deps/jsr.io/@oak/commons/1.0.0/method.d.ts.map +0 -1
  142. package/esm/deps/jsr.io/@oak/commons/1.0.0/method.js +0 -62
  143. package/esm/deps/jsr.io/@oak/commons/1.0.0/range.d.ts +0 -324
  144. package/esm/deps/jsr.io/@oak/commons/1.0.0/range.d.ts.map +0 -1
  145. package/esm/deps/jsr.io/@oak/commons/1.0.0/range.js +0 -503
  146. package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts +0 -178
  147. package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts.map +0 -1
  148. package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.js +0 -262
  149. package/esm/deps/jsr.io/@oak/commons/1.0.0/status.d.ts +0 -389
  150. package/esm/deps/jsr.io/@oak/commons/1.0.0/status.d.ts.map +0 -1
  151. package/esm/deps/jsr.io/@oak/commons/1.0.0/status.js +0 -386
  152. package/esm/deps/jsr.io/@std/assert/1.0.11/assert.d.ts +0 -16
  153. package/esm/deps/jsr.io/@std/assert/1.0.11/assert.d.ts.map +0 -1
  154. package/esm/deps/jsr.io/@std/assert/1.0.11/assert.js +0 -22
  155. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
  156. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
  157. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -30
  158. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +0 -9
  159. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +0 -1
  160. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +0 -2
  161. package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts +0 -21
  162. package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +0 -1
  163. package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.js +0 -32
  164. package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts +0 -34
  165. package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts.map +0 -1
  166. package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.js +0 -55
  167. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +0 -9
  168. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +0 -1
  169. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +0 -2
  170. package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +0 -2
  171. package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +0 -1
  172. package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +0 -26
  173. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +0 -40
  174. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +0 -1
  175. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.js +0 -163
  176. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts +0 -40
  177. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +0 -1
  178. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.js +0 -81
  179. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts +0 -38
  180. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts.map +0 -1
  181. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.js +0 -40
  182. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts +0 -34
  183. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts.map +0 -1
  184. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.js +0 -123
  185. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts +0 -31
  186. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts.map +0 -1
  187. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.js +0 -113
  188. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts +0 -31
  189. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts.map +0 -1
  190. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.js +0 -140
  191. package/esm/deps/jsr.io/@std/http/1.0.13/etag.d.ts +0 -148
  192. package/esm/deps/jsr.io/@std/http/1.0.13/etag.d.ts.map +0 -1
  193. package/esm/deps/jsr.io/@std/http/1.0.13/etag.js +0 -135
  194. package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts +0 -148
  195. package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts.map +0 -1
  196. package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.js +0 -37
  197. package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts +0 -200
  198. package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts.map +0 -1
  199. package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.js +0 -1150
  200. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +0 -8
  201. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +0 -1
  202. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.js +0 -33
  203. package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts +0 -15
  204. package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +0 -1
  205. package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.js +0 -122
  206. package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts +0 -43
  207. package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +0 -1
  208. package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.js +0 -57
  209. package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts +0 -33
  210. package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +0 -1
  211. package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.js +0 -77
  212. package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts +0 -22
  213. package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +0 -1
  214. package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.js +0 -43
  215. package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts +0 -31
  216. package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +0 -1
  217. package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.js +0 -114
  218. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts +0 -25
  219. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +0 -1
  220. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.js +0 -31
  221. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +0 -9103
  222. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +0 -1
  223. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +0 -9138
  224. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +0 -2
  225. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
  226. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -7
  227. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +0 -4
  228. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
  229. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -40
  230. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  231. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  232. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -23
  233. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +0 -40
  234. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
  235. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -46
  236. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  237. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  238. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -8
  239. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  240. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  241. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -19
  242. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -2
  243. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  244. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -9
  245. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  246. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  247. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -234
  248. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +0 -2
  249. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
  250. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -8
  251. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +0 -2
  252. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
  253. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -77
  254. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  255. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  256. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -9
  257. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +0 -2
  258. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
  259. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -19
  260. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +0 -2
  261. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
  262. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -15
  263. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
  264. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
  265. package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +0 -9
  266. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
  267. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
  268. package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +0 -36
  269. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  270. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  271. package/esm/deps/jsr.io/@std/path/1.0.8/common.js +0 -33
  272. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  273. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  274. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +0 -17
  275. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  276. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  277. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -29
  278. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
  279. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
  280. package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +0 -29
  281. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  282. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  283. package/esm/deps/jsr.io/@std/path/1.0.8/format.js +0 -27
  284. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
  285. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  286. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -28
  287. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  288. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  289. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -83
  290. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +0 -22
  291. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
  292. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -28
  293. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  294. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  295. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -42
  296. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
  297. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
  298. package/esm/deps/jsr.io/@std/path/1.0.8/join.js +0 -29
  299. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  300. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  301. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -34
  302. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  303. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  304. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +0 -57
  305. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  306. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  307. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -33
  308. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  309. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  310. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -35
  311. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  312. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  313. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +0 -39
  314. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +0 -2
  315. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
  316. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -8
  317. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
  318. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
  319. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -49
  320. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  321. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  322. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -14
  323. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  324. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  325. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -62
  326. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
  327. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
  328. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -89
  329. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  330. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  331. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -28
  332. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -16
  333. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  334. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -21
  335. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  336. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  337. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -82
  338. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +0 -17
  339. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
  340. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -23
  341. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
  342. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
  343. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -42
  344. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  345. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  346. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -40
  347. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
  348. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
  349. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -57
  350. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  351. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  352. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -32
  353. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  354. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  355. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -115
  356. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  357. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  358. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -106
  359. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  360. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  361. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -59
  362. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +0 -17
  363. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
  364. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -27
  365. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  366. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  367. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -20
  368. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  369. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  370. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +0 -30
  371. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  372. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  373. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -30
  374. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +0 -22
  375. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
  376. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -28
  377. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  378. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  379. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -29
  380. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  381. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  382. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +0 -3
  383. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +0 -4
  384. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
  385. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -15
  386. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
  387. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
  388. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -44
  389. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  390. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  391. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -14
  392. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  393. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  394. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -112
  395. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
  396. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
  397. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -81
  398. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  399. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  400. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -28
  401. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -18
  402. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  403. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -30
  404. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  405. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  406. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -82
  407. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +0 -17
  408. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
  409. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -38
  410. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
  411. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
  412. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -74
  413. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  414. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  415. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -41
  416. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
  417. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
  418. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -134
  419. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  420. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  421. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -32
  422. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  423. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  424. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -176
  425. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  426. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  427. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -131
  428. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  429. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  430. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -154
  431. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +0 -17
  432. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
  433. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -34
  434. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  435. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  436. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -49
  437. package/script/_dnt.polyfills.d.ts +0 -14
  438. package/script/_dnt.polyfills.d.ts.map +0 -1
  439. package/script/_dnt.polyfills.js +0 -12
  440. package/script/deps/deno.land/x/oak@v17.1.4/application.d.ts +0 -383
  441. package/script/deps/deno.land/x/oak@v17.1.4/application.d.ts.map +0 -1
  442. package/script/deps/deno.land/x/oak@v17.1.4/application.js +0 -554
  443. package/script/deps/deno.land/x/oak@v17.1.4/body.d.ts +0 -71
  444. package/script/deps/deno.land/x/oak@v17.1.4/body.d.ts.map +0 -1
  445. package/script/deps/deno.land/x/oak@v17.1.4/body.js +0 -240
  446. package/script/deps/deno.land/x/oak@v17.1.4/context.d.ts +0 -163
  447. package/script/deps/deno.land/x/oak@v17.1.4/context.d.ts.map +0 -1
  448. package/script/deps/deno.land/x/oak@v17.1.4/context.js +0 -291
  449. package/script/deps/deno.land/x/oak@v17.1.4/deps.d.ts +0 -19
  450. package/script/deps/deno.land/x/oak@v17.1.4/deps.d.ts.map +0 -1
  451. package/script/deps/deno.land/x/oak@v17.1.4/deps.js +0 -60
  452. package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts +0 -51
  453. package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts.map +0 -1
  454. package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.js +0 -151
  455. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts +0 -17
  456. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts.map +0 -1
  457. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.js +0 -127
  458. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts +0 -26
  459. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts.map +0 -1
  460. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.js +0 -140
  461. package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts +0 -48
  462. package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts.map +0 -1
  463. package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.js +0 -180
  464. package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts +0 -20
  465. package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts.map +0 -1
  466. package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.js +0 -57
  467. package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts +0 -67
  468. package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts.map +0 -1
  469. package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.js +0 -130
  470. package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts +0 -114
  471. package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts.map +0 -1
  472. package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.js +0 -218
  473. package/script/deps/deno.land/x/oak@v17.1.4/middleware.d.ts +0 -36
  474. package/script/deps/deno.land/x/oak@v17.1.4/middleware.d.ts.map +0 -1
  475. package/script/deps/deno.land/x/oak@v17.1.4/middleware.js +0 -38
  476. package/script/deps/deno.land/x/oak@v17.1.4/mod.d.ts +0 -111
  477. package/script/deps/deno.land/x/oak@v17.1.4/mod.d.ts.map +0 -1
  478. package/script/deps/deno.land/x/oak@v17.1.4/mod.js +0 -159
  479. package/script/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts +0 -2
  480. package/script/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts.map +0 -1
  481. package/script/deps/deno.land/x/oak@v17.1.4/node_shims.js +0 -100
  482. package/script/deps/deno.land/x/oak@v17.1.4/request.d.ts +0 -133
  483. package/script/deps/deno.land/x/oak@v17.1.4/request.d.ts.map +0 -1
  484. package/script/deps/deno.land/x/oak@v17.1.4/request.js +0 -250
  485. package/script/deps/deno.land/x/oak@v17.1.4/response.d.ts +0 -148
  486. package/script/deps/deno.land/x/oak@v17.1.4/response.d.ts.map +0 -1
  487. package/script/deps/deno.land/x/oak@v17.1.4/response.js +0 -299
  488. package/script/deps/deno.land/x/oak@v17.1.4/router.d.ts +0 -363
  489. package/script/deps/deno.land/x/oak@v17.1.4/router.d.ts.map +0 -1
  490. package/script/deps/deno.land/x/oak@v17.1.4/router.js +0 -641
  491. package/script/deps/deno.land/x/oak@v17.1.4/send.d.ts +0 -75
  492. package/script/deps/deno.land/x/oak@v17.1.4/send.d.ts.map +0 -1
  493. package/script/deps/deno.land/x/oak@v17.1.4/send.js +0 -222
  494. package/script/deps/deno.land/x/oak@v17.1.4/testing.d.ts +0 -33
  495. package/script/deps/deno.land/x/oak@v17.1.4/testing.d.ts.map +0 -1
  496. package/script/deps/deno.land/x/oak@v17.1.4/testing.js +0 -118
  497. package/script/deps/deno.land/x/oak@v17.1.4/types.d.ts +0 -77
  498. package/script/deps/deno.land/x/oak@v17.1.4/types.d.ts.map +0 -1
  499. package/script/deps/deno.land/x/oak@v17.1.4/types.js +0 -2
  500. package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts +0 -3
  501. package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts.map +0 -1
  502. package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.js +0 -19
  503. package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts +0 -3
  504. package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts.map +0 -1
  505. package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.js +0 -6
  506. package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts +0 -7
  507. package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts.map +0 -1
  508. package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.js +0 -23
  509. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts +0 -6
  510. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts.map +0 -1
  511. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.js +0 -20
  512. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts +0 -6
  513. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts.map +0 -1
  514. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.js +0 -16
  515. package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts +0 -3
  516. package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts.map +0 -1
  517. package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.js +0 -13
  518. package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts +0 -31
  519. package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts.map +0 -1
  520. package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.js +0 -59
  521. package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts +0 -9
  522. package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts.map +0 -1
  523. package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.js +0 -80
  524. package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts +0 -17
  525. package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts.map +0 -1
  526. package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.js +0 -70
  527. package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts +0 -16
  528. package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts.map +0 -1
  529. package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.js +0 -128
  530. package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts +0 -363
  531. package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts.map +0 -1
  532. package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.js +0 -608
  533. package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts +0 -9
  534. package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts.map +0 -1
  535. package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.js +0 -288
  536. package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts +0 -16
  537. package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts.map +0 -1
  538. package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.js +0 -211
  539. package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts +0 -6
  540. package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts.map +0 -1
  541. package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.js +0 -32
  542. package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts +0 -123
  543. package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts.map +0 -1
  544. package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.js +0 -239
  545. package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts +0 -56
  546. package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts.map +0 -1
  547. package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.js +0 -169
  548. package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts +0 -56
  549. package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts.map +0 -1
  550. package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.js +0 -212
  551. package/script/deps/jsr.io/@oak/commons/1.0.0/method.d.ts +0 -29
  552. package/script/deps/jsr.io/@oak/commons/1.0.0/method.d.ts.map +0 -1
  553. package/script/deps/jsr.io/@oak/commons/1.0.0/method.js +0 -66
  554. package/script/deps/jsr.io/@oak/commons/1.0.0/range.d.ts +0 -324
  555. package/script/deps/jsr.io/@oak/commons/1.0.0/range.d.ts.map +0 -1
  556. package/script/deps/jsr.io/@oak/commons/1.0.0/range.js +0 -536
  557. package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts +0 -178
  558. package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts.map +0 -1
  559. package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.js +0 -267
  560. package/script/deps/jsr.io/@oak/commons/1.0.0/status.d.ts +0 -389
  561. package/script/deps/jsr.io/@oak/commons/1.0.0/status.d.ts.map +0 -1
  562. package/script/deps/jsr.io/@oak/commons/1.0.0/status.js +0 -396
  563. package/script/deps/jsr.io/@std/assert/1.0.11/assert.d.ts +0 -16
  564. package/script/deps/jsr.io/@std/assert/1.0.11/assert.d.ts.map +0 -1
  565. package/script/deps/jsr.io/@std/assert/1.0.11/assert.js +0 -25
  566. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
  567. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
  568. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -34
  569. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +0 -9
  570. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +0 -1
  571. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.js +0 -3
  572. package/script/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts +0 -21
  573. package/script/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +0 -1
  574. package/script/deps/jsr.io/@std/bytes/1.0.5/concat.js +0 -35
  575. package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts +0 -34
  576. package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts.map +0 -1
  577. package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.js +0 -58
  578. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +0 -9
  579. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +0 -1
  580. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.js +0 -3
  581. package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +0 -2
  582. package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +0 -1
  583. package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +0 -29
  584. package/script/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +0 -40
  585. package/script/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +0 -1
  586. package/script/deps/jsr.io/@std/encoding/1.0.7/base64.js +0 -167
  587. package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts +0 -40
  588. package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +0 -1
  589. package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.js +0 -108
  590. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts +0 -38
  591. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts.map +0 -1
  592. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.js +0 -44
  593. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts +0 -34
  594. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts.map +0 -1
  595. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.js +0 -126
  596. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts +0 -31
  597. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts.map +0 -1
  598. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.js +0 -116
  599. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts +0 -31
  600. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts.map +0 -1
  601. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.js +0 -143
  602. package/script/deps/jsr.io/@std/http/1.0.13/etag.d.ts +0 -148
  603. package/script/deps/jsr.io/@std/http/1.0.13/etag.d.ts.map +0 -1
  604. package/script/deps/jsr.io/@std/http/1.0.13/etag.js +0 -140
  605. package/script/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts +0 -148
  606. package/script/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts.map +0 -1
  607. package/script/deps/jsr.io/@std/http/1.0.13/negotiation.js +0 -42
  608. package/script/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts +0 -200
  609. package/script/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts.map +0 -1
  610. package/script/deps/jsr.io/@std/http/1.0.13/user_agent.js +0 -1154
  611. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +0 -8
  612. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +0 -1
  613. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.js +0 -40
  614. package/script/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts +0 -15
  615. package/script/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +0 -1
  616. package/script/deps/jsr.io/@std/media-types/1.1.0/_util.js +0 -132
  617. package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts +0 -43
  618. package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +0 -1
  619. package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.js +0 -60
  620. package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts +0 -33
  621. package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +0 -1
  622. package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.js +0 -80
  623. package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts +0 -22
  624. package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +0 -1
  625. package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.js +0 -46
  626. package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts +0 -31
  627. package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +0 -1
  628. package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.js +0 -117
  629. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts +0 -25
  630. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +0 -1
  631. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.js +0 -34
  632. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +0 -9103
  633. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +0 -1
  634. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +0 -9140
  635. package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +0 -2
  636. package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +0 -1
  637. package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +0 -10
  638. package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +0 -4
  639. package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +0 -1
  640. package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.js +0 -45
  641. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +0 -2
  642. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +0 -1
  643. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.js +0 -26
  644. package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +0 -40
  645. package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +0 -1
  646. package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.js +0 -49
  647. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +0 -2
  648. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +0 -1
  649. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +0 -11
  650. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +0 -4
  651. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +0 -1
  652. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.js +0 -23
  653. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +0 -2
  654. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +0 -1
  655. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +0 -12
  656. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +0 -35
  657. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +0 -1
  658. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +0 -237
  659. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +0 -2
  660. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +0 -1
  661. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +0 -11
  662. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +0 -2
  663. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +0 -1
  664. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +0 -80
  665. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +0 -2
  666. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +0 -1
  667. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.js +0 -12
  668. package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +0 -2
  669. package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +0 -1
  670. package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +0 -22
  671. package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +0 -2
  672. package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +0 -1
  673. package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +0 -18
  674. package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts +0 -2
  675. package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +0 -1
  676. package/script/deps/jsr.io/@std/path/1.0.8/_os.js +0 -35
  677. package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts +0 -28
  678. package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +0 -1
  679. package/script/deps/jsr.io/@std/path/1.0.8/basename.js +0 -39
  680. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts +0 -28
  681. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +0 -1
  682. package/script/deps/jsr.io/@std/path/1.0.8/common.js +0 -36
  683. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts +0 -15
  684. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +0 -1
  685. package/script/deps/jsr.io/@std/path/1.0.8/constants.js +0 -20
  686. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +0 -23
  687. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +0 -1
  688. package/script/deps/jsr.io/@std/path/1.0.8/dirname.js +0 -32
  689. package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts +0 -23
  690. package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +0 -1
  691. package/script/deps/jsr.io/@std/path/1.0.8/extname.js +0 -32
  692. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts +0 -22
  693. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +0 -1
  694. package/script/deps/jsr.io/@std/path/1.0.8/format.js +0 -30
  695. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +0 -22
  696. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +0 -1
  697. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.js +0 -31
  698. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +0 -77
  699. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +0 -1
  700. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +0 -86
  701. package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +0 -22
  702. package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +0 -1
  703. package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.js +0 -31
  704. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +0 -17
  705. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +0 -1
  706. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.js +0 -45
  707. package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts +0 -23
  708. package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +0 -1
  709. package/script/deps/jsr.io/@std/path/1.0.8/join.js +0 -32
  710. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +0 -28
  711. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +0 -1
  712. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.js +0 -37
  713. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts +0 -54
  714. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +0 -1
  715. package/script/deps/jsr.io/@std/path/1.0.8/mod.js +0 -73
  716. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +0 -27
  717. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +0 -1
  718. package/script/deps/jsr.io/@std/path/1.0.8/normalize.js +0 -36
  719. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +0 -29
  720. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +0 -1
  721. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +0 -38
  722. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts +0 -35
  723. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +0 -1
  724. package/script/deps/jsr.io/@std/path/1.0.8/parse.js +0 -42
  725. package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +0 -2
  726. package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +0 -1
  727. package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.js +0 -11
  728. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +0 -40
  729. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +0 -1
  730. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.js +0 -52
  731. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +0 -13
  732. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +0 -1
  733. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.js +0 -17
  734. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +0 -32
  735. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +0 -1
  736. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +0 -65
  737. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +0 -37
  738. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +0 -1
  739. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.js +0 -92
  740. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +0 -24
  741. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +0 -1
  742. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.js +0 -31
  743. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +0 -16
  744. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +0 -1
  745. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +0 -24
  746. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +0 -72
  747. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +0 -1
  748. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +0 -85
  749. package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +0 -17
  750. package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +0 -1
  751. package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +0 -26
  752. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +0 -33
  753. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +0 -1
  754. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.js +0 -45
  755. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +0 -20
  756. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +0 -1
  757. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +0 -43
  758. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +0 -40
  759. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +0 -1
  760. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +0 -60
  761. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +0 -20
  762. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +0 -1
  763. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +0 -35
  764. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +0 -25
  765. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +0 -1
  766. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.js +0 -118
  767. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +0 -20
  768. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +0 -1
  769. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.js +0 -109
  770. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +0 -17
  771. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +0 -1
  772. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +0 -85
  773. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +0 -17
  774. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +0 -1
  775. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +0 -30
  776. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +0 -16
  777. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +0 -1
  778. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +0 -23
  779. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts +0 -24
  780. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +0 -1
  781. package/script/deps/jsr.io/@std/path/1.0.8/relative.js +0 -33
  782. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +0 -22
  783. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +0 -1
  784. package/script/deps/jsr.io/@std/path/1.0.8/resolve.js +0 -33
  785. package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +0 -22
  786. package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +0 -1
  787. package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.js +0 -31
  788. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +0 -21
  789. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +0 -1
  790. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +0 -32
  791. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts +0 -38
  792. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +0 -1
  793. package/script/deps/jsr.io/@std/path/1.0.8/types.js +0 -4
  794. package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +0 -4
  795. package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +0 -1
  796. package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.js +0 -20
  797. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +0 -23
  798. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +0 -1
  799. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.js +0 -47
  800. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +0 -13
  801. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +0 -1
  802. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.js +0 -17
  803. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +0 -20
  804. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +0 -1
  805. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +0 -115
  806. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +0 -20
  807. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +0 -1
  808. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.js +0 -84
  809. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +0 -24
  810. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +0 -1
  811. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.js +0 -31
  812. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +0 -18
  813. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +0 -1
  814. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +0 -33
  815. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +0 -71
  816. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +0 -1
  817. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +0 -85
  818. package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +0 -17
  819. package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +0 -1
  820. package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +0 -41
  821. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +0 -20
  822. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +0 -1
  823. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.js +0 -77
  824. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +0 -21
  825. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +0 -1
  826. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +0 -44
  827. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +0 -22
  828. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +0 -1
  829. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +0 -137
  830. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +0 -20
  831. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +0 -1
  832. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +0 -35
  833. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +0 -25
  834. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +0 -1
  835. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.js +0 -179
  836. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +0 -23
  837. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +0 -1
  838. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.js +0 -134
  839. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +0 -17
  840. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +0 -1
  841. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +0 -180
  842. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +0 -17
  843. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +0 -1
  844. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +0 -37
  845. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +0 -17
  846. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +0 -1
  847. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +0 -52
@@ -1,295 +0,0 @@
1
- // Copyright 2018-2025 the oak authors. All rights reserved. MIT license.
2
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
3
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4
- 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");
5
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
- };
7
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8
- if (kind === "m") throw new TypeError("Private method is not writable");
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10
- 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");
11
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12
- };
13
- 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;
14
- /**
15
- * Contains the {@linkcode Response} abstraction used by oak.
16
- *
17
- * Most end users would not need to directly access this module.
18
- *
19
- * @module
20
- */
21
- import { contentType, isRedirectStatus, Status, STATUS_TEXT } from "./deps.js";
22
- import { DomResponse } from "./http_server_native_request.js";
23
- import { isAsyncIterable, isFsFile, isHtml } from "./utils/type_guards.js";
24
- import { BODY_TYPES } from "./utils/consts.js";
25
- import { encodeUrl } from "./utils/encode_url.js";
26
- import { readableStreamFromAsyncIterable, Uint8ArrayTransformStream, } from "./utils/streams.js";
27
- /** A symbol that indicates to `response.redirect()` to attempt to redirect
28
- * back to the request referrer. For example:
29
- *
30
- * ```ts
31
- * import { Application, REDIRECT_BACK } from "jsr:@oak/oak/";
32
- *
33
- * const app = new Application();
34
- *
35
- * app.use((ctx) => {
36
- * if (ctx.request.url.pathName === "/back") {
37
- * ctx.response.redirect(REDIRECT_BACK, "/");
38
- * }
39
- * });
40
- *
41
- * await app.listen({ port: 80 });
42
- * ```
43
- */
44
- export const REDIRECT_BACK = Symbol("redirect backwards");
45
- async function convertBodyToBodyInit(body, type, jsonBodyReplacer) {
46
- let result;
47
- if (BODY_TYPES.includes(typeof body)) {
48
- result = String(body);
49
- type = type ?? (isHtml(result) ? "html" : "text/plain");
50
- }
51
- else if (isFsFile(body)) {
52
- result = body.readable;
53
- }
54
- else if (ArrayBuffer.isView(body) || body instanceof ArrayBuffer ||
55
- body instanceof Blob || body instanceof URLSearchParams) {
56
- // deno-lint-ignore no-explicit-any
57
- result = body;
58
- }
59
- else if (body instanceof ReadableStream) {
60
- result = body.pipeThrough(new Uint8ArrayTransformStream());
61
- }
62
- else if (body instanceof FormData) {
63
- result = body;
64
- type = undefined;
65
- }
66
- else if (isAsyncIterable(body)) {
67
- result = readableStreamFromAsyncIterable(body);
68
- }
69
- else if (body && typeof body === "object") {
70
- result = JSON.stringify(body, jsonBodyReplacer);
71
- type = type ?? "json";
72
- }
73
- else if (typeof body === "function") {
74
- const result = body.call(null);
75
- return convertBodyToBodyInit(await result, type, jsonBodyReplacer);
76
- }
77
- else if (body) {
78
- throw new TypeError("Response body was set but could not be converted.");
79
- }
80
- return [result, type];
81
- }
82
- /** An interface to control what response will be sent when the middleware
83
- * finishes processing the request.
84
- *
85
- * The response is usually accessed via the context's `.response` property.
86
- *
87
- * ### Example
88
- *
89
- * ```ts
90
- * import { Application, Status } from "jsr:@oak/oak/";
91
- *
92
- * const app = new Application();
93
- *
94
- * app.use((ctx) => {
95
- * ctx.response.body = { hello: "oak" };
96
- * ctx.response.type = "json";
97
- * ctx.response.status = Status.OK;
98
- * });
99
- * ```
100
- */
101
- export class Response {
102
- /** The body of the response. The body will be automatically processed when
103
- * the response is being sent and converted to a `Uint8Array` or a
104
- * `Deno.Reader`.
105
- *
106
- * Automatic conversion to a `Deno.Reader` occurs for async iterables. */
107
- get body() {
108
- return __classPrivateFieldGet(this, _Response_body, "f");
109
- }
110
- /** The body of the response. The body will be automatically processed when
111
- * the response is being sent and converted to a `Uint8Array` or a
112
- * `Deno.Reader`.
113
- *
114
- * Automatic conversion to a `Deno.Reader` occurs for async iterables. */
115
- set body(value) {
116
- if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
117
- throw new Error("The response is not writable.");
118
- }
119
- __classPrivateFieldSet(this, _Response_bodySet, true, "f");
120
- __classPrivateFieldSet(this, _Response_body, value, "f");
121
- }
122
- /** Headers that will be returned in the response. */
123
- get headers() {
124
- return __classPrivateFieldGet(this, _Response_headers, "f");
125
- }
126
- /** Headers that will be returned in the response. */
127
- set headers(value) {
128
- if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
129
- throw new Error("The response is not writable.");
130
- }
131
- __classPrivateFieldSet(this, _Response_headers, value, "f");
132
- }
133
- /** The HTTP status of the response. If this has not been explicitly set,
134
- * reading the value will return what would be the value of status if the
135
- * response were sent at this point in processing the middleware. If the body
136
- * has been set, the status will be `200 OK`. If a value for the body has
137
- * not been set yet, the status will be `404 Not Found`. */
138
- get status() {
139
- if (__classPrivateFieldGet(this, _Response_status, "f")) {
140
- return __classPrivateFieldGet(this, _Response_status, "f");
141
- }
142
- return this.body != null
143
- ? Status.OK
144
- : __classPrivateFieldGet(this, _Response_bodySet, "f")
145
- ? Status.NoContent
146
- : Status.NotFound;
147
- }
148
- /** The HTTP status of the response. If this has not been explicitly set,
149
- * reading the value will return what would be the value of status if the
150
- * response were sent at this point in processing the middleware. If the body
151
- * has been set, the status will be `200 OK`. If a value for the body has
152
- * not been set yet, the status will be `404 Not Found`. */
153
- set status(value) {
154
- if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
155
- throw new Error("The response is not writable.");
156
- }
157
- __classPrivateFieldSet(this, _Response_status, value, "f");
158
- }
159
- /** The media type, or extension of the response. Setting this value will
160
- * ensure an appropriate `Content-Type` header is added to the response. */
161
- get type() {
162
- return __classPrivateFieldGet(this, _Response_type, "f");
163
- }
164
- /** The media type, or extension of the response. Setting this value will
165
- * ensure an appropriate `Content-Type` header is added to the response. */
166
- set type(value) {
167
- if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
168
- throw new Error("The response is not writable.");
169
- }
170
- __classPrivateFieldSet(this, _Response_type, value, "f");
171
- }
172
- /** A read-only property which determines if the response is writable or not.
173
- * Once the response has been processed, this value is set to `false`. */
174
- get writable() {
175
- return __classPrivateFieldGet(this, _Response_writable, "f");
176
- }
177
- constructor(request, jsonBodyReplacer) {
178
- _Response_instances.add(this);
179
- _Response_body.set(this, void 0);
180
- _Response_bodySet.set(this, false);
181
- _Response_domResponse.set(this, void 0);
182
- _Response_headers.set(this, new Headers());
183
- _Response_jsonBodyReplacer.set(this, void 0);
184
- _Response_request.set(this, void 0);
185
- _Response_resources.set(this, []);
186
- _Response_status.set(this, void 0);
187
- _Response_type.set(this, void 0);
188
- _Response_writable.set(this, true);
189
- __classPrivateFieldSet(this, _Response_request, request, "f");
190
- __classPrivateFieldSet(this, _Response_jsonBodyReplacer, jsonBodyReplacer, "f");
191
- }
192
- /** Add a resource to the list of resources that will be closed when the
193
- * request is destroyed. */
194
- addResource(resource) {
195
- __classPrivateFieldGet(this, _Response_resources, "f").push(resource);
196
- }
197
- /** Release any resources that are being tracked by the response.
198
- *
199
- * @param closeResources close any resource IDs registered with the response
200
- */
201
- destroy(closeResources = true) {
202
- __classPrivateFieldSet(this, _Response_writable, false, "f");
203
- __classPrivateFieldSet(this, _Response_body, undefined, "f");
204
- __classPrivateFieldSet(this, _Response_domResponse, undefined, "f");
205
- if (closeResources) {
206
- for (const resource of __classPrivateFieldGet(this, _Response_resources, "f")) {
207
- try {
208
- resource.close();
209
- }
210
- catch {
211
- // we don't care about errors here
212
- }
213
- }
214
- }
215
- }
216
- redirect(url, alt = "/") {
217
- if (url === REDIRECT_BACK) {
218
- url = __classPrivateFieldGet(this, _Response_request, "f").headers.get("Referer") ?? String(alt);
219
- }
220
- else if (typeof url === "object") {
221
- url = String(url);
222
- }
223
- this.headers.set("Location", encodeUrl(url));
224
- if (!this.status || !isRedirectStatus(this.status)) {
225
- this.status = Status.Found;
226
- }
227
- if (__classPrivateFieldGet(this, _Response_request, "f").accepts("html")) {
228
- url = encodeURI(url);
229
- this.type = "text/html; charset=UTF-8";
230
- this.body = `Redirecting to <a href="${url}">${url}</a>.`;
231
- return;
232
- }
233
- this.type = "text/plain; charset=UTF-8";
234
- this.body = `Redirecting to ${url}.`;
235
- }
236
- async toDomResponse() {
237
- if (__classPrivateFieldGet(this, _Response_domResponse, "f")) {
238
- return __classPrivateFieldGet(this, _Response_domResponse, "f");
239
- }
240
- const bodyInit = await __classPrivateFieldGet(this, _Response_instances, "m", _Response_getBodyInit).call(this);
241
- __classPrivateFieldGet(this, _Response_instances, "m", _Response_setContentType).call(this);
242
- const { headers } = this;
243
- // If there is no body and no content type and no set length, then set the
244
- // content length to 0
245
- if (!(bodyInit ||
246
- headers.has("Content-Type") ||
247
- headers.has("Content-Length"))) {
248
- headers.append("Content-Length", "0");
249
- }
250
- __classPrivateFieldSet(this, _Response_writable, false, "f");
251
- const status = this.status;
252
- const responseInit = {
253
- headers,
254
- status,
255
- statusText: STATUS_TEXT[status],
256
- };
257
- return __classPrivateFieldSet(this, _Response_domResponse, new DomResponse(bodyInit, responseInit), "f");
258
- }
259
- with(responseOrBody, init) {
260
- if (__classPrivateFieldGet(this, _Response_domResponse, "f") || !__classPrivateFieldGet(this, _Response_writable, "f")) {
261
- throw new Error("A response has already been finalized.");
262
- }
263
- __classPrivateFieldSet(this, _Response_writable, false, "f");
264
- __classPrivateFieldSet(this, _Response_domResponse, responseOrBody instanceof DomResponse
265
- ? responseOrBody
266
- : new DomResponse(responseOrBody, init), "f");
267
- }
268
- [(_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() {
269
- const [body, type] = await convertBodyToBodyInit(this.body, this.type, __classPrivateFieldGet(this, _Response_jsonBodyReplacer, "f"));
270
- this.type = type;
271
- return body;
272
- }, _Response_setContentType = function _Response_setContentType() {
273
- if (this.type) {
274
- const contentTypeString = contentType(this.type);
275
- if (contentTypeString && !this.headers.has("Content-Type")) {
276
- this.headers.append("Content-Type", contentTypeString);
277
- }
278
- }
279
- }, Symbol.for("Deno.customInspect"))](inspect) {
280
- const { body, headers, status, type, writable } = this;
281
- return `${this.constructor.name} ${inspect({ body, headers, status, type, writable })}`;
282
- }
283
- [Symbol.for("nodejs.util.inspect.custom")](depth,
284
- // deno-lint-ignore no-explicit-any
285
- options, inspect) {
286
- if (depth < 0) {
287
- return options.stylize(`[${this.constructor.name}]`, "special");
288
- }
289
- const newOptions = Object.assign({}, options, {
290
- depth: options.depth === null ? null : options.depth - 1,
291
- });
292
- const { body, headers, status, type, writable } = this;
293
- return `${options.stylize(this.constructor.name, "special")} ${inspect({ body, headers, status, type, writable }, newOptions)}`;
294
- }
295
- }
@@ -1,363 +0,0 @@
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