@mtkruto/node 0.1.147 → 0.1.148
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 +5 -5
- package/esm/1_utilities.d.ts +1 -0
- package/esm/1_utilities.js +1 -0
- package/esm/3_types.d.ts +2 -2
- package/esm/3_types.js +2 -2
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/0_types.d.ts +1 -0
- package/esm/client/1_file_manager.js +2 -1
- package/esm/client/1_reaction_manager.js +3 -3
- package/esm/client/1_update_manager.js +10 -10
- package/esm/client/2_message_manager.d.ts +2 -0
- package/esm/client/2_message_manager.js +42 -31
- package/esm/client/3_chat_list_manager.js +1 -1
- package/esm/client/4_client.d.ts +21 -0
- package/esm/client/4_client.js +89 -40
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.js +3 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.js +2 -2
- package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/fmt/colors.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/fmt/colors.js +3 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.d.ts +10 -8
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.js +4 -4
- package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/media_types/extension.d.ts +3 -3
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extension.js +3 -3
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.js +1 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.d.ts +3 -3
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.js +3 -3
- package/esm/deps/deno.land/std@0.214.0/media_types/parse_media_type.d.ts +23 -0
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/parse_media_type.js +7 -21
- package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/media_types/type_by_extension.d.ts +2 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/type_by_extension.js +2 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.d.ts +1 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/constants.d.ts +3 -0
- package/esm/deps/deno.land/std@0.214.0/path/constants.js +6 -0
- package/esm/deps/deno.land/std@0.214.0/path/mod.d.ts +65 -0
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/mod.js +10 -5
- package/{script/deps/deno.land/std@0.212.0/path → esm/deps/deno.land/std@0.214.0/path/posix}/common.d.ts +1 -2
- package/esm/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/common.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/posix/constants.d.ts +3 -0
- package/esm/deps/deno.land/{std@0.212.0/path/posix/separator.js → std@0.214.0/path/posix/constants.js} +3 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.js +2 -2
- package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/path/posix/mod.d.ts +8 -1
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/mod.js +8 -1
- package/esm/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/normalize_glob.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +8 -0
- package/esm/deps/deno.land/std@0.214.0/path/posix/separator.js +10 -0
- package/esm/deps/deno.land/std@0.214.0/path/separator.d.ts +8 -0
- package/esm/deps/deno.land/std@0.214.0/path/separator.js +11 -0
- package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/common.d.ts +1 -2
- package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/common.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/windows/constants.d.ts +3 -0
- package/esm/deps/deno.land/std@0.214.0/path/windows/constants.js +5 -0
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.js +2 -2
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.d.ts +7 -0
- package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.js +7 -0
- package/esm/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/normalize_glob.js +2 -2
- package/esm/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +8 -0
- package/esm/deps/deno.land/std@0.214.0/path/windows/separator.js +10 -0
- package/esm/storage/0_storage.d.ts +63 -11
- package/esm/storage/0_storage.js +159 -88
- package/esm/storage/1_storage_memory.d.ts +4 -1
- package/esm/storage/1_storage_memory.js +29 -9
- package/esm/tl/3_utilities.d.ts +5 -2
- package/esm/tl/3_utilities.js +32 -6
- package/esm/types/0_giveaway_parameters.d.ts +1 -0
- package/esm/types/0_login_url.d.ts +1 -0
- package/esm/types/0_mask_position.d.ts +1 -0
- package/esm/types/0_message_reference.d.ts +5 -0
- package/esm/types/0_poll_option.d.ts +1 -0
- package/esm/types/0_price_tag.d.ts +5 -0
- package/esm/types/0_restriction_reason.d.ts +1 -0
- package/esm/types/1_giveaway.d.ts +1 -0
- package/esm/types/1_inline_query_result_button.d.ts +1 -0
- package/esm/types/1_input_message_content.d.ts +2 -2
- package/esm/types/1_poll.d.ts +1 -0
- package/esm/types/1_reaction_count.d.ts +1 -0
- package/esm/types/1_reply_quote.d.ts +1 -0
- package/esm/types/1_sticker.d.ts +1 -0
- package/esm/types/2_chat_member.d.ts +1 -0
- package/esm/types/2_chosen_inline_result.d.ts +1 -0
- package/esm/types/2_game.d.ts +1 -0
- package/esm/types/2_message_interactions.d.ts +1 -0
- package/esm/types/2_message_reactions.d.ts +1 -0
- package/esm/types/3_chat_member_updated.d.ts +1 -0
- package/esm/types/3_reply_markup.d.ts +1 -0
- package/esm/types/4_inline_query_result.d.ts +1 -1
- package/esm/types/4_message.d.ts +1 -0
- package/esm/types/5_callback_query.d.ts +1 -0
- package/esm/types/5_callback_query.js +17 -2
- package/esm/types/6_update.d.ts +2 -2
- package/esm/utilities/0_cache_map.d.ts +6 -0
- package/esm/utilities/0_cache_map.js +30 -0
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -4
- package/script/0_deps.js +5 -5
- package/script/1_utilities.d.ts +1 -0
- package/script/1_utilities.js +1 -0
- package/script/3_types.d.ts +2 -2
- package/script/3_types.js +2 -2
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/0_types.d.ts +1 -0
- package/script/client/1_file_manager.js +2 -1
- package/script/client/1_reaction_manager.js +3 -3
- package/script/client/1_update_manager.js +10 -10
- package/script/client/2_message_manager.d.ts +2 -0
- package/script/client/2_message_manager.js +41 -30
- package/script/client/3_chat_list_manager.js +1 -1
- package/script/client/4_client.d.ts +21 -0
- package/script/client/4_client.js +88 -39
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.js +4 -3
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.js +2 -2
- package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/fmt/colors.d.ts +1 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/fmt/colors.js +4 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.d.ts +10 -8
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/content_type.js +4 -4
- package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/media_types/extension.d.ts +3 -3
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extension.js +3 -3
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.d.ts +1 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/format_media_type.js +1 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.d.ts +3 -3
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/get_charset.js +3 -3
- package/script/deps/deno.land/std@0.214.0/media_types/parse_media_type.d.ts +23 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/parse_media_type.js +7 -21
- package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/media_types/type_by_extension.d.ts +2 -2
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/type_by_extension.js +2 -2
- package/{esm/deps/deno.land/std@0.212.0/path/windows → script/deps/deno.land/std@0.214.0/path}/common.d.ts +1 -2
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/common.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/constants.d.ts +3 -0
- package/script/deps/deno.land/std@0.214.0/path/constants.js +9 -0
- package/script/deps/deno.land/std@0.214.0/path/mod.d.ts +65 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/mod.js +10 -5
- package/script/deps/deno.land/std@0.214.0/path/posix/common.d.ts +13 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/common.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/posix/constants.d.ts +3 -0
- package/script/deps/deno.land/{std@0.212.0/path/posix/separator.js → std@0.214.0/path/posix/constants.js} +4 -3
- package/script/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/join_globs.js +2 -2
- package/{esm/deps/deno.land/std@0.212.0 → script/deps/deno.land/std@0.214.0}/path/posix/mod.d.ts +8 -1
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/mod.js +8 -1
- package/script/deps/deno.land/{std@0.212.0/path/windows → std@0.214.0/path/posix}/normalize_glob.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/posix/separator.d.ts +8 -0
- package/script/deps/deno.land/std@0.214.0/path/posix/separator.js +13 -0
- package/script/deps/deno.land/std@0.214.0/path/separator.d.ts +8 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/separator.js +6 -0
- package/script/deps/deno.land/std@0.214.0/path/windows/common.d.ts +13 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/common.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/windows/constants.d.ts +3 -0
- package/script/deps/deno.land/{std@0.212.0/path/windows/separator.js → std@0.214.0/path/windows/constants.js} +4 -3
- package/script/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/join_globs.js +2 -2
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.d.ts +7 -0
- package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/mod.js +7 -0
- package/script/deps/deno.land/{std@0.212.0/path/posix → std@0.214.0/path/windows}/normalize_glob.js +2 -2
- package/script/deps/deno.land/std@0.214.0/path/windows/separator.d.ts +8 -0
- package/script/deps/deno.land/std@0.214.0/path/windows/separator.js +13 -0
- package/script/storage/0_storage.d.ts +63 -11
- package/script/storage/0_storage.js +159 -88
- package/script/storage/1_storage_memory.d.ts +4 -1
- package/script/storage/1_storage_memory.js +29 -9
- package/script/tl/3_utilities.d.ts +5 -2
- package/script/tl/3_utilities.js +35 -7
- package/script/types/0_giveaway_parameters.d.ts +1 -0
- package/script/types/0_login_url.d.ts +1 -0
- package/script/types/0_mask_position.d.ts +1 -0
- package/script/types/0_message_reference.d.ts +5 -0
- package/script/types/0_poll_option.d.ts +1 -0
- package/script/types/0_price_tag.d.ts +5 -0
- package/script/types/0_restriction_reason.d.ts +1 -0
- package/script/types/1_giveaway.d.ts +1 -0
- package/script/types/1_inline_query_result_button.d.ts +1 -0
- package/script/types/1_input_message_content.d.ts +2 -2
- package/script/types/1_poll.d.ts +1 -0
- package/script/types/1_reaction_count.d.ts +1 -0
- package/script/types/1_reply_quote.d.ts +1 -0
- package/script/types/1_sticker.d.ts +1 -0
- package/script/types/2_chat_member.d.ts +1 -0
- package/script/types/2_chosen_inline_result.d.ts +1 -0
- package/script/types/2_game.d.ts +1 -0
- package/script/types/2_message_interactions.d.ts +1 -0
- package/script/types/2_message_reactions.d.ts +1 -0
- package/script/types/3_chat_member_updated.d.ts +1 -0
- package/script/types/3_reply_markup.d.ts +1 -0
- package/script/types/4_inline_query_result.d.ts +1 -1
- package/script/types/4_message.d.ts +1 -0
- package/script/types/5_callback_query.d.ts +1 -0
- package/script/types/5_callback_query.js +17 -1
- package/script/types/6_update.d.ts +2 -2
- package/script/utilities/0_cache_map.d.ts +6 -0
- package/script/utilities/0_cache_map.js +34 -0
- package/esm/deps/deno.land/std@0.212.0/media_types/parse_media_type.d.ts +0 -37
- package/esm/deps/deno.land/std@0.212.0/path/mod.d.ts +0 -28
- package/esm/deps/deno.land/std@0.212.0/path/posix/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.212.0/path/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.212.0/path/separator.js +0 -5
- package/esm/deps/deno.land/std@0.212.0/path/windows/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.212.0/path/windows/separator.js +0 -4
- package/esm/types/0_labeled_price.d.ts +0 -4
- package/esm/types/0_message_identifier.d.ts +0 -4
- package/script/deps/deno.land/std@0.212.0/media_types/parse_media_type.d.ts +0 -37
- package/script/deps/deno.land/std@0.212.0/path/mod.d.ts +0 -28
- package/script/deps/deno.land/std@0.212.0/path/posix/common.d.ts +0 -14
- package/script/deps/deno.land/std@0.212.0/path/posix/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.212.0/path/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.212.0/path/windows/common.d.ts +0 -14
- package/script/deps/deno.land/std@0.212.0/path/windows/separator.d.ts +0 -2
- package/script/types/0_labeled_price.d.ts +0 -4
- package/script/types/0_message_identifier.d.ts +0 -4
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.js +0 -0
- /package/esm/types/{0_labeled_price.js → 0_message_reference.js} +0 -0
- /package/esm/types/{0_message_identifier.js → 0_price_tag.js} +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.212.0 → std@0.214.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/types/{0_labeled_price.js → 0_message_reference.js} +0 -0
- /package/script/types/{0_message_identifier.js → 0_price_tag.js} +0 -0
package/esm/client/4_client.js
CHANGED
|
@@ -9,10 +9,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
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");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _Client_instances, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_parseMode, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_setAuth, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop,
|
|
12
|
+
var _Client_instances, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_messageManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_parseMode, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_storeMessages, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_setAuth, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe, _Client_handle;
|
|
13
13
|
import { debug, gunzip, Mutex } from "../0_deps.js";
|
|
14
14
|
import { bigIntFromBuffer, cleanObject, drop, getRandomBigInt, getRandomId, mustPrompt, mustPromptOneOf, sha1, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
15
|
-
import { as, functions, Message_, MessageContainer, name, RPCResult, TLError, TLReader, types } from "../2_tl.js";
|
|
15
|
+
import { as, chatIdToPeerId, functions, getChatIdPeerType, Message_, MessageContainer, name, peerToChatId, RPCResult, TLError, TLReader, types } from "../2_tl.js";
|
|
16
16
|
import { StorageMemory } from "../3_storage.js";
|
|
17
17
|
import { constructUser } from "../3_types.js";
|
|
18
18
|
import { ACK_THRESHOLD, APP_VERSION, DEVICE_MODEL, LANG_CODE, LANG_PACK, LAYER, MAX_CHANNEL_ID, MAX_CHAT_ID, SYSTEM_LANG_CODE, SYSTEM_VERSION, USERNAME_TTL } from "../4_constants.js";
|
|
@@ -88,6 +88,12 @@ export class Client extends ClientAbstract {
|
|
|
88
88
|
writable: true,
|
|
89
89
|
value: void 0
|
|
90
90
|
});
|
|
91
|
+
Object.defineProperty(this, "messageStorage", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
configurable: true,
|
|
94
|
+
writable: true,
|
|
95
|
+
value: void 0
|
|
96
|
+
});
|
|
91
97
|
_Client_parseMode.set(this, void 0);
|
|
92
98
|
Object.defineProperty(this, "appVersion", {
|
|
93
99
|
enumerable: true,
|
|
@@ -129,6 +135,7 @@ export class Client extends ClientAbstract {
|
|
|
129
135
|
_Client_autoStart.set(this, void 0);
|
|
130
136
|
_Client_ignoreOutgoing.set(this, void 0);
|
|
131
137
|
_Client_prefixes.set(this, void 0);
|
|
138
|
+
_Client_storeMessages.set(this, void 0);
|
|
132
139
|
_Client_namespaceProxies.set(this, (() => {
|
|
133
140
|
// deno-lint-ignore no-explicit-any
|
|
134
141
|
const proxies = {};
|
|
@@ -199,6 +206,14 @@ export class Client extends ClientAbstract {
|
|
|
199
206
|
UNREACHABLE();
|
|
200
207
|
}
|
|
201
208
|
};
|
|
209
|
+
const mustGetInlineMsgId = () => {
|
|
210
|
+
if ("chosenInlineResult" in update) {
|
|
211
|
+
if (update.chosenInlineResult.inlineMessageId) {
|
|
212
|
+
return update.chosenInlineResult.inlineMessageId;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
UNREACHABLE();
|
|
216
|
+
};
|
|
202
217
|
const chat_ = "messageReactions" in update ? update.messageReactions.chat : "messageReactionCount" in update ? update.messageReactionCount.chat : undefined;
|
|
203
218
|
const chat = chat_ ?? msg?.chat;
|
|
204
219
|
const from = "callbackQuery" in update ? update.callbackQuery.from : "inlineQuery" in update ? update.inlineQuery.from : "message" in update ? update.message.from : "editedMessage" in update ? update.editedMessage?.from : undefined;
|
|
@@ -347,6 +362,14 @@ export class Client extends ClientAbstract {
|
|
|
347
362
|
const { chatId } = mustGetMsg();
|
|
348
363
|
return this.sendChatAction(chatId, chatAction, params);
|
|
349
364
|
},
|
|
365
|
+
editInlineMessageText: (text, params) => {
|
|
366
|
+
const inlineMessageId = mustGetInlineMsgId();
|
|
367
|
+
return this.editInlineMessageText(inlineMessageId, text, params);
|
|
368
|
+
},
|
|
369
|
+
editInlineMessageReplyMarkup: (params) => {
|
|
370
|
+
const inlineMessageId = mustGetInlineMsgId();
|
|
371
|
+
return this.editInlineMessageReplyMarkup(inlineMessageId, params);
|
|
372
|
+
},
|
|
350
373
|
editMessageText: (messageId, text, params) => {
|
|
351
374
|
const { chatId } = mustGetMsg();
|
|
352
375
|
return this.editMessageText(chatId, messageId, text, params);
|
|
@@ -462,7 +485,7 @@ export class Client extends ClientAbstract {
|
|
|
462
485
|
_Client_connectionInited.set(this, false);
|
|
463
486
|
_Client_lastPropagatedAuthorizationState.set(this, null);
|
|
464
487
|
_Client_selfId.set(this, null);
|
|
465
|
-
|
|
488
|
+
_Client_pingLoopAbortController.set(this, null);
|
|
466
489
|
_Client_pingInterval.set(this, 60 * 1000); // 60 seconds
|
|
467
490
|
_Client_lastUpdates.set(this, new Date());
|
|
468
491
|
_Client_pingLoopStarted.set(this, false);
|
|
@@ -498,6 +521,12 @@ export class Client extends ClientAbstract {
|
|
|
498
521
|
//#region Composer
|
|
499
522
|
_Client_handle.set(this, skip);
|
|
500
523
|
this.storage = storage ?? new StorageMemory();
|
|
524
|
+
if (!(__classPrivateFieldSet(this, _Client_storeMessages, params?.storeMessages ?? false, "f"))) {
|
|
525
|
+
this.messageStorage = new StorageMemory();
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
this.messageStorage = this.storage;
|
|
529
|
+
}
|
|
501
530
|
__classPrivateFieldSet(this, _Client_parseMode, params?.parseMode ?? null, "f");
|
|
502
531
|
this.appVersion = params?.appVersion ?? APP_VERSION;
|
|
503
532
|
this.deviceModel = params?.deviceModel ?? DEVICE_MODEL;
|
|
@@ -513,6 +542,7 @@ export class Client extends ClientAbstract {
|
|
|
513
542
|
const c = {
|
|
514
543
|
api: this.api,
|
|
515
544
|
storage: this.storage,
|
|
545
|
+
messageStorage: this.messageStorage,
|
|
516
546
|
guaranteeUpdateDelivery: __classPrivateFieldGet(this, _Client_guaranteeUpdateDelivery, "f"),
|
|
517
547
|
setConnectionState: __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).bind(this),
|
|
518
548
|
resetConnectionState: () => this.stateChangeHandler(this.connected),
|
|
@@ -691,7 +721,7 @@ export class Client extends ClientAbstract {
|
|
|
691
721
|
release();
|
|
692
722
|
}
|
|
693
723
|
}
|
|
694
|
-
async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(),
|
|
724
|
+
async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_guaranteeUpdateDelivery = new WeakMap(), _Client_updateManager = new WeakMap(), _Client_networkStatisticsManager = new WeakMap(), _Client_botInfoManager = new WeakMap(), _Client_fileManager = new WeakMap(), _Client_reactionManager = new WeakMap(), _Client_messageManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_storeMessages = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_handle = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
|
|
695
725
|
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
|
|
696
726
|
__classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
|
|
697
727
|
}, _Client_setAuth = async function _Client_setAuth(key) {
|
|
@@ -717,7 +747,7 @@ export class Client extends ClientAbstract {
|
|
|
717
747
|
async disconnect() {
|
|
718
748
|
__classPrivateFieldSet(this, _Client_connectionInited, false, "f");
|
|
719
749
|
await super.disconnect();
|
|
720
|
-
__classPrivateFieldGet(this,
|
|
750
|
+
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.abort();
|
|
721
751
|
}
|
|
722
752
|
/**
|
|
723
753
|
* Calls [initConnection](1) and authorizes the client with one of the following:
|
|
@@ -1068,21 +1098,29 @@ export class Client extends ClientAbstract {
|
|
|
1068
1098
|
UNREACHABLE();
|
|
1069
1099
|
}
|
|
1070
1100
|
}, _Client_pingLoop = async function _Client_pingLoop() {
|
|
1071
|
-
__classPrivateFieldSet(this,
|
|
1101
|
+
__classPrivateFieldSet(this, _Client_pingLoopAbortController, new AbortController(), "f");
|
|
1072
1102
|
while (this.connected) {
|
|
1073
1103
|
try {
|
|
1074
1104
|
await new Promise((resolve, reject) => {
|
|
1075
|
-
setTimeout(resolve, __classPrivateFieldGet(this, _Client_pingInterval, "f"));
|
|
1076
|
-
__classPrivateFieldGet(this,
|
|
1077
|
-
reject(__classPrivateFieldGet(this,
|
|
1105
|
+
const timeout = setTimeout(resolve, __classPrivateFieldGet(this, _Client_pingInterval, "f"));
|
|
1106
|
+
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.onabort = () => {
|
|
1107
|
+
reject(__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f")?.signal.reason);
|
|
1108
|
+
clearTimeout(timeout);
|
|
1078
1109
|
};
|
|
1079
1110
|
});
|
|
1111
|
+
if (!this.connected) {
|
|
1112
|
+
continue;
|
|
1113
|
+
}
|
|
1114
|
+
__classPrivateFieldGet(this, _Client_pingLoopAbortController, "f").signal.throwIfAborted();
|
|
1080
1115
|
await this.api.ping_delay_disconnect({ ping_id: getRandomId(), disconnect_delay: __classPrivateFieldGet(this, _Client_pingInterval, "f") / 1000 + 15 });
|
|
1081
1116
|
if (Date.now() - __classPrivateFieldGet(this, _Client_lastUpdates, "f").getTime() >= 15 * 60 * 1000) {
|
|
1082
1117
|
drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("lastUpdates"));
|
|
1083
1118
|
}
|
|
1084
1119
|
}
|
|
1085
1120
|
catch (err) {
|
|
1121
|
+
if (!this.connected) {
|
|
1122
|
+
continue;
|
|
1123
|
+
}
|
|
1086
1124
|
d("ping loop error: %o", err);
|
|
1087
1125
|
}
|
|
1088
1126
|
}
|
|
@@ -1167,64 +1205,56 @@ export class Client extends ClientAbstract {
|
|
|
1167
1205
|
}
|
|
1168
1206
|
if (typeof id === "string") {
|
|
1169
1207
|
id = getUsername(id);
|
|
1170
|
-
let
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
if (type == "user") {
|
|
1176
|
-
userId = id;
|
|
1177
|
-
}
|
|
1178
|
-
else {
|
|
1179
|
-
channelId = id;
|
|
1180
|
-
}
|
|
1208
|
+
let resolvedId = 0;
|
|
1209
|
+
const maybeUsername = await this.messageStorage.getUsername(id);
|
|
1210
|
+
if (maybeUsername != null && Date.now() - maybeUsername[1].getTime() < USERNAME_TTL) {
|
|
1211
|
+
const [id] = maybeUsername;
|
|
1212
|
+
resolvedId = id;
|
|
1181
1213
|
}
|
|
1182
1214
|
else {
|
|
1183
1215
|
const resolved = await this.api.contacts.resolveUsername({ username: id });
|
|
1184
1216
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").processChats(resolved.chats);
|
|
1185
1217
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").processUsers(resolved.users);
|
|
1186
1218
|
if (resolved.peer instanceof types.PeerUser) {
|
|
1187
|
-
|
|
1219
|
+
resolvedId = peerToChatId(resolved.peer);
|
|
1188
1220
|
}
|
|
1189
1221
|
else if (resolved.peer instanceof types.PeerChannel) {
|
|
1190
|
-
|
|
1222
|
+
resolvedId = peerToChatId(resolved.peer);
|
|
1191
1223
|
}
|
|
1192
1224
|
else {
|
|
1193
1225
|
UNREACHABLE();
|
|
1194
1226
|
}
|
|
1195
1227
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1228
|
+
const resolvedIdType = getChatIdPeerType(resolvedId);
|
|
1229
|
+
if (resolvedIdType == "user") {
|
|
1230
|
+
const accessHash = await this.storage.getUserAccessHash(resolvedId);
|
|
1231
|
+
return new types.InputPeerUser({ user_id: chatIdToPeerId(resolvedId), access_hash: accessHash ?? 0n });
|
|
1199
1232
|
}
|
|
1200
|
-
else if (
|
|
1201
|
-
const accessHash = await this.storage.getChannelAccessHash(
|
|
1202
|
-
return new types.InputPeerChannel({ channel_id:
|
|
1233
|
+
else if (resolvedIdType == "channel") {
|
|
1234
|
+
const accessHash = await this.storage.getChannelAccessHash(resolvedId);
|
|
1235
|
+
return new types.InputPeerChannel({ channel_id: chatIdToPeerId(resolvedId), access_hash: accessHash ?? 0n });
|
|
1203
1236
|
}
|
|
1204
1237
|
else {
|
|
1205
1238
|
UNREACHABLE();
|
|
1206
1239
|
}
|
|
1207
1240
|
}
|
|
1208
1241
|
else if (id > 0) {
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1211
|
-
return new types.InputPeerUser({ user_id: id_, access_hash: accessHash ?? 0n });
|
|
1242
|
+
const accessHash = await this.storage.getUserAccessHash(id);
|
|
1243
|
+
return new types.InputPeerUser({ user_id: chatIdToPeerId(id), access_hash: accessHash ?? 0n });
|
|
1212
1244
|
}
|
|
1213
1245
|
else if (-MAX_CHAT_ID <= id) {
|
|
1214
1246
|
return new types.InputPeerChat({ chat_id: BigInt(Math.abs(id)) });
|
|
1215
1247
|
}
|
|
1216
1248
|
else if (ZERO_CHANNEL_ID - MAX_CHANNEL_ID <= id && id != ZERO_CHANNEL_ID) {
|
|
1217
|
-
const
|
|
1218
|
-
|
|
1219
|
-
return new types.InputPeerChannel({ channel_id: id_, access_hash: accessHash ?? 0n });
|
|
1249
|
+
const accessHash = await this.storage.getChannelAccessHash(id);
|
|
1250
|
+
return new types.InputPeerChannel({ channel_id: chatIdToPeerId(id), access_hash: accessHash ?? 0n });
|
|
1220
1251
|
}
|
|
1221
1252
|
else {
|
|
1222
1253
|
throw new Error("ID format unknown or not implemented");
|
|
1223
1254
|
}
|
|
1224
1255
|
}, getEntity)](peer) {
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1227
|
-
return this.storage.getEntity(type, id);
|
|
1256
|
+
const id = peerToChatId(peer);
|
|
1257
|
+
return this.messageStorage.getEntity(id);
|
|
1228
1258
|
}
|
|
1229
1259
|
use(...middleware) {
|
|
1230
1260
|
const composer = new Composer(...middleware);
|
|
@@ -1320,6 +1350,16 @@ export class Client extends ClientAbstract {
|
|
|
1320
1350
|
async editMessageText(chatId, messageId, text, params) {
|
|
1321
1351
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageText(chatId, messageId, text, params);
|
|
1322
1352
|
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Edit an inline message's text.
|
|
1355
|
+
*
|
|
1356
|
+
* @method
|
|
1357
|
+
* @param inlineMessageId The inline message's identifier.
|
|
1358
|
+
* @param text The new text of the message.
|
|
1359
|
+
*/
|
|
1360
|
+
async editInlineMessageText(inlineMessageId, text, params) {
|
|
1361
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageText(inlineMessageId, text, params);
|
|
1362
|
+
}
|
|
1323
1363
|
/**
|
|
1324
1364
|
* Edit a message's reply markup.
|
|
1325
1365
|
*
|
|
@@ -1331,6 +1371,15 @@ export class Client extends ClientAbstract {
|
|
|
1331
1371
|
async editMessageReplyMarkup(chatId, messageId, params) {
|
|
1332
1372
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editMessageReplyMarkup(chatId, messageId, params);
|
|
1333
1373
|
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Edit an inline message's reply markup.
|
|
1376
|
+
*
|
|
1377
|
+
* @method
|
|
1378
|
+
* @param inlineMessageId The inline message's identifier.
|
|
1379
|
+
*/
|
|
1380
|
+
async editInlineMessageReplyMarkup(inlineMessageId, params) {
|
|
1381
|
+
return await __classPrivateFieldGet(this, _Client_messageManager, "f").editInlineMessageReplyMarkup(inlineMessageId, params);
|
|
1382
|
+
}
|
|
1334
1383
|
/**
|
|
1335
1384
|
* Retrieve multiple messages.
|
|
1336
1385
|
*
|
|
@@ -1865,14 +1914,14 @@ _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
|
1865
1914
|
}, _Client_handleUpdate = async function _Client_handleUpdate(update) {
|
|
1866
1915
|
const promises = new Array();
|
|
1867
1916
|
if (update instanceof types.UpdateUserName) {
|
|
1868
|
-
await this.
|
|
1917
|
+
await this.messageStorage.updateUsernames(Number(update.user_id), update.usernames.map((v) => v.username));
|
|
1869
1918
|
const peer = new types.PeerUser(update);
|
|
1870
1919
|
const entity = await this[getEntity](peer);
|
|
1871
1920
|
if (entity != null) {
|
|
1872
1921
|
entity.usernames = update.usernames;
|
|
1873
1922
|
entity.first_name = update.first_name;
|
|
1874
1923
|
entity.last_name = update.last_name;
|
|
1875
|
-
await this.
|
|
1924
|
+
await this.messageStorage.setEntity(entity);
|
|
1876
1925
|
}
|
|
1877
1926
|
}
|
|
1878
1927
|
if (MessageManager.canHandleUpdate(update)) {
|
|
@@ -1885,7 +1934,7 @@ _Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
|
1885
1934
|
finally {
|
|
1886
1935
|
if ("deletedMessages" in update_) {
|
|
1887
1936
|
for (const { chatId, messageId } of update_.deletedMessages) {
|
|
1888
|
-
await this.
|
|
1937
|
+
await this.messageStorage.setMessage(chatId, messageId, null);
|
|
1889
1938
|
await __classPrivateFieldGet(this, _Client_chatListManager, "f").reassignChatLastMessage(chatId);
|
|
1890
1939
|
}
|
|
1891
1940
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
import { CAN_NOT_DISPLAY } from "./_constants.js";
|
|
2
3
|
import { equal } from "./equal.js";
|
|
3
4
|
import { AssertionError } from "./assertion_error.js";
|
|
4
5
|
/**
|
|
@@ -25,13 +26,13 @@ export function assertNotEquals(actual, expected, msg) {
|
|
|
25
26
|
actualString = String(actual);
|
|
26
27
|
}
|
|
27
28
|
catch {
|
|
28
|
-
actualString =
|
|
29
|
+
actualString = CAN_NOT_DISPLAY;
|
|
29
30
|
}
|
|
30
31
|
try {
|
|
31
32
|
expectedString = String(expected);
|
|
32
33
|
}
|
|
33
34
|
catch {
|
|
34
|
-
expectedString =
|
|
35
|
+
expectedString = CAN_NOT_DISPLAY;
|
|
35
36
|
}
|
|
36
37
|
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
37
38
|
throw new AssertionError(`Expected actual: ${actualString} not to be: ${expectedString}${msgSuffix}`);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { validateBinaryLike } from "./_util.js";
|
|
4
3
|
/**
|
|
5
4
|
* Utilities for
|
|
6
|
-
*
|
|
5
|
+
* {@link https://datatracker.ietf.org/doc/html/rfc4648#section-4 | base64}
|
|
7
6
|
* encoding and decoding.
|
|
8
7
|
*
|
|
9
8
|
* This module is browser compatible.
|
|
10
9
|
*
|
|
11
10
|
* @module
|
|
12
11
|
*/
|
|
12
|
+
import { validateBinaryLike } from "./_util.js";
|
|
13
13
|
const base64abc = [
|
|
14
14
|
"A",
|
|
15
15
|
"B",
|
package/{script/deps/deno.land/std@0.212.0 → esm/deps/deno.land/std@0.214.0}/fmt/colors.d.ts
RENAMED
|
@@ -273,7 +273,7 @@ export declare function bgRgb24(str: string, color: number | Rgb): string;
|
|
|
273
273
|
*
|
|
274
274
|
* @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
|
|
275
275
|
*/
|
|
276
|
-
export declare
|
|
276
|
+
export declare function stripColor(string: string): string;
|
|
277
277
|
/**
|
|
278
278
|
* Remove ANSI escape codes from the string.
|
|
279
279
|
*
|
|
@@ -473,7 +473,9 @@ const ANSI_PATTERN = new RegExp([
|
|
|
473
473
|
*
|
|
474
474
|
* @deprecated (will be removed in 1.0.0) Use {@linkcode stripAnsiCode} instead.
|
|
475
475
|
*/
|
|
476
|
-
export
|
|
476
|
+
export function stripColor(string) {
|
|
477
|
+
return stripAnsiCode(string);
|
|
478
|
+
}
|
|
477
479
|
/**
|
|
478
480
|
* Remove ANSI escape codes from the string.
|
|
479
481
|
*
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { db } from "./_db.js";
|
|
2
|
-
|
|
3
|
-
type
|
|
2
|
+
/** MIME-types database. */
|
|
3
|
+
export type DB = typeof db;
|
|
4
|
+
/** Maps content types to their corresponding file extensions. */
|
|
5
|
+
export type ContentTypeToExtension = {
|
|
4
6
|
[K in keyof DB]: DB[K] extends {
|
|
5
7
|
"extensions": readonly string[];
|
|
6
8
|
} ? DB[K]["extensions"][number] : never;
|
|
7
9
|
};
|
|
8
|
-
|
|
10
|
+
/** Known extension or type. Used in {@linkcode contentType}. */
|
|
11
|
+
export type KnownExtensionOrType = keyof ContentTypeToExtension | ContentTypeToExtension[keyof ContentTypeToExtension] | `.${ContentTypeToExtension[keyof ContentTypeToExtension]}`;
|
|
9
12
|
/**
|
|
10
13
|
* Given an extension or media type, return a full `Content-Type` or
|
|
11
14
|
* `Content-Disposition` header value.
|
|
@@ -26,13 +29,12 @@ type KnownExtensionOrType = keyof ContentTypeToExtension | ContentTypeToExtensio
|
|
|
26
29
|
* ```ts
|
|
27
30
|
* import { contentType } from "https://deno.land/std@$STD_VERSION/media_types/content_type.ts";
|
|
28
31
|
*
|
|
29
|
-
* contentType(".json"); //
|
|
30
|
-
* contentType("text/html"); //
|
|
31
|
-
* contentType("text/html; charset=UTF-8"); //
|
|
32
|
-
* contentType("txt"); //
|
|
32
|
+
* contentType(".json"); // "application/json; charset=UTF-8"
|
|
33
|
+
* contentType("text/html"); // "text/html; charset=UTF-8"
|
|
34
|
+
* contentType("text/html; charset=UTF-8"); // "text/html; charset=UTF-8"
|
|
35
|
+
* contentType("txt"); // "text/plain; charset=UTF-8"
|
|
33
36
|
* contentType("foo"); // undefined
|
|
34
37
|
* contentType("file.json"); // undefined
|
|
35
38
|
* ```
|
|
36
39
|
*/
|
|
37
40
|
export declare function contentType<T extends (string & {}) | KnownExtensionOrType>(extensionOrType: T): Lowercase<T> extends KnownExtensionOrType ? string : string | undefined;
|
|
38
|
-
export {};
|
|
@@ -24,10 +24,10 @@ import { typeByExtension } from "./type_by_extension.js";
|
|
|
24
24
|
* ```ts
|
|
25
25
|
* import { contentType } from "https://deno.land/std@$STD_VERSION/media_types/content_type.ts";
|
|
26
26
|
*
|
|
27
|
-
* contentType(".json"); //
|
|
28
|
-
* contentType("text/html"); //
|
|
29
|
-
* contentType("text/html; charset=UTF-8"); //
|
|
30
|
-
* contentType("txt"); //
|
|
27
|
+
* contentType(".json"); // "application/json; charset=UTF-8"
|
|
28
|
+
* contentType("text/html"); // "text/html; charset=UTF-8"
|
|
29
|
+
* contentType("text/html; charset=UTF-8"); // "text/html; charset=UTF-8"
|
|
30
|
+
* contentType("txt"); // "text/plain; charset=UTF-8"
|
|
31
31
|
* contentType("foo"); // undefined
|
|
32
32
|
* contentType("file.json"); // undefined
|
|
33
33
|
* ```
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* ```ts
|
|
9
9
|
* import { extension } from "https://deno.land/std@$STD_VERSION/media_types/extension.ts";
|
|
10
10
|
*
|
|
11
|
-
* extension("text/plain"); //
|
|
12
|
-
* extension("application/json"); //
|
|
13
|
-
* extension("text/html; charset=UTF-8"); //
|
|
11
|
+
* extension("text/plain"); // "txt"
|
|
12
|
+
* extension("application/json"); // "json"
|
|
13
|
+
* extension("text/html; charset=UTF-8"); // "html"
|
|
14
14
|
* extension("application/foo"); // undefined
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
@@ -11,9 +11,9 @@ import { extensionsByType } from "./extensions_by_type.js";
|
|
|
11
11
|
* ```ts
|
|
12
12
|
* import { extension } from "https://deno.land/std@$STD_VERSION/media_types/extension.ts";
|
|
13
13
|
*
|
|
14
|
-
* extension("text/plain"); //
|
|
15
|
-
* extension("application/json"); //
|
|
16
|
-
* extension("text/html; charset=UTF-8"); //
|
|
14
|
+
* extension("text/plain"); // "txt"
|
|
15
|
+
* extension("application/json"); // "json"
|
|
16
|
+
* extension("text/html; charset=UTF-8"); // "html"
|
|
17
17
|
* extension("application/foo"); // undefined
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* import { formatMediaType } from "https://deno.land/std@$STD_VERSION/media_types/format_media_type.ts";
|
|
12
12
|
*
|
|
13
|
-
* formatMediaType("text/plain", { charset: "UTF-8" }); //
|
|
13
|
+
* formatMediaType("text/plain", { charset: "UTF-8" }); // "text/plain; charset=UTF-8"
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
export declare function formatMediaType(type: string, param?: Record<string, string> | Iterable<[string, string]>): string;
|
|
@@ -13,7 +13,7 @@ import { isIterator, isToken, needsEncoding } from "./_util.js";
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* import { formatMediaType } from "https://deno.land/std@$STD_VERSION/media_types/format_media_type.ts";
|
|
15
15
|
*
|
|
16
|
-
* formatMediaType("text/plain", { charset: "UTF-8" }); //
|
|
16
|
+
* formatMediaType("text/plain", { charset: "UTF-8" }); // "text/plain; charset=UTF-8"
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export function formatMediaType(type, param) {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* ```ts
|
|
7
7
|
* import { getCharset } from "https://deno.land/std@$STD_VERSION/media_types/get_charset.ts";
|
|
8
8
|
*
|
|
9
|
-
* getCharset("text/plain"); //
|
|
9
|
+
* getCharset("text/plain"); // "UTF-8"
|
|
10
10
|
* getCharset("application/foo"); // undefined
|
|
11
|
-
* getCharset("application/news-checkgroups"); //
|
|
12
|
-
* getCharset("application/news-checkgroups; charset=UTF-8"); //
|
|
11
|
+
* getCharset("application/news-checkgroups"); // "US-ASCII"
|
|
12
|
+
* getCharset("application/news-checkgroups; charset=UTF-8"); // "UTF-8"
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export declare function getCharset(type: string): string | undefined;
|
|
@@ -10,10 +10,10 @@ import { db } from "./_db.js";
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* import { getCharset } from "https://deno.land/std@$STD_VERSION/media_types/get_charset.ts";
|
|
12
12
|
*
|
|
13
|
-
* getCharset("text/plain"); //
|
|
13
|
+
* getCharset("text/plain"); // "UTF-8"
|
|
14
14
|
* getCharset("application/foo"); // undefined
|
|
15
|
-
* getCharset("application/news-checkgroups"); //
|
|
16
|
-
* getCharset("application/news-checkgroups; charset=UTF-8"); //
|
|
15
|
+
* getCharset("application/news-checkgroups"); // "US-ASCII"
|
|
16
|
+
* getCharset("application/news-checkgroups; charset=UTF-8"); // "UTF-8"
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export function getCharset(type) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses the media type and any optional parameters, per
|
|
3
|
+
* {@link https://datatracker.ietf.org/doc/html/rfc1521 | RFC 1521}. Media
|
|
4
|
+
* types are the values in `Content-Type` and `Content-Disposition` headers. On
|
|
5
|
+
* success the function returns a tuple where the first element is the media
|
|
6
|
+
* type and the second element is the optional parameters or `undefined` if
|
|
7
|
+
* there are none.
|
|
8
|
+
*
|
|
9
|
+
* The function will throw if the parsed value is invalid.
|
|
10
|
+
*
|
|
11
|
+
* The returned media type will be normalized to be lower case, and returned
|
|
12
|
+
* params keys will be normalized to lower case, but preserves the casing of
|
|
13
|
+
* the value.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { parseMediaType } from "https://deno.land/std@$STD_VERSION/media_types/parse_media_type.ts";
|
|
18
|
+
*
|
|
19
|
+
* parseMediaType("application/JSON"); // ["application/json", undefined]
|
|
20
|
+
* parseMediaType("text/html; charset=UTF-8"); // ["text/html", { charset: "UTF-8" }]
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function parseMediaType(v: string): [mediaType: string, params: Record<string, string> | undefined];
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import { consumeMediaParam, decode2331Encoding } from "./_util.js";
|
|
4
4
|
/**
|
|
5
5
|
* Parses the media type and any optional parameters, per
|
|
6
|
-
*
|
|
7
|
-
* the values in `Content-Type` and `Content-Disposition` headers. On
|
|
8
|
-
* the function returns a tuple where the first element is the media
|
|
9
|
-
* the second element is the optional parameters or `undefined` if
|
|
10
|
-
* none.
|
|
6
|
+
* {@link https://datatracker.ietf.org/doc/html/rfc1521 | RFC 1521}. Media
|
|
7
|
+
* types are the values in `Content-Type` and `Content-Disposition` headers. On
|
|
8
|
+
* success the function returns a tuple where the first element is the media
|
|
9
|
+
* type and the second element is the optional parameters or `undefined` if
|
|
10
|
+
* there are none.
|
|
11
11
|
*
|
|
12
12
|
* The function will throw if the parsed value is invalid.
|
|
13
13
|
*
|
|
@@ -18,23 +18,9 @@ import { consumeMediaParam, decode2331Encoding } from "./_util.js";
|
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
20
|
* import { parseMediaType } from "https://deno.land/std@$STD_VERSION/media_types/parse_media_type.ts";
|
|
21
|
-
* import { assertEquals } from "https://deno.land/std@$STD_VERSION/assert/assert_equals.ts";
|
|
22
21
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* [
|
|
26
|
-
* "application/json",
|
|
27
|
-
* undefined
|
|
28
|
-
* ]
|
|
29
|
-
* );
|
|
30
|
-
*
|
|
31
|
-
* assertEquals(
|
|
32
|
-
* parseMediaType("text/html; charset=UTF-8"),
|
|
33
|
-
* [
|
|
34
|
-
* "text/html",
|
|
35
|
-
* { charset: "UTF-8" },
|
|
36
|
-
* ]
|
|
37
|
-
* );
|
|
22
|
+
* parseMediaType("application/JSON"); // ["application/json", undefined]
|
|
23
|
+
* parseMediaType("text/html; charset=UTF-8"); // ["text/html", { charset: "UTF-8" }]
|
|
38
24
|
* ```
|
|
39
25
|
*/
|
|
40
26
|
export function parseMediaType(v) {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* ```ts
|
|
9
9
|
* import { typeByExtension } from "https://deno.land/std@$STD_VERSION/media_types/type_by_extension.ts";
|
|
10
10
|
*
|
|
11
|
-
* typeByExtension("js"); //
|
|
12
|
-
* typeByExtension(".HTML"); //
|
|
11
|
+
* typeByExtension("js"); // "application/json"
|
|
12
|
+
* typeByExtension(".HTML"); // "text/html"
|
|
13
13
|
* typeByExtension("foo"); // undefined
|
|
14
14
|
* typeByExtension("file.json"); // undefined
|
|
15
15
|
* ```
|
|
@@ -11,8 +11,8 @@ import { types } from "./_db.js";
|
|
|
11
11
|
* ```ts
|
|
12
12
|
* import { typeByExtension } from "https://deno.land/std@$STD_VERSION/media_types/type_by_extension.ts";
|
|
13
13
|
*
|
|
14
|
-
* typeByExtension("js"); //
|
|
15
|
-
* typeByExtension(".HTML"); //
|
|
14
|
+
* typeByExtension("js"); // "application/json"
|
|
15
|
+
* typeByExtension(".HTML"); // "text/html"
|
|
16
16
|
* typeByExtension("foo"); // undefined
|
|
17
17
|
* typeByExtension("file.json"); // undefined
|
|
18
18
|
* ```
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SEP } from "./separator.js";
|
|
2
1
|
/** Determines the common path from a set of paths, using an optional separator,
|
|
3
2
|
* which defaults to the OS default separator.
|
|
4
3
|
*
|
|
@@ -11,4 +10,4 @@ import { SEP } from "./separator.js";
|
|
|
11
10
|
* console.log(p); // "./deno/std/"
|
|
12
11
|
* ```
|
|
13
12
|
*/
|
|
14
|
-
export declare function common(paths: string[], sep?:
|
|
13
|
+
export declare function common(paths: string[], sep?: string): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { _common } from "./_common/common.js";
|
|
4
|
-
import {
|
|
4
|
+
import { SEPARATOR } from "./constants.js";
|
|
5
5
|
/** Determines the common path from a set of paths, using an optional separator,
|
|
6
6
|
* which defaults to the OS default separator.
|
|
7
7
|
*
|
|
@@ -14,6 +14,6 @@ import { SEP } from "./separator.js";
|
|
|
14
14
|
* console.log(p); // "./deno/std/"
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
export function common(paths, sep =
|
|
17
|
+
export function common(paths, sep = SEPARATOR) {
|
|
18
18
|
return _common(paths, sep);
|
|
19
19
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { isWindows } from "./_os.js";
|
|
4
|
+
export const DELIMITER = isWindows ? ";" : ":";
|
|
5
|
+
export const SEPARATOR = isWindows ? "\\" : "/";
|
|
6
|
+
export const SEPARATOR_PATTERN = isWindows ? /[\\/]+/ : /\/+/;
|