@mtkruto/node 0.2.51 → 0.3.1
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 +3 -3
- package/esm/0_deps.d.ts.map +1 -1
- package/esm/0_deps.js +3 -3
- package/esm/client/0_params.d.ts +3 -1
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_storage_operations.d.ts +8 -0
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +22 -13
- package/esm/client/0_utilities.d.ts +5 -0
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/0_utilities.js +33 -1
- package/esm/client/1_types.d.ts +3 -3
- package/esm/client/1_types.d.ts.map +1 -1
- package/esm/client/2_account_manager.d.ts.map +1 -1
- package/esm/client/2_account_manager.js +11 -10
- package/esm/client/2_update_manager.d.ts +2 -2
- package/esm/client/2_update_manager.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +100 -14
- package/esm/client/3_message_manager.d.ts +2 -2
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +66 -31
- package/esm/client/3_video_chat_manager.d.ts.map +1 -1
- package/esm/client/3_video_chat_manager.js +2 -1
- package/esm/client/4_chat_list_manager.js +11 -11
- package/esm/client/5_client.d.ts +6 -6
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +49 -18
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/almost_equals.d.ts +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/almost_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/almost_equals.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/array_includes.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/array_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/array_includes.js +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/equal.d.ts +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equal.js +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.js +5 -5
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/exists.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/exists.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/fail.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/fail.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/fail.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/false.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/false.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/false.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/greater_or_equal.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater_or_equal.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/instance_of.d.ts +3 -3
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/instance_of.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/is_error.d.ts +2 -2
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/is_error.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/less.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/less_or_equal.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less_or_equal.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/match.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/match.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/not_instance_of.d.ts +2 -2
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_instance_of.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/not_strict_equals.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_strict_equals.js +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.d.ts +2 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/rejects.d.ts +3 -3
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/rejects.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/rejects.js +2 -3
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/strict_equals.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/strict_equals.js +6 -6
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/string_includes.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/string_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/string_includes.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.d.ts +3 -3
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.js +2 -3
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.js +1 -1
- package/{script/deps/jsr.io/@std/assert/1.0.5 → esm/deps/jsr.io/@std/assert/1.0.6}/unreachable.d.ts +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unreachable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unreachable.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.2}/concat.d.ts +3 -2
- package/esm/deps/jsr.io/@std/bytes/1.0.2/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.2}/concat.js +3 -2
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/internal/1.0.3 → esm/deps/jsr.io/@std/internal/1.0.4}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts.map +1 -1
- package/esm/tl/3_utilities.js +2 -2
- package/esm/types/0_id.d.ts +1 -1
- package/esm/types/1_bot_command_scope.js +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +3 -3
- package/script/0_deps.d.ts.map +1 -1
- package/script/0_deps.js +3 -3
- package/script/client/0_params.d.ts +3 -1
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_storage_operations.d.ts +8 -0
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +21 -12
- package/script/client/0_utilities.d.ts +5 -0
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/0_utilities.js +37 -1
- package/script/client/1_types.d.ts +3 -3
- package/script/client/1_types.d.ts.map +1 -1
- package/script/client/2_account_manager.d.ts.map +1 -1
- package/script/client/2_account_manager.js +11 -10
- package/script/client/2_update_manager.d.ts +2 -2
- package/script/client/2_update_manager.d.ts.map +1 -1
- package/script/client/2_update_manager.js +100 -14
- package/script/client/3_message_manager.d.ts +2 -2
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +74 -39
- package/script/client/3_video_chat_manager.d.ts.map +1 -1
- package/script/client/3_video_chat_manager.js +2 -1
- package/script/client/4_chat_list_manager.js +10 -10
- package/script/client/5_client.d.ts +6 -6
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +47 -16
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/almost_equals.d.ts +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/almost_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/almost_equals.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/array_includes.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/array_includes.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/array_includes.js +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assert.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/assertion_error.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/equal.d.ts +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equal.js +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/equals.js +5 -5
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/exists.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/exists.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/exists.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/fail.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/fail.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/fail.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/false.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/false.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/false.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/greater_or_equal.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater_or_equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/greater_or_equal.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/instance_of.d.ts +3 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/instance_of.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/is_error.d.ts +2 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/is_error.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/less.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/less_or_equal.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less_or_equal.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/less_or_equal.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/match.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/match.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/mod.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_equals.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/not_instance_of.d.ts +2 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_instance_of.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_match.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/not_strict_equals.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_strict_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/not_strict_equals.js +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.d.ts +2 -2
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/object_match.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/rejects.d.ts +3 -3
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/rejects.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/rejects.js +2 -3
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/strict_equals.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/strict_equals.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/strict_equals.js +6 -6
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/string_includes.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/string_includes.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/string_includes.js +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.d.ts +3 -3
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/throws.js +2 -3
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unimplemented.js +1 -1
- package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/unreachable.d.ts +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unreachable.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/assert/{1.0.5 → 1.0.6}/unreachable.js +1 -1
- package/script/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.2}/concat.d.ts +3 -2
- package/script/deps/jsr.io/@std/bytes/1.0.2/concat.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/bytes/{0.224.0 → 1.0.2}/concat.js +3 -2
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/internal/1.0.3 → script/deps/jsr.io/@std/internal/1.0.4}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts.map +1 -1
- package/script/tl/3_utilities.js +2 -2
- package/script/types/0_id.d.ts +1 -1
- package/script/types/1_bot_command_scope.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.5/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.5/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.5/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/0.224.0/concat.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.5/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.5/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.5/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/bytes/0.224.0/concat.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/build_message.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/diff_str.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/format.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/styles.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.3 → 1.0.4}/types.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/_constants.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/iterate_reader.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.8 → 0.224.9}/types.js +0 -0
|
@@ -29,7 +29,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
29
29
|
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");
|
|
30
30
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
31
31
|
};
|
|
32
|
-
var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_videoChatManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_paymentManager, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_publicKeys,
|
|
32
|
+
var _Client_instances, _a, _Client_client, _Client_guaranteeUpdateDelivery, _Client_updateManager, _Client_networkStatisticsManager, _Client_botInfoManager, _Client_fileManager, _Client_reactionManager, _Client_videoChatManager, _Client_businessConnectionManager, _Client_messageManager, _Client_storyManager, _Client_callbackQueryManager, _Client_inlineQueryManager, _Client_chatListManager, _Client_accountManager, _Client_paymentManager, _Client_storage_, _Client_messageStorage_, _Client_parseMode, _Client_apiId, _Client_apiHash, _Client_publicKeys, _Client_outgoingMessages, _Client_persistCache, _Client_disableUpdates, _Client_authString, _Client_cdn, _Client_L, _Client_LsignIn, _Client_LpingLoop, _Client_LhandleMigrationError, _Client_L$initConncetion, _Client_Lmin, _Client_reconnecting, _Client_reconnect, _Client_getApiId, _Client_getCdnConnectionPool, _Client_getCdnConnection, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_stateChangeHandler, _Client_storageInited, _Client_initStorage, _Client_connectMutex, _Client_lastConnect, _Client_connectionInited, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_getSelfId, _Client_connectionInsuranceLoopStarted, _Client_connectionInsuranceLoopAbortController, _Client_startConnectionInsuranceLoop, _Client_connectionInsuranceLoop, _Client_pingLoopAbortController, _Client_pingInterval, _Client_lastUpdates, _Client_startPingLoop, _Client_pingLoop, _Client_invoke, _Client_handleInvokeError, _Client_authStringImported, _Client_getUserAccessHash, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_getMinInputPeer, _Client_handleCtxUpdate, _Client_queueHandleCtxUpdate, _Client_handleUpdate, _Client_lastGetMe, _Client_getMe;
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
exports.Client = exports.handleMigrationError = exports.restartAuth = exports.Composer = void 0;
|
|
35
35
|
const _0_deps_js_1 = require("../0_deps.js");
|
|
@@ -153,7 +153,7 @@ class Client extends Composer {
|
|
|
153
153
|
value: void 0
|
|
154
154
|
});
|
|
155
155
|
_Client_publicKeys.set(this, void 0);
|
|
156
|
-
|
|
156
|
+
_Client_outgoingMessages.set(this, void 0);
|
|
157
157
|
_Client_persistCache.set(this, void 0);
|
|
158
158
|
_Client_disableUpdates.set(this, void 0);
|
|
159
159
|
_Client_authString.set(this, void 0);
|
|
@@ -163,6 +163,7 @@ class Client extends Composer {
|
|
|
163
163
|
_Client_LpingLoop.set(this, void 0);
|
|
164
164
|
_Client_LhandleMigrationError.set(this, void 0);
|
|
165
165
|
_Client_L$initConncetion.set(this, void 0);
|
|
166
|
+
_Client_Lmin.set(this, void 0);
|
|
166
167
|
_Client_reconnecting.set(this, false);
|
|
167
168
|
_Client_constructContext.set(this, async (update) => {
|
|
168
169
|
const msg = "message" in update ? update.message : "editedMessage" in update ? update.editedMessage : "scheduledMessage" in update ? update.scheduledMessage : "callbackQuery" in update ? update.callbackQuery.message : undefined;
|
|
@@ -640,7 +641,7 @@ class Client extends Composer {
|
|
|
640
641
|
this.systemLangCode = params?.systemLangCode ?? _4_constants_js_1.SYSTEM_LANG_CODE;
|
|
641
642
|
this.systemVersion = params?.systemVersion ?? _4_constants_js_1.SYSTEM_VERSION;
|
|
642
643
|
__classPrivateFieldSet(this, _Client_publicKeys, params?.publicKeys, "f");
|
|
643
|
-
__classPrivateFieldSet(this,
|
|
644
|
+
__classPrivateFieldSet(this, _Client_outgoingMessages, params?.outgoingMessages ?? null, "f");
|
|
644
645
|
if (params?.prefixes) {
|
|
645
646
|
this.prefixes = params?.prefixes;
|
|
646
647
|
}
|
|
@@ -650,6 +651,7 @@ class Client extends Composer {
|
|
|
650
651
|
__classPrivateFieldSet(this, _Client_LpingLoop, L.branch("pingLoop"), "f");
|
|
651
652
|
__classPrivateFieldSet(this, _Client_LhandleMigrationError, L.branch("[handleMigrationError]"), "f");
|
|
652
653
|
__classPrivateFieldSet(this, _Client_L$initConncetion, L.branch("#initConnection"), "f");
|
|
654
|
+
__classPrivateFieldSet(this, _Client_Lmin, L.branch("min"), "f");
|
|
653
655
|
__classPrivateFieldSet(this, _Client_cdn, params?.cdn ?? false, "f");
|
|
654
656
|
const c = {
|
|
655
657
|
id,
|
|
@@ -676,7 +678,7 @@ class Client extends Composer {
|
|
|
676
678
|
getCdnConnection: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getCdnConnection).bind(this),
|
|
677
679
|
getCdnConnectionPool: __classPrivateFieldGet(this, _Client_instances, "m", _Client_getCdnConnectionPool).bind(this),
|
|
678
680
|
cdn: __classPrivateFieldGet(this, _Client_cdn, "f"),
|
|
679
|
-
|
|
681
|
+
outgoingMessages: __classPrivateFieldGet(this, _Client_outgoingMessages, "f"),
|
|
680
682
|
dropPendingUpdates: params?.dropPendingUpdates,
|
|
681
683
|
disconnected: () => this.disconnected,
|
|
682
684
|
};
|
|
@@ -813,7 +815,7 @@ class Client extends Composer {
|
|
|
813
815
|
}
|
|
814
816
|
await __classPrivateFieldGet(this, _Client_client, "f").reconnect();
|
|
815
817
|
}
|
|
816
|
-
async [(_Client_client = 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_videoChatManager = new WeakMap(), _Client_businessConnectionManager = 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_paymentManager = new WeakMap(), _Client_storage_ = new WeakMap(), _Client_messageStorage_ = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_apiId = new WeakMap(), _Client_apiHash = new WeakMap(), _Client_publicKeys = new WeakMap(),
|
|
818
|
+
async [(_Client_client = 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_videoChatManager = new WeakMap(), _Client_businessConnectionManager = 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_paymentManager = new WeakMap(), _Client_storage_ = new WeakMap(), _Client_messageStorage_ = new WeakMap(), _Client_parseMode = new WeakMap(), _Client_apiId = new WeakMap(), _Client_apiHash = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_outgoingMessages = new WeakMap(), _Client_persistCache = new WeakMap(), _Client_disableUpdates = new WeakMap(), _Client_authString = new WeakMap(), _Client_cdn = new WeakMap(), _Client_L = new WeakMap(), _Client_LsignIn = new WeakMap(), _Client_LpingLoop = new WeakMap(), _Client_LhandleMigrationError = new WeakMap(), _Client_L$initConncetion = new WeakMap(), _Client_Lmin = new WeakMap(), _Client_reconnecting = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_stateChangeHandler = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_lastConnect = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_connectionInsuranceLoopStarted = new WeakMap(), _Client_connectionInsuranceLoopAbortController = new WeakMap(), _Client_pingLoopAbortController = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_authStringImported = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_instances = new WeakSet(), _Client_reconnect = async function _Client_reconnect() {
|
|
817
819
|
if (this.connected) {
|
|
818
820
|
return;
|
|
819
821
|
}
|
|
@@ -1181,10 +1183,10 @@ class Client extends Composer {
|
|
|
1181
1183
|
*/
|
|
1182
1184
|
async getInputChannel(id) {
|
|
1183
1185
|
const inputPeer = await this.getInputPeer(id);
|
|
1184
|
-
if (!(
|
|
1186
|
+
if (!(0, _0_utilities_js_1.canBeInputChannel)(inputPeer)) {
|
|
1185
1187
|
throw new TypeError(`The chat ${id} is not a channel neither a supergroup.`);
|
|
1186
1188
|
}
|
|
1187
|
-
return
|
|
1189
|
+
return (0, _0_utilities_js_1.toInputChannel)(inputPeer);
|
|
1188
1190
|
}
|
|
1189
1191
|
/**
|
|
1190
1192
|
* Get a user's inputUser. Useful when calling API functions directly.
|
|
@@ -1193,10 +1195,10 @@ class Client extends Composer {
|
|
|
1193
1195
|
*/
|
|
1194
1196
|
async getInputUser(id) {
|
|
1195
1197
|
const inputPeer = await this.getInputPeer(id);
|
|
1196
|
-
if (!(
|
|
1198
|
+
if (!(0, _0_utilities_js_1.canBeInputUser)(inputPeer)) {
|
|
1197
1199
|
throw new TypeError(`The chat ${id} is not a private chat.`);
|
|
1198
1200
|
}
|
|
1199
|
-
return
|
|
1201
|
+
return (0, _0_utilities_js_1.toInputUser)(inputPeer);
|
|
1200
1202
|
}
|
|
1201
1203
|
async [(_Client_propagateAuthorizationState = async function _Client_propagateAuthorizationState(authorized) {
|
|
1202
1204
|
if (__classPrivateFieldGet(this, _Client_lastPropagatedAuthorizationState, "f") != authorized) {
|
|
@@ -1342,6 +1344,8 @@ class Client extends Composer {
|
|
|
1342
1344
|
if (!isNaN(idn)) {
|
|
1343
1345
|
id = idn;
|
|
1344
1346
|
}
|
|
1347
|
+
__classPrivateFieldGet(this, _Client_Lmin, "f").debug("gipi A", id);
|
|
1348
|
+
let peer;
|
|
1345
1349
|
if (typeof id === "string") {
|
|
1346
1350
|
id = (0, _0_utilities_js_1.getUsername)(id);
|
|
1347
1351
|
let resolvedId = 0;
|
|
@@ -1352,8 +1356,8 @@ class Client extends Composer {
|
|
|
1352
1356
|
}
|
|
1353
1357
|
else {
|
|
1354
1358
|
const resolved = await this.invoke({ _: "contacts.resolveUsername", username: id });
|
|
1355
|
-
await __classPrivateFieldGet(this, _Client_updateManager, "f").processChats(resolved.chats);
|
|
1356
|
-
await __classPrivateFieldGet(this, _Client_updateManager, "f").processUsers(resolved.users);
|
|
1359
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").processChats(resolved.chats, resolved);
|
|
1360
|
+
await __classPrivateFieldGet(this, _Client_updateManager, "f").processUsers(resolved.users, resolved);
|
|
1357
1361
|
if ((0, _2_tl_js_1.is)("peerUser", resolved.peer)) {
|
|
1358
1362
|
resolvedId = (0, _2_tl_js_1.peerToChatId)(resolved.peer);
|
|
1359
1363
|
}
|
|
@@ -1365,13 +1369,14 @@ class Client extends Composer {
|
|
|
1365
1369
|
}
|
|
1366
1370
|
}
|
|
1367
1371
|
const resolvedIdType = (0, _2_tl_js_1.getChatIdPeerType)(resolvedId);
|
|
1372
|
+
__classPrivateFieldGet(this, _Client_Lmin, "f").debug({ resolvedId });
|
|
1368
1373
|
if (resolvedIdType == "user") {
|
|
1369
1374
|
const accessHash = await this.messageStorage.getUserAccessHash(resolvedId);
|
|
1370
|
-
|
|
1375
|
+
peer = { _: "inputPeerUser", user_id: (0, _2_tl_js_1.chatIdToPeerId)(resolvedId), access_hash: accessHash ?? 0n };
|
|
1371
1376
|
}
|
|
1372
1377
|
else if (resolvedIdType == "channel") {
|
|
1373
1378
|
const accessHash = await this.messageStorage.getChannelAccessHash(resolvedId);
|
|
1374
|
-
|
|
1379
|
+
peer = { _: "inputPeerChannel", channel_id: (0, _2_tl_js_1.chatIdToPeerId)(resolvedId), access_hash: accessHash ?? 0n };
|
|
1375
1380
|
}
|
|
1376
1381
|
else {
|
|
1377
1382
|
(0, _0_deps_js_1.unreachable)();
|
|
@@ -1379,18 +1384,44 @@ class Client extends Composer {
|
|
|
1379
1384
|
}
|
|
1380
1385
|
else if (id > 0) {
|
|
1381
1386
|
const accessHash = await this.messageStorage.getUserAccessHash(id);
|
|
1382
|
-
|
|
1387
|
+
peer = { _: "inputPeerUser", user_id: (0, _2_tl_js_1.chatIdToPeerId)(id), access_hash: accessHash ?? 0n };
|
|
1383
1388
|
}
|
|
1384
1389
|
else if (-_4_constants_js_1.MAX_CHAT_ID <= id) {
|
|
1385
|
-
|
|
1390
|
+
peer = { _: "inputPeerChat", chat_id: BigInt(Math.abs(id)) };
|
|
1386
1391
|
}
|
|
1387
1392
|
else if (_1_utilities_js_1.ZERO_CHANNEL_ID - _4_constants_js_1.MAX_CHANNEL_ID <= id && id != _1_utilities_js_1.ZERO_CHANNEL_ID) {
|
|
1388
1393
|
const accessHash = await this.messageStorage.getChannelAccessHash(id);
|
|
1389
|
-
|
|
1394
|
+
peer = { _: "inputPeerChannel", channel_id: (0, _2_tl_js_1.chatIdToPeerId)(id), access_hash: accessHash ?? 0n };
|
|
1390
1395
|
}
|
|
1391
1396
|
else {
|
|
1392
1397
|
throw new _0_errors_js_1.InputError("The ID is of an format unknown.");
|
|
1393
1398
|
}
|
|
1399
|
+
if (!(0, _2_tl_js_1.is)("inputPeerChat", peer) && !peer.access_hash) {
|
|
1400
|
+
const chatId = (0, _2_tl_js_1.peerToChatId)(peer);
|
|
1401
|
+
const minPeerReference = await this.messageStorage.getLastMinPeerReference(chatId);
|
|
1402
|
+
if (minPeerReference) {
|
|
1403
|
+
const minInputPeer = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getMinInputPeer).call(this, (0, _0_utilities_js_1.canBeInputChannel)(peer) ? "channel" : "user", { ...minPeerReference, senderId: chatId });
|
|
1404
|
+
if (minInputPeer) {
|
|
1405
|
+
__classPrivateFieldGet(this, _Client_Lmin, "f").debug("resolved input min peer", minInputPeer);
|
|
1406
|
+
peer = minInputPeer;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
return peer;
|
|
1411
|
+
}, _Client_getMinInputPeer = async function _Client_getMinInputPeer(type, reference) {
|
|
1412
|
+
const entity = await this.messageStorage.getEntity(reference.chatId);
|
|
1413
|
+
if ((0, _2_tl_js_1.isOneOf)(["channel", "channelForbidden"], entity) && entity.access_hash) {
|
|
1414
|
+
const peer = { _: "inputPeerChannel", channel_id: entity.id, access_hash: entity.access_hash };
|
|
1415
|
+
if (type == "user") {
|
|
1416
|
+
return { _: "inputPeerUserFromMessage", peer, msg_id: reference.messageId, user_id: (0, _2_tl_js_1.chatIdToPeerId)(reference.senderId) };
|
|
1417
|
+
}
|
|
1418
|
+
else {
|
|
1419
|
+
return { _: "inputPeerChannelFromMessage", peer, msg_id: reference.messageId, channel_id: (0, _2_tl_js_1.chatIdToPeerId)(reference.senderId) };
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
else {
|
|
1423
|
+
return null;
|
|
1424
|
+
}
|
|
1394
1425
|
}, getEntity)](peer) {
|
|
1395
1426
|
const id = (0, _2_tl_js_1.peerToChatId)(peer);
|
|
1396
1427
|
const entity = await this.messageStorage.getEntity(id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/array_includes.ts"],"names":[],"mappings":"AAMA,0FAA0F;AAC1F,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,GAAG,CAAC,EAAE,MAAM,QAwBb"}
|
|
@@ -4,7 +4,7 @@ exports.assertArrayIncludes = void 0;
|
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
5
|
// This module is browser compatible.
|
|
6
6
|
const equal_js_1 = require("./equal.js");
|
|
7
|
-
const format_js_1 = require("../../internal/1.0.
|
|
7
|
+
const format_js_1 = require("../../internal/1.0.4/format.js");
|
|
8
8
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion that `actual` includes the `expected` values. If not then
|
|
@@ -14,7 +14,7 @@ const assertion_error_js_1 = require("./assertion_error.js");
|
|
|
14
14
|
* same type.
|
|
15
15
|
*
|
|
16
16
|
* @example Usage
|
|
17
|
-
* ```ts
|
|
17
|
+
* ```ts ignore
|
|
18
18
|
* import { assertArrayIncludes } from "@std/assert";
|
|
19
19
|
*
|
|
20
20
|
* assertArrayIncludes([1, 2], [2]); // Doesn't throw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
|
|
@@ -8,7 +8,7 @@ const assertion_error_js_1 = require("./assertion_error.js");
|
|
|
8
8
|
* Make an assertion, error will be thrown if `expr` does not have truthy value.
|
|
9
9
|
*
|
|
10
10
|
* @example Usage
|
|
11
|
-
* ```ts
|
|
11
|
+
* ```ts ignore
|
|
12
12
|
* import { assert } from "@std/assert";
|
|
13
13
|
*
|
|
14
14
|
* assert("hello".includes("ello")); // Doesn't throw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/equal.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Deep equality comparison used in assertions
|
|
2
|
+
* Deep equality comparison used in assertions.
|
|
3
3
|
*
|
|
4
4
|
* @param c The actual value
|
|
5
5
|
* @param d The expected value
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @example Usage
|
|
9
9
|
* ```ts
|
|
10
|
-
* import { equal } from "@std/assert";
|
|
10
|
+
* import { equal } from "@std/assert/equal";
|
|
11
11
|
*
|
|
12
12
|
* equal({ foo: "bar" }, { foo: "bar" }); // Returns `true`
|
|
13
13
|
* equal({ foo: "bar" }, { foo: "baz" }); // Returns `false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/equal.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA0HrD"}
|
|
@@ -12,7 +12,7 @@ function constructorsEqual(a, b) {
|
|
|
12
12
|
!a.constructor && b.constructor === Object;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Deep equality comparison used in assertions
|
|
15
|
+
* Deep equality comparison used in assertions.
|
|
16
16
|
*
|
|
17
17
|
* @param c The actual value
|
|
18
18
|
* @param d The expected value
|
|
@@ -20,7 +20,7 @@ function constructorsEqual(a, b) {
|
|
|
20
20
|
*
|
|
21
21
|
* @example Usage
|
|
22
22
|
* ```ts
|
|
23
|
-
* import { equal } from "@std/assert";
|
|
23
|
+
* import { equal } from "@std/assert/equal";
|
|
24
24
|
*
|
|
25
25
|
* equal({ foo: "bar" }, { foo: "bar" }); // Returns `true`
|
|
26
26
|
* equal({ foo: "bar" }, { foo: "baz" }); // Returns `false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/equals.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAkBb"}
|
|
@@ -4,10 +4,10 @@ exports.assertEquals = void 0;
|
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
5
|
// This module is browser compatible.
|
|
6
6
|
const equal_js_1 = require("./equal.js");
|
|
7
|
-
const build_message_js_1 = require("../../internal/1.0.
|
|
8
|
-
const diff_js_1 = require("../../internal/1.0.
|
|
9
|
-
const diff_str_js_1 = require("../../internal/1.0.
|
|
10
|
-
const format_js_1 = require("../../internal/1.0.
|
|
7
|
+
const build_message_js_1 = require("../../internal/1.0.4/build_message.js");
|
|
8
|
+
const diff_js_1 = require("../../internal/1.0.4/diff.js");
|
|
9
|
+
const diff_str_js_1 = require("../../internal/1.0.4/diff_str.js");
|
|
10
|
+
const format_js_1 = require("../../internal/1.0.4/format.js");
|
|
11
11
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
12
12
|
/**
|
|
13
13
|
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
@@ -17,7 +17,7 @@ const assertion_error_js_1 = require("./assertion_error.js");
|
|
|
17
17
|
* same type.
|
|
18
18
|
*
|
|
19
19
|
* @example Usage
|
|
20
|
-
* ```ts
|
|
20
|
+
* ```ts ignore
|
|
21
21
|
* import { assertEquals } from "@std/assert";
|
|
22
22
|
*
|
|
23
23
|
* assertEquals("world", "world"); // Doesn't throw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/fail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
|
package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/false.d.ts
RENAMED
|
@@ -4,7 +4,7 @@ export type Falsy = false | 0 | 0n | "" | null | undefined;
|
|
|
4
4
|
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
5
5
|
*
|
|
6
6
|
* @example Usage
|
|
7
|
-
* ```ts
|
|
7
|
+
* ```ts ignore
|
|
8
8
|
* import { assertFalse } from "@std/assert";
|
|
9
9
|
*
|
|
10
10
|
* assertFalse(false); // Doesn't throw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -8,7 +8,7 @@ const assertion_error_js_1 = require("./assertion_error.js");
|
|
|
8
8
|
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
9
9
|
*
|
|
10
10
|
* @example Usage
|
|
11
|
-
* ```ts
|
|
11
|
+
* ```ts ignore
|
|
12
12
|
* import { assertFalse } from "@std/assert";
|
|
13
13
|
*
|
|
14
14
|
* assertFalse(false); // Doesn't throw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/greater.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.assertGreater = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
5
|
// This module is browser compatible.
|
|
6
|
-
const format_js_1 = require("../../internal/1.0.
|
|
6
|
+
const format_js_1 = require("../../internal/1.0.4/format.js");
|
|
7
7
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
8
8
|
/**
|
|
9
9
|
* Make an assertion that `actual` is greater than `expected`.
|
|
10
10
|
* If not then throw.
|
|
11
11
|
*
|
|
12
12
|
* @example Usage
|
|
13
|
-
* ```ts
|
|
13
|
+
* ```ts ignore
|
|
14
14
|
* import { assertGreater } from "@std/assert";
|
|
15
15
|
*
|
|
16
16
|
* assertGreater(2, 1); // Doesn't throw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.assertGreaterOrEqual = void 0;
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
5
|
// This module is browser compatible.
|
|
6
|
-
const format_js_1 = require("../../internal/1.0.
|
|
6
|
+
const format_js_1 = require("../../internal/1.0.4/format.js");
|
|
7
7
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
8
8
|
/**
|
|
9
9
|
* Make an assertion that `actual` is greater than or equal to `expected`.
|
|
10
10
|
* If not then throw.
|
|
11
11
|
*
|
|
12
12
|
* @example Usage
|
|
13
|
-
* ```ts
|
|
13
|
+
* ```ts ignore
|
|
14
14
|
* import { assertGreaterOrEqual } from "@std/assert";
|
|
15
15
|
*
|
|
16
16
|
* assertGreaterOrEqual(2, 1); // Doesn't throw
|
package/{esm/deps/jsr.io/@std/assert/1.0.5 → script/deps/jsr.io/@std/assert/1.0.6}/instance_of.d.ts
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/** Any constructor */
|
|
2
2
|
export type AnyConstructor = new (...args: any[]) => any;
|
|
3
3
|
/** Gets constructor type */
|
|
4
|
-
export type GetConstructorType<T extends AnyConstructor> = T
|
|
4
|
+
export type GetConstructorType<T extends AnyConstructor> = InstanceType<T>;
|
|
5
5
|
/**
|
|
6
6
|
* Make an assertion that `obj` is an instance of `type`.
|
|
7
7
|
* If not then throw.
|
|
8
8
|
*
|
|
9
9
|
* @example Usage
|
|
10
|
-
* ```ts
|
|
10
|
+
* ```ts ignore
|
|
11
11
|
* import { assertInstanceOf } from "@std/assert";
|
|
12
12
|
*
|
|
13
13
|
* assertInstanceOf(new Date(), Date); // Doesn't throw
|
|
@@ -19,5 +19,5 @@ export type GetConstructorType<T extends AnyConstructor> = T extends new (...arg
|
|
|
19
19
|
* @param expectedType The expected class constructor.
|
|
20
20
|
* @param msg The optional message to display if the assertion fails.
|
|
21
21
|
*/
|
|
22
|
-
export declare function assertInstanceOf<T extends
|
|
22
|
+
export declare function assertInstanceOf<T extends abstract new (...args: any[]) => any>(actual: unknown, expectedType: T, msg?: string): asserts actual is InstanceType<T>;
|
|
23
23
|
//# sourceMappingURL=instance_of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* error message can also be asserted.
|
|
6
6
|
*
|
|
7
7
|
* @example Usage
|
|
8
|
-
* ```ts
|
|
8
|
+
* ```ts ignore
|
|
9
9
|
* import { assertIsError } from "@std/assert";
|
|
10
10
|
*
|
|
11
11
|
* assertIsError(null); // Throws
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
* @param msgMatches The optional string or RegExp to assert in the error message.
|
|
22
22
|
* @param msg The optional message to display if the assertion fails.
|
|
23
23
|
*/
|
|
24
|
-
export declare function assertIsError<E extends Error = Error>(error: unknown, ErrorClass?: new (...args: any[]) => E, msgMatches?: string | RegExp, msg?: string): asserts error is E;
|
|
24
|
+
export declare function assertIsError<E extends Error = Error>(error: unknown, ErrorClass?: abstract new (...args: any[]) => E, msgMatches?: string | RegExp, msg?: string): asserts error is E;
|
|
25
25
|
//# sourceMappingURL=is_error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
|
|
@@ -4,7 +4,7 @@ exports.assertIsError = void 0;
|
|
|
4
4
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
5
|
// This module is browser compatible.
|
|
6
6
|
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
-
const styles_js_1 = require("../../internal/1.0.
|
|
7
|
+
const styles_js_1 = require("../../internal/1.0.4/styles.js");
|
|
8
8
|
/**
|
|
9
9
|
* Make an assertion that `error` is an `Error`.
|
|
10
10
|
* If not then an error will be thrown.
|
|
@@ -12,7 +12,7 @@ const styles_js_1 = require("../../internal/1.0.3/styles.js");
|
|
|
12
12
|
* error message can also be asserted.
|
|
13
13
|
*
|
|
14
14
|
* @example Usage
|
|
15
|
-
* ```ts
|
|
15
|
+
* ```ts ignore
|
|
16
16
|
* import { assertIsError } from "@std/assert";
|
|
17
17
|
*
|
|
18
18
|
* assertIsError(null); // Throws
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/less.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
|