@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
|
@@ -19,7 +19,8 @@ const _2_tl_js_1 = require("../2_tl.js");
|
|
|
19
19
|
const _4_constants_js_1 = require("../4_constants.js");
|
|
20
20
|
const _0_client_abstract_js_1 = require("./0_client_abstract.js");
|
|
21
21
|
const _0_message_js_1 = require("./0_message.js");
|
|
22
|
-
const
|
|
22
|
+
const L = (0, _1_utilities_js_1.getLogger)("ClientPlain");
|
|
23
|
+
const LcreateAuthKey = L.branch("createAuthKey");
|
|
23
24
|
class ClientPlain extends _0_client_abstract_js_1.ClientAbstract {
|
|
24
25
|
constructor(params) {
|
|
25
26
|
super(params);
|
|
@@ -32,8 +33,12 @@ class ClientPlain extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
32
33
|
throw new Error("Not connected");
|
|
33
34
|
}
|
|
34
35
|
const msgId = __classPrivateFieldSet(this, _ClientPlain_lastMsgId, (0, _0_message_js_1.getMessageId)(__classPrivateFieldGet(this, _ClientPlain_lastMsgId, "f")), "f");
|
|
35
|
-
|
|
36
|
+
const payload = (0, _0_message_js_1.packUnencryptedMessage)(function_[_2_tl_js_1.serialize](), msgId);
|
|
37
|
+
await this.transport.transport.send(payload);
|
|
38
|
+
L.out(function_);
|
|
39
|
+
L.outBin(payload);
|
|
36
40
|
const buffer = await this.transport.transport.receive();
|
|
41
|
+
L.inBin(payload);
|
|
37
42
|
if (buffer.length == 4) {
|
|
38
43
|
const int = (0, _1_utilities_js_1.bigIntFromBuffer)(buffer, true, true);
|
|
39
44
|
if (int == -404n) {
|
|
@@ -42,33 +47,35 @@ class ClientPlain extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
42
47
|
}
|
|
43
48
|
const { message } = (0, _0_message_js_1.unpackUnencryptedMessage)(buffer);
|
|
44
49
|
const reader = new _2_tl_js_1.TLReader(message);
|
|
45
|
-
|
|
50
|
+
const result = reader.readObject();
|
|
51
|
+
L.in(result);
|
|
52
|
+
return result;
|
|
46
53
|
}
|
|
47
54
|
async createAuthKey() {
|
|
48
55
|
const nonce = (0, _1_utilities_js_1.getRandomBigInt)(16, false, true);
|
|
49
|
-
|
|
56
|
+
LcreateAuthKey.debug("auth key creation started");
|
|
50
57
|
let resPq = null;
|
|
51
58
|
for (let i = 0; i < 10; i++) {
|
|
52
59
|
try {
|
|
53
|
-
|
|
60
|
+
LcreateAuthKey.debug(`req_pq_multi [${i + 1}]`);
|
|
54
61
|
resPq = await this.invoke(new _2_tl_js_1.functions.req_pq_multi({ nonce }));
|
|
55
62
|
(0, _0_deps_js_1.assertInstanceOf)(resPq, _2_tl_js_1.types.ResPQ);
|
|
56
63
|
(0, _0_deps_js_1.assertEquals)(resPq.nonce, nonce);
|
|
57
|
-
|
|
64
|
+
LcreateAuthKey.debug("got res_pq");
|
|
58
65
|
break;
|
|
59
66
|
}
|
|
60
67
|
catch (err) {
|
|
61
|
-
|
|
68
|
+
LcreateAuthKey.debug("req_pq_multi error:", err);
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
if (!resPq) {
|
|
65
72
|
(0, _1_utilities_js_1.UNREACHABLE)();
|
|
66
73
|
}
|
|
67
74
|
const pq_ = (0, _1_utilities_js_1.bigIntFromBuffer)(resPq.pq, false, false);
|
|
68
|
-
|
|
75
|
+
LcreateAuthKey.debug(`pq=${pq_}`);
|
|
69
76
|
const [p_, q_] = (0, _0_deps_js_1.factorize)(pq_);
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
LcreateAuthKey.debug("factorized pq");
|
|
78
|
+
LcreateAuthKey.debug(`p=${p_}, q=${q_}`);
|
|
72
79
|
const p = (0, _1_utilities_js_1.bufferFromBigInt)(p_, 4, false, false);
|
|
73
80
|
const q = (0, _1_utilities_js_1.bufferFromBigInt)(q_, 4, false, false);
|
|
74
81
|
let publicKeyFingerprint;
|
|
@@ -106,7 +113,7 @@ class ClientPlain extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
106
113
|
encrypted_data: encryptedData,
|
|
107
114
|
}));
|
|
108
115
|
(0, _0_deps_js_1.assertInstanceOf)(dhParams, _2_tl_js_1.types.Server_DH_params_ok);
|
|
109
|
-
|
|
116
|
+
LcreateAuthKey.debug("got server_DH_params_ok");
|
|
110
117
|
const newNonce_ = (0, _1_utilities_js_1.bufferFromBigInt)(newNonce, 32, true, true);
|
|
111
118
|
const serverNonce_ = (0, _1_utilities_js_1.bufferFromBigInt)(serverNonce, 16, true, true);
|
|
112
119
|
const tmpAesKey = (0, _1_utilities_js_1.concat)(await (0, _1_utilities_js_1.sha1)((0, _1_utilities_js_1.concat)(newNonce_, serverNonce_)), (await (0, _1_utilities_js_1.sha1)((0, _1_utilities_js_1.concat)(serverNonce_, newNonce_))).subarray(0, 0 + 12));
|
|
@@ -132,12 +139,12 @@ class ClientPlain extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
132
139
|
encryptedData = (0, _0_deps_js_1.ige256Encrypt)(dataWithHash, tmpAesKey, tmpAesIv);
|
|
133
140
|
const dhGenOk = await this.invoke(new _2_tl_js_1.functions.set_client_DH_params({ nonce, server_nonce: serverNonce, encrypted_data: encryptedData }));
|
|
134
141
|
(0, _0_deps_js_1.assertInstanceOf)(dhGenOk, _2_tl_js_1.types.Dh_gen_ok);
|
|
135
|
-
|
|
142
|
+
LcreateAuthKey.debug("got dh_gen_ok");
|
|
136
143
|
const serverNonceSlice = serverNonce_.subarray(0, 8);
|
|
137
144
|
const salt = newNonce_.subarray(0, 0 + 8).map((v, i) => v ^ serverNonceSlice[i]);
|
|
138
145
|
const authKey_ = (0, _1_utilities_js_1.modExp)(gA, b, dhPrime);
|
|
139
146
|
const authKey = (0, _1_utilities_js_1.bufferFromBigInt)(authKey_, 256, false, false);
|
|
140
|
-
|
|
147
|
+
LcreateAuthKey.debug("auth key created");
|
|
141
148
|
return {
|
|
142
149
|
authKey,
|
|
143
150
|
salt: (0, _1_utilities_js_1.bigIntFromBuffer)(salt, true, false),
|
|
@@ -100,5 +100,6 @@ export declare class MessageManager {
|
|
|
100
100
|
enableJoinRequests(chatId: ID): Promise<void>;
|
|
101
101
|
disableJoinRequests(chatId: ID): Promise<void>;
|
|
102
102
|
searchMessages(chatId: ID, query: string, params?: SearchMessagesParams): Promise<Message[]>;
|
|
103
|
+
setBoostsRequiredToCircumventRestrictions(chatId: ID, boosts: number): Promise<void>;
|
|
103
104
|
}
|
|
104
105
|
export {};
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
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");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _MessageManager_instances, _MessageManager_c, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_sendReaction, _MessageManager_toggleJoinRequests;
|
|
13
|
+
var _MessageManager_instances, _MessageManager_c, _MessageManager_LresolveFileId, _MessageManager_updatesToMessages, _MessageManager_constructReplyMarkup, _MessageManager_resolveSendAs, _MessageManager_constructReplyTo, _MessageManager_sendDocumentInner, _MessageManager_sendMedia, _MessageManager_sendReaction, _MessageManager_toggleJoinRequests;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.MessageManager = void 0;
|
|
16
16
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -22,11 +22,11 @@ const _4_constants_js_1 = require("../4_constants.js");
|
|
|
22
22
|
const _0_message_search_filter_js_1 = require("../types/0_message_search_filter.js");
|
|
23
23
|
const _0_html_js_1 = require("./0_html.js");
|
|
24
24
|
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
25
|
-
const d = (0, _0_deps_js_1.debug)("MessageManager");
|
|
26
25
|
class MessageManager {
|
|
27
26
|
constructor(c) {
|
|
28
27
|
_MessageManager_instances.add(this);
|
|
29
28
|
_MessageManager_c.set(this, void 0);
|
|
29
|
+
_MessageManager_LresolveFileId.set(this, void 0);
|
|
30
30
|
Object.defineProperty(this, "usernameResolver", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
configurable: true,
|
|
@@ -37,6 +37,8 @@ class MessageManager {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
__classPrivateFieldSet(this, _MessageManager_c, c, "f");
|
|
40
|
+
const L = (0, _1_utilities_js_1.getLogger)("MessageManager").client(c.id);
|
|
41
|
+
__classPrivateFieldSet(this, _MessageManager_LresolveFileId, L.branch("resolveFileId"), "f");
|
|
40
42
|
}
|
|
41
43
|
async getMessages(chatId, messageIds) {
|
|
42
44
|
const peer = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputPeer(chatId);
|
|
@@ -430,7 +432,7 @@ class MessageManager {
|
|
|
430
432
|
fileId = _3_types_js_2.FileID.decode(maybeFileId);
|
|
431
433
|
}
|
|
432
434
|
catch (err) {
|
|
433
|
-
|
|
435
|
+
__classPrivateFieldGet(this, _MessageManager_LresolveFileId, "f").warning(err);
|
|
434
436
|
}
|
|
435
437
|
if (fileId != null) {
|
|
436
438
|
if (fileId.fileType != expectedFileType) {
|
|
@@ -896,9 +898,13 @@ class MessageManager {
|
|
|
896
898
|
}
|
|
897
899
|
return messages;
|
|
898
900
|
}
|
|
901
|
+
async setBoostsRequiredToCircumventRestrictions(chatId, boosts) {
|
|
902
|
+
const channel = await __classPrivateFieldGet(this, _MessageManager_c, "f").getInputChannel(chatId);
|
|
903
|
+
await __classPrivateFieldGet(this, _MessageManager_c, "f").api.channels.setBoostsToUnblockRestrictions({ channel, boosts });
|
|
904
|
+
}
|
|
899
905
|
}
|
|
900
906
|
exports.MessageManager = MessageManager;
|
|
901
|
-
_MessageManager_c = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
|
|
907
|
+
_MessageManager_c = new WeakMap(), _MessageManager_LresolveFileId = new WeakMap(), _MessageManager_instances = new WeakSet(), _MessageManager_updatesToMessages = async function _MessageManager_updatesToMessages(chatId, updates) {
|
|
902
908
|
const messages = new Array();
|
|
903
909
|
if (updates instanceof _2_tl_js_1.types.Updates) {
|
|
904
910
|
for (const update of updates.updates) {
|
|
@@ -10,19 +10,18 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
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");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var _ChatListManager_instances, _ChatListManager_c, _ChatListManager_sendChatUpdate, _ChatListManager_chats, _ChatListManager_archivedChats, _ChatListManager_chatsLoadedFromStorage, _ChatListManager_tryGetChatId, _ChatListManager_getChatAnywhere, _ChatListManager_getChatList, _ChatListManager_loadChatsFromStorage, _ChatListManager_getLoadedChats, _ChatListManager_pinnedChats, _ChatListManager_pinnedArchiveChats, _ChatListManager_storageHadPinnedChats, _ChatListManager_pinnedChatsLoaded, _ChatListManager_loadPinnedChats, _ChatListManager_fetchPinnedChats, _ChatListManager_getPinnedChats, _ChatListManager_updateOrAddChat, _ChatListManager_removeChat, _ChatListManager_handleUpdateFolderPeers, _ChatListManager_handleUpdatePinnedDialogs, _ChatListManager_handleUpdateChannel, _ChatListManager_handleUpdateChat, _ChatListManager_handleUpdateUser, _ChatListManager_fetchChats;
|
|
13
|
+
var _ChatListManager_instances, _ChatListManager_c, _ChatListManager_LgetChats, _ChatListManager_sendChatUpdate, _ChatListManager_chats, _ChatListManager_archivedChats, _ChatListManager_chatsLoadedFromStorage, _ChatListManager_tryGetChatId, _ChatListManager_getChatAnywhere, _ChatListManager_getChatList, _ChatListManager_loadChatsFromStorage, _ChatListManager_getLoadedChats, _ChatListManager_pinnedChats, _ChatListManager_pinnedArchiveChats, _ChatListManager_storageHadPinnedChats, _ChatListManager_pinnedChatsLoaded, _ChatListManager_loadPinnedChats, _ChatListManager_fetchPinnedChats, _ChatListManager_getPinnedChats, _ChatListManager_updateOrAddChat, _ChatListManager_removeChat, _ChatListManager_handleUpdateFolderPeers, _ChatListManager_handleUpdatePinnedDialogs, _ChatListManager_handleUpdateChannel, _ChatListManager_handleUpdateChat, _ChatListManager_handleUpdateUser, _ChatListManager_fetchChats;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.ChatListManager = void 0;
|
|
16
|
-
const _0_deps_js_1 = require("../0_deps.js");
|
|
17
16
|
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
18
17
|
const _2_tl_js_1 = require("../2_tl.js");
|
|
19
18
|
const _3_types_js_1 = require("../3_types.js");
|
|
20
19
|
const _0_utilities_js_1 = require("./0_utilities.js");
|
|
21
|
-
const d = (0, _0_deps_js_1.debug)("ChatListManager");
|
|
22
20
|
class ChatListManager {
|
|
23
21
|
constructor(c) {
|
|
24
22
|
_ChatListManager_instances.add(this);
|
|
25
23
|
_ChatListManager_c.set(this, void 0);
|
|
24
|
+
_ChatListManager_LgetChats.set(this, void 0);
|
|
26
25
|
_ChatListManager_chats.set(this, new Map());
|
|
27
26
|
_ChatListManager_archivedChats.set(this, new Map());
|
|
28
27
|
_ChatListManager_chatsLoadedFromStorage.set(this, false);
|
|
@@ -31,6 +30,8 @@ class ChatListManager {
|
|
|
31
30
|
_ChatListManager_storageHadPinnedChats.set(this, false);
|
|
32
31
|
_ChatListManager_pinnedChatsLoaded.set(this, false);
|
|
33
32
|
__classPrivateFieldSet(this, _ChatListManager_c, c, "f");
|
|
33
|
+
const L = (0, _1_utilities_js_1.getLogger)("ChatListManager").client(c.id);
|
|
34
|
+
__classPrivateFieldSet(this, _ChatListManager_LgetChats, L.branch("getChats"), "f");
|
|
34
35
|
}
|
|
35
36
|
async reassignChatLastMessage(chatId, add = false, sendUpdate = true) {
|
|
36
37
|
try {
|
|
@@ -112,7 +113,7 @@ class ChatListManager {
|
|
|
112
113
|
.filter((v) => v.order < after.order);
|
|
113
114
|
}
|
|
114
115
|
if (chats.length < limit) {
|
|
115
|
-
|
|
116
|
+
__classPrivateFieldGet(this, _ChatListManager_LgetChats, "f").debug(`have only ${chats.length} chats but ${limit - chats.length} more is needed`);
|
|
116
117
|
if (!await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.hasAllChats(listId)) {
|
|
117
118
|
await __classPrivateFieldGet(this, _ChatListManager_instances, "m", _ChatListManager_fetchChats).call(this, listId, limit, after);
|
|
118
119
|
return await this.getChats(from, after, limit);
|
|
@@ -217,7 +218,7 @@ class ChatListManager {
|
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
220
|
exports.ChatListManager = ChatListManager;
|
|
220
|
-
_ChatListManager_c = new WeakMap(), _ChatListManager_chats = new WeakMap(), _ChatListManager_archivedChats = new WeakMap(), _ChatListManager_chatsLoadedFromStorage = new WeakMap(), _ChatListManager_pinnedChats = new WeakMap(), _ChatListManager_pinnedArchiveChats = new WeakMap(), _ChatListManager_storageHadPinnedChats = new WeakMap(), _ChatListManager_pinnedChatsLoaded = new WeakMap(), _ChatListManager_instances = new WeakSet(), _ChatListManager_sendChatUpdate = async function _ChatListManager_sendChatUpdate(chatId, added) {
|
|
221
|
+
_ChatListManager_c = new WeakMap(), _ChatListManager_LgetChats = new WeakMap(), _ChatListManager_chats = new WeakMap(), _ChatListManager_archivedChats = new WeakMap(), _ChatListManager_chatsLoadedFromStorage = new WeakMap(), _ChatListManager_pinnedChats = new WeakMap(), _ChatListManager_pinnedArchiveChats = new WeakMap(), _ChatListManager_storageHadPinnedChats = new WeakMap(), _ChatListManager_pinnedChatsLoaded = new WeakMap(), _ChatListManager_instances = new WeakSet(), _ChatListManager_sendChatUpdate = async function _ChatListManager_sendChatUpdate(chatId, added) {
|
|
221
222
|
try {
|
|
222
223
|
await __classPrivateFieldGet(this, _ChatListManager_c, "f").storage.assertUser("");
|
|
223
224
|
}
|
|
@@ -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 {};
|
|
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
10
|
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");
|
|
11
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
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
|
+
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;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Client = exports.restartAuth = exports.skipInvoke = exports.handleMigrationError = void 0;
|
|
16
16
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -39,9 +39,7 @@ const _3_callback_query_manager_js_1 = require("./3_callback_query_manager.js");
|
|
|
39
39
|
const _3_chat_list_manager_js_1 = require("./3_chat_list_manager.js");
|
|
40
40
|
const _3_inline_query_manager_js_1 = require("./3_inline_query_manager.js");
|
|
41
41
|
const _3_story_manager_js_1 = require("./3_story_manager.js");
|
|
42
|
-
|
|
43
|
-
const dAuth = (0, _0_deps_js_1.debug)("Client/authorize");
|
|
44
|
-
const dRecv = (0, _0_deps_js_1.debug)("Client/receiveLoop");
|
|
42
|
+
let id = 0;
|
|
45
43
|
const getEntity = Symbol();
|
|
46
44
|
exports.handleMigrationError = Symbol();
|
|
47
45
|
const functionNamespaces = Object.entries(_2_tl_js_1.functions).filter(([, v]) => !(v instanceof Function)).map(([k]) => k);
|
|
@@ -54,7 +52,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
54
52
|
/**
|
|
55
53
|
* Constructs the client.
|
|
56
54
|
*
|
|
57
|
-
* @param storage The storage provider to use. Defaults to memory storage.
|
|
55
|
+
* @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.
|
|
58
56
|
* @param apiId App's API ID from [my.telegram.org](https://my.telegram.org/apps). Defaults to 0 (unset).
|
|
59
57
|
* @param apiHash App's API hash from [my.telegram.org/apps](https://my.telegram.org/apps). Defaults to empty string (unset).
|
|
60
58
|
*/
|
|
@@ -144,6 +142,14 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
144
142
|
_Client_ignoreOutgoing.set(this, void 0);
|
|
145
143
|
_Client_prefixes.set(this, void 0);
|
|
146
144
|
_Client_storeMessages.set(this, void 0);
|
|
145
|
+
_Client_id.set(this, void 0);
|
|
146
|
+
_Client_L.set(this, void 0);
|
|
147
|
+
_Client_Lauthorize.set(this, void 0);
|
|
148
|
+
_Client_LreceiveLoop.set(this, void 0);
|
|
149
|
+
_Client_LpingLoop.set(this, void 0);
|
|
150
|
+
_Client_Linvoke.set(this, void 0);
|
|
151
|
+
_Client_LhandleMigrationError.set(this, void 0);
|
|
152
|
+
_Client_L$initConncetion.set(this, void 0);
|
|
147
153
|
_Client_namespaceProxies.set(this, (() => {
|
|
148
154
|
// deno-lint-ignore no-explicit-any
|
|
149
155
|
const proxies = {};
|
|
@@ -471,6 +477,14 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
471
477
|
const { chatId } = mustGetMsg();
|
|
472
478
|
return this.deleteChatMemberMessages(chatId, userId);
|
|
473
479
|
},
|
|
480
|
+
searchMessages: (query, params) => {
|
|
481
|
+
const { chatId } = mustGetMsg();
|
|
482
|
+
return this.searchMessages(chatId, query, params);
|
|
483
|
+
},
|
|
484
|
+
setBoostsRequiredToCircumventRestrictions: (boosts) => {
|
|
485
|
+
const { chatId } = mustGetMsg();
|
|
486
|
+
return this.setBoostsRequiredToCircumventRestrictions(chatId, boosts);
|
|
487
|
+
},
|
|
474
488
|
};
|
|
475
489
|
return (0, _1_utilities_js_1.cleanObject)(context);
|
|
476
490
|
});
|
|
@@ -480,7 +494,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
480
494
|
configurable: true,
|
|
481
495
|
writable: true,
|
|
482
496
|
value: ((connected) => {
|
|
483
|
-
__classPrivateFieldGet(this, _Client_connectMutex, "f").
|
|
497
|
+
__classPrivateFieldGet(this, _Client_connectMutex, "f").lock().then((unlock) => {
|
|
484
498
|
try {
|
|
485
499
|
const connectionState = connected ? "ready" : "notConnected";
|
|
486
500
|
if (this.connected == connected && __classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") != connectionState) {
|
|
@@ -488,13 +502,13 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
488
502
|
}
|
|
489
503
|
}
|
|
490
504
|
finally {
|
|
491
|
-
|
|
505
|
+
unlock();
|
|
492
506
|
}
|
|
493
507
|
});
|
|
494
508
|
}).bind(this)
|
|
495
509
|
});
|
|
496
510
|
_Client_storageInited.set(this, false);
|
|
497
|
-
_Client_connectMutex.set(this, new
|
|
511
|
+
_Client_connectMutex.set(this, new _1_utilities_js_1.Mutex());
|
|
498
512
|
_Client_connectionInited.set(this, false);
|
|
499
513
|
_Client_lastPropagatedAuthorizationState.set(this, null);
|
|
500
514
|
_Client_selfId.set(this, null);
|
|
@@ -533,8 +547,9 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
533
547
|
_Client_lastGetMe.set(this, null);
|
|
534
548
|
//#region Composer
|
|
535
549
|
_Client_handle.set(this, _1_composer_js_1.skip);
|
|
536
|
-
this.storage = storage ?? new _3_storage_js_1.StorageMemory();
|
|
537
|
-
|
|
550
|
+
this.storage = typeof storage === "string" ? new _3_storage_js_1.StorageMemory(storage) : storage ?? new _3_storage_js_1.StorageMemory();
|
|
551
|
+
__classPrivateFieldSet(this, _Client_storeMessages, params?.storeMessages ?? false, "f");
|
|
552
|
+
if (!__classPrivateFieldGet(this, _Client_storeMessages, "f")) {
|
|
538
553
|
this.messageStorage = new _3_storage_js_1.StorageMemory();
|
|
539
554
|
}
|
|
540
555
|
else {
|
|
@@ -552,7 +567,16 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
552
567
|
__classPrivateFieldSet(this, _Client_ignoreOutgoing, params?.ignoreOutgoing ?? null, "f");
|
|
553
568
|
__classPrivateFieldSet(this, _Client_prefixes, params?.prefixes, "f");
|
|
554
569
|
__classPrivateFieldSet(this, _Client_guaranteeUpdateDelivery, params?.guaranteeUpdateDelivery ?? false, "f");
|
|
570
|
+
__classPrivateFieldSet(this, _Client_id, id++, "f");
|
|
571
|
+
const L = __classPrivateFieldSet(this, _Client_L, (0, _1_utilities_js_1.getLogger)("Client").client(__classPrivateFieldGet(this, _Client_id, "f")), "f");
|
|
572
|
+
__classPrivateFieldSet(this, _Client_Lauthorize, L.branch("authorize"), "f");
|
|
573
|
+
__classPrivateFieldSet(this, _Client_LreceiveLoop, L.branch("receiveLoop"), "f");
|
|
574
|
+
__classPrivateFieldSet(this, _Client_LpingLoop, L.branch("pingLoop"), "f");
|
|
575
|
+
__classPrivateFieldSet(this, _Client_Linvoke, L.branch("invoke"), "f");
|
|
576
|
+
__classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
|
|
577
|
+
__classPrivateFieldSet(this, _Client_L$initConncetion, L.branch("#initConnection"), "f");
|
|
555
578
|
const c = {
|
|
579
|
+
id,
|
|
556
580
|
api: this.api,
|
|
557
581
|
storage: this.storage,
|
|
558
582
|
messageStorage: this.messageStorage,
|
|
@@ -635,20 +659,20 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
635
659
|
(0, _1_utilities_js_1.drop)((async () => {
|
|
636
660
|
if (connectionState == "notConnected") {
|
|
637
661
|
if (!this.transport?.transport.initialized) {
|
|
638
|
-
|
|
662
|
+
L.debug("not reconnecting");
|
|
639
663
|
return;
|
|
640
664
|
}
|
|
641
665
|
let delay = 5;
|
|
642
666
|
while (!this.connected) {
|
|
643
|
-
|
|
667
|
+
L.debug("reconnecting");
|
|
644
668
|
try {
|
|
645
669
|
await this.connect();
|
|
646
|
-
|
|
670
|
+
L.debug("reconnected");
|
|
647
671
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("reconnect"));
|
|
648
672
|
break;
|
|
649
673
|
}
|
|
650
674
|
catch (err) {
|
|
651
|
-
|
|
675
|
+
L.debug(`failed to reconnect, retrying in ${delay}:`, err);
|
|
652
676
|
}
|
|
653
677
|
await new Promise((r) => setTimeout(r, delay * 1000));
|
|
654
678
|
if (delay < 15) {
|
|
@@ -661,7 +685,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
661
685
|
});
|
|
662
686
|
this.invoke.use(async ({ error }, next) => {
|
|
663
687
|
if (error instanceof _4_errors_js_1.FloodWait && error.seconds <= 10) {
|
|
664
|
-
|
|
688
|
+
L.warning("sleeping for", error.seconds, "because of:", error);
|
|
665
689
|
await new Promise((r) => setTimeout(r, 1000 * error.seconds));
|
|
666
690
|
return true;
|
|
667
691
|
}
|
|
@@ -695,7 +719,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
695
719
|
if (this.connected) {
|
|
696
720
|
return;
|
|
697
721
|
}
|
|
698
|
-
const
|
|
722
|
+
const unlock = await __classPrivateFieldGet(this, _Client_connectMutex, "f").lock();
|
|
699
723
|
try {
|
|
700
724
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
701
725
|
const authKey = await this.storage.getAuthKey();
|
|
@@ -727,17 +751,17 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
727
751
|
if (dc == null) {
|
|
728
752
|
await this.storage.setDc(this.initialDc);
|
|
729
753
|
}
|
|
730
|
-
|
|
754
|
+
__classPrivateFieldGet(this, _Client_L, "f").debug("connected");
|
|
731
755
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_instances, "m", _Client_receiveLoop).call(this));
|
|
732
756
|
if (__classPrivateFieldGet(this, _Client_pingLoopStarted, "f")) {
|
|
733
757
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_instances, "m", _Client_pingLoop).call(this));
|
|
734
758
|
}
|
|
735
759
|
}
|
|
736
760
|
finally {
|
|
737
|
-
|
|
761
|
+
unlock();
|
|
738
762
|
}
|
|
739
763
|
}
|
|
740
|
-
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) {
|
|
764
|
+
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) {
|
|
741
765
|
__classPrivateFieldGet(this, _Client_instances, "m", _Client_queueHandleCtxUpdate).call(this, { connectionState });
|
|
742
766
|
__classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
|
|
743
767
|
}, _Client_setAuth = async function _Client_setAuth(key) {
|
|
@@ -758,7 +782,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
758
782
|
newDc += "-test";
|
|
759
783
|
}
|
|
760
784
|
await this.reconnect(newDc);
|
|
761
|
-
|
|
785
|
+
__classPrivateFieldGet(this, _Client_LhandleMigrationError, "f").debug(`migrated to DC${newDc}`);
|
|
762
786
|
}
|
|
763
787
|
async disconnect() {
|
|
764
788
|
__classPrivateFieldSet(this, _Client_connectionInited, false, "f");
|
|
@@ -794,7 +818,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
794
818
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
795
819
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
796
820
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("authorize"));
|
|
797
|
-
|
|
821
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("already authorized");
|
|
798
822
|
return;
|
|
799
823
|
}
|
|
800
824
|
catch (err) {
|
|
@@ -811,7 +835,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
811
835
|
params = { phone: () => (0, _1_utilities_js_1.mustPrompt)("Phone number:"), code: () => (0, _1_utilities_js_1.mustPrompt)("Verification code:"), password: () => (0, _1_utilities_js_1.mustPrompt)("Password:") };
|
|
812
836
|
}
|
|
813
837
|
}
|
|
814
|
-
|
|
838
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorizing with", typeof params === "string" ? "bot token" : params instanceof _2_tl_js_1.types.auth.ExportedAuthorization ? "exported authorization" : "AuthorizeUserParams");
|
|
815
839
|
if (typeof params === "string") {
|
|
816
840
|
while (true) {
|
|
817
841
|
try {
|
|
@@ -831,14 +855,14 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
831
855
|
}
|
|
832
856
|
}
|
|
833
857
|
}
|
|
834
|
-
|
|
858
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as bot");
|
|
835
859
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
836
860
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
837
861
|
return;
|
|
838
862
|
}
|
|
839
863
|
if (params instanceof _2_tl_js_1.types.auth.ExportedAuthorization) {
|
|
840
864
|
await this.api.auth.importAuthorization({ id: params.id, bytes: params.bytes });
|
|
841
|
-
|
|
865
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorization imported");
|
|
842
866
|
return;
|
|
843
867
|
}
|
|
844
868
|
auth: while (true) {
|
|
@@ -878,7 +902,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
878
902
|
}
|
|
879
903
|
}
|
|
880
904
|
}
|
|
881
|
-
|
|
905
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("verification code sent");
|
|
882
906
|
let err;
|
|
883
907
|
code: while (true) {
|
|
884
908
|
const code = typeof params.code === "string" ? params.code : await params.code();
|
|
@@ -890,7 +914,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
890
914
|
});
|
|
891
915
|
__classPrivateFieldSet(this, _Client_selfId, Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id), "f");
|
|
892
916
|
await this.storage.setAccountType("user");
|
|
893
|
-
|
|
917
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as user");
|
|
894
918
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
895
919
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
896
920
|
return;
|
|
@@ -919,7 +943,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
919
943
|
const auth = await this.api.auth.checkPassword({ password: input });
|
|
920
944
|
__classPrivateFieldSet(this, _Client_selfId, Number(auth[_2_tl_js_1.as](_2_tl_js_1.types.auth.Authorization).user.id), "f");
|
|
921
945
|
await this.storage.setAccountType("user");
|
|
922
|
-
|
|
946
|
+
__classPrivateFieldGet(this, _Client_Lauthorize, "f").debug("authorized as user");
|
|
923
947
|
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
|
|
924
948
|
await __classPrivateFieldGet(this, _Client_updateManager, "f").fetchState("authorize");
|
|
925
949
|
return;
|
|
@@ -957,6 +981,13 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
957
981
|
send(function_) {
|
|
958
982
|
return this.invoke(function_, true);
|
|
959
983
|
}
|
|
984
|
+
exportAuthString() {
|
|
985
|
+
return this.storage.exportAuthString();
|
|
986
|
+
}
|
|
987
|
+
async importAuthString(authString) {
|
|
988
|
+
await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initStorage).call(this);
|
|
989
|
+
await this.storage.importAuthString(authString);
|
|
990
|
+
}
|
|
960
991
|
async getInputPeer(id) {
|
|
961
992
|
if (id === "me") {
|
|
962
993
|
return new _2_tl_js_1.types.InputPeerSelf();
|
|
@@ -1002,7 +1033,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1002
1033
|
system_version: this.systemVersion,
|
|
1003
1034
|
});
|
|
1004
1035
|
__classPrivateFieldSet(this, _Client_connectionInited, true, "f");
|
|
1005
|
-
|
|
1036
|
+
__classPrivateFieldGet(this, _Client_L$initConncetion, "f").debug("connection inited");
|
|
1006
1037
|
}
|
|
1007
1038
|
}, _Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
|
|
1008
1039
|
if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") != authorized) {
|
|
@@ -1025,12 +1056,14 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1025
1056
|
__classPrivateFieldGet(this, _Client_toAcknowledge, "f").clear();
|
|
1026
1057
|
}
|
|
1027
1058
|
const buffer = await this.transport.transport.receive();
|
|
1059
|
+
__classPrivateFieldGet(this, _Client_L, "f").inBin(buffer);
|
|
1028
1060
|
let decrypted;
|
|
1029
1061
|
try {
|
|
1030
1062
|
decrypted = await ((0, _0_message_js_1.decryptMessage)(buffer, __classPrivateFieldGet(this, _Client_auth, "f").key, __classPrivateFieldGet(this, _Client_auth, "f").id, __classPrivateFieldGet(this, _Client_sessionId, "f")));
|
|
1063
|
+
__classPrivateFieldGet(this, _Client_L, "f").in(decrypted);
|
|
1031
1064
|
}
|
|
1032
1065
|
catch (err) {
|
|
1033
|
-
|
|
1066
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("failed to decrypt message:", err);
|
|
1034
1067
|
(0, _1_utilities_js_1.drop)((async () => {
|
|
1035
1068
|
try {
|
|
1036
1069
|
await this.disconnect();
|
|
@@ -1049,7 +1082,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1049
1082
|
if (body instanceof _2_tl_js_1.types.Gzip_packed) {
|
|
1050
1083
|
body = new _2_tl_js_1.TLReader((0, _0_deps_js_1.gunzip)(body.packed_data)).readObject();
|
|
1051
1084
|
}
|
|
1052
|
-
|
|
1085
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("received", (typeof body === "object" && _2_tl_js_1.name in body) ? body[_2_tl_js_1.name] : body.constructor.name);
|
|
1053
1086
|
if (body instanceof _2_tl_js_1.types._Updates || body instanceof _2_tl_js_1.types._Update) {
|
|
1054
1087
|
__classPrivateFieldGet(this, _Client_updateManager, "f").processUpdates(body, true);
|
|
1055
1088
|
}
|
|
@@ -1063,10 +1096,10 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1063
1096
|
result = new _2_tl_js_1.TLReader((0, _0_deps_js_1.gunzip)(result.packed_data)).readObject();
|
|
1064
1097
|
}
|
|
1065
1098
|
if (result instanceof _2_tl_js_1.types.Rpc_error) {
|
|
1066
|
-
|
|
1099
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("RPCResult:", result.error_code, result.error_message);
|
|
1067
1100
|
}
|
|
1068
1101
|
else {
|
|
1069
|
-
|
|
1102
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("RPCResult:", (typeof result === "object" && _2_tl_js_1.name in result) ? result[_2_tl_js_1.name] : result.constructor.name);
|
|
1070
1103
|
}
|
|
1071
1104
|
const messageId = message.body.messageId;
|
|
1072
1105
|
const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(messageId);
|
|
@@ -1097,7 +1130,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1097
1130
|
}
|
|
1098
1131
|
}
|
|
1099
1132
|
else if (message.body instanceof _2_tl_js_1.types.Bad_server_salt) {
|
|
1100
|
-
|
|
1133
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").debug("server salt reassigned");
|
|
1101
1134
|
__classPrivateFieldGet(this, _Client_state, "f").salt = message.body.new_server_salt;
|
|
1102
1135
|
await this.storage.setServerSalt(__classPrivateFieldGet(this, _Client_state, "f").salt);
|
|
1103
1136
|
const promise = __classPrivateFieldGet(this, _Client_promises, "f").get(message.body.bad_msg_id);
|
|
@@ -1114,11 +1147,11 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1114
1147
|
break;
|
|
1115
1148
|
}
|
|
1116
1149
|
else if (err instanceof _2_tl_js_1.TLError) {
|
|
1117
|
-
|
|
1150
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("failed to deserialize:", err);
|
|
1118
1151
|
(0, _1_utilities_js_1.drop)(__classPrivateFieldGet(this, _Client_updateManager, "f").recoverUpdateGap("deserialize"));
|
|
1119
1152
|
}
|
|
1120
1153
|
else {
|
|
1121
|
-
|
|
1154
|
+
__classPrivateFieldGet(this, _Client_LreceiveLoop, "f").error("unexpected error:", err);
|
|
1122
1155
|
}
|
|
1123
1156
|
}
|
|
1124
1157
|
}
|
|
@@ -1154,7 +1187,7 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1154
1187
|
if (!this.connected) {
|
|
1155
1188
|
continue;
|
|
1156
1189
|
}
|
|
1157
|
-
|
|
1190
|
+
__classPrivateFieldGet(this, _Client_LpingLoop, "f").error(err);
|
|
1158
1191
|
}
|
|
1159
1192
|
}
|
|
1160
1193
|
}, _Client_invoke = async function _Client_invoke(function_, noWait) {
|
|
@@ -1179,8 +1212,11 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
1179
1212
|
}
|
|
1180
1213
|
const messageId = __classPrivateFieldSet(this, _Client_lastMsgId, (0, _0_message_js_1.getMessageId)(__classPrivateFieldGet(this, _Client_lastMsgId, "f")), "f");
|
|
1181
1214
|
const message = new _2_tl_js_1.Message_(messageId, seqNo, function_);
|
|
1182
|
-
|
|
1183
|
-
|
|
1215
|
+
const payload = await (0, _0_message_js_1.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"));
|
|
1216
|
+
await this.transport.transport.send(payload);
|
|
1217
|
+
__classPrivateFieldGet(this, _Client_L, "f").out(message);
|
|
1218
|
+
__classPrivateFieldGet(this, _Client_L, "f").outBin(payload);
|
|
1219
|
+
__classPrivateFieldGet(this, _Client_Linvoke, "f").debug("invoked", function_[_2_tl_js_1.name]);
|
|
1184
1220
|
if (noWait) {
|
|
1185
1221
|
__classPrivateFieldGet(this, _Client_promises, "f").set(message.id, {
|
|
1186
1222
|
resolve: (result) => {
|
|
@@ -2122,6 +2158,16 @@ class Client extends _0_client_abstract_js_1.ClientAbstract {
|
|
|
2122
2158
|
async searchMessages(chatId, query, params) {
|
|
2123
2159
|
return await __classPrivateFieldGet(this, _Client_messageManager, "f").searchMessages(chatId, query, params);
|
|
2124
2160
|
}
|
|
2161
|
+
/**
|
|
2162
|
+
* Set the number of boosts required to circument a chat's default restrictions.
|
|
2163
|
+
*
|
|
2164
|
+
* @method ch
|
|
2165
|
+
* @param chatId The identifier of the chat.
|
|
2166
|
+
* @param boosts The number of boosts required to circumvent its restrictions.
|
|
2167
|
+
*/
|
|
2168
|
+
async setBoostsRequiredToCircumventRestrictions(chatId, boosts) {
|
|
2169
|
+
await __classPrivateFieldGet(this, _Client_messageManager, "f").setBoostsRequiredToCircumventRestrictions(chatId, boosts);
|
|
2170
|
+
}
|
|
2125
2171
|
}
|
|
2126
2172
|
exports.Client = Client;
|
|
2127
2173
|
_Client_handleCtxUpdate = async function _Client_handleCtxUpdate(update) {
|