@mtkruto/node 0.1.125 → 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 (589) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +4 -4
  3. package/esm/3_types.d.ts +2 -1
  4. package/esm/3_types.js +2 -1
  5. package/esm/4_constants.d.ts +1 -1
  6. package/esm/4_constants.js +1 -1
  7. package/esm/client/3_types.d.ts +23 -2
  8. package/esm/client/3_types.js +11 -1
  9. package/esm/client/5_client.d.ts +15 -2
  10. package/esm/client/5_client.js +323 -20
  11. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/_diff.d.ts +6 -5
  12. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +5 -6
  13. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
  14. package/esm/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
  15. package/esm/deps/deno.land/std@0.209.0/assert/assert.js +18 -0
  16. package/esm/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
  17. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
  18. package/esm/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
  19. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
  20. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
  21. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
  22. package/esm/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
  23. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
  24. package/esm/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
  25. package/esm/deps/deno.land/std@0.209.0/assert/assert_false.js +18 -0
  26. package/esm/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
  27. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
  28. package/esm/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
  29. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
  30. package/esm/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
  31. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
  32. package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
  33. package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.js +48 -0
  34. package/esm/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
  35. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
  36. package/esm/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
  37. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
  38. package/esm/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
  39. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
  40. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
  41. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
  42. package/esm/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
  43. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
  44. package/esm/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
  45. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
  46. 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
  47. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
  48. package/esm/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
  49. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
  50. package/esm/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
  51. 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
  52. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
  53. package/esm/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
  54. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
  55. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
  56. package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
  57. package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.js +18 -0
  58. package/esm/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
  59. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
  60. package/esm/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
  61. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
  62. package/esm/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
  63. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
  64. package/esm/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
  65. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
  66. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
  67. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
  68. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.js +1 -6
  69. package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
  70. package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +24 -0
  71. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
  72. package/esm/storage/0_storage.d.ts +25 -2
  73. package/esm/storage/0_storage.js +60 -5
  74. package/esm/storage/0_utilities.d.ts +2 -0
  75. package/esm/storage/0_utilities.js +33 -0
  76. package/esm/storage/1_storage_indexed_db.d.ts +5 -2
  77. package/esm/storage/1_storage_indexed_db.js +26 -4
  78. package/esm/storage/1_storage_local_storage.d.ts +5 -2
  79. package/esm/storage/1_storage_local_storage.js +20 -6
  80. package/esm/storage/1_storage_memory.d.ts +6 -2
  81. package/esm/storage/1_storage_memory.js +34 -6
  82. package/esm/storage/1_storage_session_storage.d.ts +5 -2
  83. package/esm/storage/1_storage_session_storage.js +20 -6
  84. package/esm/tl/0_tl_raw_writer.d.ts +1 -0
  85. package/esm/tl/0_tl_raw_writer.js +6 -0
  86. package/esm/tl/1_tl_object.js +6 -1
  87. package/esm/tl/3_deserialize.js +1 -1
  88. package/esm/types/{1_chat.d.ts → 1_chat_p.d.ts} +5 -5
  89. package/esm/types/{1_chat.js → 1_chat_p.js} +1 -1
  90. package/esm/types/3_message.d.ts +8 -7
  91. package/esm/types/3_message.js +14 -9
  92. package/esm/types/4_chat.d.ts +33 -0
  93. package/esm/types/4_chat.js +117 -0
  94. package/package.json +1 -1
  95. package/script/0_deps.d.ts +4 -4
  96. package/script/0_deps.js +4 -4
  97. package/script/3_types.d.ts +2 -1
  98. package/script/3_types.js +2 -1
  99. package/script/4_constants.d.ts +1 -1
  100. package/script/4_constants.js +1 -1
  101. package/script/client/3_types.d.ts +23 -2
  102. package/script/client/3_types.js +13 -0
  103. package/script/client/5_client.d.ts +15 -2
  104. package/script/client/5_client.js +322 -19
  105. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/_diff.d.ts +6 -5
  106. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +23 -24
  107. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
  108. package/script/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
  109. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert.js +11 -1
  110. package/script/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
  111. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
  112. package/script/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
  113. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
  114. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
  115. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
  116. package/script/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
  117. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
  118. package/script/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
  119. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_false.js +11 -1
  120. package/script/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
  121. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
  122. package/script/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
  123. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
  124. package/script/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
  125. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
  126. package/script/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
  127. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_is_error.js +24 -5
  128. package/script/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
  129. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
  130. package/script/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
  131. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
  132. package/script/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
  133. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
  134. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
  135. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
  136. package/script/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
  137. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
  138. package/script/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
  139. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
  140. 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
  141. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
  142. package/script/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
  143. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
  144. package/script/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
  145. 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
  146. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
  147. package/script/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
  148. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
  149. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
  150. package/script/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
  151. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assertion_error.js +13 -7
  152. package/script/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
  153. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
  154. package/script/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
  155. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
  156. package/script/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
  157. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
  158. package/script/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
  159. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
  160. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
  161. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
  162. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.js +2 -7
  163. package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
  164. package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +28 -0
  165. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
  166. package/script/storage/0_storage.d.ts +25 -2
  167. package/script/storage/0_storage.js +60 -5
  168. package/script/storage/0_utilities.d.ts +2 -0
  169. package/script/storage/0_utilities.js +36 -1
  170. package/script/storage/1_storage_indexed_db.d.ts +5 -2
  171. package/script/storage/1_storage_indexed_db.js +25 -3
  172. package/script/storage/1_storage_local_storage.d.ts +5 -2
  173. package/script/storage/1_storage_local_storage.js +19 -5
  174. package/script/storage/1_storage_memory.d.ts +6 -2
  175. package/script/storage/1_storage_memory.js +33 -5
  176. package/script/storage/1_storage_session_storage.d.ts +5 -2
  177. package/script/storage/1_storage_session_storage.js +19 -5
  178. package/script/tl/0_tl_raw_writer.d.ts +1 -0
  179. package/script/tl/0_tl_raw_writer.js +6 -0
  180. package/script/tl/1_tl_object.js +6 -1
  181. package/script/tl/3_deserialize.js +1 -1
  182. package/script/types/{1_chat.d.ts → 1_chat_p.d.ts} +5 -5
  183. package/script/types/{1_chat.js → 1_chat_p.js} +3 -3
  184. package/script/types/3_message.d.ts +8 -7
  185. package/script/types/3_message.js +14 -9
  186. package/script/types/4_chat.d.ts +33 -0
  187. package/script/types/4_chat.js +124 -0
  188. package/esm/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
  189. package/esm/deps/deno.land/std@0.208.0/assert/assert.js +0 -8
  190. package/esm/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
  191. package/esm/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
  192. package/esm/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
  193. package/esm/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
  194. package/esm/deps/deno.land/std@0.208.0/assert/assert_false.js +0 -8
  195. package/esm/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
  196. package/esm/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
  197. package/esm/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
  198. package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
  199. package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.js +0 -29
  200. package/esm/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
  201. package/esm/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
  202. package/esm/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
  203. package/esm/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
  204. package/esm/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
  205. package/esm/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
  206. package/esm/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
  207. package/esm/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
  208. package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
  209. package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.js +0 -12
  210. package/esm/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
  211. package/esm/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
  212. package/esm/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
  213. package/esm/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
  214. package/script/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
  215. package/script/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
  216. package/script/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
  217. package/script/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
  218. package/script/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
  219. package/script/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
  220. package/script/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
  221. package/script/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
  222. package/script/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
  223. package/script/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
  224. package/script/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
  225. package/script/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
  226. package/script/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
  227. package/script/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
  228. package/script/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
  229. package/script/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
  230. package/script/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
  231. package/script/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
  232. package/script/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
  233. package/script/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
  234. package/script/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
  235. package/script/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
  236. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
  241. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
  242. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
  243. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
  244. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
  245. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
  246. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
  247. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.d.ts +0 -0
  248. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.js +0 -0
  249. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.d.ts +0 -0
  250. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.js +0 -0
  251. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.d.ts +0 -0
  252. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
  275. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
  276. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
  277. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
  278. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
  279. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
  280. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
  281. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  282. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
  283. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
  284. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
  285. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
  286. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
  287. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
  288. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
  289. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
  290. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
  291. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
  292. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
  293. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
  294. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
  295. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
  296. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
  297. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
  298. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
  299. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
  300. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
  301. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
  302. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
  303. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
  304. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
  305. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
  306. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
  307. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
  308. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
  309. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
  310. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
  311. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
  312. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
  313. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
  314. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
  315. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
  316. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
  317. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
  318. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
  319. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
  320. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
  321. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
  322. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
  323. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
  324. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
  325. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
  326. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
  327. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
  328. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
  329. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
  330. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
  331. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
  332. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
  333. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
  334. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
  335. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
  337. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
  339. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
  341. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
  343. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
  345. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
  346. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
  347. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
  348. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
  349. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
  351. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
  353. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
  355. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
  357. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
  358. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
  359. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
  361. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
  363. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
  364. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
  365. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
  366. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
  367. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
  368. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
  369. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
  370. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
  371. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
  372. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
  373. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
  374. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
  375. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
  376. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
  377. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
  378. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
  379. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
  380. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
  381. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
  382. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
  383. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
  384. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
  385. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
  386. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
  387. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
  388. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
  389. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
  390. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
  391. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
  392. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
  393. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
  394. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
  395. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
  396. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
  397. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
  398. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
  399. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
  400. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
  401. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
  402. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
  403. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
  404. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
  405. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
  406. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
  407. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
  408. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
  409. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
  410. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
  411. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
  412. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
  413. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
  414. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
  415. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
  416. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
  417. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
  418. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
  420. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
  422. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
  424. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.js +0 -0
  426. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.js +0 -0
  428. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.d.ts +0 -0
  430. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.js +0 -0
  431. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.d.ts +0 -0
  432. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.js +0 -0
  433. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.d.ts +0 -0
  434. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.js +0 -0
  435. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  436. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  437. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
  438. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
  439. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
  440. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
  441. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
  442. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
  443. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
  445. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
  447. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
  449. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
  451. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
  452. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
  454. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
  456. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
  458. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
  460. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
  462. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
  464. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
  466. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
  468. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
  470. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
  472. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
  474. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
  476. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
  478. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
  480. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
  482. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
  484. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
  486. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
  488. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
  490. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
  492. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
  494. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
  496. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
  498. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
  500. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
  502. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
  504. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
  506. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
  508. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
  510. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
  512. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
  514. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
  516. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
  518. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
  520. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
  522. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
  524. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
  526. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
  528. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
  530. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
  532. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
  534. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
  536. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
  538. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
  540. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
  542. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
  544. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
  546. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
  548. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
  550. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
  552. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
  554. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
  556. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
  558. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
  560. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
  562. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
  564. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
  566. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
  567. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
  568. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
  569. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
  570. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
  571. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
  572. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
  573. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
  574. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
  575. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
  576. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
  577. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
  578. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
  579. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
  580. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
  581. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
  582. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
  583. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
  584. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
  585. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
  586. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
  587. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
  588. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
  589. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
@@ -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 {
@@ -72,17 +72,39 @@ export class StorageIndexedDB extends Storage {
72
72
  };
73
73
  });
74
74
  }
75
- async *getMany(prefix, tx_) {
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) => {
90
+ const items = new Array();
80
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) {
@@ -1,10 +1,13 @@
1
- import { Storage, StorageKeyPart } from "./0_storage.js";
1
+ import { GetManyFilter, Storage, StorageKeyPart } from "./0_storage.js";
2
2
  export declare class StorageLocalStorage extends Storage implements Storage {
3
3
  private readonly prefix;
4
4
  constructor(prefix: string);
5
5
  init(): void;
6
6
  get<T>(key_: readonly StorageKeyPart[]): T | null;
7
- getMany<T>(prefix: readonly StorageKeyPart[]): Generator<[readonly StorageKeyPart[], T], void, unknown>;
7
+ getMany<T>(filter: GetManyFilter, params?: {
8
+ limit?: number;
9
+ reverse?: boolean;
10
+ }): Generator<[readonly StorageKeyPart[], T], void, unknown>;
8
11
  set(key_: readonly StorageKeyPart[], value: unknown): void;
9
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
  }
@@ -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 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>;
9
13
  incr(key: readonly StorageKeyPart[], by: number): void;
10
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
  }
@@ -41,3 +62,10 @@ export class StorageMemory extends Storage {
41
62
  this.set(key, (this.get(key) || 0) + by);
42
63
  }
43
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,11 +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>;
10
13
  incr(key: readonly StorageKeyPart[], by: number): void;
11
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
  }
@@ -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,7 +1,7 @@
1
1
  import { types } from "../2_tl.js";
2
2
  import { RestrictionReason } from "./0_restriction_reason.js";
3
3
  export type ChatType = "private" | "group" | "supergroup" | "channel";
4
- export declare namespace Chat {
4
+ export declare namespace ChatP {
5
5
  interface Base {
6
6
  /** The identifier of the chat. */
7
7
  id: number;
@@ -66,7 +66,7 @@ export declare namespace Chat {
66
66
  }
67
67
  }
68
68
  /** This object represents a chat. */
69
- export type Chat = Chat.Private | Chat.Group | Chat.Supergroup | Chat.Channel;
70
- export declare function constructChat(chat: types.User): Chat.Private;
71
- export declare function constructChat(chat: types.Chat): Chat.Group;
72
- export declare function constructChat(chat: types.Channel): Chat.Supergroup | Chat.Channel;
69
+ export type ChatP = ChatP.Private | ChatP.Group | ChatP.Supergroup | ChatP.Channel;
70
+ export declare function constructChatP(chat: types.User): ChatP.Private;
71
+ export declare function constructChatP(chat: types.Chat): ChatP.Group;
72
+ export declare function constructChatP(chat: types.Channel): ChatP.Supergroup | ChatP.Channel;
@@ -1,7 +1,7 @@
1
1
  import { cleanObject, getColorFromPeerId, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
2
2
  import { types } from "../2_tl.js";
3
3
  import { constructRestrictionReason } from "./0_restriction_reason.js";
4
- export function constructChat(chat) {
4
+ export function constructChatP(chat) {
5
5
  if (chat instanceof types.User) {
6
6
  const id = Number(chat.id);
7
7
  const chat_ = {
@@ -11,7 +11,7 @@ import { Venue } from "./0_venue.js";
11
11
  import { Voice } from "./0_voice.js";
12
12
  import { EntityGetter } from "./1__getters.js";
13
13
  import { Animation } from "./1_animation.js";
14
- import { Chat } from "./1_chat.js";
14
+ import { ChatP } from "./1_chat_p.js";
15
15
  import { Document } from "./1_document.js";
16
16
  import { Photo } from "./1_photo.js";
17
17
  import { Poll } from "./1_poll.js";
@@ -33,17 +33,17 @@ export interface Message {
33
33
  /** Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. */
34
34
  from?: User;
35
35
  /** Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. */
36
- senderChat?: Chat;
36
+ senderChat?: ChatP;
37
37
  /** Date the message was sent in Unix time */
38
- date?: Date;
38
+ date: Date;
39
39
  /** Conversation the message belongs to */
40
- chat: Chat;
40
+ chat: ChatP;
41
41
  /** A link to the message */
42
42
  link?: string;
43
43
  /** For forwarded messages, sender of the original message */
44
44
  forwardFrom?: User;
45
45
  /** For messages forwarded from channels or from anonymous administrators, information about the original sender chat */
46
- forwardFromChat?: Chat;
46
+ forwardFromChat?: ChatP;
47
47
  /** For messages forwarded from channels, identifier of the original message in the channel */
48
48
  forwardId?: number;
49
49
  /** For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present */
@@ -58,6 +58,7 @@ export interface Message {
58
58
  isAutomaticForward?: boolean;
59
59
  /** For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply. */
60
60
  replyToMessage?: Omit<Message, "replyToMessage">;
61
+ replyToMessageId?: number;
61
62
  /** Bot through which the message was sent */
62
63
  viaBot?: User;
63
64
  /** Date the message was last edited in Unix time */
@@ -172,8 +173,8 @@ export interface Message {
172
173
  };
173
174
  }
174
175
  export interface MessageGetter<O extends keyof Message | null = null> {
175
- (chatId: number, messageId: number): MaybePromise<(O extends null ? Message : Omit<Message, "replyToMessage">) | null>;
176
+ (chatId: number, messageId: number): MaybePromise<(O extends keyof Message ? Omit<Message, O> : Message) | null>;
176
177
  }
177
178
  type Message_MessageGetter = MessageGetter<"replyToMessage"> | null;
178
- export declare function constructMessage(message_: enums.Message, getEntity: EntityGetter, getMessage: Message_MessageGetter, getStickerSetName: StickerSetNameGetter): Promise<Message>;
179
+ export declare function constructMessage(message_: enums.Message, getEntity: EntityGetter, getMessage: Message_MessageGetter, getStickerSetName: StickerSetNameGetter, getReply_?: boolean): Promise<Message>;
179
180
  export {};
@@ -12,7 +12,7 @@ import { constructReplyKeyboardRemove } from "./0_reply_keyboard_remove.js";
12
12
  import { constructVenue } from "./0_venue.js";
13
13
  import { constructVoice } from "./0_voice.js";
14
14
  import { constructAnimation } from "./1_animation.js";
15
- import { constructChat } from "./1_chat.js";
15
+ import { constructChatP } from "./1_chat_p.js";
16
16
  import { constructDocument } from "./1_document.js";
17
17
  import { constructPhoto } from "./1_photo.js";
18
18
  import { constructPoll } from "./1_poll.js";
@@ -37,7 +37,7 @@ async function getSender(message_, getEntity) {
37
37
  else if (message_.from_id instanceof types.PeerChannel) {
38
38
  const entity = await getEntity(message_.from_id);
39
39
  if (entity) {
40
- return { senderChat: constructChat(entity) };
40
+ return { senderChat: constructChatP(entity) };
41
41
  }
42
42
  else {
43
43
  UNREACHABLE();
@@ -181,7 +181,7 @@ async function constructServiceMessage(message_, chat, getEntity, getMessage) {
181
181
  }
182
182
  return cleanObject(message);
183
183
  }
184
- export async function constructMessage(message_, getEntity, getMessage, getStickerSetName) {
184
+ export async function constructMessage(message_, getEntity, getMessage, getStickerSetName, getReply_ = true) {
185
185
  if (!(message_ instanceof types.Message) && !(message_ instanceof types.MessageService)) {
186
186
  UNREACHABLE();
187
187
  }
@@ -190,7 +190,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
190
190
  if (message_.peer_id instanceof types.PeerUser) {
191
191
  const entity = await getEntity(message_.peer_id);
192
192
  if (entity) {
193
- chat_ = constructChat(entity);
193
+ chat_ = constructChatP(entity);
194
194
  }
195
195
  else {
196
196
  UNREACHABLE();
@@ -199,7 +199,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
199
199
  else if (message_.peer_id instanceof types.PeerChat) {
200
200
  const entity = await getEntity(message_.peer_id);
201
201
  if (entity) {
202
- chat_ = constructChat(entity);
202
+ chat_ = constructChatP(entity);
203
203
  }
204
204
  else {
205
205
  UNREACHABLE();
@@ -209,7 +209,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
209
209
  link = `https://t.me/c/${message_.peer_id.channel_id}/${message_.id}`;
210
210
  const entity = await getEntity(message_.peer_id);
211
211
  if (entity) {
212
- chat_ = constructChat(entity);
212
+ chat_ = constructChatP(entity);
213
213
  }
214
214
  else {
215
215
  UNREACHABLE();
@@ -231,7 +231,12 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
231
231
  isTopicMessage: false,
232
232
  hasProtectedContent: message_.noforwards || false,
233
233
  };
234
- Object.assign(message, await getReply(message_, chat_, getMessage));
234
+ if (message_.reply_to instanceof types.MessageReplyHeader && message_.reply_to.reply_to_msg_id) {
235
+ message.replyToMessageId = message_.reply_to.reply_to_msg_id;
236
+ }
237
+ if (getReply_) {
238
+ Object.assign(message, await getReply(message_, chat_, getMessage));
239
+ }
235
240
  Object.assign(message, await getSender(message_, getEntity));
236
241
  if (message_.media instanceof types.MessageMediaPhoto || message_.media instanceof types.MessageMediaDocument) {
237
242
  message.hasMediaSpoiler = message_.media.spoiler || false;
@@ -305,7 +310,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
305
310
  else if (message_.fwd_from.from_id instanceof types.PeerChat) {
306
311
  const entity = await getEntity(message_.fwd_from.from_id);
307
312
  if (entity) {
308
- message.forwardFromChat = constructChat(entity);
313
+ message.forwardFromChat = constructChatP(entity);
309
314
  }
310
315
  else {
311
316
  UNREACHABLE();
@@ -314,7 +319,7 @@ export async function constructMessage(message_, getEntity, getMessage, getStick
314
319
  else if (message_.fwd_from.from_id instanceof types.PeerChannel) {
315
320
  const entity = await getEntity(message_.fwd_from.from_id);
316
321
  if (entity) {
317
- message.forwardFromChat = constructChat(entity);
322
+ message.forwardFromChat = constructChatP(entity);
318
323
  }
319
324
  else {
320
325
  UNREACHABLE();
@@ -0,0 +1,33 @@
1
+ import { enums, types } from "../2_tl.js";
2
+ import { ChatP } from "./1_chat_p.js";
3
+ import { ChatPhoto } from "./0_chat_photo.js";
4
+ import { Message, MessageGetter } from "./3_message.js";
5
+ import { StickerSetNameGetter } from "./1_sticker.js";
6
+ import { EntityGetter } from "./1__getters.js";
7
+ export declare namespace Chat {
8
+ interface Base {
9
+ order: string;
10
+ lastMessage?: Message;
11
+ pinned: number;
12
+ }
13
+ interface Channel extends Base, ChatP.Channel {
14
+ also?: string[];
15
+ photo?: ChatPhoto.Chat;
16
+ }
17
+ interface Supergroup extends Base, ChatP.Supergroup {
18
+ also?: string[];
19
+ photo?: ChatPhoto.Chat;
20
+ }
21
+ interface Group extends Base, ChatP.Group {
22
+ photo?: ChatPhoto.Chat;
23
+ }
24
+ interface Private extends Base, ChatP.Private {
25
+ also?: string[];
26
+ photo?: ChatPhoto.User;
27
+ }
28
+ }
29
+ export type Chat = Chat.Channel | Chat.Supergroup | Chat.Group | Chat.Private;
30
+ export declare function getChatOrder(lastMessage: Message | undefined, pinned: number): string;
31
+ export declare function constructChat(dialog: enums.Dialog, dialogs: types.messages.Dialogs | types.messages.DialogsSlice, pinnedChats: number[], getEntity: EntityGetter, getMessage: MessageGetter<"replyToMessage">, getStickerSetName: StickerSetNameGetter): Promise<Chat>;
32
+ export declare function constructChat2(chatId: number, pinned: number, lastMessage: Message | undefined, getEntity: EntityGetter): Promise<Chat | null>;
33
+ export declare function constructChat3(chatId: number, pinned: number, lastMessageId: number, getEntity: EntityGetter, getMessage: MessageGetter<"replyToMessage">): Promise<Chat | null>;
@@ -0,0 +1,117 @@
1
+ import { cleanObject, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
2
+ import { peerToChatId, types } from "../2_tl.js";
3
+ import { constructChatP } from "./1_chat_p.js";
4
+ import { constructChatPhoto } from "./0_chat_photo.js";
5
+ import { constructMessage } from "./3_message.js";
6
+ function getChatPAlsoPhoto(entity) {
7
+ let chatP;
8
+ let also = undefined;
9
+ if (entity instanceof types.User) {
10
+ chatP = constructChatP(entity);
11
+ also = "usernames" in entity ? entity.usernames?.map((v) => v.username).filter((v) => v != ("username" in chatP ? chatP.username : "")) : undefined;
12
+ }
13
+ else if (entity instanceof types.Chat) {
14
+ chatP = constructChatP(entity);
15
+ }
16
+ else if (entity instanceof types.Channel) {
17
+ chatP = constructChatP(entity);
18
+ also = "usernames" in entity ? entity.usernames?.map((v) => v.username).filter((v) => v != ("username" in chatP ? chatP.username : "")) : undefined;
19
+ }
20
+ else {
21
+ UNREACHABLE();
22
+ }
23
+ let photo = undefined;
24
+ if (entity.photo instanceof types.UserProfilePhoto) {
25
+ photo = constructChatPhoto(entity.photo, chatP.id, "access_hash" in entity ? entity.access_hash ?? 0n : 0n);
26
+ }
27
+ else if (entity.photo instanceof types.ChatPhoto) {
28
+ photo = constructChatPhoto(entity.photo, chatP.id, "access_hash" in entity ? entity.access_hash ?? 0n : 0n);
29
+ }
30
+ return { chatP, also, photo };
31
+ }
32
+ export function getChatOrder(lastMessage, pinned) {
33
+ const p = pinned == -1 ? "" : `P${100 - pinned}`;
34
+ if (!lastMessage) {
35
+ return p + "0";
36
+ }
37
+ return p + String((BigInt(Math.floor(lastMessage.date.getTime())) << 32n) + BigInt(lastMessage.id));
38
+ }
39
+ export async function constructChat(dialog, dialogs, pinnedChats, getEntity, getMessage, getStickerSetName) {
40
+ const topMessage_ = dialogs.messages.find((v) => "id" in v && v.id == dialog.top_message);
41
+ if (!topMessage_) {
42
+ UNREACHABLE();
43
+ }
44
+ const pinned = pinnedChats.indexOf(peerToChatId(dialog.peer));
45
+ const lastMessage = await constructMessage(topMessage_, getEntity, getMessage, getStickerSetName, false);
46
+ const order = getChatOrder(lastMessage, pinned);
47
+ const userId = "user_id" in dialog.peer ? dialog.peer.user_id : null;
48
+ const chatId = "chat_id" in dialog.peer ? dialog.peer.chat_id : null;
49
+ const channelId = "channel_id" in dialog.peer ? dialog.peer.channel_id : null;
50
+ const chat__ = chatId != null ? dialogs.chats.find((v) => v instanceof types.Chat && v.id == chatId) : channelId != null ? dialogs.chats.find((v) => v instanceof types.Channel && v.id == channelId) : userId != null ? dialogs.users.find((v) => v instanceof types.User && v.id == userId) : UNREACHABLE();
51
+ if (!chat__) {
52
+ UNREACHABLE();
53
+ }
54
+ const chat_ = chat__;
55
+ const { chatP, also, photo } = getChatPAlsoPhoto(chat_);
56
+ if (chatP.type == "group") {
57
+ return cleanObject({ ...chatP, order, lastMessage, photo, pinned });
58
+ }
59
+ else if (chatP.type == "supergroup") {
60
+ return cleanObject({ ...chatP, order, lastMessage, also, photo, pinned });
61
+ }
62
+ else if (chatP.type == "channel") {
63
+ return cleanObject({ ...chatP, order, lastMessage, also, photo, pinned });
64
+ }
65
+ else if (chatP.type == "private") {
66
+ return cleanObject({ ...chatP, order, lastMessage, also, photo: photo, pinned });
67
+ }
68
+ else {
69
+ UNREACHABLE();
70
+ }
71
+ }
72
+ export async function constructChat2(chatId, pinned, lastMessage, getEntity) {
73
+ let chatPAlsoPhoto = null;
74
+ if (chatId < ZERO_CHANNEL_ID) {
75
+ const entity = await getEntity(new types.PeerChannel({ channel_id: BigInt(Math.abs(chatId - ZERO_CHANNEL_ID)) }));
76
+ if (entity != null) {
77
+ chatPAlsoPhoto = getChatPAlsoPhoto(entity);
78
+ }
79
+ }
80
+ else if (chatId < 0) {
81
+ const entity = await getEntity(new types.PeerChat({ chat_id: BigInt(Math.abs(chatId)) }));
82
+ if (entity != null) {
83
+ chatPAlsoPhoto = getChatPAlsoPhoto(entity);
84
+ }
85
+ }
86
+ else {
87
+ const entity = await getEntity(new types.PeerUser({ user_id: BigInt(chatId) }));
88
+ if (entity != null) {
89
+ chatPAlsoPhoto = getChatPAlsoPhoto(entity);
90
+ }
91
+ }
92
+ if (chatPAlsoPhoto == null) {
93
+ return null;
94
+ }
95
+ const order = getChatOrder(lastMessage, pinned);
96
+ const { also, photo, chatP } = chatPAlsoPhoto;
97
+ if (chatP.type == "group") {
98
+ return cleanObject({ ...chatP, order, lastMessage, photo, pinned });
99
+ }
100
+ else if (chatP.type == "supergroup") {
101
+ return cleanObject({ ...chatP, order, lastMessage, also, photo, pinned });
102
+ }
103
+ else if (chatP.type == "channel") {
104
+ return cleanObject({ ...chatP, order, lastMessage, also, photo, pinned });
105
+ }
106
+ else if (chatP.type == "private") {
107
+ return cleanObject({ ...chatP, order, lastMessage, also, photo: photo, pinned });
108
+ }
109
+ else {
110
+ UNREACHABLE();
111
+ }
112
+ }
113
+ export async function constructChat3(chatId, pinned, lastMessageId, getEntity, getMessage) {
114
+ const lastMessage_ = lastMessageId > 0 ? await getMessage(chatId, lastMessageId) : null;
115
+ const lastMessage = lastMessage_ == null ? undefined : lastMessage_;
116
+ return await constructChat2(chatId, pinned, lastMessage, getEntity);
117
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.1.125",
3
+ "version": "0.1.126",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -1,7 +1,7 @@
1
- export * from "./deps/deno.land/std@0.208.0/assert/mod.js";
2
- export * as path from "./deps/deno.land/std@0.208.0/path/mod.js";
3
- export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.208.0/encoding/base64.js";
4
- export { contentType } from "./deps/deno.land/std@0.208.0/media_types/content_type.js";
1
+ export * from "./deps/deno.land/std@0.209.0/assert/mod.js";
2
+ export * as path from "./deps/deno.land/std@0.209.0/path/mod.js";
3
+ export { decodeBase64, encodeBase64 } from "./deps/deno.land/std@0.209.0/encoding/base64.js";
4
+ export { contentType } from "./deps/deno.land/std@0.209.0/media_types/content_type.js";
5
5
  export { ctr256, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.3.3/mod.js";
6
6
  export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js";
7
7
  export { Mutex, type MutexInterface } from "async-mutex";