@mtkruto/node 0.1.124 → 0.1.126

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 (617) hide show
  1. package/esm/0_deps.d.ts +4 -3
  2. package/esm/0_deps.js +4 -3
  3. package/esm/1_utilities.d.ts +1 -1
  4. package/esm/1_utilities.js +1 -1
  5. package/esm/3_types.d.ts +2 -1
  6. package/esm/3_types.js +2 -1
  7. package/esm/4_constants.d.ts +1 -1
  8. package/esm/4_constants.js +1 -1
  9. package/esm/client/1_client_abstract.d.ts +1 -1
  10. package/esm/client/3_types.d.ts +79 -2
  11. package/esm/client/3_types.js +11 -1
  12. package/esm/client/5_client.d.ts +31 -2
  13. package/esm/client/5_client.js +473 -67
  14. package/esm/connection/0_connection.d.ts +4 -0
  15. package/esm/connection/0_connection.js +6 -0
  16. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.d.ts +6 -5
  17. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +5 -6
  18. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
  19. package/esm/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
  20. package/esm/deps/deno.land/std@0.209.0/assert/assert.js +18 -0
  21. package/esm/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
  22. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
  23. package/esm/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
  24. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
  25. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
  26. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
  27. package/esm/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
  28. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
  29. package/esm/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
  30. package/esm/deps/deno.land/std@0.209.0/assert/assert_false.js +18 -0
  31. package/esm/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
  32. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
  33. package/esm/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
  34. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
  35. package/esm/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
  36. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
  37. package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
  38. package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.js +48 -0
  39. package/esm/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
  40. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
  41. package/esm/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
  42. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
  43. package/esm/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
  44. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
  45. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
  46. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
  47. package/esm/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
  48. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
  49. package/esm/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
  50. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
  51. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_not_strict_equals.d.ts +3 -1
  52. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
  53. package/esm/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
  54. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
  55. package/esm/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
  56. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_strict_equals.d.ts +6 -11
  57. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
  58. package/esm/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
  59. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
  60. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
  61. package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
  62. package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.js +18 -0
  63. package/esm/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
  64. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
  65. package/esm/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
  66. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
  67. package/esm/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
  68. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
  69. package/esm/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
  70. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
  71. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
  72. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
  73. package/esm/deps/deno.land/std@0.209.0/media_types/_db.d.ts +5 -0
  74. package/esm/deps/deno.land/std@0.209.0/media_types/_db.js +33 -0
  75. package/esm/deps/deno.land/std@0.209.0/media_types/_util.d.ts +21 -0
  76. package/esm/deps/deno.land/std@0.209.0/media_types/_util.js +122 -0
  77. package/esm/deps/deno.land/std@0.209.0/media_types/content_type.d.ts +38 -0
  78. package/esm/deps/deno.land/std@0.209.0/media_types/content_type.js +55 -0
  79. package/esm/deps/deno.land/std@0.209.0/media_types/format_media_type.d.ts +16 -0
  80. package/esm/deps/deno.land/std@0.209.0/media_types/format_media_type.js +61 -0
  81. package/esm/deps/deno.land/std@0.209.0/media_types/get_charset.d.ts +15 -0
  82. package/esm/deps/deno.land/std@0.209.0/media_types/get_charset.js +37 -0
  83. package/esm/deps/deno.land/std@0.209.0/media_types/parse_media_type.d.ts +37 -0
  84. package/esm/deps/deno.land/std@0.209.0/media_types/parse_media_type.js +122 -0
  85. package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
  86. package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +24 -0
  87. package/esm/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.d.ts +8518 -0
  88. package/esm/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.js +8555 -0
  89. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
  90. package/esm/storage/0_storage.d.ts +26 -2
  91. package/esm/storage/0_storage.js +60 -5
  92. package/esm/storage/0_utilities.d.ts +2 -0
  93. package/esm/storage/0_utilities.js +33 -0
  94. package/esm/storage/1_storage_indexed_db.d.ts +8 -4
  95. package/esm/storage/1_storage_indexed_db.js +42 -11
  96. package/esm/storage/1_storage_local_storage.d.ts +7 -4
  97. package/esm/storage/1_storage_local_storage.js +23 -6
  98. package/esm/storage/1_storage_memory.d.ts +7 -2
  99. package/esm/storage/1_storage_memory.js +37 -6
  100. package/esm/storage/1_storage_session_storage.d.ts +6 -2
  101. package/esm/storage/1_storage_session_storage.js +23 -6
  102. package/esm/tl/0_tl_raw_writer.d.ts +1 -0
  103. package/esm/tl/0_tl_raw_writer.js +6 -0
  104. package/esm/tl/1_tl_object.js +6 -1
  105. package/esm/tl/3_deserialize.js +1 -1
  106. package/esm/transport/0_transport.d.ts +1 -1
  107. package/esm/transport/0_transport.js +0 -6
  108. package/esm/transport/1_transport_abridged.d.ts +1 -0
  109. package/esm/transport/1_transport_abridged.js +9 -5
  110. package/esm/transport/1_transport_intermediate.d.ts +1 -0
  111. package/esm/transport/1_transport_intermediate.js +8 -4
  112. package/esm/types/{1_chat.d.ts → 1_chat_p.d.ts} +7 -20
  113. package/esm/types/{1_chat.js → 1_chat_p.js} +4 -15
  114. package/esm/types/1_user.js +4 -2
  115. package/esm/types/3_message.d.ts +9 -8
  116. package/esm/types/3_message.js +20 -15
  117. package/esm/types/4_chat.d.ts +33 -0
  118. package/esm/types/4_chat.js +117 -0
  119. package/esm/utilities/{0_base64.js → 1_base64.js} +2 -1
  120. package/package.json +1 -1
  121. package/script/0_deps.d.ts +4 -3
  122. package/script/0_deps.js +6 -4
  123. package/script/1_utilities.d.ts +1 -1
  124. package/script/1_utilities.js +1 -1
  125. package/script/3_types.d.ts +2 -1
  126. package/script/3_types.js +2 -1
  127. package/script/4_constants.d.ts +1 -1
  128. package/script/4_constants.js +1 -1
  129. package/script/client/1_client_abstract.d.ts +1 -1
  130. package/script/client/3_types.d.ts +79 -2
  131. package/script/client/3_types.js +13 -0
  132. package/script/client/5_client.d.ts +31 -2
  133. package/script/client/5_client.js +471 -65
  134. package/script/connection/0_connection.d.ts +4 -0
  135. package/script/connection/0_connection.js +6 -0
  136. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.d.ts +6 -5
  137. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +23 -24
  138. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
  139. package/script/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
  140. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert.js +11 -1
  141. package/script/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
  142. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
  143. package/script/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
  144. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
  145. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
  146. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
  147. package/script/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
  148. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
  149. package/script/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
  150. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_false.js +11 -1
  151. package/script/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
  152. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
  153. package/script/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
  154. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
  155. package/script/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
  156. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
  157. package/script/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
  158. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_is_error.js +24 -5
  159. package/script/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
  160. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
  161. package/script/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
  162. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
  163. package/script/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
  164. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
  165. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
  166. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
  167. package/script/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
  168. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
  169. package/script/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
  170. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
  171. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_not_strict_equals.d.ts +3 -1
  172. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
  173. package/script/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
  174. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
  175. package/script/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
  176. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_strict_equals.d.ts +6 -11
  177. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
  178. package/script/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
  179. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
  180. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
  181. package/script/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
  182. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assertion_error.js +13 -7
  183. package/script/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
  184. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
  185. package/script/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
  186. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
  187. package/script/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
  188. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
  189. package/script/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
  190. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
  191. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
  192. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
  193. package/script/deps/deno.land/std@0.209.0/media_types/_db.d.ts +5 -0
  194. package/script/deps/deno.land/std@0.209.0/media_types/_db.js +39 -0
  195. package/script/deps/deno.land/std@0.209.0/media_types/_util.d.ts +21 -0
  196. package/script/deps/deno.land/std@0.209.0/media_types/_util.js +132 -0
  197. package/script/deps/deno.land/std@0.209.0/media_types/content_type.d.ts +38 -0
  198. package/script/deps/deno.land/std@0.209.0/media_types/content_type.js +59 -0
  199. package/script/deps/deno.land/std@0.209.0/media_types/format_media_type.d.ts +16 -0
  200. package/script/deps/deno.land/std@0.209.0/media_types/format_media_type.js +65 -0
  201. package/script/deps/deno.land/std@0.209.0/media_types/get_charset.d.ts +15 -0
  202. package/script/deps/deno.land/std@0.209.0/media_types/get_charset.js +41 -0
  203. package/script/deps/deno.land/std@0.209.0/media_types/parse_media_type.d.ts +37 -0
  204. package/script/deps/deno.land/std@0.209.0/media_types/parse_media_type.js +126 -0
  205. package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
  206. package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +28 -0
  207. package/script/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.d.ts +8518 -0
  208. package/script/deps/deno.land/std@0.209.0/media_types/vendor/mime-db.v1.52.0.js +8557 -0
  209. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
  210. package/script/storage/0_storage.d.ts +26 -2
  211. package/script/storage/0_storage.js +60 -5
  212. package/script/storage/0_utilities.d.ts +2 -0
  213. package/script/storage/0_utilities.js +36 -1
  214. package/script/storage/1_storage_indexed_db.d.ts +8 -4
  215. package/script/storage/1_storage_indexed_db.js +41 -10
  216. package/script/storage/1_storage_local_storage.d.ts +7 -4
  217. package/script/storage/1_storage_local_storage.js +22 -5
  218. package/script/storage/1_storage_memory.d.ts +7 -2
  219. package/script/storage/1_storage_memory.js +36 -5
  220. package/script/storage/1_storage_session_storage.d.ts +6 -2
  221. package/script/storage/1_storage_session_storage.js +22 -5
  222. package/script/tl/0_tl_raw_writer.d.ts +1 -0
  223. package/script/tl/0_tl_raw_writer.js +6 -0
  224. package/script/tl/1_tl_object.js +6 -1
  225. package/script/tl/3_deserialize.js +1 -1
  226. package/script/transport/0_transport.d.ts +1 -1
  227. package/script/transport/0_transport.js +0 -6
  228. package/script/transport/1_transport_abridged.d.ts +1 -0
  229. package/script/transport/1_transport_abridged.js +9 -5
  230. package/script/transport/1_transport_intermediate.d.ts +1 -0
  231. package/script/transport/1_transport_intermediate.js +8 -4
  232. package/script/types/{1_chat.d.ts → 1_chat_p.d.ts} +7 -20
  233. package/script/types/{1_chat.js → 1_chat_p.js} +6 -17
  234. package/script/types/1_user.js +4 -2
  235. package/script/types/3_message.d.ts +9 -8
  236. package/script/types/3_message.js +20 -15
  237. package/script/types/4_chat.d.ts +33 -0
  238. package/script/types/4_chat.js +124 -0
  239. package/script/utilities/{0_base64.js → 1_base64.js} +2 -1
  240. package/esm/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
  241. package/esm/deps/deno.land/std@0.208.0/assert/assert.js +0 -8
  242. package/esm/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
  243. package/esm/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
  244. package/esm/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
  245. package/esm/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
  246. package/esm/deps/deno.land/std@0.208.0/assert/assert_false.js +0 -8
  247. package/esm/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
  248. package/esm/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
  249. package/esm/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
  250. package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
  251. package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.js +0 -29
  252. package/esm/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
  253. package/esm/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
  254. package/esm/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
  255. package/esm/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
  256. package/esm/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
  257. package/esm/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
  258. package/esm/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
  259. package/esm/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
  260. package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
  261. package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.js +0 -12
  262. package/esm/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
  263. package/esm/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
  264. package/esm/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
  265. package/esm/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
  266. package/script/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
  267. package/script/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
  268. package/script/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
  269. package/script/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
  270. package/script/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
  271. package/script/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
  272. package/script/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
  273. package/script/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
  274. package/script/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
  275. package/script/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
  276. package/script/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
  277. package/script/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
  278. package/script/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
  279. package/script/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
  280. package/script/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
  281. package/script/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
  282. package/script/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
  283. package/script/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
  284. package/script/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
  285. package/script/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
  286. package/script/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
  287. package/script/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
  288. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
  289. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
  290. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
  291. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
  292. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
  293. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
  294. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
  295. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
  296. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
  297. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
  298. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
  299. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
  300. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
  301. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
  302. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
  303. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
  304. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
  305. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
  306. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
  307. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
  308. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
  309. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
  310. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
  311. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
  312. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
  313. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
  314. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
  315. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
  316. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
  317. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
  318. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
  319. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
  320. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  321. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
  322. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
  323. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
  324. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
  325. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
  326. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
  327. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
  328. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
  329. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
  330. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
  331. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
  332. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
  333. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
  334. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
  335. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
  336. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
  337. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
  338. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
  339. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
  340. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
  341. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
  342. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
  343. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
  344. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
  345. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
  346. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
  347. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
  348. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
  349. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
  350. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
  351. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
  352. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
  353. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
  354. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
  355. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
  356. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
  357. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
  358. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
  359. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
  360. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
  361. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
  362. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
  363. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
  364. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
  365. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
  366. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
  367. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
  368. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
  369. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
  370. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
  371. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
  372. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
  373. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
  374. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
  375. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
  376. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
  377. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
  378. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
  379. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
  380. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
  381. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
  382. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
  383. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
  384. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
  385. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
  386. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
  387. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
  388. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
  389. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
  390. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
  391. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
  392. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
  393. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
  394. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
  395. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
  396. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
  397. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
  398. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
  399. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
  400. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
  401. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
  402. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
  403. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
  404. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
  405. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
  406. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
  407. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
  408. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
  409. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
  410. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
  411. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
  412. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
  413. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
  414. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
  415. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
  416. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
  417. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
  418. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
  419. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
  420. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
  421. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
  422. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
  423. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
  424. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
  425. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
  426. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
  427. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
  428. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
  429. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
  430. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
  431. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
  432. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
  433. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
  434. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
  435. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
  436. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
  437. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
  438. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
  439. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
  440. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
  441. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
  442. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
  443. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
  444. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
  445. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
  446. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
  447. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
  448. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
  449. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
  450. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
  451. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
  452. /package/esm/utilities/{0_base64.d.ts → 1_base64.d.ts} +0 -0
  453. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
  454. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
  455. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
  456. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
  457. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
  458. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
  460. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
  462. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
  464. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
  466. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
  468. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
  470. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
  472. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
  474. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
  476. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
  478. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
  479. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
  480. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
  481. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
  482. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
  483. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
  484. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
  485. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  486. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
  487. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
  488. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
  489. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
  490. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
  491. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
  492. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
  493. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
  494. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
  495. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
  496. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
  497. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
  498. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
  499. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
  500. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
  501. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
  502. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
  503. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
  504. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
  505. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
  506. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
  507. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
  508. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
  509. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
  510. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
  511. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
  512. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
  513. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
  514. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
  515. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
  516. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
  517. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
  518. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
  519. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
  520. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
  521. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
  522. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
  523. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
  524. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
  525. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
  526. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
  527. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
  528. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
  529. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
  530. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
  531. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
  532. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
  533. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
  534. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
  535. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
  536. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
  537. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
  538. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
  539. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
  540. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
  541. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
  542. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
  543. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
  544. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
  545. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
  546. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
  547. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
  548. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
  549. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
  550. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
  551. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
  552. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
  553. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
  554. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
  555. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
  556. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
  557. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
  558. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
  559. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
  560. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
  561. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
  562. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
  563. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
  564. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
  565. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
  566. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
  567. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
  568. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
  569. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
  570. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
  571. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
  572. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
  573. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
  574. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
  575. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
  576. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
  577. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
  578. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
  579. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
  580. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
  581. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
  582. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
  583. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
  584. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
  585. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
  586. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
  587. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
  588. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
  589. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
  590. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
  591. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
  592. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
  593. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
  594. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
  595. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
  596. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
  597. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
  598. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
  599. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
  600. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
  601. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
  602. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
  603. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
  604. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
  605. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
  606. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
  607. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
  608. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
  609. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
  610. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
  611. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
  612. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
  613. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
  614. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
  615. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
  616. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
  617. /package/script/utilities/{0_base64.d.ts → 1_base64.d.ts} +0 -0
@@ -1,3 +1,4 @@
1
+ /** Options for {@linkcode globToRegExp}. */
1
2
  export interface GlobOptions {
2
3
  /** Extended glob syntax.
3
4
  * See https://www.linuxjournal.com/content/bash-extended-globbing.
@@ -2,12 +2,22 @@ import { MaybePromise } from "../1_utilities.js";
2
2
  import { enums, TLObject, types } from "../2_tl.js";
3
3
  import { DC } from "../3_transport.js";
4
4
  export type StorageKeyPart = string | number | bigint;
5
+ export type GetManyFilter = {
6
+ prefix: readonly StorageKeyPart[];
7
+ } | {
8
+ start: readonly StorageKeyPart[];
9
+ end: readonly StorageKeyPart[];
10
+ };
5
11
  export declare abstract class Storage {
6
12
  #private;
7
13
  abstract init(): MaybePromise<void>;
8
14
  abstract set(key: readonly StorageKeyPart[], value: unknown): MaybePromise<void>;
15
+ abstract incr(key: readonly StorageKeyPart[], by: number): MaybePromise<void>;
9
16
  abstract get<T>(key: readonly StorageKeyPart[]): MaybePromise<T | null>;
10
- abstract getMany<T>(prefix: readonly StorageKeyPart[]): MaybePromise<Generator<[readonly StorageKeyPart[], T]> | AsyncGenerator<[readonly StorageKeyPart[], T]>>;
17
+ abstract getMany<T>(prefix: GetManyFilter, params?: {
18
+ limit?: number;
19
+ reverse?: boolean;
20
+ }): MaybePromise<Generator<[readonly StorageKeyPart[], T]> | AsyncGenerator<[readonly StorageKeyPart[], T]>>;
11
21
  setDc(dc: DC | null): MaybePromise<void>;
12
22
  getDc(): MaybePromise<DC | null>;
13
23
  getAuthKey(): Promise<Uint8Array | null>;
@@ -20,13 +30,14 @@ export declare abstract class Storage {
20
30
  updateUsernames(type: "user" | "channel", id: bigint, usernames: string[]): Promise<void>;
21
31
  getUsername(username: string): Promise<["channel" | "user", bigint, Date] | null>;
22
32
  setTlObject(key: readonly StorageKeyPart[], value: TLObject | null): Promise<void>;
23
- getTLObject(key: readonly StorageKeyPart[]): Promise<import("../2_tl.js").ReadObject | null>;
33
+ getTLObject(keyOrBuffer: Uint8Array | readonly StorageKeyPart[]): Promise<import("../2_tl.js").ReadObject | null>;
24
34
  setState(state: enums.updates.State): Promise<void>;
25
35
  getState(): Promise<import("../tl/2_types.js").updates_State_ | null>;
26
36
  setMessage(chatId: number, messageId: number, message: enums.Message | null): Promise<void>;
27
37
  deleteMessages(): Promise<void>;
28
38
  getMessageChat(messageId: number): MaybePromise<number | null>;
29
39
  getMessage(chatId: number, messageId: number): Promise<enums.Message | null>;
40
+ getLastMessage(chatId: number): Promise<enums.Message | null>;
30
41
  setChannelPts(channelId: bigint, pts: number): Promise<void>;
31
42
  getChannelPts(channelId: bigint): MaybePromise<number | null>;
32
43
  setEntity(peer: types.Channel): Promise<void>;
@@ -42,4 +53,17 @@ export declare abstract class Storage {
42
53
  getStickerSetName(id: bigint, accessHash: bigint): MaybePromise<[string, Date] | null>;
43
54
  setServerSalt(serverSalt: bigint): Promise<void>;
44
55
  getServerSalt(): MaybePromise<bigint | null>;
56
+ setChat(listId: number, chatId: number, pinned: number, topMessageId: number, topMessageDate: Date): Promise<void>;
57
+ getChats(listId: number): Promise<{
58
+ chatId: number;
59
+ pinned: number;
60
+ topMessageId: number;
61
+ topMessageDate: Date;
62
+ }[]>;
63
+ removeChats(listId: number): Promise<void>;
64
+ setHasAllChats(listId: number, hasAllChats: boolean): Promise<void>;
65
+ hasAllChats(listId: number): Promise<boolean>;
66
+ setPinnedChats(listId: number, chatIds: number[] | null): Promise<void>;
67
+ getPinnedChats(listId: number): Promise<number[] | null>;
68
+ getHistory(chatId: number, offsetId: number, limit: number): Promise<enums.Message[]>;
45
69
  }
@@ -23,7 +23,13 @@ const KPARTS__PEER = (type, id) => ["peer", type, id];
23
23
  const KPARTS__ACCOUNT_TYPE = ["accountType"];
24
24
  const KPARTS__STICKER_SET_NAME = (id, accessHash) => ["stickerSetName", id, accessHash];
25
25
  const KPARTS_MESSAGE = (chatId, messageId) => ["messages", chatId, messageId];
26
+ const KPARTS_MESSAGES = (chatId) => ["messages", chatId];
26
27
  const KPARTS_MESSAGE_REF = (messageId) => ["messageRefs", messageId];
28
+ const KPARTS_HAS_ALL_CHATS = (listId) => ["hasAllChats", listId];
29
+ const KPARTS_CHATS = (listId) => ["chats", listId];
30
+ const KPARTS_CHAT = (listId, chatId) => ["chats", listId, chatId];
31
+ const KPARTS_PINNED_CHATS = (listId) => ["pinnedChats", listId];
32
+ const KPARTS_SERVER_SALT = ["serverSalt"];
27
33
  export class Storage {
28
34
  constructor() {
29
35
  _Storage_instances.add(this);
@@ -77,8 +83,8 @@ export class Storage {
77
83
  await this.set(key, rleEncode(value[serialize]()));
78
84
  }
79
85
  }
80
- async getTLObject(key) {
81
- const buffer = await this.get(key);
86
+ async getTLObject(keyOrBuffer) {
87
+ const buffer = keyOrBuffer instanceof Uint8Array ? keyOrBuffer : await this.get(keyOrBuffer);
82
88
  if (buffer != null) {
83
89
  return new TLReader(rleDecode(buffer)).readObject();
84
90
  }
@@ -100,7 +106,7 @@ export class Storage {
100
106
  }
101
107
  async deleteMessages() {
102
108
  const maybePromises = new Array();
103
- for await (const [k, o] of await this.getMany(["messageRefs"])) {
109
+ for await (const [k, o] of await this.getMany({ prefix: ["messageRefs"] })) {
104
110
  maybePromises.push(Promise.all([this.set(k, null), o == null ? Promise.resolve() : this.set(KPARTS_MESSAGE(o, k[1]), null)]).then(() => { }));
105
111
  }
106
112
  await Promise.all(maybePromises.filter((v) => v instanceof Promise));
@@ -111,6 +117,12 @@ export class Storage {
111
117
  async getMessage(chatId, messageId) {
112
118
  return await this.getTLObject(KPARTS_MESSAGE(chatId, messageId));
113
119
  }
120
+ async getLastMessage(chatId) {
121
+ for await (const [_, buffer] of await this.getMany({ prefix: KPARTS_MESSAGES(chatId) }, { limit: 1, reverse: true })) {
122
+ return await this.getTLObject(buffer);
123
+ }
124
+ return null;
125
+ }
114
126
  async setChannelPts(channelId, pts) {
115
127
  await this.set(KPARTS__CHANNEL_PTS(channelId), pts);
116
128
  }
@@ -154,10 +166,53 @@ export class Storage {
154
166
  return this.get(KPARTS__STICKER_SET_NAME(id, accessHash));
155
167
  }
156
168
  async setServerSalt(serverSalt) {
157
- await this.set(["serverSalt"], serverSalt);
169
+ await this.set(KPARTS_SERVER_SALT, serverSalt);
158
170
  }
159
171
  getServerSalt() {
160
- return this.get(["serverSalt"]);
172
+ return this.get(KPARTS_SERVER_SALT);
173
+ }
174
+ async setChat(listId, chatId, pinned, topMessageId, topMessageDate) {
175
+ await this.set(KPARTS_CHAT(listId, chatId), [pinned, topMessageId, topMessageDate]);
176
+ }
177
+ async getChats(listId) {
178
+ const chats = new Array();
179
+ for await (const [key, value] of await this.getMany({ prefix: KPARTS_CHATS(listId) })) {
180
+ if (key.length != 3 || typeof key[2] !== "number") {
181
+ continue;
182
+ }
183
+ chats.push({ chatId: key[2], pinned: value[0], topMessageId: value[1], topMessageDate: value[2] });
184
+ }
185
+ return chats;
186
+ }
187
+ async removeChats(listId) {
188
+ for await (const [key] of await this.getMany({ prefix: KPARTS_CHATS(listId) })) {
189
+ await this.set(key, null);
190
+ }
191
+ await this.setHasAllChats(listId, false);
192
+ await this.setPinnedChats(listId, null);
193
+ }
194
+ async setHasAllChats(listId, hasAllChats) {
195
+ await this.set(KPARTS_HAS_ALL_CHATS(listId), hasAllChats);
196
+ }
197
+ async hasAllChats(listId) {
198
+ const v = await this.get(KPARTS_HAS_ALL_CHATS(listId));
199
+ return v == true;
200
+ }
201
+ async setPinnedChats(listId, chatIds) {
202
+ await this.set(KPARTS_PINNED_CHATS(listId), chatIds);
203
+ }
204
+ async getPinnedChats(listId) {
205
+ return await this.get(KPARTS_PINNED_CHATS(listId));
206
+ }
207
+ async getHistory(chatId, offsetId, limit) {
208
+ if (offsetId == 0) {
209
+ offsetId = Infinity;
210
+ }
211
+ const messages = new Array();
212
+ for await (const [_, buffer] of await this.getMany({ start: KPARTS_MESSAGE(chatId, 0), end: KPARTS_MESSAGE(chatId, offsetId) }, { limit, reverse: true })) {
213
+ messages.push(await this.getTLObject(buffer));
214
+ }
215
+ return messages;
161
216
  }
162
217
  }
163
218
  _Storage__authKeyId = new WeakMap(), _Storage_instances = new WeakSet(), _Storage_resetAuthKeyId = async function _Storage_resetAuthKeyId(authKey) {
@@ -11,4 +11,6 @@ export declare enum ValueType {
11
11
  export declare function toString(value: unknown): string;
12
12
  export declare function fromString<T>(string: string): T;
13
13
  export declare function fixKey(key: readonly StorageKeyPart[]): (string | number)[];
14
+ export declare function restoreKey(key: readonly StorageKeyPart[]): (string | number | bigint)[];
14
15
  export declare function getPrefixKeyRange(prefix: any): IDBKeyRange;
16
+ export declare function isInRange(key: StorageKeyPart[], start: readonly StorageKeyPart[], end: readonly StorageKeyPart[]): boolean;
@@ -90,6 +90,25 @@ export function fromString(string) {
90
90
  export function fixKey(key) {
91
91
  return key.map((v) => typeof v === "bigint" ? String(ValueType.BigInt) + String(v) : typeof v === "string" ? String(ValueType.String) + v : v);
92
92
  }
93
+ export function restoreKey(key) {
94
+ return key.map((v) => {
95
+ if (typeof v === "string") {
96
+ const t = Number(v[0]);
97
+ if (t == ValueType.BigInt) {
98
+ return BigInt(v.slice(1));
99
+ }
100
+ else if (t == ValueType.String) {
101
+ return v.slice(1);
102
+ }
103
+ else {
104
+ return v;
105
+ }
106
+ }
107
+ else {
108
+ return v;
109
+ }
110
+ });
111
+ }
93
112
  // Source: https://gist.github.com/inexorabletash/5462871
94
113
  // deno-lint-ignore no-explicit-any
95
114
  export function getPrefixKeyRange(prefix) {
@@ -153,3 +172,17 @@ function successor(key) {
153
172
  }
154
173
  throw new TypeError();
155
174
  }
175
+ export function isInRange(key, start, end) {
176
+ for (const [i, part] of key.entries()) {
177
+ const left = start[i];
178
+ const right = end[i];
179
+ if (left === undefined || right === undefined) {
180
+ return false;
181
+ }
182
+ if (part >= left && part <= right) {
183
+ continue;
184
+ }
185
+ return false;
186
+ }
187
+ return true;
188
+ }
@@ -1,10 +1,14 @@
1
- import { Storage, StorageKeyPart } from "./0_storage.js";
1
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
2
2
  export declare class StorageIndexedDB extends Storage {
3
3
  readonly name: string;
4
4
  database: IDBDatabase | null;
5
5
  constructor(name: string);
6
6
  init(): Promise<void>;
7
- set(k: StorageKeyPart[], v: unknown): Promise<void>;
8
- get<T>(k: readonly StorageKeyPart[]): Promise<T | null>;
9
- getMany<T>(prefix: readonly StorageKeyPart[]): AsyncGenerator<[readonly StorageKeyPart[], T], void, unknown>;
7
+ set(k: readonly StorageKeyPart[], v: unknown, tx_?: IDBTransaction): Promise<void>;
8
+ get<T>(k: readonly StorageKeyPart[], tx_?: IDBTransaction): Promise<T | null>;
9
+ getMany<T>(filter: GetManyFilter, params?: {
10
+ limit?: number;
11
+ reverse?: boolean;
12
+ }, tx_?: IDBTransaction): AsyncGenerator<[readonly StorageKeyPart[], T], void, unknown>;
13
+ incr(key: readonly StorageKeyPart[], by: number): Promise<void>;
10
14
  }
@@ -1,5 +1,5 @@
1
1
  import { Storage } from "./0_storage.js";
2
- import { fixKey, getPrefixKeyRange } from "./0_utilities.js";
2
+ import { fixKey, getPrefixKeyRange, restoreKey } from "./0_utilities.js";
3
3
  const VERSION = 1;
4
4
  const KV_OBJECT_STORE = "kv";
5
5
  export class StorageIndexedDB extends Storage {
@@ -35,12 +35,12 @@ export class StorageIndexedDB extends Storage {
35
35
  };
36
36
  });
37
37
  }
38
- set(k, v) {
38
+ set(k, v, tx_) {
39
39
  if (!this.database) {
40
40
  throw new Error("Not initialized");
41
41
  }
42
- const store = this.database
43
- .transaction(KV_OBJECT_STORE, "readwrite")
42
+ const store = (tx_ ?? this.database
43
+ .transaction(KV_OBJECT_STORE, "readwrite"))
44
44
  .objectStore(KV_OBJECT_STORE);
45
45
  // deno-lint-ignore no-explicit-any
46
46
  let tx;
@@ -57,12 +57,12 @@ export class StorageIndexedDB extends Storage {
57
57
  };
58
58
  });
59
59
  }
60
- get(k) {
60
+ get(k, tx_) {
61
61
  if (!this.database) {
62
62
  throw new Error("Not initialized");
63
63
  }
64
- const tx = this.database
65
- .transaction(KV_OBJECT_STORE, "readonly")
64
+ const tx = (tx_ ?? this.database
65
+ .transaction(KV_OBJECT_STORE, "readonly"))
66
66
  .objectStore(KV_OBJECT_STORE)
67
67
  .get(fixKey(k));
68
68
  return new Promise((res, rej) => {
@@ -72,21 +72,52 @@ export class StorageIndexedDB extends Storage {
72
72
  };
73
73
  });
74
74
  }
75
- async *getMany(prefix) {
75
+ async *getMany(filter, params, tx_) {
76
76
  if (!this.database) {
77
77
  throw new Error("Not initialized");
78
78
  }
79
+ if (params?.limit !== undefined && params.limit <= 0) {
80
+ params.limit = 1;
81
+ }
82
+ let keyRange;
83
+ if ("prefix" in filter) {
84
+ keyRange = getPrefixKeyRange(fixKey(filter.prefix));
85
+ }
86
+ else {
87
+ keyRange = IDBKeyRange.bound(fixKey(filter.start), fixKey(filter.end), true, true);
88
+ }
79
89
  const keys = await new Promise((res, rej) => {
80
- const tx = this.database.transaction(KV_OBJECT_STORE, "readonly")
90
+ const items = new Array();
91
+ const tx = (tx_ ?? this.database.transaction(KV_OBJECT_STORE, "readonly"))
81
92
  .objectStore(KV_OBJECT_STORE)
82
- .getAllKeys(getPrefixKeyRange(prefix));
93
+ .openKeyCursor(keyRange, params?.reverse ? "prev" : undefined);
83
94
  tx.onerror = rej;
84
95
  tx.onsuccess = () => {
85
- res(tx.result);
96
+ const cursor = tx.result;
97
+ if (!cursor) {
98
+ res(items);
99
+ return;
100
+ }
101
+ items.push(restoreKey(cursor.key));
102
+ if (params?.limit !== undefined && items.length >= params.limit) {
103
+ res(items);
104
+ }
105
+ else {
106
+ cursor.continue();
107
+ }
86
108
  };
87
109
  });
88
110
  for (const key of keys) {
89
111
  yield [key, await this.get(key)];
90
112
  }
91
113
  }
114
+ async incr(key, by) {
115
+ if (!this.database) {
116
+ throw new Error("Not initialized");
117
+ }
118
+ const tx = this.database
119
+ .transaction(KV_OBJECT_STORE, "readwrite");
120
+ const currentValue = await this.get(key, tx);
121
+ await this.set(key, (currentValue || 0) + by, tx);
122
+ }
92
123
  }
@@ -1,10 +1,13 @@
1
- import { MaybePromise } from "../1_utilities.js";
2
- import { Storage, StorageKeyPart } from "./0_storage.js";
1
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
3
2
  export declare class StorageLocalStorage extends Storage implements Storage {
4
3
  private readonly prefix;
5
4
  constructor(prefix: string);
6
5
  init(): void;
7
6
  get<T>(key_: readonly StorageKeyPart[]): T | null;
8
- getMany<T>(prefix: readonly StorageKeyPart[]): Generator<[readonly StorageKeyPart[], T], void, unknown>;
9
- set(key_: readonly StorageKeyPart[], value: unknown): MaybePromise<void>;
7
+ getMany<T>(filter: GetManyFilter, params?: {
8
+ limit?: number;
9
+ reverse?: boolean;
10
+ }): Generator<[readonly StorageKeyPart[], T], void, unknown>;
11
+ set(key_: readonly StorageKeyPart[], value: unknown): void;
12
+ incr(key: readonly StorageKeyPart[], by: number): void;
10
13
  }
@@ -1,5 +1,5 @@
1
1
  import { Storage } from "./0_storage.js";
2
- import { fromString, toString } from "./0_utilities.js";
2
+ import { fromString, isInRange, toString } from "./0_utilities.js";
3
3
  export class StorageLocalStorage extends Storage {
4
4
  constructor(prefix) {
5
5
  if (typeof localStorage === "undefined") {
@@ -31,19 +31,33 @@ export class StorageLocalStorage extends Storage {
31
31
  return null;
32
32
  }
33
33
  }
34
- *getMany(prefix) {
35
- for (let [key, value] of Object.entries(localStorage)) {
34
+ *getMany(filter, params) {
35
+ let entries = Object.entries(localStorage).sort(([a], [b]) => a.localeCompare(b));
36
+ if (params?.reverse) {
37
+ entries.reverse();
38
+ }
39
+ if (params?.limit !== undefined) {
40
+ entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
41
+ }
42
+ for (let [key, value] of entries) {
36
43
  if (key.startsWith(this.prefix)) {
37
44
  key = key.slice(this.prefix.length);
38
45
  }
39
46
  const parts = fromString(key);
40
47
  if (Array.isArray(parts)) {
41
- for (const [i, p] of prefix.entries()) {
42
- if (toString(p) != toString(parts[i])) {
48
+ if ("prefix" in filter) {
49
+ for (const [i, p] of filter.prefix.entries()) {
50
+ if (toString(p) != toString(parts[i])) {
51
+ continue;
52
+ }
53
+ }
54
+ }
55
+ else {
56
+ if (!isInRange(parts, filter.start, filter.end)) {
43
57
  continue;
44
58
  }
45
- yield [parts, fromString(value)];
46
59
  }
60
+ yield [parts, fromString(value)];
47
61
  }
48
62
  }
49
63
  }
@@ -56,4 +70,7 @@ export class StorageLocalStorage extends Storage {
56
70
  localStorage.removeItem(key);
57
71
  }
58
72
  }
73
+ incr(key, by) {
74
+ this.set(key, (this.get(key) || 0) + by);
75
+ }
59
76
  }
@@ -1,9 +1,14 @@
1
1
  import { MaybePromise } from "../1_utilities.js";
2
- import { Storage, StorageKeyPart } from "./0_storage.js";
2
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
3
3
  export declare class StorageMemory extends Storage implements Storage {
4
+ #private;
4
5
  protected map: Map<string, unknown>;
5
6
  init(): void;
6
7
  get<T>(key: readonly StorageKeyPart[]): NonNullable<T> | null;
7
- getMany<T>(prefix: readonly StorageKeyPart[]): Generator<[readonly StorageKeyPart[], T], void, unknown>;
8
+ getMany<T>(filter: GetManyFilter, params?: {
9
+ limit?: number;
10
+ reverse?: boolean;
11
+ }): Generator<[readonly StorageKeyPart[], T], void, unknown>;
8
12
  set(key_: readonly StorageKeyPart[], value: unknown): MaybePromise<void>;
13
+ incr(key: readonly StorageKeyPart[], by: number): void;
9
14
  }
@@ -1,8 +1,15 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ 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");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var _StorageMemory_instances, _StorageMemory_getEntries;
1
7
  import { Storage } from "./0_storage.js";
2
- import { fromString, toString } from "./0_utilities.js";
8
+ import { fromString, isInRange, toString } from "./0_utilities.js";
3
9
  export class StorageMemory extends Storage {
4
10
  constructor() {
5
11
  super(...arguments);
12
+ _StorageMemory_instances.add(this);
6
13
  Object.defineProperty(this, "map", {
7
14
  enumerable: true,
8
15
  configurable: true,
@@ -15,16 +22,30 @@ export class StorageMemory extends Storage {
15
22
  get(key) {
16
23
  return this.map.get(toString(key)) ?? null;
17
24
  }
18
- *getMany(prefix) {
19
- for (const [key, value] of this.map.entries()) {
25
+ *getMany(filter, params) {
26
+ let entries = __classPrivateFieldGet(this, _StorageMemory_instances, "m", _StorageMemory_getEntries).call(this);
27
+ if (params?.reverse) {
28
+ entries.reverse();
29
+ }
30
+ if (params?.limit !== undefined) {
31
+ entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
32
+ }
33
+ for (const [key, value] of entries) {
20
34
  const parts = fromString(key);
21
35
  if (Array.isArray(parts)) {
22
- for (const [i, p] of prefix.entries()) {
23
- if (toString(p) != toString(parts[i])) {
36
+ if ("prefix" in filter) {
37
+ for (const [i, p] of filter.prefix.entries()) {
38
+ if (toString(p) != toString(parts[i])) {
39
+ continue;
40
+ }
41
+ }
42
+ }
43
+ else {
44
+ if (!isInRange(parts, filter.start, filter.end)) {
24
45
  continue;
25
46
  }
26
- yield [parts, value];
27
47
  }
48
+ yield [parts, value];
28
49
  }
29
50
  }
30
51
  }
@@ -37,4 +58,14 @@ export class StorageMemory extends Storage {
37
58
  this.map.delete(key);
38
59
  }
39
60
  }
61
+ incr(key, by) {
62
+ this.set(key, (this.get(key) || 0) + by);
63
+ }
40
64
  }
65
+ _StorageMemory_instances = new WeakSet(), _StorageMemory_getEntries = function _StorageMemory_getEntries() {
66
+ const entries = new Array();
67
+ for (const entry of this.map.entries()) {
68
+ entries.push(entry);
69
+ }
70
+ return entries;
71
+ };
@@ -1,10 +1,14 @@
1
1
  import { MaybePromise } from "../1_utilities.js";
2
- import { Storage, StorageKeyPart } from "./0_storage.js";
2
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
3
3
  export declare class StorageSessionStorage extends Storage implements Storage {
4
4
  private readonly prefix;
5
5
  constructor(prefix: string);
6
6
  init(): void;
7
7
  get<T>(key_: readonly StorageKeyPart[]): T | null;
8
- getMany<T>(prefix: readonly StorageKeyPart[]): Generator<[readonly StorageKeyPart[], T], void, unknown>;
8
+ getMany<T>(filter: GetManyFilter, params?: {
9
+ limit?: number;
10
+ reverse?: boolean;
11
+ }): Generator<[readonly StorageKeyPart[], T], void, unknown>;
9
12
  set(key_: readonly StorageKeyPart[], value: unknown): MaybePromise<void>;
13
+ incr(key: readonly StorageKeyPart[], by: number): void;
10
14
  }
@@ -1,5 +1,5 @@
1
1
  import { Storage } from "./0_storage.js";
2
- import { fromString, toString } from "./0_utilities.js";
2
+ import { fromString, isInRange, toString } from "./0_utilities.js";
3
3
  export class StorageSessionStorage extends Storage {
4
4
  constructor(prefix) {
5
5
  if (typeof sessionStorage === "undefined") {
@@ -31,19 +31,33 @@ export class StorageSessionStorage extends Storage {
31
31
  return null;
32
32
  }
33
33
  }
34
- *getMany(prefix) {
35
- for (let [key, value] of Object.entries(localStorage)) {
34
+ *getMany(filter, params) {
35
+ let entries = Object.entries(sessionStorage).sort(([a], [b]) => a.localeCompare(b));
36
+ if (params?.reverse) {
37
+ entries.reverse();
38
+ }
39
+ if (params?.limit !== undefined) {
40
+ entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
41
+ }
42
+ for (let [key, value] of entries) {
36
43
  if (key.startsWith(this.prefix)) {
37
44
  key = key.slice(this.prefix.length);
38
45
  }
39
46
  const parts = fromString(key);
40
47
  if (Array.isArray(parts)) {
41
- for (const [i, p] of prefix.entries()) {
42
- if (toString(p) != toString(parts[i])) {
48
+ if ("prefix" in filter) {
49
+ for (const [i, p] of filter.prefix.entries()) {
50
+ if (toString(p) != toString(parts[i])) {
51
+ continue;
52
+ }
53
+ }
54
+ }
55
+ else {
56
+ if (!isInRange(parts, filter.start, filter.end)) {
43
57
  continue;
44
58
  }
45
- yield [parts, fromString(value)];
46
59
  }
60
+ yield [parts, fromString(value)];
47
61
  }
48
62
  }
49
63
  }
@@ -56,4 +70,7 @@ export class StorageSessionStorage extends Storage {
56
70
  sessionStorage.removeItem(key);
57
71
  }
58
72
  }
73
+ incr(key, by) {
74
+ this.set(key, (this.get(key) || 0) + by);
75
+ }
59
76
  }
@@ -6,6 +6,7 @@ export declare class TLRawWriter {
6
6
  writeInt24(int: number, signed?: boolean): this;
7
7
  writeInt32(int: number, signed?: boolean): this;
8
8
  writeInt64(int: bigint, signed?: boolean): this;
9
+ writeDouble(double: number): this;
9
10
  writeInt128(int: bigint, signed?: boolean): this;
10
11
  writeInt256(int: bigint, signed?: boolean): this;
11
12
  writeBytes(bytes: Uint8Array): this;
@@ -27,6 +27,12 @@ export class TLRawWriter {
27
27
  this.write(bufferFromBigInt(int, 64 / 8, true, signed));
28
28
  return this;
29
29
  }
30
+ writeDouble(double) {
31
+ const buf = new Uint8Array(8);
32
+ new DataView(buf.buffer).setFloat64(0, double, true);
33
+ this.write(buf);
34
+ return this;
35
+ }
30
36
  writeInt128(int, signed = true) {
31
37
  this.write(bufferFromBigInt(int, 128 / 8, true, signed));
32
38
  return this;
@@ -78,7 +78,12 @@ function serializeSingleParam(writer, value, type, ntype, debugInfo) {
78
78
  }
79
79
  //
80
80
  if (typeof value === "number") {
81
- writer.writeInt32(value);
81
+ if (ntype == "double") {
82
+ writer.writeDouble(value);
83
+ }
84
+ else {
85
+ writer.writeInt32(value);
86
+ }
82
87
  }
83
88
  else {
84
89
  throw new TypeError(`Expected number but received ${valueRepr} ${debugInfo}`);
@@ -6,7 +6,7 @@ function deserializeSingleParam(reader, type, ntype) {
6
6
  const cid = reader.readInt32(false);
7
7
  const constructor = map.get(cid);
8
8
  if (!constructor) {
9
- throw new Error(`Constructor with ID ${cid} not found`);
9
+ throw new Error(`Constructor with ID ${cid.toString(16)} not found`);
10
10
  }
11
11
  return deserialize(reader, constructor[paramDesc], constructor);
12
12
  }
@@ -1,12 +1,12 @@
1
1
  import { CTR, MaybePromise } from "../1_utilities.js";
2
2
  export declare abstract class Transport {
3
- protected initialized: boolean;
4
3
  protected obfuscationParameters: {
5
4
  encryptionCTR: CTR;
6
5
  decryptionCTR: CTR;
7
6
  } | null;
8
7
  protected encrypt(buffer: Uint8Array): void;
9
8
  protected decrypt(buffer: Uint8Array): void;
9
+ abstract get initialized(): boolean;
10
10
  abstract initialize(): MaybePromise<void>;
11
11
  abstract receive(): MaybePromise<Uint8Array>;
12
12
  abstract send(buffer: Uint8Array): MaybePromise<void>;
@@ -1,11 +1,5 @@
1
1
  export class Transport {
2
2
  constructor() {
3
- Object.defineProperty(this, "initialized", {
4
- enumerable: true,
5
- configurable: true,
6
- writable: true,
7
- value: false
8
- });
9
3
  Object.defineProperty(this, "obfuscationParameters", {
10
4
  enumerable: true,
11
5
  configurable: true,
@@ -7,4 +7,5 @@ export declare class TransportAbridged extends Transport implements Transport {
7
7
  receive(): Promise<Uint8Array>;
8
8
  send(buffer: Uint8Array): Promise<void>;
9
9
  deinitialize(): void;
10
+ get initialized(): boolean;
10
11
  }