@mtkruto/node 0.1.153 → 0.1.155
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 +6 -8
- package/esm/0_deps.js +14 -9
- package/esm/1_utilities.d.ts +3 -1
- package/esm/1_utilities.js +3 -1
- package/esm/4_constants.d.ts +2 -2
- package/esm/4_constants.js +4 -4
- package/esm/5_client.d.ts +0 -1
- package/esm/5_client.js +0 -1
- package/esm/client/0_params.d.ts +13 -1
- package/esm/client/0_types.d.ts +1 -0
- package/esm/client/1_file_manager.js +12 -10
- package/esm/client/1_update_manager.js +27 -20
- package/esm/client/2_client_plain.js +22 -15
- package/esm/client/2_message_manager.d.ts +1 -0
- package/esm/client/2_message_manager.js +12 -6
- package/esm/client/3_chat_list_manager.js +7 -6
- package/esm/client/4_client.d.ts +16 -2
- package/esm/client/4_client.js +85 -39
- package/esm/connection/1_connection_web_socket.js +9 -10
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/assert/assert_rejects.d.ts +4 -0
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/assert/assert_throws.d.ts +6 -0
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/assert/unreachable.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unreachable.js +2 -2
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/base64.js +12 -9
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/_db.d.ts +3 -1
- package/esm/deps/deno.land/std@0.218.0/media_types/_db.js +32 -0
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/media_types/_util.d.ts +0 -2
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/_util.js +0 -2
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/media_types/extensions_by_type.d.ts +1 -3
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extensions_by_type.js +1 -3
- package/esm/deps/deno.land/std@0.218.0/path/_common/assert_path.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/glob_to_reg_exp.js +3 -1
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/path/format.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/glob_to_regexp.d.ts +1 -1
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/path/mod.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/mod.js +1 -1
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/path/posix/glob_to_regexp.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join_globs.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize_glob.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/parse.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0/path/posix → std@0.218.0/path/windows}/glob_to_regexp.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join_globs.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize_glob.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/parse.d.ts +1 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +1 -0
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +1 -0
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +1 -5
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +2 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +1 -5
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +1 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +8 -8
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +2 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +21 -19
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +3 -3
- package/esm/mod.d.ts +1 -2
- package/esm/mod.js +1 -2
- package/esm/storage/0_storage.d.ts +2 -0
- package/esm/storage/0_storage.js +21 -2
- package/esm/storage/1_storage_memory.d.ts +2 -1
- package/esm/storage/1_storage_memory.js +15 -10
- package/esm/tl/2_types.d.ts +44 -6
- package/esm/tl/2_types.js +143 -20
- package/esm/tl/3_functions.d.ts +36 -0
- package/esm/tl/3_functions.js +88 -0
- package/esm/types/4_message.js +3 -4
- package/esm/utilities/0_logger.d.ts +25 -0
- package/esm/utilities/0_logger.js +90 -0
- package/esm/utilities/0_mutex.d.ts +4 -0
- package/esm/utilities/0_mutex.js +26 -0
- package/esm/utilities/{0_queue.js → 1_queue.js} +6 -6
- package/package.json +1 -1
- package/script/0_deps.d.ts +6 -8
- package/script/0_deps.js +18 -15
- package/script/1_utilities.d.ts +3 -1
- package/script/1_utilities.js +3 -1
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +4 -4
- package/script/5_client.d.ts +0 -1
- package/script/5_client.js +0 -1
- package/script/client/0_params.d.ts +13 -1
- package/script/client/0_types.d.ts +1 -0
- package/script/client/1_file_manager.js +10 -8
- package/script/client/1_update_manager.js +26 -19
- package/script/client/2_client_plain.js +20 -13
- package/script/client/2_message_manager.d.ts +1 -0
- package/script/client/2_message_manager.js +10 -4
- package/script/client/3_chat_list_manager.js +6 -5
- package/script/client/4_client.d.ts +16 -2
- package/script/client/4_client.js +84 -38
- package/script/connection/1_connection_web_socket.js +11 -12
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/assert/assert_rejects.d.ts +4 -0
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/assert/assert_throws.d.ts +6 -0
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/assert/unreachable.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unreachable.js +2 -2
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/base64.js +12 -9
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/_db.d.ts +3 -1
- package/script/deps/deno.land/std@0.218.0/media_types/_db.js +39 -0
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/media_types/_util.d.ts +0 -2
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/_util.js +1 -3
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/media_types/extensions_by_type.d.ts +1 -3
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extensions_by_type.js +3 -5
- package/script/deps/deno.land/std@0.218.0/path/_common/assert_path.d.ts +1 -0
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/glob_to_reg_exp.js +3 -1
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/path/format.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/glob_to_regexp.d.ts +1 -1
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/path/mod.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/mod.js +1 -1
- package/{esm/deps/deno.land/std@0.216.0/path/windows → script/deps/deno.land/std@0.218.0/path/posix}/glob_to_regexp.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join_globs.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize_glob.d.ts +1 -1
- package/script/deps/deno.land/std@0.218.0/path/posix/parse.d.ts +6 -0
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/glob_to_regexp.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join_globs.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize_glob.d.ts +1 -1
- package/script/deps/deno.land/std@0.218.0/path/windows/parse.d.ts +6 -0
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +1 -0
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +6 -0
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +1 -7
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +2 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +1 -7
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +1 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +8 -8
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +2 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +21 -19
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +3 -3
- package/script/mod.d.ts +1 -2
- package/script/mod.js +2 -2
- package/script/storage/0_storage.d.ts +2 -0
- package/script/storage/0_storage.js +19 -0
- package/script/storage/1_storage_memory.d.ts +2 -1
- package/script/storage/1_storage_memory.js +15 -10
- package/script/tl/2_types.d.ts +44 -6
- package/script/tl/2_types.js +168 -43
- package/script/tl/3_functions.d.ts +36 -0
- package/script/tl/3_functions.js +93 -3
- package/script/types/4_message.js +2 -3
- package/script/utilities/0_logger.d.ts +25 -0
- package/script/utilities/0_logger.js +118 -0
- package/script/utilities/0_mutex.d.ts +4 -0
- package/script/utilities/0_mutex.js +30 -0
- package/script/utilities/{0_queue.js → 1_queue.js} +6 -6
- package/esm/_dnt.polyfills.d.ts +0 -6
- package/esm/_dnt.polyfills.js +0 -1
- package/esm/client/5_session_string.d.ts +0 -3
- package/esm/client/5_session_string.js +0 -22
- package/esm/deps/deno.land/std@0.216.0/media_types/_db.js +0 -33
- package/esm/deps/deno.land/std@0.216.0/path/_common/assert_path.d.ts +0 -1
- package/esm/deps/deno.land/std@0.69.0/fmt/colors.d.ts +0 -77
- package/esm/deps/deno.land/std@0.69.0/fmt/colors.js +0 -224
- package/esm/deps/deno.land/x/crc32@v0.2.0/mod.d.ts +0 -15
- package/esm/deps/deno.land/x/crc32@v0.2.0/mod.js +0 -105
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.d.ts +0 -16
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js +0 -239
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/colors.d.ts +0 -3
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/colors.js +0 -71
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/debug.d.ts +0 -22
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/debug.js +0 -112
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/deps.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/deps.js +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/format.d.ts +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/format.js +0 -39
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/mod.d.ts +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/mod.js +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/mod.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/mod.js +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/mutex.d.ts +0 -26
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/mutex.js +0 -32
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/semaphore.d.ts +0 -41
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/semaphore.js +0 -113
- package/esm/deps/raw.githubusercontent.com/MTKruto/object-inspect/main/index.d.ts +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/object-inspect/main/index.js +0 -524
- package/script/_dnt.polyfills.d.ts +0 -6
- package/script/_dnt.polyfills.js +0 -2
- package/script/client/5_session_string.d.ts +0 -3
- package/script/client/5_session_string.js +0 -27
- package/script/deps/deno.land/std@0.216.0/media_types/_db.js +0 -39
- package/script/deps/deno.land/std@0.216.0/path/_common/assert_path.d.ts +0 -1
- package/script/deps/deno.land/std@0.216.0/path/posix/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.216.0/path/windows/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.69.0/fmt/colors.d.ts +0 -77
- package/script/deps/deno.land/std@0.69.0/fmt/colors.js +0 -298
- package/script/deps/deno.land/x/crc32@v0.2.0/mod.d.ts +0 -15
- package/script/deps/deno.land/x/crc32@v0.2.0/mod.js +0 -113
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.d.ts +0 -16
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js +0 -271
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/colors.d.ts +0 -3
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/colors.js +0 -98
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/debug.d.ts +0 -22
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/debug.js +0 -141
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/deps.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/deps.js +0 -32
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/format.d.ts +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/format.js +0 -43
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/mod.d.ts +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/mod.js +0 -17
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/mod.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/mod.js +0 -18
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/mutex.d.ts +0 -26
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/mutex.js +0 -36
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/semaphore.d.ts +0 -41
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/semaphore.js +0 -117
- package/script/deps/raw.githubusercontent.com/MTKruto/object-inspect/main/index.d.ts +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/object-inspect/main/index.js +0 -550
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_namespaced_path.js +0 -0
- /package/esm/utilities/{0_queue.d.ts → 1_queue.d.ts} +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/utilities/{0_queue.d.ts → 1_queue.d.ts} +0 -0
package/esm/client/4_client.d.ts
CHANGED
|
@@ -133,6 +133,10 @@ export interface Context {
|
|
|
133
133
|
setChatMemberRights: (memberId: ID, params?: SetChatMemberRightsParams) => Promise<void>;
|
|
134
134
|
/** Delete all messages sent by a specific member of the chat which the message was received from. */
|
|
135
135
|
deleteChatMemberMessages: (userId: ID) => Promise<void>;
|
|
136
|
+
/** Search the messages of the chat which the message was received from. */
|
|
137
|
+
searchMessages: (query: string, params?: SearchMessagesParams) => Promise<Message[]>;
|
|
138
|
+
/** Set the number of boosts required to circument the chat's default restrictions. */
|
|
139
|
+
setBoostsRequiredToCircumventRestrictions: (boosts: number) => Promise<void>;
|
|
136
140
|
toJSON: () => Update;
|
|
137
141
|
}
|
|
138
142
|
export declare function skipInvoke<C extends Context>(): InvokeErrorHandler<Client<C>>;
|
|
@@ -182,11 +186,11 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
182
186
|
/**
|
|
183
187
|
* Constructs the client.
|
|
184
188
|
*
|
|
185
|
-
* @param storage The storage provider to use. Defaults to memory storage.
|
|
189
|
+
* @param storage The storage provider to use. Defaults to memory storage. Passing a string constructs a memory storage with the string being the string session.
|
|
186
190
|
* @param apiId App's API ID from [my.telegram.org](https://my.telegram.org/apps). Defaults to 0 (unset).
|
|
187
191
|
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps). Defaults to empty string (unset).
|
|
188
192
|
*/
|
|
189
|
-
constructor(storage?: Storage | null, apiId?: number | null, apiHash?: string | null, params?: ClientParams);
|
|
193
|
+
constructor(storage?: Storage | string | null, apiId?: number | null, apiHash?: string | null, params?: ClientParams);
|
|
190
194
|
api: Api;
|
|
191
195
|
protected stateChangeHandler: (connected: boolean) => void;
|
|
192
196
|
/**
|
|
@@ -242,6 +246,8 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
242
246
|
* Alias for `invoke` with its second parameter being `true`.
|
|
243
247
|
*/
|
|
244
248
|
send<T extends (functions.Function<unknown> | types.Type) = functions.Function<unknown>>(function_: T): Promise<void>;
|
|
249
|
+
exportAuthString(): Promise<string>;
|
|
250
|
+
importAuthString(authString: string): Promise<void>;
|
|
245
251
|
getInputPeer(id: ID): Promise<import("../tl/2_types.js").InputPeerSelf_ | import("../tl/2_types.js").InputPeerChat_ | import("../tl/2_types.js").InputPeerUser_ | import("../tl/2_types.js").InputPeerChannel_>;
|
|
246
252
|
getInputChannel(id: ID): Promise<import("../tl/2_types.js").InputChannel_>;
|
|
247
253
|
getInputUser(id: ID): Promise<import("../tl/2_types.js").InputUser_>;
|
|
@@ -862,5 +868,13 @@ export declare class Client<C extends Context = Context> extends ClientAbstract
|
|
|
862
868
|
* @param query The message search query.
|
|
863
869
|
*/
|
|
864
870
|
searchMessages(chatId: ID, query: string, params?: SearchMessagesParams): Promise<Message[]>;
|
|
871
|
+
/**
|
|
872
|
+
* Set the number of boosts required to circument a chat's default restrictions.
|
|
873
|
+
*
|
|
874
|
+
* @method ch
|
|
875
|
+
* @param chatId The identifier of the chat.
|
|
876
|
+
* @param boosts The number of boosts required to circumvent its restrictions.
|
|
877
|
+
*/
|
|
878
|
+
setBoostsRequiredToCircumventRestrictions(chatId: ID, boosts: number): Promise<void>;
|
|
865
879
|
}
|
|
866
880
|
export {};
|
package/esm/client/4_client.js
CHANGED
|
@@ -9,9 +9,9 @@ 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_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _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
|
-
import {
|
|
14
|
-
import { bigIntFromBuffer, cleanObject, drop, getRandomBigInt, getRandomId, mustPrompt, mustPromptOneOf, sha1, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
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_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_parseMode, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_storeMessages, _Client_id, _Client_L, _Client_Lauthorize, _Client_LreceiveLoop, _Client_LpingLoop, _Client_Linvoke, _Client_LhandleMigrationError, _Client_L$initConncetion, _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
|
+
import { gunzip } from "../0_deps.js";
|
|
14
|
+
import { bigIntFromBuffer, cleanObject, drop, getLogger, getRandomBigInt, getRandomId, mustPrompt, mustPromptOneOf, Mutex, sha1, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
15
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";
|
|
@@ -36,9 +36,7 @@ import { CallbackQueryManager } from "./3_callback_query_manager.js";
|
|
|
36
36
|
import { ChatListManager } from "./3_chat_list_manager.js";
|
|
37
37
|
import { InlineQueryManager } from "./3_inline_query_manager.js";
|
|
38
38
|
import { StoryManager } from "./3_story_manager.js";
|
|
39
|
-
|
|
40
|
-
const dAuth = debug("Client/authorize");
|
|
41
|
-
const dRecv = debug("Client/receiveLoop");
|
|
39
|
+
let id = 0;
|
|
42
40
|
const getEntity = Symbol();
|
|
43
41
|
export const handleMigrationError = Symbol();
|
|
44
42
|
const functionNamespaces = Object.entries(functions).filter(([, v]) => !(v instanceof Function)).map(([k]) => k);
|
|
@@ -50,7 +48,7 @@ export class Client extends ClientAbstract {
|
|
|
50
48
|
/**
|
|
51
49
|
* Constructs the client.
|
|
52
50
|
*
|
|
53
|
-
* @param storage The storage provider to use. Defaults to memory storage.
|
|
51
|
+
* @param storage The storage provider to use. Defaults to memory storage. Passing a string constructs a memory storage with the string being the string session.
|
|
54
52
|
* @param apiId App's API ID from [my.telegram.org](https://my.telegram.org/apps). Defaults to 0 (unset).
|
|
55
53
|
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps). Defaults to empty string (unset).
|
|
56
54
|
*/
|
|
@@ -140,6 +138,14 @@ export class Client extends ClientAbstract {
|
|
|
140
138
|
_Client_ignoreOutgoing.set(this, void 0);
|
|
141
139
|
_Client_prefixes.set(this, void 0);
|
|
142
140
|
_Client_storeMessages.set(this, void 0);
|
|
141
|
+
_Client_id.set(this, void 0);
|
|
142
|
+
_Client_L.set(this, void 0);
|
|
143
|
+
_Client_Lauthorize.set(this, void 0);
|
|
144
|
+
_Client_LreceiveLoop.set(this, void 0);
|
|
145
|
+
_Client_LpingLoop.set(this, void 0);
|
|
146
|
+
_Client_Linvoke.set(this, void 0);
|
|
147
|
+
_Client_LhandleMigrationError.set(this, void 0);
|
|
148
|
+
_Client_L$initConncetion.set(this, void 0);
|
|
143
149
|
_Client_namespaceProxies.set(this, (() => {
|
|
144
150
|
// deno-lint-ignore no-explicit-any
|
|
145
151
|
const proxies = {};
|
|
@@ -467,6 +473,14 @@ export class Client extends ClientAbstract {
|
|
|
467
473
|
const { chatId } = mustGetMsg();
|
|
468
474
|
return this.deleteChatMemberMessages(chatId, userId);
|
|
469
475
|
},
|
|
476
|
+
searchMessages: (query, params) => {
|
|
477
|
+
const { chatId } = mustGetMsg();
|
|
478
|
+
return this.searchMessages(chatId, query, params);
|
|
479
|
+
},
|
|
480
|
+
setBoostsRequiredToCircumventRestrictions: (boosts) => {
|
|
481
|
+
const { chatId } = mustGetMsg();
|
|
482
|
+
return this.setBoostsRequiredToCircumventRestrictions(chatId, boosts);
|
|
483
|
+
},
|
|
470
484
|
};
|
|
471
485
|
return cleanObject(context);
|
|
472
486
|
});
|
|
@@ -476,7 +490,7 @@ export class Client extends ClientAbstract {
|
|
|
476
490
|
configurable: true,
|
|
477
491
|
writable: true,
|
|
478
492
|
value: ((connected) => {
|
|
479
|
-
__classPrivateFieldGet(this, _Client_connectMutex, "f").
|
|
493
|
+
__classPrivateFieldGet(this, _Client_connectMutex, "f").lock().then((unlock) => {
|
|
480
494
|
try {
|
|
481
495
|
const connectionState = connected ? "ready" : "notConnected";
|
|
482
496
|
if (this.connected == connected && __classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") != connectionState) {
|
|
@@ -484,7 +498,7 @@ export class Client extends ClientAbstract {
|
|
|
484
498
|
}
|
|
485
499
|
}
|
|
486
500
|
finally {
|
|
487
|
-
|
|
501
|
+
unlock();
|
|
488
502
|
}
|
|
489
503
|
});
|
|
490
504
|
}).bind(this)
|
|
@@ -529,8 +543,9 @@ export class Client extends ClientAbstract {
|
|
|
529
543
|
_Client_lastGetMe.set(this, null);
|
|
530
544
|
//#region Composer
|
|
531
545
|
_Client_handle.set(this, skip);
|
|
532
|
-
this.storage = storage ?? new StorageMemory();
|
|
533
|
-
|
|
546
|
+
this.storage = typeof storage === "string" ? new StorageMemory(storage) : storage ?? new StorageMemory();
|
|
547
|
+
__classPrivateFieldSet(this, _Client_storeMessages, params?.storeMessages ?? false, "f");
|
|
548
|
+
if (!__classPrivateFieldGet(this, _Client_storeMessages, "f")) {
|
|
534
549
|
this.messageStorage = new StorageMemory();
|
|
535
550
|
}
|
|
536
551
|
else {
|
|
@@ -548,7 +563,16 @@ export class Client extends ClientAbstract {
|
|
|
548
563
|
__classPrivateFieldSet(this, _Client_ignoreOutgoing, params?.ignoreOutgoing ?? null, "f");
|
|
549
564
|
__classPrivateFieldSet(this, _Client_prefixes, params?.prefixes, "f");
|
|
550
565
|
__classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
|
|
566
|
+
__classPrivateFieldSet(this, _Client_id, id++, "f");
|
|
567
|
+
const L = __classPrivateFieldSet(this, _Client_L, getLogger("Client").client(__classPrivateFieldGet(this, _Client_id, "f")), "f");
|
|
568
|
+
__classPrivateFieldSet(this, _Client_Lauthorize, L.branch("authorize"), "f");
|
|
569
|
+
__classPrivateFieldSet(this, _Client_LreceiveLoop, L.branch("receiveLoop"), "f");
|
|
570
|
+
__classPrivateFieldSet(this, _Client_LpingLoop, L.branch("pingLoop"), "f");
|
|
571
|
+
__classPrivateFieldSet(this, _Client_Linvoke, L.branch("invoke"), "f");
|
|
572
|
+
__classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
|
|
573
|
+
__classPrivateFieldSet(this, _Client_L$initConncetion, L.branch("#initConnection"), "f");
|
|
551
574
|
const c = {
|
|
575
|
+
id,
|
|
552
576
|
api: this.api,
|
|
553
577
|
storage: this.storage,
|
|
554
578
|
messageStorage: this.messageStorage,
|
|
@@ -631,20 +655,20 @@ export class Client extends ClientAbstract {
|
|
|
631
655
|
drop((async () => {
|
|
632
656
|
if (connectionState == "notConnected") {
|
|
633
657
|
if (!this.transport?.transport.initialized) {
|
|
634
|
-
|
|
658
|
+
L.debug("not reconnecting");
|
|
635
659
|
return;
|
|
636
660
|
}
|
|
637
661
|
let delay = 5;
|
|
638
662
|
while (!this.connected) {
|
|
639
|
-
|
|
663
|
+
L.debug("reconnecting");
|
|
640
664
|
try {
|
|
641
665
|
await this.connect();
|
|
642
|
-
|
|
666
|
+
L.debug("reconnected");
|
|
643
667
|
drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("reconnect"));
|
|
644
668
|
break;
|
|
645
669
|
}
|
|
646
670
|
catch (err) {
|
|
647
|
-
|
|
671
|
+
L.debug(`failed to reconnect, retrying in ${delay}:`, err);
|
|
648
672
|
}
|
|
649
673
|
await new Promise((r) => setTimeout(r, delay * 1000));
|
|
650
674
|
if (delay < 15) {
|
|
@@ -657,7 +681,7 @@ export class Client extends ClientAbstract {
|
|
|
657
681
|
});
|
|
658
682
|
this.invoke.use(async ({ error }, next) => {
|
|
659
683
|
if (error instanceof FloodWait && error.seconds <= 10) {
|
|
660
|
-
|
|
684
|
+
L.warning("sleeping for", error.seconds, "because of:", error);
|
|
661
685
|
await new Promise((r) => setTimeout(r, 1000 * error.seconds));
|
|
662
686
|
return true;
|
|
663
687
|
}
|
|
@@ -691,7 +715,7 @@ export class Client extends ClientAbstract {
|
|
|
691
715
|
if (this.connected) {
|
|
692
716
|
return;
|
|
693
717
|
}
|
|
694
|
-
const
|
|
718
|
+
const unlock = await __classPrivateFieldGet(this, _Client_connectMutex, "f").lock();
|
|
695
719
|
try {
|
|
696
720
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
697
721
|
const authKey = await this.storage.getAuthKey();
|
|
@@ -723,17 +747,17 @@ export class Client extends ClientAbstract {
|
|
|
723
747
|
if (dc == null) {
|
|
724
748
|
await this.storage.setDc(this.initialDc);
|
|
725
749
|
}
|
|
726
|
-
|
|
750
|
+
__classPrivateFieldGet(this, _Client_L, "f").debug("connected");
|
|
727
751
|
drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_receiveLoop).call(this));
|
|
728
752
|
if (__classPrivateFieldGet(this, _Client_pingLoopStarted, "f")) {
|
|
729
753
|
drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
|
|
730
754
|
}
|
|
731
755
|
}
|
|
732
756
|
finally {
|
|
733
|
-
|
|
757
|
+
unlock();
|
|
734
758
|
}
|
|
735
759
|
}
|
|
736
|
-
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_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = 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) {
|
|
760
|
+
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_storyManager = new WeakMap(), _Client_callbackQueryManager = new WeakMap(), _Client_inlineQueryManager = new WeakMap(), _Client_chatListManager = new WeakMap(), _Client_accountManager = 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_id = new WeakMap(), _Client_L = new WeakMap(), _Client_Lauthorize = new WeakMap(), _Client_LreceiveLoop = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_Linvoke = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = 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) {
|
|
737
761
|
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
|
|
738
762
|
__classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
|
|
739
763
|
}, _Client_setAuth = async function _Client_setAuth(key) {
|
|
@@ -754,7 +778,7 @@ export class Client extends ClientAbstract {
|
|
|
754
778
|
newDc += "-test";
|
|
755
779
|
}
|
|
756
780
|
await this.reconnect(newDc);
|
|
757
|
-
|
|
781
|
+
__classPrivateFieldGet(this, _Client_LhandleMigrationError, "f").debug(`migrated to DC${newDc}`);
|
|
758
782
|
}
|
|
759
783
|
async disconnect() {
|
|
760
784
|
__classPrivateFieldSet(this, _Client_connectionInited, false, "f");
|
|
@@ -790,7 +814,7 @@ export class Client extends ClientAbstract {
|
|
|
790
814
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
791
815
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
792
816
|
drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("authorize"));
|
|
793
|
-
|
|
817
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("already authorized");
|
|
794
818
|
return;
|
|
795
819
|
}
|
|
796
820
|
catch (err) {
|
|
@@ -807,7 +831,7 @@ export class Client extends ClientAbstract {
|
|
|
807
831
|
params = { phone: () => mustPrompt("Phone number:"), code: () => mustPrompt("Verification code:"), password: () => mustPrompt("Password:") };
|
|
808
832
|
}
|
|
809
833
|
}
|
|
810
|
-
|
|
834
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorizing with", typeof params === "string" ? "bot token" : params instanceof types.auth.ExportedAuthorization ? "exported authorization" : "AuthorizeUserParams");
|
|
811
835
|
if (typeof params === "string") {
|
|
812
836
|
while (true) {
|
|
813
837
|
try {
|
|
@@ -827,14 +851,14 @@ export class Client extends ClientAbstract {
|
|
|
827
851
|
}
|
|
828
852
|
}
|
|
829
853
|
}
|
|
830
|
-
|
|
854
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as bot");
|
|
831
855
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
832
856
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
833
857
|
return;
|
|
834
858
|
}
|
|
835
859
|
if (params instanceof types.auth.ExportedAuthorization) {
|
|
836
860
|
await this.api.auth.importAuthorization({ id: params.id, bytes: params.bytes });
|
|
837
|
-
|
|
861
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorization imported");
|
|
838
862
|
return;
|
|
839
863
|
}
|
|
840
864
|
auth: while (true) {
|
|
@@ -874,7 +898,7 @@ export class Client extends ClientAbstract {
|
|
|
874
898
|
}
|
|
875
899
|
}
|
|
876
900
|
}
|
|
877
|
-
|
|
901
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("verification code sent");
|
|
878
902
|
let err;
|
|
879
903
|
code: while (true) {
|
|
880
904
|
const code = typeof params.code === "string" ? params.code : await params.code();
|
|
@@ -886,7 +910,7 @@ export class Client extends ClientAbstract {
|
|
|
886
910
|
});
|
|
887
911
|
__classPrivateFieldSet(this, _Client_selfId, Number(auth[as](types.auth.Authorization).user.id), "f");
|
|
888
912
|
await this.storage.setAccountType("user");
|
|
889
|
-
|
|
913
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as user");
|
|
890
914
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
891
915
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
892
916
|
return;
|
|
@@ -915,7 +939,7 @@ export class Client extends ClientAbstract {
|
|
|
915
939
|
const auth = await this.api.auth.checkPassword({ password: input });
|
|
916
940
|
__classPrivateFieldSet(this, _Client_selfId, Number(auth[as](types.auth.Authorization).user.id), "f");
|
|
917
941
|
await this.storage.setAccountType("user");
|
|
918
|
-
|
|
942
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as user");
|
|
919
943
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
920
944
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
921
945
|
return;
|
|
@@ -953,6 +977,13 @@ export class Client extends ClientAbstract {
|
|
|
953
977
|
send(function_) {
|
|
954
978
|
return this.invoke(function_, true);
|
|
955
979
|
}
|
|
980
|
+
exportAuthString() {
|
|
981
|
+
return this.storage.exportAuthString();
|
|
982
|
+
}
|
|
983
|
+
async importAuthString(authString) {
|
|
984
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
985
|
+
await this.storage.importAuthString(authString);
|
|
986
|
+
}
|
|
956
987
|
async getInputPeer(id) {
|
|
957
988
|
if (id === "me") {
|
|
958
989
|
return new types.InputPeerSelf();
|
|
@@ -998,7 +1029,7 @@ export class Client extends ClientAbstract {
|
|
|
998
1029
|
system_version: this.systemVersion,
|
|
999
1030
|
});
|
|
1000
1031
|
__classPrivateFieldSet(this, _Client_connectionInited, true, "f");
|
|
1001
|
-
|
|
1032
|
+
__classPrivateFieldGet(this, _Client_L$initConncetion, "f").debug("connection inited");
|
|
1002
1033
|
}
|
|
1003
1034
|
}, _Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
|
|
1004
1035
|
if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") != authorized) {
|
|
@@ -1021,12 +1052,14 @@ export class Client extends ClientAbstract {
|
|
|
1021
1052
|
__classPrivateFieldGet(this, _Client_toAcknowledge, "f").clear();
|
|
1022
1053
|
}
|
|
1023
1054
|
const buffer = await this.transport.transport.receive();
|
|
1055
|
+
__classPrivateFieldGet(this, _Client_L, "f").inBin(buffer);
|
|
1024
1056
|
let decrypted;
|
|
1025
1057
|
try {
|
|
1026
1058
|
decrypted = await (decryptMessage(buffer, __classPrivateFieldGet(this, _Client_auth, "f").key, __classPrivateFieldGet(this, _Client_auth, "f").id, __classPrivateFieldGet(this, _Client_sessionId, "f")));
|
|
1059
|
+
__classPrivateFieldGet(this, _Client_L, "f").in(decrypted);
|
|
1027
1060
|
}
|
|
1028
1061
|
catch (err) {
|
|
1029
|
-
|
|
1062
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("failed to decrypt message:", err);
|
|
1030
1063
|
drop((async () => {
|
|
1031
1064
|
try {
|
|
1032
1065
|
await this.disconnect();
|
|
@@ -1045,7 +1078,7 @@ export class Client extends ClientAbstract {
|
|
|
1045
1078
|
if (body instanceof types.Gzip_packed) {
|
|
1046
1079
|
body = new TLReader(gunzip(body.packed_data)).readObject();
|
|
1047
1080
|
}
|
|
1048
|
-
|
|
1081
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("received", (typeof body === "object" && name in body) ? body[name] : body.constructor.name);
|
|
1049
1082
|
if (body instanceof types._Updates || body instanceof types._Update) {
|
|
1050
1083
|
__classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(body, true);
|
|
1051
1084
|
}
|
|
@@ -1059,10 +1092,10 @@ export class Client extends ClientAbstract {
|
|
|
1059
1092
|
result = new TLReader(gunzip(result.packed_data)).readObject();
|
|
1060
1093
|
}
|
|
1061
1094
|
if (result instanceof types.Rpc_error) {
|
|
1062
|
-
|
|
1095
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("RPCResult:", result.error_code, result.error_message);
|
|
1063
1096
|
}
|
|
1064
1097
|
else {
|
|
1065
|
-
|
|
1098
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("RPCResult:", (typeof result === "object" && name in result) ? result[name] : result.constructor.name);
|
|
1066
1099
|
}
|
|
1067
1100
|
const messageId = message.body.messageId;
|
|
1068
1101
|
const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(messageId);
|
|
@@ -1093,7 +1126,7 @@ export class Client extends ClientAbstract {
|
|
|
1093
1126
|
}
|
|
1094
1127
|
}
|
|
1095
1128
|
else if (message.body instanceof types.Bad_server_salt) {
|
|
1096
|
-
|
|
1129
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("server salt reassigned");
|
|
1097
1130
|
__classPrivateFieldGet(this, _Client_state, "f").salt = message.body.new_server_salt;
|
|
1098
1131
|
await this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_state, "f").salt);
|
|
1099
1132
|
const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(message.body.bad_msg_id);
|
|
@@ -1110,11 +1143,11 @@ export class Client extends ClientAbstract {
|
|
|
1110
1143
|
break;
|
|
1111
1144
|
}
|
|
1112
1145
|
else if (err instanceof TLError) {
|
|
1113
|
-
|
|
1146
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("failed to deserialize:", err);
|
|
1114
1147
|
drop(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("deserialize"));
|
|
1115
1148
|
}
|
|
1116
1149
|
else {
|
|
1117
|
-
|
|
1150
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("unexpected error:", err);
|
|
1118
1151
|
}
|
|
1119
1152
|
}
|
|
1120
1153
|
}
|
|
@@ -1150,7 +1183,7 @@ export class Client extends ClientAbstract {
|
|
|
1150
1183
|
if (!this.connected) {
|
|
1151
1184
|
continue;
|
|
1152
1185
|
}
|
|
1153
|
-
|
|
1186
|
+
__classPrivateFieldGet(this, _Client_LpingLoop, "f").error(err);
|
|
1154
1187
|
}
|
|
1155
1188
|
}
|
|
1156
1189
|
}, _Client_invoke = async function _Client_invoke(function_, noWait) {
|
|
@@ -1175,8 +1208,11 @@ export class Client extends ClientAbstract {
|
|
|
1175
1208
|
}
|
|
1176
1209
|
const messageId = __classPrivateFieldSet(this, _Client_lastMsgId, getMessageId(__classPrivateFieldGet(this, _Client_lastMsgId, "f")), "f");
|
|
1177
1210
|
const message = new Message_(messageId, seqNo, function_);
|
|
1178
|
-
|
|
1179
|
-
|
|
1211
|
+
const payload = await encryptMessage(message, __classPrivateFieldGet(this, _Client_auth, "f").key, __classPrivateFieldGet(this, _Client_auth, "f").id, __classPrivateFieldGet(this, _Client_state, "f").salt, __classPrivateFieldGet(this, _Client_sessionId, "f"));
|
|
1212
|
+
await this.transport.transport.send(payload);
|
|
1213
|
+
__classPrivateFieldGet(this, _Client_L, "f").out(message);
|
|
1214
|
+
__classPrivateFieldGet(this, _Client_L, "f").outBin(payload);
|
|
1215
|
+
__classPrivateFieldGet(this, _Client_Linvoke, "f").debug("invoked", function_[name]);
|
|
1180
1216
|
if (noWait) {
|
|
1181
1217
|
__classPrivateFieldGet(this, _Client_promises, "f").set(message.id, {
|
|
1182
1218
|
resolve: (result) => {
|
|
@@ -2118,6 +2154,16 @@ export class Client extends ClientAbstract {
|
|
|
2118
2154
|
async searchMessages(chatId, query, params) {
|
|
2119
2155
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").searchMessages(chatId, query, params);
|
|
2120
2156
|
}
|
|
2157
|
+
/**
|
|
2158
|
+
* Set the number of boosts required to circument a chat's default restrictions.
|
|
2159
|
+
*
|
|
2160
|
+
* @method ch
|
|
2161
|
+
* @param chatId The identifier of the chat.
|
|
2162
|
+
* @param boosts The number of boosts required to circumvent its restrictions.
|
|
2163
|
+
*/
|
|
2164
|
+
async setBoostsRequiredToCircumventRestrictions(chatId, boosts) {
|
|
2165
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").setBoostsRequiredToCircumventRestrictions(chatId, boosts);
|
|
2166
|
+
}
|
|
2121
2167
|
}
|
|
2122
2168
|
_Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|
|
2123
2169
|
await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, update), resolve);
|
|
@@ -11,10 +11,9 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
11
11
|
};
|
|
12
12
|
var _ConnectionWebSocket_instances, _ConnectionWebSocket_webSocket, _ConnectionWebSocket_rMutex, _ConnectionWebSocket_wMutex, _ConnectionWebSocket_buffer, _ConnectionWebSocket_nextResolve, _ConnectionWebSocket_initWs, _ConnectionWebSocket_wasConnected, _ConnectionWebSocket_isConnecting, _ConnectionWebSocket_connectionError, _ConnectionWebSocket_assertConnected, _ConnectionWebSocket_rejectRead;
|
|
13
13
|
import * as dntShim from "../_dnt.shims.js";
|
|
14
|
-
import {
|
|
15
|
-
import { concat, UNREACHABLE } from "../1_utilities.js";
|
|
14
|
+
import { concat, getLogger, Mutex, UNREACHABLE } from "../1_utilities.js";
|
|
16
15
|
import { ConnectionUnframed } from "./0_connection.js";
|
|
17
|
-
const
|
|
16
|
+
const L = getLogger("ConnectionWebSocket");
|
|
18
17
|
const errConnectionNotOpen = new Error("Connection not open");
|
|
19
18
|
export class ConnectionWebSocket extends ConnectionUnframed {
|
|
20
19
|
constructor(url) {
|
|
@@ -70,7 +69,7 @@ export class ConnectionWebSocket extends ConnectionUnframed {
|
|
|
70
69
|
}
|
|
71
70
|
async read(p) {
|
|
72
71
|
__classPrivateFieldGet(this, _ConnectionWebSocket_instances, "m", _ConnectionWebSocket_assertConnected).call(this);
|
|
73
|
-
const
|
|
72
|
+
const unlock = await __classPrivateFieldGet(this, _ConnectionWebSocket_rMutex, "f").lock();
|
|
74
73
|
try {
|
|
75
74
|
__classPrivateFieldGet(this, _ConnectionWebSocket_instances, "m", _ConnectionWebSocket_assertConnected).call(this);
|
|
76
75
|
if (__classPrivateFieldGet(this, _ConnectionWebSocket_buffer, "f").length < p.length) {
|
|
@@ -81,18 +80,18 @@ export class ConnectionWebSocket extends ConnectionUnframed {
|
|
|
81
80
|
__classPrivateFieldSet(this, _ConnectionWebSocket_buffer, __classPrivateFieldGet(this, _ConnectionWebSocket_buffer, "f").slice(slice.length), "f");
|
|
82
81
|
}
|
|
83
82
|
finally {
|
|
84
|
-
|
|
83
|
+
unlock();
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
86
|
async write(p) {
|
|
88
87
|
__classPrivateFieldGet(this, _ConnectionWebSocket_instances, "m", _ConnectionWebSocket_assertConnected).call(this);
|
|
89
|
-
const
|
|
88
|
+
const unlock = await __classPrivateFieldGet(this, _ConnectionWebSocket_wMutex, "f").lock();
|
|
90
89
|
try {
|
|
91
90
|
__classPrivateFieldGet(this, _ConnectionWebSocket_instances, "m", _ConnectionWebSocket_assertConnected).call(this);
|
|
92
91
|
__classPrivateFieldGet(this, _ConnectionWebSocket_webSocket, "f").send(p);
|
|
93
92
|
}
|
|
94
93
|
finally {
|
|
95
|
-
|
|
94
|
+
unlock();
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
close() {
|
|
@@ -115,14 +114,14 @@ _ConnectionWebSocket_webSocket = new WeakMap(), _ConnectionWebSocket_rMutex = ne
|
|
|
115
114
|
if (typeof e.data === "string") {
|
|
116
115
|
return;
|
|
117
116
|
}
|
|
118
|
-
const
|
|
117
|
+
const unlock = await mutex.lock();
|
|
119
118
|
const data = new Uint8Array(await new Blob([e.data].map((v) => v instanceof Blob || v instanceof Uint8Array ? v : v instanceof ArrayBuffer ? v : UNREACHABLE())).arrayBuffer());
|
|
120
119
|
__classPrivateFieldSet(this, _ConnectionWebSocket_buffer, concat(__classPrivateFieldGet(this, _ConnectionWebSocket_buffer, "f"), data), "f");
|
|
121
120
|
if (__classPrivateFieldGet(this, _ConnectionWebSocket_nextResolve, "f") != null && __classPrivateFieldGet(this, _ConnectionWebSocket_buffer, "f").length >= __classPrivateFieldGet(this, _ConnectionWebSocket_nextResolve, "f")[0]) {
|
|
122
121
|
__classPrivateFieldGet(this, _ConnectionWebSocket_nextResolve, "f")[1].resolve();
|
|
123
122
|
__classPrivateFieldSet(this, _ConnectionWebSocket_nextResolve, null, "f");
|
|
124
123
|
}
|
|
125
|
-
|
|
124
|
+
unlock();
|
|
126
125
|
});
|
|
127
126
|
webSocket.addEventListener("error", (err) => {
|
|
128
127
|
if (__classPrivateFieldGet(this, _ConnectionWebSocket_isConnecting, "f")) {
|
|
@@ -130,7 +129,7 @@ _ConnectionWebSocket_webSocket = new WeakMap(), _ConnectionWebSocket_rMutex = ne
|
|
|
130
129
|
__classPrivateFieldSet(this, _ConnectionWebSocket_connectionError, err, "f");
|
|
131
130
|
}
|
|
132
131
|
if (this.connected) {
|
|
133
|
-
|
|
132
|
+
L.error(err);
|
|
134
133
|
}
|
|
135
134
|
});
|
|
136
135
|
return webSocket;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Executes a function which returns a promise, expecting it to reject.
|
|
3
3
|
*
|
|
4
|
+
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
|
5
|
+
*
|
|
4
6
|
* @example
|
|
5
7
|
* ```ts
|
|
6
8
|
* import { assertRejects } from "https://deno.land/std@$STD_VERSION/assert/assert_rejects.ts";
|
|
@@ -15,6 +17,8 @@ export declare function assertRejects(fn: () => PromiseLike<unknown>, msg?: stri
|
|
|
15
17
|
* If it does not, then it throws. An error class and a string that should be
|
|
16
18
|
* included in the error message can also be asserted.
|
|
17
19
|
*
|
|
20
|
+
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
|
21
|
+
*
|
|
18
22
|
* @example
|
|
19
23
|
* ```ts
|
|
20
24
|
* import { assertRejects } from "https://deno.land/std@$STD_VERSION/assert/assert_rejects.ts";
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Executes a function, expecting it to throw. If it does not, then it
|
|
3
3
|
* throws.
|
|
4
4
|
*
|
|
5
|
+
* To assert that an asynchronous function rejects, use
|
|
6
|
+
* {@linkcode assertRejects}.
|
|
7
|
+
*
|
|
5
8
|
* @example
|
|
6
9
|
* ```ts
|
|
7
10
|
* import { assertThrows } from "https://deno.land/std@$STD_VERSION/assert/assert_throws.ts";
|
|
@@ -16,6 +19,9 @@ export declare function assertThrows(fn: () => unknown, msg?: string): unknown;
|
|
|
16
19
|
* throws. An error class and a string that should be included in the
|
|
17
20
|
* error message can also be asserted.
|
|
18
21
|
*
|
|
22
|
+
* To assert that an asynchronous function rejects, use
|
|
23
|
+
* {@linkcode assertRejects}.
|
|
24
|
+
*
|
|
19
25
|
* @example
|
|
20
26
|
* ```ts
|
|
21
27
|
* import { assertThrows } from "https://deno.land/std@$STD_VERSION/assert/assert_throws.ts";
|
|
@@ -10,6 +10,6 @@ import { AssertionError } from "./assertion_error.js";
|
|
|
10
10
|
* unreachable(); // Throws
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
|
-
export function unreachable() {
|
|
14
|
-
throw new AssertionError("unreachable");
|
|
13
|
+
export function unreachable(reason) {
|
|
14
|
+
throw new AssertionError(reason ?? "unreachable");
|
|
15
15
|
}
|
|
@@ -94,22 +94,25 @@ export function encodeBase64(data) {
|
|
|
94
94
|
let result = "", i;
|
|
95
95
|
const l = uint8.length;
|
|
96
96
|
for (i = 2; i < l; i += 3) {
|
|
97
|
-
result += base64abc[uint8[i - 2] >> 2];
|
|
98
|
-
result += base64abc[((uint8[i - 2] & 0x03) << 4) |
|
|
99
|
-
|
|
100
|
-
result += base64abc[uint8[i] &
|
|
97
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
98
|
+
result += base64abc[(((uint8[i - 2]) & 0x03) << 4) |
|
|
99
|
+
((uint8[i - 1]) >> 4)];
|
|
100
|
+
result += base64abc[(((uint8[i - 1]) & 0x0f) << 2) |
|
|
101
|
+
((uint8[i]) >> 6)];
|
|
102
|
+
result += base64abc[(uint8[i]) & 0x3f];
|
|
101
103
|
}
|
|
102
104
|
if (i === l + 1) {
|
|
103
105
|
// 1 octet yet to write
|
|
104
|
-
result += base64abc[uint8[i - 2] >> 2];
|
|
105
|
-
result += base64abc[(uint8[i - 2] & 0x03) << 4];
|
|
106
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
107
|
+
result += base64abc[((uint8[i - 2]) & 0x03) << 4];
|
|
106
108
|
result += "==";
|
|
107
109
|
}
|
|
108
110
|
if (i === l) {
|
|
109
111
|
// 2 octets yet to write
|
|
110
|
-
result += base64abc[uint8[i - 2] >> 2];
|
|
111
|
-
result += base64abc[((uint8[i - 2] & 0x03) << 4) |
|
|
112
|
-
|
|
112
|
+
result += base64abc[(uint8[i - 2]) >> 2];
|
|
113
|
+
result += base64abc[(((uint8[i - 2]) & 0x03) << 4) |
|
|
114
|
+
((uint8[i - 1]) >> 4)];
|
|
115
|
+
result += base64abc[((uint8[i - 1]) & 0x0f) << 2];
|
|
113
116
|
result += "=";
|
|
114
117
|
}
|
|
115
118
|
return result;
|