@fedify/fedify 0.10.0-dev.205 → 0.10.0-dev.207

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/concat.js +3 -2
  2. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/copy.js +6 -4
  3. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/ends_with.js +5 -1
  4. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/equals.js +3 -2
  5. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/includes_needle.js +5 -2
  6. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/index_of_needle.js +9 -7
  7. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/last_index_of_needle.js +7 -5
  8. package/esm/deps/jsr.io/@std/bytes/1.0.0/mod.js +34 -0
  9. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/repeat.js +10 -3
  10. package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/starts_with.js +5 -1
  11. package/esm/runtime/key.js +1 -1
  12. package/esm/sig/http.js +1 -1
  13. package/package.json +3 -3
  14. package/types/deps/jsr.io/@std/assert/0.226.0/assert.d.ts.map +1 -0
  15. package/types/deps/jsr.io/@std/assert/0.226.0/assert_almost_equals.d.ts.map +1 -0
  16. package/types/deps/jsr.io/@std/assert/0.226.0/assert_array_includes.d.ts.map +1 -0
  17. package/types/deps/jsr.io/@std/assert/0.226.0/assert_equals.d.ts.map +1 -0
  18. package/types/deps/jsr.io/@std/assert/0.226.0/assert_exists.d.ts.map +1 -0
  19. package/types/deps/jsr.io/@std/assert/{0.224.0 → 0.226.0}/assert_false.d.ts.map +1 -1
  20. package/types/deps/jsr.io/@std/assert/0.226.0/assert_greater.d.ts.map +1 -0
  21. package/types/deps/jsr.io/@std/assert/0.226.0/assert_greater_or_equal.d.ts.map +1 -0
  22. package/types/deps/jsr.io/@std/assert/{0.224.0 → 0.226.0}/assert_instance_of.d.ts.map +1 -1
  23. package/types/deps/jsr.io/@std/assert/0.226.0/assert_is_error.d.ts.map +1 -0
  24. package/types/deps/jsr.io/@std/assert/0.226.0/assert_less.d.ts.map +1 -0
  25. package/types/deps/jsr.io/@std/assert/0.226.0/assert_less_or_equal.d.ts.map +1 -0
  26. package/types/deps/jsr.io/@std/assert/0.226.0/assert_match.d.ts.map +1 -0
  27. package/types/deps/jsr.io/@std/assert/0.226.0/assert_not_equals.d.ts.map +1 -0
  28. package/types/deps/jsr.io/@std/assert/0.226.0/assert_not_instance_of.d.ts.map +1 -0
  29. package/types/deps/jsr.io/@std/assert/0.226.0/assert_not_match.d.ts.map +1 -0
  30. package/types/deps/jsr.io/@std/assert/0.226.0/assert_not_strict_equals.d.ts.map +1 -0
  31. package/types/deps/jsr.io/@std/assert/0.226.0/assert_object_match.d.ts.map +1 -0
  32. package/types/deps/jsr.io/@std/assert/0.226.0/assert_rejects.d.ts.map +1 -0
  33. package/types/deps/jsr.io/@std/assert/0.226.0/assert_strict_equals.d.ts.map +1 -0
  34. package/types/deps/jsr.io/@std/assert/0.226.0/assert_string_includes.d.ts.map +1 -0
  35. package/types/deps/jsr.io/@std/assert/0.226.0/assert_throws.d.ts.map +1 -0
  36. package/types/deps/jsr.io/@std/assert/0.226.0/assertion_error.d.ts.map +1 -0
  37. package/types/deps/jsr.io/@std/assert/0.226.0/equal.d.ts.map +1 -0
  38. package/types/deps/jsr.io/@std/assert/0.226.0/fail.d.ts.map +1 -0
  39. package/types/deps/jsr.io/@std/assert/{0.224.0 → 0.226.0}/mod.d.ts.map +1 -1
  40. package/types/deps/jsr.io/@std/assert/0.226.0/unimplemented.d.ts.map +1 -0
  41. package/types/deps/jsr.io/@std/assert/0.226.0/unreachable.d.ts.map +1 -0
  42. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/concat.d.ts +3 -2
  43. package/types/deps/jsr.io/@std/bytes/1.0.0/concat.d.ts.map +1 -0
  44. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/copy.d.ts +6 -4
  45. package/types/deps/jsr.io/@std/bytes/1.0.0/copy.d.ts.map +1 -0
  46. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/ends_with.d.ts +2 -1
  47. package/types/deps/jsr.io/@std/bytes/1.0.0/ends_with.d.ts.map +1 -0
  48. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/equals.d.ts +3 -2
  49. package/types/deps/jsr.io/@std/bytes/1.0.0/equals.d.ts.map +1 -0
  50. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/includes_needle.d.ts +5 -2
  51. package/types/deps/jsr.io/@std/bytes/1.0.0/includes_needle.d.ts.map +1 -0
  52. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/index_of_needle.d.ts +6 -4
  53. package/types/deps/jsr.io/@std/bytes/1.0.0/index_of_needle.d.ts.map +1 -0
  54. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/last_index_of_needle.d.ts +7 -5
  55. package/types/deps/jsr.io/@std/bytes/1.0.0/last_index_of_needle.d.ts.map +1 -0
  56. package/types/deps/jsr.io/@std/bytes/1.0.0/mod.d.ts +33 -0
  57. package/types/deps/jsr.io/@std/bytes/1.0.0/mod.d.ts.map +1 -0
  58. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/repeat.d.ts +10 -3
  59. package/types/deps/jsr.io/@std/bytes/1.0.0/repeat.d.ts.map +1 -0
  60. package/types/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.0}/starts_with.d.ts +2 -1
  61. package/types/deps/jsr.io/@std/bytes/1.0.0/starts_with.d.ts.map +1 -0
  62. package/types/deps/jsr.io/@std/internal/1.0.0/build_message.d.ts.map +1 -0
  63. package/types/deps/jsr.io/@std/internal/1.0.0/diff.d.ts.map +1 -0
  64. package/types/deps/jsr.io/@std/internal/1.0.0/diff_str.d.ts.map +1 -0
  65. package/types/deps/jsr.io/@std/internal/1.0.0/format.d.ts.map +1 -0
  66. package/types/deps/jsr.io/@std/internal/1.0.0/mod.d.ts.map +1 -0
  67. package/types/deps/jsr.io/@std/internal/1.0.0/styles.d.ts.map +1 -0
  68. package/types/deps/jsr.io/@std/internal/1.0.0/types.d.ts.map +1 -0
  69. package/types/deps/jsr.io/@std/path/0.225.2/_common/assert_path.d.ts.map +1 -0
  70. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/_common/basename.d.ts.map +1 -1
  71. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/_common/common.d.ts.map +1 -1
  72. package/types/deps/jsr.io/@std/path/0.225.2/_common/constants.d.ts.map +1 -0
  73. package/types/deps/jsr.io/@std/path/0.225.2/_common/dirname.d.ts.map +1 -0
  74. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/_common/format.d.ts.map +1 -1
  75. package/types/deps/jsr.io/@std/path/0.225.2/_common/from_file_url.d.ts.map +1 -0
  76. package/types/deps/jsr.io/@std/path/0.225.2/_common/glob_to_reg_exp.d.ts.map +1 -0
  77. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/_common/normalize.d.ts.map +1 -1
  78. package/types/deps/jsr.io/@std/path/0.225.2/_common/normalize_string.d.ts.map +1 -0
  79. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/_common/relative.d.ts.map +1 -1
  80. package/types/deps/jsr.io/@std/path/0.225.2/_common/strip_trailing_separators.d.ts.map +1 -0
  81. package/types/deps/jsr.io/@std/path/0.225.2/_common/to_file_url.d.ts.map +1 -0
  82. package/types/deps/jsr.io/@std/path/0.225.2/_interface.d.ts.map +1 -0
  83. package/types/deps/jsr.io/@std/path/0.225.2/_os.d.ts.map +1 -0
  84. package/types/deps/jsr.io/@std/path/0.225.2/basename.d.ts.map +1 -0
  85. package/types/deps/jsr.io/@std/path/0.225.2/common.d.ts.map +1 -0
  86. package/types/deps/jsr.io/@std/path/0.225.2/constants.d.ts.map +1 -0
  87. package/types/deps/jsr.io/@std/path/0.225.2/dirname.d.ts.map +1 -0
  88. package/types/deps/jsr.io/@std/path/0.225.2/extname.d.ts.map +1 -0
  89. package/types/deps/jsr.io/@std/path/0.225.2/format.d.ts.map +1 -0
  90. package/types/deps/jsr.io/@std/path/0.225.2/from_file_url.d.ts.map +1 -0
  91. package/types/deps/jsr.io/@std/path/0.225.2/glob_to_regexp.d.ts.map +1 -0
  92. package/types/deps/jsr.io/@std/path/0.225.2/is_absolute.d.ts.map +1 -0
  93. package/types/deps/jsr.io/@std/path/0.225.2/is_glob.d.ts.map +1 -0
  94. package/types/deps/jsr.io/@std/path/0.225.2/join.d.ts.map +1 -0
  95. package/types/deps/jsr.io/@std/path/0.225.2/join_globs.d.ts.map +1 -0
  96. package/types/deps/jsr.io/@std/path/0.225.2/mod.d.ts.map +1 -0
  97. package/types/deps/jsr.io/@std/path/0.225.2/normalize.d.ts.map +1 -0
  98. package/types/deps/jsr.io/@std/path/0.225.2/normalize_glob.d.ts.map +1 -0
  99. package/types/deps/jsr.io/@std/path/0.225.2/parse.d.ts.map +1 -0
  100. package/types/deps/jsr.io/@std/path/0.225.2/posix/_util.d.ts.map +1 -0
  101. package/types/deps/jsr.io/@std/path/0.225.2/posix/basename.d.ts.map +1 -0
  102. package/types/deps/jsr.io/@std/path/0.225.2/posix/common.d.ts.map +1 -0
  103. package/types/deps/jsr.io/@std/path/0.225.2/posix/constants.d.ts.map +1 -0
  104. package/types/deps/jsr.io/@std/path/0.225.2/posix/dirname.d.ts.map +1 -0
  105. package/types/deps/jsr.io/@std/path/0.225.2/posix/extname.d.ts.map +1 -0
  106. package/types/deps/jsr.io/@std/path/0.225.2/posix/format.d.ts.map +1 -0
  107. package/types/deps/jsr.io/@std/path/0.225.2/posix/from_file_url.d.ts.map +1 -0
  108. package/types/deps/jsr.io/@std/path/0.225.2/posix/glob_to_regexp.d.ts.map +1 -0
  109. package/types/deps/jsr.io/@std/path/0.225.2/posix/is_absolute.d.ts.map +1 -0
  110. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/posix/is_glob.d.ts.map +1 -1
  111. package/types/deps/jsr.io/@std/path/0.225.2/posix/join.d.ts.map +1 -0
  112. package/types/deps/jsr.io/@std/path/0.225.2/posix/join_globs.d.ts.map +1 -0
  113. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/posix/mod.d.ts.map +1 -1
  114. package/types/deps/jsr.io/@std/path/0.225.2/posix/normalize.d.ts.map +1 -0
  115. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/posix/normalize_glob.d.ts.map +1 -1
  116. package/types/deps/jsr.io/@std/path/0.225.2/posix/parse.d.ts.map +1 -0
  117. package/types/deps/jsr.io/@std/path/0.225.2/posix/relative.d.ts.map +1 -0
  118. package/types/deps/jsr.io/@std/path/0.225.2/posix/resolve.d.ts.map +1 -0
  119. package/types/deps/jsr.io/@std/path/0.225.2/posix/to_file_url.d.ts.map +1 -0
  120. package/types/deps/jsr.io/@std/path/0.225.2/posix/to_namespaced_path.d.ts.map +1 -0
  121. package/types/deps/jsr.io/@std/path/0.225.2/relative.d.ts.map +1 -0
  122. package/types/deps/jsr.io/@std/path/0.225.2/resolve.d.ts.map +1 -0
  123. package/types/deps/jsr.io/@std/path/0.225.2/to_file_url.d.ts.map +1 -0
  124. package/types/deps/jsr.io/@std/path/0.225.2/to_namespaced_path.d.ts.map +1 -0
  125. package/types/deps/jsr.io/@std/path/0.225.2/windows/_util.d.ts.map +1 -0
  126. package/types/deps/jsr.io/@std/path/0.225.2/windows/basename.d.ts.map +1 -0
  127. package/types/deps/jsr.io/@std/path/0.225.2/windows/common.d.ts.map +1 -0
  128. package/types/deps/jsr.io/@std/path/0.225.2/windows/constants.d.ts.map +1 -0
  129. package/types/deps/jsr.io/@std/path/0.225.2/windows/dirname.d.ts.map +1 -0
  130. package/types/deps/jsr.io/@std/path/0.225.2/windows/extname.d.ts.map +1 -0
  131. package/types/deps/jsr.io/@std/path/0.225.2/windows/format.d.ts.map +1 -0
  132. package/types/deps/jsr.io/@std/path/0.225.2/windows/from_file_url.d.ts.map +1 -0
  133. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/windows/glob_to_regexp.d.ts.map +1 -1
  134. package/types/deps/jsr.io/@std/path/0.225.2/windows/is_absolute.d.ts.map +1 -0
  135. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/windows/is_glob.d.ts.map +1 -1
  136. package/types/deps/jsr.io/@std/path/0.225.2/windows/join.d.ts.map +1 -0
  137. package/types/deps/jsr.io/@std/path/0.225.2/windows/join_globs.d.ts.map +1 -0
  138. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/windows/mod.d.ts.map +1 -1
  139. package/types/deps/jsr.io/@std/path/0.225.2/windows/normalize.d.ts.map +1 -0
  140. package/types/deps/jsr.io/@std/path/{0.224.0 → 0.225.2}/windows/normalize_glob.d.ts.map +1 -1
  141. package/types/deps/jsr.io/@std/path/0.225.2/windows/parse.d.ts.map +1 -0
  142. package/types/deps/jsr.io/@std/path/0.225.2/windows/relative.d.ts.map +1 -0
  143. package/types/deps/jsr.io/@std/path/0.225.2/windows/resolve.d.ts.map +1 -0
  144. package/types/deps/jsr.io/@std/path/0.225.2/windows/to_file_url.d.ts.map +1 -0
  145. package/types/deps/jsr.io/@std/path/0.225.2/windows/to_namespaced_path.d.ts.map +1 -0
  146. package/types/testing/mod.d.ts.map +1 -0
  147. package/esm/deps/jsr.io/@std/bytes/0.224.0/mod.js +0 -151
  148. package/types/deps/jsr.io/@std/assert/0.224.0/assert_almost_equals.d.ts.map +0 -1
  149. package/types/deps/jsr.io/@std/assert/0.224.0/assert_array_includes.d.ts.map +0 -1
  150. package/types/deps/jsr.io/@std/assert/0.224.0/assert_exists.d.ts.map +0 -1
  151. package/types/deps/jsr.io/@std/assert/0.224.0/assert_greater.d.ts.map +0 -1
  152. package/types/deps/jsr.io/@std/assert/0.224.0/assert_greater_or_equal.d.ts.map +0 -1
  153. package/types/deps/jsr.io/@std/assert/0.224.0/assert_is_error.d.ts.map +0 -1
  154. package/types/deps/jsr.io/@std/assert/0.224.0/assert_less.d.ts.map +0 -1
  155. package/types/deps/jsr.io/@std/assert/0.224.0/assert_less_or_equal.d.ts.map +0 -1
  156. package/types/deps/jsr.io/@std/assert/0.224.0/assert_match.d.ts.map +0 -1
  157. package/types/deps/jsr.io/@std/assert/0.224.0/assert_not_equals.d.ts.map +0 -1
  158. package/types/deps/jsr.io/@std/assert/0.224.0/assert_not_instance_of.d.ts.map +0 -1
  159. package/types/deps/jsr.io/@std/assert/0.224.0/assert_not_match.d.ts.map +0 -1
  160. package/types/deps/jsr.io/@std/assert/0.224.0/assert_not_strict_equals.d.ts.map +0 -1
  161. package/types/deps/jsr.io/@std/assert/0.224.0/assert_object_match.d.ts.map +0 -1
  162. package/types/deps/jsr.io/@std/assert/0.224.0/assert_rejects.d.ts.map +0 -1
  163. package/types/deps/jsr.io/@std/assert/0.224.0/assert_strict_equals.d.ts.map +0 -1
  164. package/types/deps/jsr.io/@std/assert/0.224.0/assert_string_includes.d.ts.map +0 -1
  165. package/types/deps/jsr.io/@std/assert/0.224.0/assert_throws.d.ts.map +0 -1
  166. package/types/deps/jsr.io/@std/assert/0.224.0/fail.d.ts.map +0 -1
  167. package/types/deps/jsr.io/@std/assert/0.224.0/unimplemented.d.ts.map +0 -1
  168. package/types/deps/jsr.io/@std/assert/0.224.0/unreachable.d.ts.map +0 -1
  169. package/types/deps/jsr.io/@std/bytes/0.224.0/concat.d.ts.map +0 -1
  170. package/types/deps/jsr.io/@std/bytes/0.224.0/copy.d.ts.map +0 -1
  171. package/types/deps/jsr.io/@std/bytes/0.224.0/ends_with.d.ts.map +0 -1
  172. package/types/deps/jsr.io/@std/bytes/0.224.0/equals.d.ts.map +0 -1
  173. package/types/deps/jsr.io/@std/bytes/0.224.0/includes_needle.d.ts.map +0 -1
  174. package/types/deps/jsr.io/@std/bytes/0.224.0/index_of_needle.d.ts.map +0 -1
  175. package/types/deps/jsr.io/@std/bytes/0.224.0/last_index_of_needle.d.ts.map +0 -1
  176. package/types/deps/jsr.io/@std/bytes/0.224.0/mod.d.ts +0 -150
  177. package/types/deps/jsr.io/@std/bytes/0.224.0/mod.d.ts.map +0 -1
  178. package/types/deps/jsr.io/@std/bytes/0.224.0/repeat.d.ts.map +0 -1
  179. package/types/deps/jsr.io/@std/bytes/0.224.0/starts_with.d.ts.map +0 -1
  180. package/types/deps/jsr.io/@std/path/0.224.0/_common/glob_to_reg_exp.d.ts.map +0 -1
  181. package/types/deps/jsr.io/@std/path/0.224.0/basename.d.ts.map +0 -1
  182. package/types/deps/jsr.io/@std/path/0.224.0/common.d.ts.map +0 -1
  183. package/types/deps/jsr.io/@std/path/0.224.0/constants.d.ts.map +0 -1
  184. package/types/deps/jsr.io/@std/path/0.224.0/extname.d.ts.map +0 -1
  185. package/types/deps/jsr.io/@std/path/0.224.0/format.d.ts.map +0 -1
  186. package/types/deps/jsr.io/@std/path/0.224.0/glob_to_regexp.d.ts.map +0 -1
  187. package/types/deps/jsr.io/@std/path/0.224.0/is_absolute.d.ts.map +0 -1
  188. package/types/deps/jsr.io/@std/path/0.224.0/is_glob.d.ts.map +0 -1
  189. package/types/deps/jsr.io/@std/path/0.224.0/join.d.ts.map +0 -1
  190. package/types/deps/jsr.io/@std/path/0.224.0/join_globs.d.ts.map +0 -1
  191. package/types/deps/jsr.io/@std/path/0.224.0/mod.d.ts.map +0 -1
  192. package/types/deps/jsr.io/@std/path/0.224.0/normalize.d.ts.map +0 -1
  193. package/types/deps/jsr.io/@std/path/0.224.0/normalize_glob.d.ts.map +0 -1
  194. package/types/deps/jsr.io/@std/path/0.224.0/posix/basename.d.ts.map +0 -1
  195. package/types/deps/jsr.io/@std/path/0.224.0/posix/common.d.ts.map +0 -1
  196. package/types/deps/jsr.io/@std/path/0.224.0/posix/constants.d.ts.map +0 -1
  197. package/types/deps/jsr.io/@std/path/0.224.0/posix/extname.d.ts.map +0 -1
  198. package/types/deps/jsr.io/@std/path/0.224.0/posix/format.d.ts.map +0 -1
  199. package/types/deps/jsr.io/@std/path/0.224.0/posix/glob_to_regexp.d.ts.map +0 -1
  200. package/types/deps/jsr.io/@std/path/0.224.0/posix/join.d.ts.map +0 -1
  201. package/types/deps/jsr.io/@std/path/0.224.0/posix/join_globs.d.ts.map +0 -1
  202. package/types/deps/jsr.io/@std/path/0.224.0/posix/normalize.d.ts.map +0 -1
  203. package/types/deps/jsr.io/@std/path/0.224.0/posix/relative.d.ts.map +0 -1
  204. package/types/deps/jsr.io/@std/path/0.224.0/posix/to_namespaced_path.d.ts.map +0 -1
  205. package/types/deps/jsr.io/@std/path/0.224.0/relative.d.ts.map +0 -1
  206. package/types/deps/jsr.io/@std/path/0.224.0/to_namespaced_path.d.ts.map +0 -1
  207. package/types/deps/jsr.io/@std/path/0.224.0/windows/basename.d.ts.map +0 -1
  208. package/types/deps/jsr.io/@std/path/0.224.0/windows/common.d.ts.map +0 -1
  209. package/types/deps/jsr.io/@std/path/0.224.0/windows/constants.d.ts.map +0 -1
  210. package/types/deps/jsr.io/@std/path/0.224.0/windows/extname.d.ts.map +0 -1
  211. package/types/deps/jsr.io/@std/path/0.224.0/windows/format.d.ts.map +0 -1
  212. package/types/deps/jsr.io/@std/path/0.224.0/windows/join.d.ts.map +0 -1
  213. package/types/deps/jsr.io/@std/path/0.224.0/windows/join_globs.d.ts.map +0 -1
  214. package/types/deps/jsr.io/@std/path/0.224.0/windows/normalize.d.ts.map +0 -1
  215. package/types/deps/jsr.io/@std/path/0.224.0/windows/relative.d.ts.map +0 -1
  216. package/types/deps/jsr.io/@std/path/0.224.0/windows/to_namespaced_path.d.ts.map +0 -1
@@ -4,16 +4,17 @@
4
4
  * Concatenate an array of byte slices into a single slice.
5
5
  *
6
6
  * @param buffers Array of byte slices to concatenate.
7
- * @returns Hello
7
+ * @returns A new byte slice containing all the input slices concatenated.
8
8
  *
9
9
  * @example Basic usage
10
10
  * ```ts
11
11
  * import { concat } from "@std/bytes/concat";
12
+ * import { assertEquals } from "@std/assert/assert-equals";
12
13
  *
13
14
  * const a = new Uint8Array([0, 1, 2]);
14
15
  * const b = new Uint8Array([3, 4, 5]);
15
16
  *
16
- * concat([a, b]); // Uint8Array(6) [ 0, 1, 2, 3, 4, 5 ]
17
+ * assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
17
18
  * ```
18
19
  */
19
20
  export function concat(buffers) {
@@ -16,23 +16,25 @@
16
16
  * @example Basic usage
17
17
  * ```ts
18
18
  * import { copy } from "@std/bytes/copy";
19
+ * import { assertEquals } from "@std/assert/assert-equals";
19
20
  *
20
21
  * const src = new Uint8Array([9, 8, 7]);
21
22
  * const dst = new Uint8Array([0, 1, 2, 3, 4, 5]);
22
23
  *
23
- * copy(src, dst); // 3
24
- * dst; // Uint8Array(6) [9, 8, 7, 3, 4, 5]
24
+ * assertEquals(copy(src, dst), 3);
25
+ * assertEquals(dst, new Uint8Array([9, 8, 7, 3, 4, 5]));
25
26
  * ```
26
27
  *
27
28
  * @example Copy with offset
28
29
  * ```ts
29
30
  * import { copy } from "@std/bytes/copy";
31
+ * import { assertEquals } from "@std/assert/assert-equals";
30
32
  *
31
33
  * const src = new Uint8Array([1, 1, 1, 1]);
32
34
  * const dst = new Uint8Array([0, 0, 0, 0]);
33
35
  *
34
- * copy(src, dst, 1); // 3
35
- * dst; // Uint8Array(4) [0, 1, 1, 1]
36
+ * assertEquals(copy(src, dst, 1), 3);
37
+ * assertEquals(dst, new Uint8Array([0, 1, 1, 1]));
36
38
  * ```
37
39
  * Defining an offset will start copying at the specified index in the
38
40
  * destination array.
@@ -14,15 +14,19 @@
14
14
  * @example Basic usage
15
15
  * ```ts
16
16
  * import { endsWith } from "@std/bytes/ends-with";
17
+ * import { assertEquals } from "@std/assert/assert-equals";
17
18
  *
18
19
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
19
20
  * const suffix = new Uint8Array([1, 2, 3]);
20
21
  *
21
- * endsWith(source, suffix); // true
22
+ * assertEquals(endsWith(source, suffix), true);
22
23
  * ```
23
24
  */
24
25
  export function endsWith(source, suffix) {
25
26
  const diff = source.length - suffix.length;
27
+ if (diff < 0) {
28
+ return false;
29
+ }
26
30
  for (let i = suffix.length - 1; i >= 0; i--) {
27
31
  if (source[diff + i] !== suffix[i]) {
28
32
  return false;
@@ -61,13 +61,14 @@ const THRESHOLD_32_BIT = 160;
61
61
  * @example Basic usage
62
62
  * ```ts
63
63
  * import { equals } from "@std/bytes/equals";
64
+ * import { assertEquals } from "@std/assert/assert-equals";
64
65
  *
65
66
  * const a = new Uint8Array([1, 2, 3]);
66
67
  * const b = new Uint8Array([1, 2, 3]);
67
68
  * const c = new Uint8Array([4, 5, 6]);
68
69
  *
69
- * equals(a, b); // true
70
- * equals(b, c); // false
70
+ * assertEquals(equals(a, b), true);
71
+ * assertEquals(equals(a, c), false);
71
72
  * ```
72
73
  */
73
74
  export function equals(a, b) {
@@ -16,21 +16,24 @@ import { indexOfNeedle } from "./index_of_needle.js";
16
16
  * @example Basic usage
17
17
  * ```ts
18
18
  * import { includesNeedle } from "@std/bytes/includes-needle";
19
+ * import { assertEquals } from "@std/assert/assert-equals";
19
20
  *
20
21
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
21
22
  * const needle = new Uint8Array([1, 2]);
22
23
  *
23
- * includesNeedle(source, needle); // true
24
+ * assertEquals(includesNeedle(source, needle), true);
24
25
  * ```
25
26
  *
26
27
  * @example Start index
27
28
  * ```ts
28
29
  * import { includesNeedle } from "@std/bytes/includes-needle";
30
+ * import { assertEquals } from "@std/assert/assert-equals";
29
31
  *
30
32
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
31
33
  * const needle = new Uint8Array([1, 2]);
32
34
  *
33
- * includesNeedle(source, needle, 6); // false
35
+ * assertEquals(includesNeedle(source, needle, 3), true);
36
+ * assertEquals(includesNeedle(source, needle, 6), false);
34
37
  * ```
35
38
  * The search will start at the specified index in the source array.
36
39
  */
@@ -19,35 +19,37 @@
19
19
  * @example Basic usage
20
20
  * ```ts
21
21
  * import { indexOfNeedle } from "@std/bytes/index-of-needle";
22
+ * import { assertEquals } from "@std/assert/assert-equals";
22
23
  *
23
24
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
24
25
  * const needle = new Uint8Array([1, 2]);
25
26
  * const notNeedle = new Uint8Array([5, 0]);
26
27
  *
27
- * indexOfNeedle(source, needle); // 1
28
- * indexOfNeedle(source, notNeedle); // -1
28
+ * assertEquals(indexOfNeedle(source, needle), 1);
29
+ * assertEquals(indexOfNeedle(source, notNeedle), -1);
29
30
  * ```
30
31
  *
31
32
  * @example Start index
32
33
  * ```ts
33
34
  * import { indexOfNeedle } from "@std/bytes/index-of-needle";
35
+ * import { assertEquals } from "@std/assert/assert-equals";
34
36
  *
35
37
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
36
38
  * const needle = new Uint8Array([1, 2]);
37
39
  *
38
- * indexOfNeedle(source, needle, 2); // 3
39
- * indexOfNeedle(source, needle, 6); // -1
40
+ * assertEquals(indexOfNeedle(source, needle, 2), 3);
41
+ * assertEquals(indexOfNeedle(source, needle, 6), -1);
40
42
  * ```
41
43
  * Defining a start index will begin the search at the specified index in the
42
44
  * source array.
43
45
  */
44
46
  export function indexOfNeedle(source, needle, start = 0) {
45
- if (start >= source.length) {
46
- return -1;
47
- }
48
47
  if (start < 0) {
49
48
  start = Math.max(0, source.length + start);
50
49
  }
50
+ if (needle.length > source.length - start) {
51
+ return -1;
52
+ }
51
53
  const s = needle[0];
52
54
  for (let i = start; i < source.length; i++) {
53
55
  if (source[i] !== s)
@@ -9,31 +9,33 @@
9
9
  * @param source Source array to check.
10
10
  * @param needle Needle array to check for.
11
11
  * @param start Start index in the source array to begin the search. Defaults to
12
- * the end of the array.
12
+ * `source.length - 1`.
13
13
  * @returns Index of the last occurrence of the needle array in the source
14
14
  * array, or -1 if it is not present.
15
15
  *
16
16
  * @example Basic usage
17
17
  * ```ts
18
18
  * import { lastIndexOfNeedle } from "@std/bytes/last-index-of-needle";
19
+ * import { assertEquals } from "@std/assert/assert-equals";
19
20
  *
20
21
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
21
22
  * const needle = new Uint8Array([1, 2]);
22
23
  * const notNeedle = new Uint8Array([5, 0]);
23
24
  *
24
- * lastIndexOfNeedle(source, needle); // 5
25
- * lastIndexOfNeedle(source, notNeedle); // -1
25
+ * assertEquals(lastIndexOfNeedle(source, needle), 5);
26
+ * assertEquals(lastIndexOfNeedle(source, notNeedle), -1);
26
27
  * ```
27
28
  *
28
29
  * @example Start index
29
30
  * ```ts
30
31
  * import { lastIndexOfNeedle } from "@std/bytes/last-index-of-needle";
32
+ * import { assertEquals } from "@std/assert/assert-equals";
31
33
  *
32
34
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
33
35
  * const needle = new Uint8Array([1, 2]);
34
36
  *
35
- * lastIndexOfNeedle(source, needle, 2); // 1
36
- * lastIndexOfNeedle(source, needle, 6); // 3
37
+ * assertEquals(lastIndexOfNeedle(source, needle, 2), 1);
38
+ * assertEquals(lastIndexOfNeedle(source, needle, 6), 5);
37
39
  * ```
38
40
  * Defining a start index will begin the search at the specified index in the
39
41
  * source array.
@@ -0,0 +1,34 @@
1
+ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2
+ // This module is browser compatible.
3
+ /**
4
+ * Helper functions for working with
5
+ * {@linkcode https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array | Uint8Array}
6
+ * byte slices.
7
+ *
8
+ * ```ts
9
+ * import { concat, indexOfNeedle, endsWith } from "@std/bytes";
10
+ * import { assertEquals } from "@std/assert/assert-equals";
11
+ *
12
+ * const a = new Uint8Array([0, 1, 2]);
13
+ * const b = new Uint8Array([3, 4, 5]);
14
+ *
15
+ * const c = concat([a, b]);
16
+ *
17
+ * assertEquals(c, new Uint8Array([0, 1, 2, 3, 4, 5]));
18
+ *
19
+ * assertEquals(indexOfNeedle(c, new Uint8Array([2, 3])), 2);
20
+ *
21
+ * assertEquals(endsWith(c, b), true);
22
+ * ```
23
+ *
24
+ * @module
25
+ */
26
+ export * from "./concat.js";
27
+ export * from "./copy.js";
28
+ export * from "./ends_with.js";
29
+ export * from "./equals.js";
30
+ export * from "./includes_needle.js";
31
+ export * from "./index_of_needle.js";
32
+ export * from "./last_index_of_needle.js";
33
+ export * from "./repeat.js";
34
+ export * from "./starts_with.js";
@@ -13,14 +13,21 @@ import { copy } from "./copy.js";
13
13
  * @example Basic usage
14
14
  * ```ts
15
15
  * import { repeat } from "@std/bytes/repeat";
16
+ * import { assertEquals } from "@std/assert/assert-equals";
16
17
  *
17
18
  * const source = new Uint8Array([0, 1, 2]);
18
19
  *
19
- * repeat(source, 3); // Uint8Array(9) [0, 1, 2, 0, 1, 2, 0, 1, 2]
20
+ * assertEquals(repeat(source, 3), new Uint8Array([0, 1, 2, 0, 1, 2, 0, 1, 2]));
21
+ * ```
20
22
  *
21
- * repeat(source, 0); // Uint8Array(0) []
23
+ * @example Zero count
24
+ * ```ts
25
+ * import { repeat } from "@std/bytes/repeat";
26
+ * import { assertEquals } from "@std/assert/assert-equals";
27
+ *
28
+ * const source = new Uint8Array([0, 1, 2]);
22
29
  *
23
- * repeat(source, -1); // Throws `RangeError`
30
+ * assertEquals(repeat(source, 0), new Uint8Array());
24
31
  * ```
25
32
  */
26
33
  export function repeat(source, count) {
@@ -14,14 +14,18 @@
14
14
  * @example Basic usage
15
15
  * ```ts
16
16
  * import { startsWith } from "@std/bytes/starts-with";
17
+ * import { assertEquals } from "@std/assert/assert-equals";
17
18
  *
18
19
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
19
20
  * const prefix = new Uint8Array([0, 1, 2]);
20
21
  *
21
- * startsWith(source, prefix); // true
22
+ * assertEquals(startsWith(source, prefix), true);
22
23
  * ```
23
24
  */
24
25
  export function startsWith(source, prefix) {
26
+ if (prefix.length > source.length) {
27
+ return false;
28
+ }
25
29
  for (let i = 0; i < prefix.length; i++) {
26
30
  if (source[i] !== prefix[i])
27
31
  return false;
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { createPublicKey } from "node:crypto";
3
- import { concat } from "../deps/jsr.io/@std/bytes/0.224.0/concat.js";
3
+ import { concat } from "../deps/jsr.io/@std/bytes/1.0.0/concat.js";
4
4
  import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.3/base64.js";
5
5
  import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/0.224.3/base64url.js";
6
6
  import { decodeHex } from "../deps/jsr.io/@std/encoding/0.224.3/hex.js";
package/esm/sig/http.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { getLogger } from "@logtape/logtape";
3
- import { equals } from "../deps/jsr.io/@std/bytes/0.224.0/mod.js";
3
+ import { equals } from "../deps/jsr.io/@std/bytes/1.0.0/mod.js";
4
4
  import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/0.224.3/base64.js";
5
5
  import { CryptographicKey } from "../vocab/vocab.js";
6
6
  import { fetchKey, validateCryptoKey } from "./key.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "0.10.0-dev.205+0cbca257",
3
+ "version": "0.10.0-dev.207+1573cf43",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@logtape/logtape": "^0.4.0",
86
- "@phensley/language-tag": "^1.8.0",
86
+ "@phensley/language-tag": "^1.8.1",
87
87
  "asn1js": "^3.0.5",
88
88
  "json-canon": "^1.0.1",
89
89
  "jsonld": "^8.3.2",
@@ -101,7 +101,7 @@
101
101
  "@types/node": "^20.9.0",
102
102
  "picocolors": "^1.0.0",
103
103
  "@cfworker/json-schema": "^1.12.8",
104
- "fast-check": "^3.18.0"
104
+ "fast-check": "^3.19.0"
105
105
  },
106
106
  "_generatedBy": "dnt@dev"
107
107
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,SAAO,EAChB,GAAG,CAAC,EAAE,MAAM,QAgBb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_array_includes.ts"],"names":[],"mappings":"AAMA,0FAA0F;AAC1F,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,GAAG,CAAC,EAAE,MAAM,QAwBb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_equals.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAkBb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"assert_false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.224.0/assert_false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
1
+ {"version":3,"file":"assert_false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_greater.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_greater_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
@@ -1 +1 @@
1
- {"version":3,"file":"assert_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.224.0/assert_instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,CAAC,SAC5D,KAAK,GAAG,IAAI,EAAE,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAC7B,KAAK,CAAC;AAEV;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,cAAc,EACvD,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,kBAAkB,CAAC,CAAC,CAAC,CA6BzC"}
1
+ {"version":3,"file":"assert_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,CAAC,SAC5D,KAAK,GAAG,IAAI,EAAE,GAAG,KAAK,MAAM,CAAC,GAAG,CAAC,GAC7B,KAAK,CAAC;AAEV;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,cAAc,EACvD,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,kBAAkB,CAAC,CAAC,CAAC,CA6BzC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACtC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_less.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_less_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAOb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_not_equals.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAUtE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_not_instance_of.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,EAET,cAAc,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACzC,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAKjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_not_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAQb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_not_strict_equals.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAYb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_object_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_object_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAE/B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAChC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EACtC,GAAG,CAAC,EAAE,MAAM,GACX,IAAI,CA+EN"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_rejects.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACrC,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_strict_equals.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CA+BrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_string_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_string_includes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAOb"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assert_throws.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACrC,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;;;;;;;OAUG;gBACS,OAAO,EAAE,MAAM;CAI5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/equal.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA8FrD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/fail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.224.0/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/unimplemented.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGjD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.226.0/unreachable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAElD"}
@@ -2,16 +2,17 @@
2
2
  * Concatenate an array of byte slices into a single slice.
3
3
  *
4
4
  * @param buffers Array of byte slices to concatenate.
5
- * @returns Hello
5
+ * @returns A new byte slice containing all the input slices concatenated.
6
6
  *
7
7
  * @example Basic usage
8
8
  * ```ts
9
9
  * import { concat } from "@std/bytes/concat";
10
+ * import { assertEquals } from "@std/assert/assert-equals";
10
11
  *
11
12
  * const a = new Uint8Array([0, 1, 2]);
12
13
  * const b = new Uint8Array([3, 4, 5]);
13
14
  *
14
- * concat([a, b]); // Uint8Array(6) [ 0, 1, 2, 3, 4, 5 ]
15
+ * assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
15
16
  * ```
16
17
  */
17
18
  export declare function concat(buffers: Uint8Array[]): Uint8Array;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.0/concat.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,CAaxD"}
@@ -14,23 +14,25 @@
14
14
  * @example Basic usage
15
15
  * ```ts
16
16
  * import { copy } from "@std/bytes/copy";
17
+ * import { assertEquals } from "@std/assert/assert-equals";
17
18
  *
18
19
  * const src = new Uint8Array([9, 8, 7]);
19
20
  * const dst = new Uint8Array([0, 1, 2, 3, 4, 5]);
20
21
  *
21
- * copy(src, dst); // 3
22
- * dst; // Uint8Array(6) [9, 8, 7, 3, 4, 5]
22
+ * assertEquals(copy(src, dst), 3);
23
+ * assertEquals(dst, new Uint8Array([9, 8, 7, 3, 4, 5]));
23
24
  * ```
24
25
  *
25
26
  * @example Copy with offset
26
27
  * ```ts
27
28
  * import { copy } from "@std/bytes/copy";
29
+ * import { assertEquals } from "@std/assert/assert-equals";
28
30
  *
29
31
  * const src = new Uint8Array([1, 1, 1, 1]);
30
32
  * const dst = new Uint8Array([0, 0, 0, 0]);
31
33
  *
32
- * copy(src, dst, 1); // 3
33
- * dst; // Uint8Array(4) [0, 1, 1, 1]
34
+ * assertEquals(copy(src, dst, 1), 3);
35
+ * assertEquals(dst, new Uint8Array([0, 1, 1, 1]));
34
36
  * ```
35
37
  * Defining an offset will start copying at the specified index in the
36
38
  * destination array.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.0/copy.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,SAAI,GAAG,MAAM,CAQzE"}
@@ -12,11 +12,12 @@
12
12
  * @example Basic usage
13
13
  * ```ts
14
14
  * import { endsWith } from "@std/bytes/ends-with";
15
+ * import { assertEquals } from "@std/assert/assert-equals";
15
16
  *
16
17
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
17
18
  * const suffix = new Uint8Array([1, 2, 3]);
18
19
  *
19
- * endsWith(source, suffix); // true
20
+ * assertEquals(endsWith(source, suffix), true);
20
21
  * ```
21
22
  */
22
23
  export declare function endsWith(source: Uint8Array, suffix: Uint8Array): boolean;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ends_with.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.0/ends_with.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAWxE"}
@@ -8,13 +8,14 @@
8
8
  * @example Basic usage
9
9
  * ```ts
10
10
  * import { equals } from "@std/bytes/equals";
11
+ * import { assertEquals } from "@std/assert/assert-equals";
11
12
  *
12
13
  * const a = new Uint8Array([1, 2, 3]);
13
14
  * const b = new Uint8Array([1, 2, 3]);
14
15
  * const c = new Uint8Array([4, 5, 6]);
15
16
  *
16
- * equals(a, b); // true
17
- * equals(b, c); // false
17
+ * assertEquals(equals(a, b), true);
18
+ * assertEquals(equals(a, c), false);
18
19
  * ```
19
20
  */
20
21
  export declare function equals(a: Uint8Array, b: Uint8Array): boolean;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.0/equals.ts"],"names":[],"mappings":"AA6DA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAQ5D"}
@@ -13,21 +13,24 @@
13
13
  * @example Basic usage
14
14
  * ```ts
15
15
  * import { includesNeedle } from "@std/bytes/includes-needle";
16
+ * import { assertEquals } from "@std/assert/assert-equals";
16
17
  *
17
18
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
18
19
  * const needle = new Uint8Array([1, 2]);
19
20
  *
20
- * includesNeedle(source, needle); // true
21
+ * assertEquals(includesNeedle(source, needle), true);
21
22
  * ```
22
23
  *
23
24
  * @example Start index
24
25
  * ```ts
25
26
  * import { includesNeedle } from "@std/bytes/includes-needle";
27
+ * import { assertEquals } from "@std/assert/assert-equals";
26
28
  *
27
29
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
28
30
  * const needle = new Uint8Array([1, 2]);
29
31
  *
30
- * includesNeedle(source, needle, 6); // false
32
+ * assertEquals(includesNeedle(source, needle, 3), true);
33
+ * assertEquals(includesNeedle(source, needle, 6), false);
31
34
  * ```
32
35
  * The search will start at the specified index in the source array.
33
36
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"includes_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.0/includes_needle.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,OAAO,CAET"}
@@ -17,24 +17,26 @@
17
17
  * @example Basic usage
18
18
  * ```ts
19
19
  * import { indexOfNeedle } from "@std/bytes/index-of-needle";
20
+ * import { assertEquals } from "@std/assert/assert-equals";
20
21
  *
21
22
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
22
23
  * const needle = new Uint8Array([1, 2]);
23
24
  * const notNeedle = new Uint8Array([5, 0]);
24
25
  *
25
- * indexOfNeedle(source, needle); // 1
26
- * indexOfNeedle(source, notNeedle); // -1
26
+ * assertEquals(indexOfNeedle(source, needle), 1);
27
+ * assertEquals(indexOfNeedle(source, notNeedle), -1);
27
28
  * ```
28
29
  *
29
30
  * @example Start index
30
31
  * ```ts
31
32
  * import { indexOfNeedle } from "@std/bytes/index-of-needle";
33
+ * import { assertEquals } from "@std/assert/assert-equals";
32
34
  *
33
35
  * const source = new Uint8Array([0, 1, 2, 1, 2, 1, 2, 3]);
34
36
  * const needle = new Uint8Array([1, 2]);
35
37
  *
36
- * indexOfNeedle(source, needle, 2); // 3
37
- * indexOfNeedle(source, needle, 6); // -1
38
+ * assertEquals(indexOfNeedle(source, needle, 2), 3);
39
+ * assertEquals(indexOfNeedle(source, needle, 6), -1);
38
40
  * ```
39
41
  * Defining a start index will begin the search at the specified index in the
40
42
  * source array.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index_of_needle.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.0/index_of_needle.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU,EAClB,KAAK,SAAI,GACR,MAAM,CAqBR"}