@mtkruto/node 0.3.1 → 0.5.0
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 +1 -1
- package/esm/0_deps.js +1 -1
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +4 -4
- package/esm/client/0_params.d.ts +10 -3
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/0_password.js +2 -2
- package/esm/client/0_utilities.d.ts +4 -4
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/1_client_encrypted.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +1 -1
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +16 -0
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +3 -3
- package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +4 -4
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/less.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +5 -5
- package/{script/deps/jsr.io/@std/internal/1.0.4 → esm/deps/jsr.io/@std/internal/1.0.5}/build_message.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.js +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts.map +1 -1
- package/esm/tl/0_api.d.ts +199 -41
- package/esm/tl/0_api.d.ts.map +1 -1
- package/esm/tl/0_api.js +314 -75
- package/esm/transport/1_transport_abridged.d.ts.map +1 -1
- package/esm/transport/1_transport_intermediate.d.ts.map +1 -1
- package/esm/transport/2_transport_provider.js +4 -4
- package/esm/types/2_inline_keyboard_button.d.ts +9 -1
- package/esm/types/2_inline_keyboard_button.d.ts.map +1 -1
- package/esm/types/2_inline_keyboard_button.js +6 -0
- package/esm/types/2_invite_link.d.ts +5 -1
- package/esm/types/2_invite_link.d.ts.map +1 -1
- package/esm/types/2_invite_link.js +2 -0
- package/esm/utilities/0_cache_map.d.ts.map +1 -1
- package/esm/utilities/0_units.js +3 -3
- package/esm/utilities/2_queue.d.ts.map +1 -1
- package/package.json +1 -1
- package/script/0_deps.d.ts +1 -1
- package/script/0_deps.js +3 -3
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +4 -4
- package/script/4_errors.js +2 -2
- package/script/client/0_filters.js +1 -2
- package/script/client/0_html.js +1 -2
- package/script/client/0_markdown.js +2 -2
- package/script/client/0_message.js +5 -6
- package/script/client/0_params.d.ts +10 -3
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/0_password.js +8 -8
- package/script/client/0_utilities.d.ts +4 -4
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/0_utilities.js +16 -16
- package/script/client/1_client_encrypted.d.ts.map +1 -1
- package/script/client/1_composer.js +4 -4
- package/script/client/2_update_manager.js +1 -1
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +16 -0
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +2 -2
- package/script/deps/deno.land/std@0.224.0/io/write_all.js +2 -3
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/DomSerializer.js +1 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/ElementType.js +2 -2
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/FeedHandler.js +2 -2
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/Node.js +9 -9
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/mod.js +4 -4
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/decode_codepoint.js +1 -1
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/encode.js +3 -3
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/entities/mod.js +4 -4
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/helpers.js +4 -4
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/legacy.js +5 -6
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/manipulation.js +6 -7
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/querying.js +6 -7
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/stringify.js +5 -6
- package/script/deps/deno.land/x/html_parser@v0.1.3/src/utils/traversal.js +8 -9
- package/script/deps/deno.land/x/tgcrypto@0.4.1/mod.js +10 -11
- package/script/deps/jsr.io/@std/assert/1.0.6/almost_equals.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/array_includes.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/assert.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +5 -6
- package/script/deps/jsr.io/@std/assert/1.0.6/exists.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/fail.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/false.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/greater.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/less.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/match.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_equals.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +2 -3
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/rejects.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +6 -7
- package/script/deps/jsr.io/@std/assert/1.0.6/string_includes.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/throws.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/unimplemented.js +1 -2
- package/script/deps/jsr.io/@std/assert/1.0.6/unreachable.js +1 -2
- package/script/deps/jsr.io/@std/bytes/1.0.2/concat.js +1 -2
- package/script/deps/jsr.io/@std/encoding/1.0.5/_validate_binary_like.js +1 -2
- package/script/deps/jsr.io/@std/encoding/1.0.5/base64.js +2 -3
- package/{esm/deps/jsr.io/@std/internal/1.0.4 → script/deps/jsr.io/@std/internal/1.0.5}/build_message.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +3 -4
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +5 -6
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +4 -5
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +1 -2
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +10 -11
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.js +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.js +2 -3
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/media-types/1.0.3/_util.js +8 -9
- package/script/deps/jsr.io/@std/media-types/1.0.3/all_extensions.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/content_type.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/extension.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/format_media_type.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/get_charset.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/parse_media_type.js +1 -2
- package/script/deps/jsr.io/@std/media-types/1.0.3/type_by_extension.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +3 -4
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +2 -3
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/basename.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/common.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/extname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/format.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/join.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/parse.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/relative.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +3 -4
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +1 -2
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +1 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/utils/uint8.js +1 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +2 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/adler32.js +1 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +2 -3
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +6 -6
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +1 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +10 -10
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inftrees.js +1 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +5 -6
- package/script/deps/raw.githubusercontent.com/MTKruto/socks5/main/utils.js +1 -2
- package/script/storage/1_utilities.js +7 -7
- package/script/tl/0_api.d.ts +199 -41
- package/script/tl/0_api.d.ts.map +1 -1
- package/script/tl/0_api.js +314 -75
- package/script/tl/1_utilities.js +9 -10
- package/script/tl/2_deserialize.js +1 -2
- package/script/tl/2_serialize.js +1 -2
- package/script/tl/3_utilities.js +6 -7
- package/script/tl/4_rpc_result.js +2 -2
- package/script/tl/5_message.js +6 -6
- package/script/transport/0_obfuscation.js +1 -2
- package/script/transport/1_transport_abridged.d.ts.map +1 -1
- package/script/transport/1_transport_intermediate.d.ts.map +1 -1
- package/script/transport/2_transport_provider.js +7 -8
- package/script/transport/3_transport_provider_tcp.js +1 -2
- package/script/types/0_birthday.js +1 -2
- package/script/types/0_callback_query_answer.js +1 -2
- package/script/types/0_callback_query_question.js +1 -2
- package/script/types/0_chat_administrator_rights.js +2 -3
- package/script/types/0_chat_member_rights.js +2 -3
- package/script/types/0_chat_photo.js +1 -2
- package/script/types/0_contact.js +1 -2
- package/script/types/0_dice.js +1 -2
- package/script/types/0_failed_invitation.js +1 -2
- package/script/types/0_giveaway_parameters.js +1 -2
- package/script/types/0_invoice.js +1 -2
- package/script/types/0_link_preview.js +1 -2
- package/script/types/0_live_stream_channel.js +1 -2
- package/script/types/0_location.js +1 -2
- package/script/types/0_mask_position.js +1 -2
- package/script/types/0_message_entity.js +3 -4
- package/script/types/0_message_search_filter.js +1 -2
- package/script/types/0_mini_app_info.js +1 -2
- package/script/types/0_opening_hours.js +1 -2
- package/script/types/0_reaction.js +3 -4
- package/script/types/0_refunded_payment.js +1 -2
- package/script/types/0_restriction_reason.js +1 -2
- package/script/types/0_self_destruct_option.js +1 -2
- package/script/types/0_shipping_address.js +1 -2
- package/script/types/0_thumbnail.js +1 -2
- package/script/types/0_video_chat.js +1 -2
- package/script/types/0_voice.js +1 -2
- package/script/types/1_animation.js +1 -2
- package/script/types/1_audio.js +1 -2
- package/script/types/1_bot_command_scope.js +1 -2
- package/script/types/1_chat_p.js +1 -2
- package/script/types/1_document.js +1 -2
- package/script/types/1_giveaway.js +1 -2
- package/script/types/1_keyboard_button.js +2 -3
- package/script/types/1_message_reaction.js +1 -2
- package/script/types/1_order_info.js +1 -2
- package/script/types/1_photo.js +2 -3
- package/script/types/1_poll_option.js +1 -2
- package/script/types/1_reaction_count.js +1 -2
- package/script/types/1_reply_quote.js +1 -2
- package/script/types/1_sticker.js +1 -2
- package/script/types/1_story_privacy.js +2 -3
- package/script/types/1_story_reaction.js +1 -2
- package/script/types/1_user.js +1 -2
- package/script/types/1_venue.js +1 -2
- package/script/types/1_video.js +1 -2
- package/script/types/1_video_note.js +1 -2
- package/script/types/2_business_connection.js +1 -2
- package/script/types/2_chat.js +1 -2
- package/script/types/2_chat_member.js +1 -2
- package/script/types/2_chosen_inline_result.js +1 -2
- package/script/types/2_forward_header.js +1 -2
- package/script/types/2_game.js +1 -2
- package/script/types/2_inactive_chat.js +1 -2
- package/script/types/2_inline_keyboard_button.d.ts +9 -1
- package/script/types/2_inline_keyboard_button.d.ts.map +1 -1
- package/script/types/2_inline_keyboard_button.js +8 -3
- package/script/types/2_inline_query.js +1 -2
- package/script/types/2_invite_link.d.ts +5 -1
- package/script/types/2_invite_link.d.ts.map +1 -1
- package/script/types/2_invite_link.js +3 -2
- package/script/types/2_message_reaction_count.js +1 -2
- package/script/types/2_message_reactions.js +1 -2
- package/script/types/2_poll.js +1 -2
- package/script/types/2_pre_checkout_query.js +1 -2
- package/script/types/2_story_content.js +1 -2
- package/script/types/2_story_interactions.js +1 -2
- package/script/types/2_story_interactive_area.js +2 -3
- package/script/types/2_successful_payment.js +1 -2
- package/script/types/3_chat_member_updated.js +1 -2
- package/script/types/3_join_request.js +1 -2
- package/script/types/3_reply_markup.js +2 -3
- package/script/types/3_story.js +1 -2
- package/script/types/4_inline_query_result.js +2 -3
- package/script/types/4_message.js +2 -3
- package/script/types/5_callback_query.js +2 -3
- package/script/types/5_chat_list_item.js +5 -6
- package/script/types/5_inline_query_answer.js +1 -2
- package/script/types/_file_id.js +5 -5
- package/script/utilities/0_bigint.js +6 -7
- package/script/utilities/0_buffer.js +1 -2
- package/script/utilities/0_cache_map.d.ts.map +1 -1
- package/script/utilities/0_color.js +2 -3
- package/script/utilities/0_env.js +2 -3
- package/script/utilities/0_hash.js +2 -3
- package/script/utilities/0_object.js +1 -2
- package/script/utilities/0_rle.js +2 -3
- package/script/utilities/0_units.js +3 -3
- package/script/utilities/1_auth.js +1 -2
- package/script/utilities/1_base64.js +2 -3
- package/script/utilities/1_logger.js +5 -5
- package/script/utilities/1_math.js +1 -2
- package/script/utilities/1_misc.js +8 -8
- package/script/utilities/2_queue.d.ts.map +1 -1
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.js +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/_constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/iterate_reader.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.225.0}/types.js +0 -0
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0;
|
|
7
|
+
exports.escape = escape;
|
|
8
|
+
exports.escapeUTF8 = escapeUTF8;
|
|
7
9
|
const xml_js_1 = __importDefault(require("./maps/xml.js"));
|
|
8
10
|
const inverseXML = getInverseObj(xml_js_1.default);
|
|
9
11
|
const xmlReplacer = getInverseReplacer(inverseXML);
|
|
@@ -111,7 +113,6 @@ const reEscapeChars = new RegExp(`${xmlReplacer.source}|${reNonASCII.source}`, '
|
|
|
111
113
|
function escape(data) {
|
|
112
114
|
return data.replace(reEscapeChars, singleCharReplacer);
|
|
113
115
|
}
|
|
114
|
-
exports.escape = escape;
|
|
115
116
|
/**
|
|
116
117
|
* Encodes all characters not valid in XML documents using numeric hexadecimal
|
|
117
118
|
* reference (eg. `ü`).
|
|
@@ -123,7 +124,6 @@ exports.escape = escape;
|
|
|
123
124
|
function escapeUTF8(data) {
|
|
124
125
|
return data.replace(xmlReplacer, singleCharReplacer);
|
|
125
126
|
}
|
|
126
|
-
exports.escapeUTF8 = escapeUTF8;
|
|
127
127
|
function getASCIIEncoder(obj) {
|
|
128
128
|
return (data) => data.replace(reEscapeChars, c => obj[c] || singleCharReplacer(c));
|
|
129
129
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.
|
|
3
|
+
exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.EncodingMode = exports.DecodingMode = exports.EntityLevel = void 0;
|
|
4
|
+
exports.decode = decode;
|
|
5
|
+
exports.decodeStrict = decodeStrict;
|
|
6
|
+
exports.encode = encode;
|
|
4
7
|
const decode_js_1 = require("./decode.js");
|
|
5
8
|
const encode_js_1 = require("./encode.js");
|
|
6
9
|
/** The level of entities to support. */
|
|
@@ -54,7 +57,6 @@ function decode(data, options = EntityLevel.XML) {
|
|
|
54
57
|
}
|
|
55
58
|
return (0, decode_js_1.decodeXML)(data);
|
|
56
59
|
}
|
|
57
|
-
exports.decode = decode;
|
|
58
60
|
/**
|
|
59
61
|
* Decodes a string with entities. Does not allow missing trailing semicolons for entities.
|
|
60
62
|
*
|
|
@@ -72,7 +74,6 @@ function decodeStrict(data, options = EntityLevel.XML) {
|
|
|
72
74
|
}
|
|
73
75
|
return (0, decode_js_1.decodeXML)(data);
|
|
74
76
|
}
|
|
75
|
-
exports.decodeStrict = decodeStrict;
|
|
76
77
|
/**
|
|
77
78
|
* Encodes a string with entities.
|
|
78
79
|
*
|
|
@@ -92,7 +93,6 @@ function encode(data, options = EntityLevel.XML) {
|
|
|
92
93
|
// ASCII and Extensive are equivalent
|
|
93
94
|
return (0, encode_js_1.encodeXML)(data);
|
|
94
95
|
}
|
|
95
|
-
exports.encode = encode;
|
|
96
96
|
var encode_js_2 = require("./encode.js");
|
|
97
97
|
Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function () { return encode_js_2.encodeXML; } });
|
|
98
98
|
Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DocumentPosition = void 0;
|
|
4
|
+
exports.removeSubsets = removeSubsets;
|
|
5
|
+
exports.compareDocumentPosition = compareDocumentPosition;
|
|
6
|
+
exports.uniqueSort = uniqueSort;
|
|
4
7
|
const Node_js_1 = require("../Node.js");
|
|
5
8
|
/**
|
|
6
9
|
* Given an array of nodes, remove any member that is contained by another.
|
|
@@ -34,7 +37,6 @@ function removeSubsets(nodes) {
|
|
|
34
37
|
}
|
|
35
38
|
return nodes;
|
|
36
39
|
}
|
|
37
|
-
exports.removeSubsets = removeSubsets;
|
|
38
40
|
// Source: http://dom.spec.whatwg.org/#dom-node-comparedocumentposition
|
|
39
41
|
var DocumentPosition;
|
|
40
42
|
(function (DocumentPosition) {
|
|
@@ -108,7 +110,6 @@ function compareDocumentPosition(nodeA, nodeB) {
|
|
|
108
110
|
}
|
|
109
111
|
return DocumentPosition.PRECEDING;
|
|
110
112
|
}
|
|
111
|
-
exports.compareDocumentPosition = compareDocumentPosition;
|
|
112
113
|
/**
|
|
113
114
|
* Sort an array of nodes based on their relative position in the document and
|
|
114
115
|
* remove any duplicate nodes. If the array contains nodes that do not belong
|
|
@@ -131,4 +132,3 @@ function uniqueSort(nodes) {
|
|
|
131
132
|
});
|
|
132
133
|
return nodes;
|
|
133
134
|
}
|
|
134
|
-
exports.uniqueSort = uniqueSort;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.testElement = testElement;
|
|
4
|
+
exports.getElements = getElements;
|
|
5
|
+
exports.getElementById = getElementById;
|
|
6
|
+
exports.getElementsByTagName = getElementsByTagName;
|
|
7
|
+
exports.getElementsByTagType = getElementsByTagType;
|
|
4
8
|
const Node_js_1 = require("../Node.js");
|
|
5
9
|
const querying_js_1 = require("./querying.js");
|
|
6
10
|
const Checks = {
|
|
@@ -69,7 +73,6 @@ function testElement(options, node) {
|
|
|
69
73
|
const test = compileTest(options);
|
|
70
74
|
return test ? test(node) : true;
|
|
71
75
|
}
|
|
72
|
-
exports.testElement = testElement;
|
|
73
76
|
/**
|
|
74
77
|
* @param options An object describing nodes to look for.
|
|
75
78
|
* @param nodes Nodes to search through.
|
|
@@ -81,7 +84,6 @@ function getElements(options, nodes, recurse, limit = Infinity) {
|
|
|
81
84
|
const test = compileTest(options);
|
|
82
85
|
return test ? (0, querying_js_1.filter)(test, nodes, recurse, limit) : [];
|
|
83
86
|
}
|
|
84
|
-
exports.getElements = getElements;
|
|
85
87
|
/**
|
|
86
88
|
* @param id The unique ID attribute value to look for.
|
|
87
89
|
* @param nodes Nodes to search through.
|
|
@@ -93,7 +95,6 @@ function getElementById(id, nodes, recurse = true) {
|
|
|
93
95
|
nodes = [nodes];
|
|
94
96
|
return (0, querying_js_1.findOne)(getAttribCheck('id', id), nodes, recurse);
|
|
95
97
|
}
|
|
96
|
-
exports.getElementById = getElementById;
|
|
97
98
|
/**
|
|
98
99
|
* @param tagName Tag name to search for.
|
|
99
100
|
* @param nodes Nodes to search through.
|
|
@@ -104,7 +105,6 @@ exports.getElementById = getElementById;
|
|
|
104
105
|
function getElementsByTagName(tagName, nodes, recurse = true, limit = Infinity) {
|
|
105
106
|
return (0, querying_js_1.filter)(Checks.tag_name(tagName), nodes, recurse, limit);
|
|
106
107
|
}
|
|
107
|
-
exports.getElementsByTagName = getElementsByTagName;
|
|
108
108
|
/**
|
|
109
109
|
* @param type Element type to look for.
|
|
110
110
|
* @param nodes Nodes to search through.
|
|
@@ -115,4 +115,3 @@ exports.getElementsByTagName = getElementsByTagName;
|
|
|
115
115
|
function getElementsByTagType(type, nodes, recurse = true, limit = Infinity) {
|
|
116
116
|
return (0, querying_js_1.filter)(Checks.tag_type(type), nodes, recurse, limit);
|
|
117
117
|
}
|
|
118
|
-
exports.getElementsByTagType = getElementsByTagType;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.removeElement = removeElement;
|
|
4
|
+
exports.replaceElement = replaceElement;
|
|
5
|
+
exports.appendChild = appendChild;
|
|
6
|
+
exports.append = append;
|
|
7
|
+
exports.prependChild = prependChild;
|
|
8
|
+
exports.prepend = prepend;
|
|
4
9
|
/**
|
|
5
10
|
* Remove an element from the dom
|
|
6
11
|
*
|
|
@@ -16,7 +21,6 @@ function removeElement(elem) {
|
|
|
16
21
|
childs.splice(childs.lastIndexOf(elem), 1);
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
|
-
exports.removeElement = removeElement;
|
|
20
24
|
/**
|
|
21
25
|
* Replace an element in the dom
|
|
22
26
|
*
|
|
@@ -38,7 +42,6 @@ function replaceElement(elem, replacement) {
|
|
|
38
42
|
childs[childs.lastIndexOf(elem)] = replacement;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
|
-
exports.replaceElement = replaceElement;
|
|
42
45
|
/**
|
|
43
46
|
* Append a child to an element.
|
|
44
47
|
*
|
|
@@ -58,7 +61,6 @@ function appendChild(elem, child) {
|
|
|
58
61
|
child.prev = null;
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
|
-
exports.appendChild = appendChild;
|
|
62
64
|
/**
|
|
63
65
|
* Append an element after another.
|
|
64
66
|
*
|
|
@@ -84,7 +86,6 @@ function append(elem, next) {
|
|
|
84
86
|
parent.children.push(next);
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
|
-
exports.append = append;
|
|
88
89
|
/**
|
|
89
90
|
* Prepend a child to an element.
|
|
90
91
|
*
|
|
@@ -104,7 +105,6 @@ function prependChild(elem, child) {
|
|
|
104
105
|
child.next = null;
|
|
105
106
|
}
|
|
106
107
|
}
|
|
107
|
-
exports.prependChild = prependChild;
|
|
108
108
|
/**
|
|
109
109
|
* Prepend an element before another.
|
|
110
110
|
*
|
|
@@ -126,4 +126,3 @@ function prepend(elem, prev) {
|
|
|
126
126
|
prev.next = elem;
|
|
127
127
|
elem.prev = prev;
|
|
128
128
|
}
|
|
129
|
-
exports.prepend = prepend;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.filter = filter;
|
|
4
|
+
exports.find = find;
|
|
5
|
+
exports.findOneChild = findOneChild;
|
|
6
|
+
exports.findOne = findOne;
|
|
7
|
+
exports.existsOne = existsOne;
|
|
8
|
+
exports.findAll = findAll;
|
|
4
9
|
const Node_js_1 = require("../Node.js");
|
|
5
10
|
/**
|
|
6
11
|
* Search a node and its children for nodes passing a test function.
|
|
@@ -16,7 +21,6 @@ function filter(test, node, recurse = true, limit = Infinity) {
|
|
|
16
21
|
node = [node];
|
|
17
22
|
return find(test, node, recurse, limit);
|
|
18
23
|
}
|
|
19
|
-
exports.filter = filter;
|
|
20
24
|
/**
|
|
21
25
|
* Search an array of node and its children for nodes passing a test function.
|
|
22
26
|
*
|
|
@@ -44,7 +48,6 @@ function find(test, nodes, recurse, limit) {
|
|
|
44
48
|
}
|
|
45
49
|
return result;
|
|
46
50
|
}
|
|
47
|
-
exports.find = find;
|
|
48
51
|
/**
|
|
49
52
|
* Finds the first element inside of an array that matches a test function.
|
|
50
53
|
*
|
|
@@ -55,7 +58,6 @@ exports.find = find;
|
|
|
55
58
|
function findOneChild(test, nodes) {
|
|
56
59
|
return nodes.find(test);
|
|
57
60
|
}
|
|
58
|
-
exports.findOneChild = findOneChild;
|
|
59
61
|
/**
|
|
60
62
|
* Finds one element in a tree that passes a test.
|
|
61
63
|
*
|
|
@@ -80,7 +82,6 @@ function findOne(test, nodes, recurse = true) {
|
|
|
80
82
|
}
|
|
81
83
|
return elem;
|
|
82
84
|
}
|
|
83
|
-
exports.findOne = findOne;
|
|
84
85
|
/**
|
|
85
86
|
* @param test Function to test nodes on.
|
|
86
87
|
* @param nodes Array of nodes to search.
|
|
@@ -92,7 +93,6 @@ function existsOne(test, nodes) {
|
|
|
92
93
|
(checked.children.length > 0 &&
|
|
93
94
|
existsOne(test, checked.children))));
|
|
94
95
|
}
|
|
95
|
-
exports.existsOne = existsOne;
|
|
96
96
|
/**
|
|
97
97
|
* Search and array of nodes and its children for nodes passing a test function.
|
|
98
98
|
*
|
|
@@ -116,4 +116,3 @@ function findAll(test, nodes) {
|
|
|
116
116
|
}
|
|
117
117
|
return result;
|
|
118
118
|
}
|
|
119
|
-
exports.findAll = findAll;
|
|
@@ -3,7 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.getOuterHTML = getOuterHTML;
|
|
7
|
+
exports.getInnerHTML = getInnerHTML;
|
|
8
|
+
exports.getText = getText;
|
|
9
|
+
exports.textContent = textContent;
|
|
10
|
+
exports.innerText = innerText;
|
|
7
11
|
const Node_js_1 = require("../Node.js");
|
|
8
12
|
const DomSerializer_js_1 = __importDefault(require("../DomSerializer.js"));
|
|
9
13
|
const ElementType_js_1 = require("../ElementType.js");
|
|
@@ -16,7 +20,6 @@ const ElementType_js_1 = require("../ElementType.js");
|
|
|
16
20
|
function getOuterHTML(node, options) {
|
|
17
21
|
return (0, DomSerializer_js_1.default)(node, options);
|
|
18
22
|
}
|
|
19
|
-
exports.getOuterHTML = getOuterHTML;
|
|
20
23
|
/**
|
|
21
24
|
* @param node Node to get the inner HTML of.
|
|
22
25
|
* @param options Options for serialization.
|
|
@@ -28,7 +31,6 @@ function getInnerHTML(node, options) {
|
|
|
28
31
|
? node.children.map(node => getOuterHTML(node, options)).join('')
|
|
29
32
|
: '';
|
|
30
33
|
}
|
|
31
|
-
exports.getInnerHTML = getInnerHTML;
|
|
32
34
|
/**
|
|
33
35
|
* Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags.
|
|
34
36
|
*
|
|
@@ -47,7 +49,6 @@ function getText(node) {
|
|
|
47
49
|
return node.data;
|
|
48
50
|
return '';
|
|
49
51
|
}
|
|
50
|
-
exports.getText = getText;
|
|
51
52
|
/**
|
|
52
53
|
* Get a node's text content.
|
|
53
54
|
*
|
|
@@ -65,7 +66,6 @@ function textContent(node) {
|
|
|
65
66
|
return node.data;
|
|
66
67
|
return '';
|
|
67
68
|
}
|
|
68
|
-
exports.textContent = textContent;
|
|
69
69
|
/**
|
|
70
70
|
* Get a node's inner text.
|
|
71
71
|
*
|
|
@@ -83,4 +83,3 @@ function innerText(node) {
|
|
|
83
83
|
return node.data;
|
|
84
84
|
return '';
|
|
85
85
|
}
|
|
86
|
-
exports.innerText = innerText;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getChildren = getChildren;
|
|
4
|
+
exports.getParent = getParent;
|
|
5
|
+
exports.getSiblings = getSiblings;
|
|
6
|
+
exports.getAttributeValue = getAttributeValue;
|
|
7
|
+
exports.hasAttrib = hasAttrib;
|
|
8
|
+
exports.getName = getName;
|
|
9
|
+
exports.nextElementSibling = nextElementSibling;
|
|
10
|
+
exports.prevElementSibling = prevElementSibling;
|
|
4
11
|
const Node_js_1 = require("../Node.js");
|
|
5
12
|
const emptyArray = [];
|
|
6
13
|
/**
|
|
@@ -12,7 +19,6 @@ const emptyArray = [];
|
|
|
12
19
|
function getChildren(elem) {
|
|
13
20
|
return elem.children ?? emptyArray;
|
|
14
21
|
}
|
|
15
|
-
exports.getChildren = getChildren;
|
|
16
22
|
/**
|
|
17
23
|
* Get a node's parent.
|
|
18
24
|
*
|
|
@@ -22,7 +28,6 @@ exports.getChildren = getChildren;
|
|
|
22
28
|
function getParent(elem) {
|
|
23
29
|
return elem.parent || null;
|
|
24
30
|
}
|
|
25
|
-
exports.getParent = getParent;
|
|
26
31
|
/**
|
|
27
32
|
* Gets an elements siblings, including the element itself.
|
|
28
33
|
*
|
|
@@ -49,7 +54,6 @@ function getSiblings(elem) {
|
|
|
49
54
|
}
|
|
50
55
|
return siblings;
|
|
51
56
|
}
|
|
52
|
-
exports.getSiblings = getSiblings;
|
|
53
57
|
/**
|
|
54
58
|
* Gets an attribute from an element.
|
|
55
59
|
*
|
|
@@ -60,7 +64,6 @@ exports.getSiblings = getSiblings;
|
|
|
60
64
|
function getAttributeValue(elem, name) {
|
|
61
65
|
return elem.attribs?.[name];
|
|
62
66
|
}
|
|
63
|
-
exports.getAttributeValue = getAttributeValue;
|
|
64
67
|
/**
|
|
65
68
|
* Checks whether an element has an attribute.
|
|
66
69
|
*
|
|
@@ -73,7 +76,6 @@ function hasAttrib(elem, name) {
|
|
|
73
76
|
Object.prototype.hasOwnProperty.call(elem.attribs, name) &&
|
|
74
77
|
elem.attribs[name] != null);
|
|
75
78
|
}
|
|
76
|
-
exports.hasAttrib = hasAttrib;
|
|
77
79
|
/**
|
|
78
80
|
* Get the tag name of an element.
|
|
79
81
|
*
|
|
@@ -83,7 +85,6 @@ exports.hasAttrib = hasAttrib;
|
|
|
83
85
|
function getName(elem) {
|
|
84
86
|
return elem.name;
|
|
85
87
|
}
|
|
86
|
-
exports.getName = getName;
|
|
87
88
|
/**
|
|
88
89
|
* Returns the next element sibling of a node.
|
|
89
90
|
*
|
|
@@ -96,7 +97,6 @@ function nextElementSibling(elem) {
|
|
|
96
97
|
({ next } = next);
|
|
97
98
|
return next;
|
|
98
99
|
}
|
|
99
|
-
exports.nextElementSibling = nextElementSibling;
|
|
100
100
|
/**
|
|
101
101
|
* Returns the previous element sibling of a node.
|
|
102
102
|
*
|
|
@@ -109,4 +109,3 @@ function prevElementSibling(elem) {
|
|
|
109
109
|
({ prev } = prev);
|
|
110
110
|
return prev;
|
|
111
111
|
}
|
|
112
|
-
exports.prevElementSibling = prevElementSibling;
|
|
@@ -3,7 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.init = init;
|
|
7
|
+
exports.ige256Encrypt = ige256Encrypt;
|
|
8
|
+
exports.ige256Decrypt = ige256Decrypt;
|
|
9
|
+
exports.createCtr256State = createCtr256State;
|
|
10
|
+
exports.destroyCtr256State = destroyCtr256State;
|
|
11
|
+
exports.__getCtr256StateValues = __getCtr256StateValues;
|
|
12
|
+
exports.__settCtr256StateState = __settCtr256StateState;
|
|
13
|
+
exports.ctr256 = ctr256;
|
|
14
|
+
exports.cbc256Encrypt = cbc256Encrypt;
|
|
15
|
+
exports.cbc256Decrypt = cbc256Decrypt;
|
|
7
16
|
const tgcrypto_js_1 = __importDefault(require("./tgcrypto.js"));
|
|
8
17
|
// deno-lint-ignore no-explicit-any
|
|
9
18
|
let module_;
|
|
@@ -11,7 +20,6 @@ const promise = (0, tgcrypto_js_1.default)().then((v) => module_ = v);
|
|
|
11
20
|
async function init() {
|
|
12
21
|
await promise;
|
|
13
22
|
}
|
|
14
|
-
exports.init = init;
|
|
15
23
|
function checkIgeParams(data, key, iv) {
|
|
16
24
|
if (data.byteLength == 0) {
|
|
17
25
|
throw new TypeError("data must not be empty");
|
|
@@ -47,7 +55,6 @@ function ige256Encrypt(data, key, iv) {
|
|
|
47
55
|
module_._free(datap);
|
|
48
56
|
}
|
|
49
57
|
}
|
|
50
|
-
exports.ige256Encrypt = ige256Encrypt;
|
|
51
58
|
/**
|
|
52
59
|
* Performs IGE-256 decryption.
|
|
53
60
|
*
|
|
@@ -69,7 +76,6 @@ function ige256Decrypt(data, key, iv) {
|
|
|
69
76
|
module_._free(datap);
|
|
70
77
|
}
|
|
71
78
|
}
|
|
72
|
-
exports.ige256Decrypt = ige256Decrypt;
|
|
73
79
|
function checkCtrParams(data, key) {
|
|
74
80
|
if (data.byteLength == 0) {
|
|
75
81
|
throw new TypeError("data must not be empty");
|
|
@@ -90,26 +96,22 @@ function createCtr256State(iv) {
|
|
|
90
96
|
module_.HEAPU8[state.statep] = 0;
|
|
91
97
|
return state;
|
|
92
98
|
}
|
|
93
|
-
exports.createCtr256State = createCtr256State;
|
|
94
99
|
function destroyCtr256State(state) {
|
|
95
100
|
module_._free(state.ivp);
|
|
96
101
|
module_._free(state.statep);
|
|
97
102
|
}
|
|
98
|
-
exports.destroyCtr256State = destroyCtr256State;
|
|
99
103
|
function __getCtr256StateValues(state) {
|
|
100
104
|
return {
|
|
101
105
|
iv: module_.HEAPU8.slice(state.ivp, state.ivp + 16),
|
|
102
106
|
state: module_.HEAPU8.slice(state.statep, state.statep + 1),
|
|
103
107
|
};
|
|
104
108
|
}
|
|
105
|
-
exports.__getCtr256StateValues = __getCtr256StateValues;
|
|
106
109
|
function __settCtr256StateState(state, state_) {
|
|
107
110
|
if (state_.byteLength != 1) {
|
|
108
111
|
throw new Error("state_ must be 1 byte");
|
|
109
112
|
}
|
|
110
113
|
module_.HEAPU8.set(state_, state.statep);
|
|
111
114
|
}
|
|
112
|
-
exports.__settCtr256StateState = __settCtr256StateState;
|
|
113
115
|
/**
|
|
114
116
|
* Performs CTR-256 encryption/decryption.
|
|
115
117
|
*
|
|
@@ -126,7 +128,6 @@ function ctr256(data, key, state) {
|
|
|
126
128
|
data.set(module_.HEAPU8.slice(datap, datap + data.byteLength));
|
|
127
129
|
module_._free(datap);
|
|
128
130
|
}
|
|
129
|
-
exports.ctr256 = ctr256;
|
|
130
131
|
function checkCbcParams(data, key, iv) {
|
|
131
132
|
if (data.byteLength == 0) {
|
|
132
133
|
throw new TypeError("data must not be empty");
|
|
@@ -160,7 +161,6 @@ function cbc256Encrypt(data, key, iv) {
|
|
|
160
161
|
module_._free(datap);
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
|
-
exports.cbc256Encrypt = cbc256Encrypt;
|
|
164
164
|
/**
|
|
165
165
|
* Performs CBC-256 decryption.
|
|
166
166
|
*
|
|
@@ -180,4 +180,3 @@ function cbc256Decrypt(data, key, iv) {
|
|
|
180
180
|
module_._free(datap);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
exports.cbc256Decrypt = cbc256Decrypt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertAlmostEquals =
|
|
3
|
+
exports.assertAlmostEquals = assertAlmostEquals;
|
|
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");
|
|
@@ -47,4 +47,3 @@ function assertAlmostEquals(actual, expected, tolerance, msg) {
|
|
|
47
47
|
throw new assertion_error_js_1.AssertionError(`Expected actual: "${f(actual)}" to be close to "${f(expected)}": \
|
|
48
48
|
delta "${f(delta)}" is greater than "${f(tolerance)}"${msgSuffix}`);
|
|
49
49
|
}
|
|
50
|
-
exports.assertAlmostEquals = assertAlmostEquals;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertArrayIncludes =
|
|
3
|
+
exports.assertArrayIncludes = assertArrayIncludes;
|
|
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.5/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
|
|
@@ -47,4 +47,3 @@ function assertArrayIncludes(actual, expected, msg) {
|
|
|
47
47
|
msg = `Expected actual: "${(0, format_js_1.format)(actual)}" to include: "${(0, format_js_1.format)(expected)}"${msgSuffix}\nmissing: ${(0, format_js_1.format)(missing)}`;
|
|
48
48
|
throw new assertion_error_js_1.AssertionError(msg);
|
|
49
49
|
}
|
|
50
|
-
exports.assertArrayIncludes = assertArrayIncludes;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assert =
|
|
3
|
+
exports.assert = assert;
|
|
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");
|
|
@@ -23,4 +23,3 @@ function assert(expr, msg = "") {
|
|
|
23
23
|
throw new assertion_error_js_1.AssertionError(msg);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.assert = assert;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
3
|
// This module is browser compatible.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.equal =
|
|
5
|
+
exports.equal = equal;
|
|
6
6
|
function isKeyedCollection(x) {
|
|
7
7
|
return x instanceof Set || x instanceof Map;
|
|
8
8
|
}
|
|
@@ -137,4 +137,3 @@ function equal(c, d) {
|
|
|
137
137
|
return false;
|
|
138
138
|
})(c, d);
|
|
139
139
|
}
|
|
140
|
-
exports.equal = equal;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertEquals =
|
|
3
|
+
exports.assertEquals = assertEquals;
|
|
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.5/build_message.js");
|
|
8
|
+
const diff_js_1 = require("../../internal/1.0.5/diff.js");
|
|
9
|
+
const diff_str_js_1 = require("../../internal/1.0.5/diff_str.js");
|
|
10
|
+
const format_js_1 = require("../../internal/1.0.5/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
|
|
@@ -46,4 +46,3 @@ function assertEquals(actual, expected, msg) {
|
|
|
46
46
|
message = `${message}\n${diffMsg}`;
|
|
47
47
|
throw new assertion_error_js_1.AssertionError(message);
|
|
48
48
|
}
|
|
49
|
-
exports.assertEquals = assertEquals;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertExists =
|
|
3
|
+
exports.assertExists = assertExists;
|
|
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");
|
|
@@ -28,4 +28,3 @@ function assertExists(actual, msg) {
|
|
|
28
28
|
throw new assertion_error_js_1.AssertionError(msg);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
exports.assertExists = assertExists;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fail =
|
|
3
|
+
exports.fail = fail;
|
|
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");
|
|
@@ -21,4 +21,3 @@ function fail(msg) {
|
|
|
21
21
|
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
22
22
|
throw new assertion_error_js_1.AssertionError(`Failed assertion${msgSuffix}`);
|
|
23
23
|
}
|
|
24
|
-
exports.fail = fail;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertFalse =
|
|
3
|
+
exports.assertFalse = assertFalse;
|
|
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");
|
|
@@ -23,4 +23,3 @@ function assertFalse(expr, msg = "") {
|
|
|
23
23
|
throw new assertion_error_js_1.AssertionError(msg);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
exports.assertFalse = assertFalse;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertGreater =
|
|
3
|
+
exports.assertGreater = assertGreater;
|
|
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.5/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`.
|
|
@@ -30,4 +30,3 @@ function assertGreater(actual, expected, msg) {
|
|
|
30
30
|
const expectedString = (0, format_js_1.format)(expected);
|
|
31
31
|
throw new assertion_error_js_1.AssertionError(msg ?? `Expect ${actualString} > ${expectedString}`);
|
|
32
32
|
}
|
|
33
|
-
exports.assertGreater = assertGreater;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertGreaterOrEqual =
|
|
3
|
+
exports.assertGreaterOrEqual = assertGreaterOrEqual;
|
|
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.5/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`.
|
|
@@ -30,4 +30,3 @@ function assertGreaterOrEqual(actual, expected, msg) {
|
|
|
30
30
|
const expectedString = (0, format_js_1.format)(expected);
|
|
31
31
|
throw new assertion_error_js_1.AssertionError(msg ?? `Expect ${actualString} >= ${expectedString}`);
|
|
32
32
|
}
|
|
33
|
-
exports.assertGreaterOrEqual = assertGreaterOrEqual;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertInstanceOf =
|
|
3
|
+
exports.assertInstanceOf = assertInstanceOf;
|
|
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");
|
|
@@ -53,4 +53,3 @@ function assertInstanceOf(actual, expectedType, msg = "") {
|
|
|
53
53
|
}
|
|
54
54
|
throw new assertion_error_js_1.AssertionError(msg);
|
|
55
55
|
}
|
|
56
|
-
exports.assertInstanceOf = assertInstanceOf;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertIsError =
|
|
3
|
+
exports.assertIsError = assertIsError;
|
|
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.5/styles.js");
|
|
8
8
|
/**
|
|
9
9
|
* Make an assertion that `error` is an `Error`.
|
|
10
10
|
* If not then an error will be thrown.
|
|
@@ -54,4 +54,3 @@ ErrorClass, msgMatches, msg) {
|
|
|
54
54
|
throw new assertion_error_js_1.AssertionError(msg);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
exports.assertIsError = assertIsError;
|