@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.
- package/esm/0_deps.d.ts +4 -4
- package/esm/0_deps.js +4 -4
- package/esm/3_types.d.ts +2 -1
- package/esm/3_types.js +2 -1
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/3_types.d.ts +23 -2
- package/esm/client/3_types.js +11 -1
- package/esm/client/5_client.d.ts +15 -2
- package/esm/client/5_client.js +323 -20
- package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/_diff.d.ts +6 -5
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +5 -6
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
- package/esm/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
- package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
- package/esm/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_false.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.js +48 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
- package/esm/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
- 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
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
- package/esm/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
- package/esm/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
- 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
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
- package/esm/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
- package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
- package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.js +18 -0
- package/esm/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
- package/esm/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
- package/esm/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
- package/esm/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.js +1 -6
- package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
- package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +24 -0
- package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
- package/esm/storage/0_storage.d.ts +25 -2
- package/esm/storage/0_storage.js +60 -5
- package/esm/storage/0_utilities.d.ts +2 -0
- package/esm/storage/0_utilities.js +33 -0
- package/esm/storage/1_storage_indexed_db.d.ts +5 -2
- package/esm/storage/1_storage_indexed_db.js +26 -4
- package/esm/storage/1_storage_local_storage.d.ts +5 -2
- package/esm/storage/1_storage_local_storage.js +20 -6
- package/esm/storage/1_storage_memory.d.ts +6 -2
- package/esm/storage/1_storage_memory.js +34 -6
- package/esm/storage/1_storage_session_storage.d.ts +5 -2
- package/esm/storage/1_storage_session_storage.js +20 -6
- package/esm/tl/0_tl_raw_writer.d.ts +1 -0
- package/esm/tl/0_tl_raw_writer.js +6 -0
- package/esm/tl/1_tl_object.js +6 -1
- package/esm/tl/3_deserialize.js +1 -1
- package/esm/types/{1_chat.d.ts → 1_chat_p.d.ts} +5 -5
- package/esm/types/{1_chat.js → 1_chat_p.js} +1 -1
- package/esm/types/3_message.d.ts +8 -7
- package/esm/types/3_message.js +14 -9
- package/esm/types/4_chat.d.ts +33 -0
- package/esm/types/4_chat.js +117 -0
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -4
- package/script/0_deps.js +4 -4
- package/script/3_types.d.ts +2 -1
- package/script/3_types.js +2 -1
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/3_types.d.ts +23 -2
- package/script/client/3_types.js +13 -0
- package/script/client/5_client.d.ts +15 -2
- package/script/client/5_client.js +322 -19
- package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/_diff.d.ts +6 -5
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +23 -24
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert.js +11 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
- package/script/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
- package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
- package/script/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_false.js +11 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_is_error.js +24 -5
- package/script/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
- 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
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
- package/script/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
- package/script/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
- 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
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
- package/script/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
- package/script/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assertion_error.js +13 -7
- package/script/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
- package/script/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
- package/script/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
- package/script/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.js +2 -7
- package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
- package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +28 -0
- package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
- package/script/storage/0_storage.d.ts +25 -2
- package/script/storage/0_storage.js +60 -5
- package/script/storage/0_utilities.d.ts +2 -0
- package/script/storage/0_utilities.js +36 -1
- package/script/storage/1_storage_indexed_db.d.ts +5 -2
- package/script/storage/1_storage_indexed_db.js +25 -3
- package/script/storage/1_storage_local_storage.d.ts +5 -2
- package/script/storage/1_storage_local_storage.js +19 -5
- package/script/storage/1_storage_memory.d.ts +6 -2
- package/script/storage/1_storage_memory.js +33 -5
- package/script/storage/1_storage_session_storage.d.ts +5 -2
- package/script/storage/1_storage_session_storage.js +19 -5
- package/script/tl/0_tl_raw_writer.d.ts +1 -0
- package/script/tl/0_tl_raw_writer.js +6 -0
- package/script/tl/1_tl_object.js +6 -1
- package/script/tl/3_deserialize.js +1 -1
- package/script/types/{1_chat.d.ts → 1_chat_p.d.ts} +5 -5
- package/script/types/{1_chat.js → 1_chat_p.js} +3 -3
- package/script/types/3_message.d.ts +8 -7
- package/script/types/3_message.js +14 -9
- package/script/types/4_chat.d.ts +33 -0
- package/script/types/4_chat.js +124 -0
- package/esm/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
- package/esm/deps/deno.land/std@0.208.0/assert/assert.js +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
- package/esm/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
- package/esm/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/assert_false.js +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
- package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
- package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.js +0 -29
- package/esm/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
- package/esm/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
- package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.js +0 -12
- package/esm/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
- package/esm/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
- package/esm/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
- package/esm/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
- package/script/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
- package/script/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
- package/script/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
- package/script/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
- package/script/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
- package/script/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
- package/script/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
- package/script/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
- package/script/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.js +0 -0
- /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
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.js +0 -0
- /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
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the media type associated with the file extension. Values are
|
|
3
|
+
* normalized to lower case and matched irrespective of a leading `.`.
|
|
4
|
+
*
|
|
5
|
+
* When `extension` has no associated type, the function returns `undefined`.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { typeByExtension } from "https://deno.land/std@$STD_VERSION/media_types/type_by_extension.ts";
|
|
10
|
+
*
|
|
11
|
+
* typeByExtension("js"); // `application/json`
|
|
12
|
+
* typeByExtension(".HTML"); // `text/html`
|
|
13
|
+
* typeByExtension("foo"); // undefined
|
|
14
|
+
* typeByExtension("file.json"); // undefined
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function typeByExtension(extension: string): string | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.typeByExtension = void 0;
|
|
6
|
+
const _db_js_1 = require("./_db.js");
|
|
7
|
+
/**
|
|
8
|
+
* Returns the media type associated with the file extension. Values are
|
|
9
|
+
* normalized to lower case and matched irrespective of a leading `.`.
|
|
10
|
+
*
|
|
11
|
+
* When `extension` has no associated type, the function returns `undefined`.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { typeByExtension } from "https://deno.land/std@$STD_VERSION/media_types/type_by_extension.ts";
|
|
16
|
+
*
|
|
17
|
+
* typeByExtension("js"); // `application/json`
|
|
18
|
+
* typeByExtension(".HTML"); // `text/html`
|
|
19
|
+
* typeByExtension("foo"); // undefined
|
|
20
|
+
* typeByExtension("file.json"); // undefined
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function typeByExtension(extension) {
|
|
24
|
+
extension = extension.startsWith(".") ? extension.slice(1) : extension;
|
|
25
|
+
// @ts-ignore workaround around denoland/dnt#148
|
|
26
|
+
return _db_js_1.types.get(extension.toLowerCase());
|
|
27
|
+
}
|
|
28
|
+
exports.typeByExtension = typeByExtension;
|
|
@@ -2,13 +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>;
|
|
9
15
|
abstract incr(key: readonly StorageKeyPart[], by: number): MaybePromise<void>;
|
|
10
16
|
abstract get<T>(key: readonly StorageKeyPart[]): MaybePromise<T | null>;
|
|
11
|
-
abstract getMany<T>(prefix:
|
|
17
|
+
abstract getMany<T>(prefix: GetManyFilter, params?: {
|
|
18
|
+
limit?: number;
|
|
19
|
+
reverse?: boolean;
|
|
20
|
+
}): MaybePromise<Generator<[readonly StorageKeyPart[], T]> | AsyncGenerator<[readonly StorageKeyPart[], T]>>;
|
|
12
21
|
setDc(dc: DC | null): MaybePromise<void>;
|
|
13
22
|
getDc(): MaybePromise<DC | null>;
|
|
14
23
|
getAuthKey(): Promise<Uint8Array | null>;
|
|
@@ -21,13 +30,14 @@ export declare abstract class Storage {
|
|
|
21
30
|
updateUsernames(type: "user" | "channel", id: bigint, usernames: string[]): Promise<void>;
|
|
22
31
|
getUsername(username: string): Promise<["channel" | "user", bigint, Date] | null>;
|
|
23
32
|
setTlObject(key: readonly StorageKeyPart[], value: TLObject | null): Promise<void>;
|
|
24
|
-
getTLObject(
|
|
33
|
+
getTLObject(keyOrBuffer: Uint8Array | readonly StorageKeyPart[]): Promise<import("../2_tl.js").ReadObject | null>;
|
|
25
34
|
setState(state: enums.updates.State): Promise<void>;
|
|
26
35
|
getState(): Promise<import("../tl/2_types.js").updates_State_ | null>;
|
|
27
36
|
setMessage(chatId: number, messageId: number, message: enums.Message | null): Promise<void>;
|
|
28
37
|
deleteMessages(): Promise<void>;
|
|
29
38
|
getMessageChat(messageId: number): MaybePromise<number | null>;
|
|
30
39
|
getMessage(chatId: number, messageId: number): Promise<enums.Message | null>;
|
|
40
|
+
getLastMessage(chatId: number): Promise<enums.Message | null>;
|
|
31
41
|
setChannelPts(channelId: bigint, pts: number): Promise<void>;
|
|
32
42
|
getChannelPts(channelId: bigint): MaybePromise<number | null>;
|
|
33
43
|
setEntity(peer: types.Channel): Promise<void>;
|
|
@@ -43,4 +53,17 @@ export declare abstract class Storage {
|
|
|
43
53
|
getStickerSetName(id: bigint, accessHash: bigint): MaybePromise<[string, Date] | null>;
|
|
44
54
|
setServerSalt(serverSalt: bigint): Promise<void>;
|
|
45
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[]>;
|
|
46
69
|
}
|
|
@@ -26,7 +26,13 @@ const KPARTS__PEER = (type, id) => ["peer", type, id];
|
|
|
26
26
|
const KPARTS__ACCOUNT_TYPE = ["accountType"];
|
|
27
27
|
const KPARTS__STICKER_SET_NAME = (id, accessHash) => ["stickerSetName", id, accessHash];
|
|
28
28
|
const KPARTS_MESSAGE = (chatId, messageId) => ["messages", chatId, messageId];
|
|
29
|
+
const KPARTS_MESSAGES = (chatId) => ["messages", chatId];
|
|
29
30
|
const KPARTS_MESSAGE_REF = (messageId) => ["messageRefs", messageId];
|
|
31
|
+
const KPARTS_HAS_ALL_CHATS = (listId) => ["hasAllChats", listId];
|
|
32
|
+
const KPARTS_CHATS = (listId) => ["chats", listId];
|
|
33
|
+
const KPARTS_CHAT = (listId, chatId) => ["chats", listId, chatId];
|
|
34
|
+
const KPARTS_PINNED_CHATS = (listId) => ["pinnedChats", listId];
|
|
35
|
+
const KPARTS_SERVER_SALT = ["serverSalt"];
|
|
30
36
|
class Storage {
|
|
31
37
|
constructor() {
|
|
32
38
|
_Storage_instances.add(this);
|
|
@@ -80,8 +86,8 @@ class Storage {
|
|
|
80
86
|
await this.set(key, (0, _1_utilities_js_1.rleEncode)(value[_2_tl_js_1.serialize]()));
|
|
81
87
|
}
|
|
82
88
|
}
|
|
83
|
-
async getTLObject(
|
|
84
|
-
const buffer = await this.get(
|
|
89
|
+
async getTLObject(keyOrBuffer) {
|
|
90
|
+
const buffer = keyOrBuffer instanceof Uint8Array ? keyOrBuffer : await this.get(keyOrBuffer);
|
|
85
91
|
if (buffer != null) {
|
|
86
92
|
return new _2_tl_js_1.TLReader((0, _1_utilities_js_1.rleDecode)(buffer)).readObject();
|
|
87
93
|
}
|
|
@@ -103,7 +109,7 @@ class Storage {
|
|
|
103
109
|
}
|
|
104
110
|
async deleteMessages() {
|
|
105
111
|
const maybePromises = new Array();
|
|
106
|
-
for await (const [k, o] of await this.getMany(["messageRefs"])) {
|
|
112
|
+
for await (const [k, o] of await this.getMany({ prefix: ["messageRefs"] })) {
|
|
107
113
|
maybePromises.push(Promise.all([this.set(k, null), o == null ? Promise.resolve() : this.set(KPARTS_MESSAGE(o, k[1]), null)]).then(() => { }));
|
|
108
114
|
}
|
|
109
115
|
await Promise.all(maybePromises.filter((v) => v instanceof Promise));
|
|
@@ -114,6 +120,12 @@ class Storage {
|
|
|
114
120
|
async getMessage(chatId, messageId) {
|
|
115
121
|
return await this.getTLObject(KPARTS_MESSAGE(chatId, messageId));
|
|
116
122
|
}
|
|
123
|
+
async getLastMessage(chatId) {
|
|
124
|
+
for await (const [_, buffer] of await this.getMany({ prefix: KPARTS_MESSAGES(chatId) }, { limit: 1, reverse: true })) {
|
|
125
|
+
return await this.getTLObject(buffer);
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
117
129
|
async setChannelPts(channelId, pts) {
|
|
118
130
|
await this.set(KPARTS__CHANNEL_PTS(channelId), pts);
|
|
119
131
|
}
|
|
@@ -157,10 +169,53 @@ class Storage {
|
|
|
157
169
|
return this.get(KPARTS__STICKER_SET_NAME(id, accessHash));
|
|
158
170
|
}
|
|
159
171
|
async setServerSalt(serverSalt) {
|
|
160
|
-
await this.set(
|
|
172
|
+
await this.set(KPARTS_SERVER_SALT, serverSalt);
|
|
161
173
|
}
|
|
162
174
|
getServerSalt() {
|
|
163
|
-
return this.get(
|
|
175
|
+
return this.get(KPARTS_SERVER_SALT);
|
|
176
|
+
}
|
|
177
|
+
async setChat(listId, chatId, pinned, topMessageId, topMessageDate) {
|
|
178
|
+
await this.set(KPARTS_CHAT(listId, chatId), [pinned, topMessageId, topMessageDate]);
|
|
179
|
+
}
|
|
180
|
+
async getChats(listId) {
|
|
181
|
+
const chats = new Array();
|
|
182
|
+
for await (const [key, value] of await this.getMany({ prefix: KPARTS_CHATS(listId) })) {
|
|
183
|
+
if (key.length != 3 || typeof key[2] !== "number") {
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
chats.push({ chatId: key[2], pinned: value[0], topMessageId: value[1], topMessageDate: value[2] });
|
|
187
|
+
}
|
|
188
|
+
return chats;
|
|
189
|
+
}
|
|
190
|
+
async removeChats(listId) {
|
|
191
|
+
for await (const [key] of await this.getMany({ prefix: KPARTS_CHATS(listId) })) {
|
|
192
|
+
await this.set(key, null);
|
|
193
|
+
}
|
|
194
|
+
await this.setHasAllChats(listId, false);
|
|
195
|
+
await this.setPinnedChats(listId, null);
|
|
196
|
+
}
|
|
197
|
+
async setHasAllChats(listId, hasAllChats) {
|
|
198
|
+
await this.set(KPARTS_HAS_ALL_CHATS(listId), hasAllChats);
|
|
199
|
+
}
|
|
200
|
+
async hasAllChats(listId) {
|
|
201
|
+
const v = await this.get(KPARTS_HAS_ALL_CHATS(listId));
|
|
202
|
+
return v == true;
|
|
203
|
+
}
|
|
204
|
+
async setPinnedChats(listId, chatIds) {
|
|
205
|
+
await this.set(KPARTS_PINNED_CHATS(listId), chatIds);
|
|
206
|
+
}
|
|
207
|
+
async getPinnedChats(listId) {
|
|
208
|
+
return await this.get(KPARTS_PINNED_CHATS(listId));
|
|
209
|
+
}
|
|
210
|
+
async getHistory(chatId, offsetId, limit) {
|
|
211
|
+
if (offsetId == 0) {
|
|
212
|
+
offsetId = Infinity;
|
|
213
|
+
}
|
|
214
|
+
const messages = new Array();
|
|
215
|
+
for await (const [_, buffer] of await this.getMany({ start: KPARTS_MESSAGE(chatId, 0), end: KPARTS_MESSAGE(chatId, offsetId) }, { limit, reverse: true })) {
|
|
216
|
+
messages.push(await this.getTLObject(buffer));
|
|
217
|
+
}
|
|
218
|
+
return messages;
|
|
164
219
|
}
|
|
165
220
|
}
|
|
166
221
|
exports.Storage = Storage;
|
|
@@ -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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPrefixKeyRange = exports.fixKey = exports.fromString = exports.toString = exports.ValueType = void 0;
|
|
3
|
+
exports.isInRange = exports.getPrefixKeyRange = exports.restoreKey = exports.fixKey = exports.fromString = exports.toString = exports.ValueType = void 0;
|
|
4
4
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
5
5
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
6
6
|
var ValueType;
|
|
@@ -96,6 +96,26 @@ function fixKey(key) {
|
|
|
96
96
|
return key.map((v) => typeof v === "bigint" ? String(ValueType.BigInt) + String(v) : typeof v === "string" ? String(ValueType.String) + v : v);
|
|
97
97
|
}
|
|
98
98
|
exports.fixKey = fixKey;
|
|
99
|
+
function restoreKey(key) {
|
|
100
|
+
return key.map((v) => {
|
|
101
|
+
if (typeof v === "string") {
|
|
102
|
+
const t = Number(v[0]);
|
|
103
|
+
if (t == ValueType.BigInt) {
|
|
104
|
+
return BigInt(v.slice(1));
|
|
105
|
+
}
|
|
106
|
+
else if (t == ValueType.String) {
|
|
107
|
+
return v.slice(1);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return v;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return v;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
exports.restoreKey = restoreKey;
|
|
99
119
|
// Source: https://gist.github.com/inexorabletash/5462871
|
|
100
120
|
// deno-lint-ignore no-explicit-any
|
|
101
121
|
function getPrefixKeyRange(prefix) {
|
|
@@ -160,3 +180,18 @@ function successor(key) {
|
|
|
160
180
|
}
|
|
161
181
|
throw new TypeError();
|
|
162
182
|
}
|
|
183
|
+
function isInRange(key, start, end) {
|
|
184
|
+
for (const [i, part] of key.entries()) {
|
|
185
|
+
const left = start[i];
|
|
186
|
+
const right = end[i];
|
|
187
|
+
if (left === undefined || right === undefined) {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
if (part >= left && part <= right) {
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
exports.isInRange = isInRange;
|
|
@@ -1,4 +1,4 @@
|
|
|
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;
|
|
@@ -6,6 +6,9 @@ export declare class StorageIndexedDB extends Storage {
|
|
|
6
6
|
init(): Promise<void>;
|
|
7
7
|
set(k: readonly StorageKeyPart[], v: unknown, tx_?: IDBTransaction): Promise<void>;
|
|
8
8
|
get<T>(k: readonly StorageKeyPart[], tx_?: IDBTransaction): Promise<T | null>;
|
|
9
|
-
getMany<T>(
|
|
9
|
+
getMany<T>(filter: GetManyFilter, params?: {
|
|
10
|
+
limit?: number;
|
|
11
|
+
reverse?: boolean;
|
|
12
|
+
}, tx_?: IDBTransaction): AsyncGenerator<[readonly StorageKeyPart[], T], void, unknown>;
|
|
10
13
|
incr(key: readonly StorageKeyPart[], by: number): Promise<void>;
|
|
11
14
|
}
|
|
@@ -75,17 +75,39 @@ class StorageIndexedDB extends _0_storage_js_1.Storage {
|
|
|
75
75
|
};
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
async *getMany(
|
|
78
|
+
async *getMany(filter, params, tx_) {
|
|
79
79
|
if (!this.database) {
|
|
80
80
|
throw new Error("Not initialized");
|
|
81
81
|
}
|
|
82
|
+
if (params?.limit !== undefined && params.limit <= 0) {
|
|
83
|
+
params.limit = 1;
|
|
84
|
+
}
|
|
85
|
+
let keyRange;
|
|
86
|
+
if ("prefix" in filter) {
|
|
87
|
+
keyRange = (0, _0_utilities_js_1.getPrefixKeyRange)((0, _0_utilities_js_1.fixKey)(filter.prefix));
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
keyRange = IDBKeyRange.bound((0, _0_utilities_js_1.fixKey)(filter.start), (0, _0_utilities_js_1.fixKey)(filter.end), true, true);
|
|
91
|
+
}
|
|
82
92
|
const keys = await new Promise((res, rej) => {
|
|
93
|
+
const items = new Array();
|
|
83
94
|
const tx = (tx_ ?? this.database.transaction(KV_OBJECT_STORE, "readonly"))
|
|
84
95
|
.objectStore(KV_OBJECT_STORE)
|
|
85
|
-
.
|
|
96
|
+
.openKeyCursor(keyRange, params?.reverse ? "prev" : undefined);
|
|
86
97
|
tx.onerror = rej;
|
|
87
98
|
tx.onsuccess = () => {
|
|
88
|
-
|
|
99
|
+
const cursor = tx.result;
|
|
100
|
+
if (!cursor) {
|
|
101
|
+
res(items);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
items.push((0, _0_utilities_js_1.restoreKey)(cursor.key));
|
|
105
|
+
if (params?.limit !== undefined && items.length >= params.limit) {
|
|
106
|
+
res(items);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
cursor.continue();
|
|
110
|
+
}
|
|
89
111
|
};
|
|
90
112
|
});
|
|
91
113
|
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>(
|
|
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
|
}
|
|
@@ -34,19 +34,33 @@ class StorageLocalStorage extends _0_storage_js_1.Storage {
|
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
*getMany(
|
|
38
|
-
|
|
37
|
+
*getMany(filter, params) {
|
|
38
|
+
let entries = Object.entries(localStorage).sort(([a], [b]) => a.localeCompare(b));
|
|
39
|
+
if (params?.reverse) {
|
|
40
|
+
entries.reverse();
|
|
41
|
+
}
|
|
42
|
+
if (params?.limit !== undefined) {
|
|
43
|
+
entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
|
|
44
|
+
}
|
|
45
|
+
for (let [key, value] of entries) {
|
|
39
46
|
if (key.startsWith(this.prefix)) {
|
|
40
47
|
key = key.slice(this.prefix.length);
|
|
41
48
|
}
|
|
42
49
|
const parts = (0, _0_utilities_js_1.fromString)(key);
|
|
43
50
|
if (Array.isArray(parts)) {
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
if ("prefix" in filter) {
|
|
52
|
+
for (const [i, p] of filter.prefix.entries()) {
|
|
53
|
+
if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
if (!(0, _0_utilities_js_1.isInRange)(parts, filter.start, filter.end)) {
|
|
46
60
|
continue;
|
|
47
61
|
}
|
|
48
|
-
yield [parts, (0, _0_utilities_js_1.fromString)(value)];
|
|
49
62
|
}
|
|
63
|
+
yield [parts, (0, _0_utilities_js_1.fromString)(value)];
|
|
50
64
|
}
|
|
51
65
|
}
|
|
52
66
|
}
|
|
@@ -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>(
|
|
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,4 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var _StorageMemory_instances, _StorageMemory_getEntries;
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
exports.StorageMemory = void 0;
|
|
4
10
|
const _0_storage_js_1 = require("./0_storage.js");
|
|
@@ -6,6 +12,7 @@ const _0_utilities_js_1 = require("./0_utilities.js");
|
|
|
6
12
|
class StorageMemory extends _0_storage_js_1.Storage {
|
|
7
13
|
constructor() {
|
|
8
14
|
super(...arguments);
|
|
15
|
+
_StorageMemory_instances.add(this);
|
|
9
16
|
Object.defineProperty(this, "map", {
|
|
10
17
|
enumerable: true,
|
|
11
18
|
configurable: true,
|
|
@@ -18,16 +25,30 @@ class StorageMemory extends _0_storage_js_1.Storage {
|
|
|
18
25
|
get(key) {
|
|
19
26
|
return this.map.get((0, _0_utilities_js_1.toString)(key)) ?? null;
|
|
20
27
|
}
|
|
21
|
-
*getMany(
|
|
22
|
-
|
|
28
|
+
*getMany(filter, params) {
|
|
29
|
+
let entries = __classPrivateFieldGet(this, _StorageMemory_instances, "m", _StorageMemory_getEntries).call(this);
|
|
30
|
+
if (params?.reverse) {
|
|
31
|
+
entries.reverse();
|
|
32
|
+
}
|
|
33
|
+
if (params?.limit !== undefined) {
|
|
34
|
+
entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
|
|
35
|
+
}
|
|
36
|
+
for (const [key, value] of entries) {
|
|
23
37
|
const parts = (0, _0_utilities_js_1.fromString)(key);
|
|
24
38
|
if (Array.isArray(parts)) {
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
if ("prefix" in filter) {
|
|
40
|
+
for (const [i, p] of filter.prefix.entries()) {
|
|
41
|
+
if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
if (!(0, _0_utilities_js_1.isInRange)(parts, filter.start, filter.end)) {
|
|
27
48
|
continue;
|
|
28
49
|
}
|
|
29
|
-
yield [parts, value];
|
|
30
50
|
}
|
|
51
|
+
yield [parts, value];
|
|
31
52
|
}
|
|
32
53
|
}
|
|
33
54
|
}
|
|
@@ -45,3 +66,10 @@ class StorageMemory extends _0_storage_js_1.Storage {
|
|
|
45
66
|
}
|
|
46
67
|
}
|
|
47
68
|
exports.StorageMemory = StorageMemory;
|
|
69
|
+
_StorageMemory_instances = new WeakSet(), _StorageMemory_getEntries = function _StorageMemory_getEntries() {
|
|
70
|
+
const entries = new Array();
|
|
71
|
+
for (const entry of this.map.entries()) {
|
|
72
|
+
entries.push(entry);
|
|
73
|
+
}
|
|
74
|
+
return entries;
|
|
75
|
+
};
|
|
@@ -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>(
|
|
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
|
}
|
|
@@ -34,19 +34,33 @@ class StorageSessionStorage extends _0_storage_js_1.Storage {
|
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
*getMany(
|
|
38
|
-
|
|
37
|
+
*getMany(filter, params) {
|
|
38
|
+
let entries = Object.entries(sessionStorage).sort(([a], [b]) => a.localeCompare(b));
|
|
39
|
+
if (params?.reverse) {
|
|
40
|
+
entries.reverse();
|
|
41
|
+
}
|
|
42
|
+
if (params?.limit !== undefined) {
|
|
43
|
+
entries = entries.slice(0, params.limit <= 0 ? 1 : params.limit);
|
|
44
|
+
}
|
|
45
|
+
for (let [key, value] of entries) {
|
|
39
46
|
if (key.startsWith(this.prefix)) {
|
|
40
47
|
key = key.slice(this.prefix.length);
|
|
41
48
|
}
|
|
42
49
|
const parts = (0, _0_utilities_js_1.fromString)(key);
|
|
43
50
|
if (Array.isArray(parts)) {
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
if ("prefix" in filter) {
|
|
52
|
+
for (const [i, p] of filter.prefix.entries()) {
|
|
53
|
+
if ((0, _0_utilities_js_1.toString)(p) != (0, _0_utilities_js_1.toString)(parts[i])) {
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
if (!(0, _0_utilities_js_1.isInRange)(parts, filter.start, filter.end)) {
|
|
46
60
|
continue;
|
|
47
61
|
}
|
|
48
|
-
yield [parts, (0, _0_utilities_js_1.fromString)(value)];
|
|
49
62
|
}
|
|
63
|
+
yield [parts, (0, _0_utilities_js_1.fromString)(value)];
|
|
50
64
|
}
|
|
51
65
|
}
|
|
52
66
|
}
|
|
@@ -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;
|
|
@@ -30,6 +30,12 @@ class TLRawWriter {
|
|
|
30
30
|
this.write((0, _1_utilities_js_1.bufferFromBigInt)(int, 64 / 8, true, signed));
|
|
31
31
|
return this;
|
|
32
32
|
}
|
|
33
|
+
writeDouble(double) {
|
|
34
|
+
const buf = new Uint8Array(8);
|
|
35
|
+
new DataView(buf.buffer).setFloat64(0, double, true);
|
|
36
|
+
this.write(buf);
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
33
39
|
writeInt128(int, signed = true) {
|
|
34
40
|
this.write((0, _1_utilities_js_1.bufferFromBigInt)(int, 128 / 8, true, signed));
|
|
35
41
|
return this;
|
package/script/tl/1_tl_object.js
CHANGED
|
@@ -83,7 +83,12 @@ function serializeSingleParam(writer, value, type, ntype, debugInfo) {
|
|
|
83
83
|
}
|
|
84
84
|
//
|
|
85
85
|
if (typeof value === "number") {
|
|
86
|
-
|
|
86
|
+
if (ntype == "double") {
|
|
87
|
+
writer.writeDouble(value);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
writer.writeInt32(value);
|
|
91
|
+
}
|
|
87
92
|
}
|
|
88
93
|
else {
|
|
89
94
|
throw new TypeError(`Expected number but received ${valueRepr} ${debugInfo}`);
|
|
@@ -9,7 +9,7 @@ function deserializeSingleParam(reader, type, ntype) {
|
|
|
9
9
|
const cid = reader.readInt32(false);
|
|
10
10
|
const constructor = _2_types_js_1.map.get(cid);
|
|
11
11
|
if (!constructor) {
|
|
12
|
-
throw new Error(`Constructor with ID ${cid} not found`);
|
|
12
|
+
throw new Error(`Constructor with ID ${cid.toString(16)} not found`);
|
|
13
13
|
}
|
|
14
14
|
return deserialize(reader, constructor[_1_tl_object_js_1.paramDesc], constructor);
|
|
15
15
|
}
|
|
@@ -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
|
|
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
|
|
70
|
-
export declare function
|
|
71
|
-
export declare function
|
|
72
|
-
export declare function
|
|
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,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.constructChatP = void 0;
|
|
4
4
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
5
5
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
6
6
|
const _0_restriction_reason_js_1 = require("./0_restriction_reason.js");
|
|
7
|
-
function
|
|
7
|
+
function constructChatP(chat) {
|
|
8
8
|
if (chat instanceof _2_tl_js_1.types.User) {
|
|
9
9
|
const id = Number(chat.id);
|
|
10
10
|
const chat_ = {
|
|
@@ -76,4 +76,4 @@ function constructChat(chat) {
|
|
|
76
76
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
exports.
|
|
79
|
+
exports.constructChatP = constructChatP;
|