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