@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
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.consumeToken = consumeToken;
|
|
5
|
+
exports.consumeValue = consumeValue;
|
|
6
|
+
exports.consumeMediaParam = consumeMediaParam;
|
|
7
|
+
exports.decode2331Encoding = decode2331Encoding;
|
|
8
|
+
exports.isIterator = isIterator;
|
|
9
|
+
exports.isToken = isToken;
|
|
10
|
+
exports.isTSpecial = isTSpecial;
|
|
11
|
+
exports.needsEncoding = needsEncoding;
|
|
5
12
|
function consumeToken(v) {
|
|
6
13
|
const notPos = indexOf(v, isNotTokenChar);
|
|
7
14
|
if (notPos === -1) {
|
|
@@ -12,7 +19,6 @@ function consumeToken(v) {
|
|
|
12
19
|
}
|
|
13
20
|
return [v.slice(0, notPos), v.slice(notPos)];
|
|
14
21
|
}
|
|
15
|
-
exports.consumeToken = consumeToken;
|
|
16
22
|
function consumeValue(v) {
|
|
17
23
|
if (!v) {
|
|
18
24
|
return ["", v];
|
|
@@ -39,7 +45,6 @@ function consumeValue(v) {
|
|
|
39
45
|
}
|
|
40
46
|
return ["", v];
|
|
41
47
|
}
|
|
42
|
-
exports.consumeValue = consumeValue;
|
|
43
48
|
function consumeMediaParam(v) {
|
|
44
49
|
let rest = v.trimStart();
|
|
45
50
|
if (!rest.startsWith(";")) {
|
|
@@ -62,7 +67,6 @@ function consumeMediaParam(v) {
|
|
|
62
67
|
rest = rest2;
|
|
63
68
|
return [param, value, rest];
|
|
64
69
|
}
|
|
65
|
-
exports.consumeMediaParam = consumeMediaParam;
|
|
66
70
|
function decode2331Encoding(v) {
|
|
67
71
|
const sv = v.split(`'`, 3);
|
|
68
72
|
if (sv.length !== 3) {
|
|
@@ -82,7 +86,6 @@ function decode2331Encoding(v) {
|
|
|
82
86
|
}
|
|
83
87
|
return encv;
|
|
84
88
|
}
|
|
85
|
-
exports.decode2331Encoding = decode2331Encoding;
|
|
86
89
|
function indexOf(s, fn) {
|
|
87
90
|
let i = -1;
|
|
88
91
|
for (const v of s) {
|
|
@@ -100,14 +103,12 @@ function isIterator(obj) {
|
|
|
100
103
|
// deno-lint-ignore no-explicit-any
|
|
101
104
|
return typeof obj[Symbol.iterator] === "function";
|
|
102
105
|
}
|
|
103
|
-
exports.isIterator = isIterator;
|
|
104
106
|
function isToken(s) {
|
|
105
107
|
if (!s) {
|
|
106
108
|
return false;
|
|
107
109
|
}
|
|
108
110
|
return indexOf(s, isNotTokenChar) < 0;
|
|
109
111
|
}
|
|
110
|
-
exports.isToken = isToken;
|
|
111
112
|
function isNotTokenChar(r) {
|
|
112
113
|
return !isTokenChar(r);
|
|
113
114
|
}
|
|
@@ -118,7 +119,6 @@ function isTokenChar(r) {
|
|
|
118
119
|
function isTSpecial(r) {
|
|
119
120
|
return r[0] ? `()<>@,;:\\"/[]?=`.includes(r[0]) : false;
|
|
120
121
|
}
|
|
121
|
-
exports.isTSpecial = isTSpecial;
|
|
122
122
|
const CHAR_CODE_SPACE = " ".charCodeAt(0);
|
|
123
123
|
const CHAR_CODE_TILDE = "~".charCodeAt(0);
|
|
124
124
|
function needsEncoding(s) {
|
|
@@ -130,4 +130,3 @@ function needsEncoding(s) {
|
|
|
130
130
|
}
|
|
131
131
|
return false;
|
|
132
132
|
}
|
|
133
|
-
exports.needsEncoding = needsEncoding;
|
|
@@ -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.allExtensions =
|
|
5
|
+
exports.allExtensions = allExtensions;
|
|
6
6
|
const parse_media_type_js_1 = require("./parse_media_type.js");
|
|
7
7
|
const _db_js_1 = require("./_db.js");
|
|
8
8
|
/**
|
|
@@ -35,4 +35,3 @@ function allExtensions(type) {
|
|
|
35
35
|
// just swallow errors, returning undefined
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
exports.allExtensions = allExtensions;
|
|
@@ -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.contentType =
|
|
5
|
+
exports.contentType = contentType;
|
|
6
6
|
const parse_media_type_js_1 = require("./parse_media_type.js");
|
|
7
7
|
const get_charset_js_1 = require("./get_charset.js");
|
|
8
8
|
const format_media_type_js_1 = require("./format_media_type.js");
|
|
@@ -58,4 +58,3 @@ function contentType(extensionOrType) {
|
|
|
58
58
|
}
|
|
59
59
|
return undefined;
|
|
60
60
|
}
|
|
61
|
-
exports.contentType = contentType;
|
|
@@ -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.extension =
|
|
5
|
+
exports.extension = extension;
|
|
6
6
|
const all_extensions_js_1 = require("./all_extensions.js");
|
|
7
7
|
/**
|
|
8
8
|
* Returns the most relevant extension for the given media type, or `undefined`
|
|
@@ -29,4 +29,3 @@ const all_extensions_js_1 = require("./all_extensions.js");
|
|
|
29
29
|
function extension(type) {
|
|
30
30
|
return (0, all_extensions_js_1.allExtensions)(type)?.[0];
|
|
31
31
|
}
|
|
32
|
-
exports.extension = extension;
|
|
@@ -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.formatMediaType =
|
|
5
|
+
exports.formatMediaType = formatMediaType;
|
|
6
6
|
const _util_js_1 = require("./_util.js");
|
|
7
7
|
/**
|
|
8
8
|
* Serializes the media type and the optional parameters as a media type
|
|
@@ -78,4 +78,3 @@ function formatMediaType(type, param) {
|
|
|
78
78
|
}
|
|
79
79
|
return serializedMediaType;
|
|
80
80
|
}
|
|
81
|
-
exports.formatMediaType = formatMediaType;
|
|
@@ -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.getCharset =
|
|
5
|
+
exports.getCharset = getCharset;
|
|
6
6
|
const parse_media_type_js_1 = require("./parse_media_type.js");
|
|
7
7
|
const _db_js_1 = require("./_db.js");
|
|
8
8
|
/**
|
|
@@ -44,4 +44,3 @@ function getCharset(type) {
|
|
|
44
44
|
}
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
47
|
-
exports.getCharset = getCharset;
|
|
@@ -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.parseMediaType =
|
|
5
|
+
exports.parseMediaType = parseMediaType;
|
|
6
6
|
const _util_js_1 = require("./_util.js");
|
|
7
7
|
const SEMICOLON_REGEXP = /^\s*;\s*$/;
|
|
8
8
|
/**
|
|
@@ -115,4 +115,3 @@ function parseMediaType(type) {
|
|
|
115
115
|
}
|
|
116
116
|
return [mediaType, Object.keys(params).length ? params : undefined];
|
|
117
117
|
}
|
|
118
|
-
exports.parseMediaType = parseMediaType;
|
|
@@ -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.typeByExtension =
|
|
5
|
+
exports.typeByExtension = typeByExtension;
|
|
6
6
|
const _db_js_1 = require("./_db.js");
|
|
7
7
|
/**
|
|
8
8
|
* Returns the media type associated with the file extension, or `undefined` if
|
|
@@ -32,4 +32,3 @@ function typeByExtension(extension) {
|
|
|
32
32
|
// @ts-ignore Work around https://github.com/denoland/dnt/issues/148
|
|
33
33
|
return _db_js_1.types.get(extension.toLowerCase());
|
|
34
34
|
}
|
|
35
|
-
exports.typeByExtension = typeByExtension;
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
3
|
// Copyright the Browserify authors. MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.assertPath =
|
|
5
|
+
exports.assertPath = assertPath;
|
|
6
6
|
function assertPath(path) {
|
|
7
7
|
if (typeof path !== "string") {
|
|
8
8
|
throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
exports.assertPath = assertPath;
|
|
@@ -2,7 +2,9 @@
|
|
|
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.
|
|
5
|
+
exports.stripSuffix = stripSuffix;
|
|
6
|
+
exports.lastPathSegment = lastPathSegment;
|
|
7
|
+
exports.assertArgs = assertArgs;
|
|
6
8
|
const assert_path_js_1 = require("./assert_path.js");
|
|
7
9
|
function stripSuffix(name, suffix) {
|
|
8
10
|
if (suffix.length >= name.length) {
|
|
@@ -16,7 +18,6 @@ function stripSuffix(name, suffix) {
|
|
|
16
18
|
}
|
|
17
19
|
return name.slice(0, -suffix.length);
|
|
18
20
|
}
|
|
19
|
-
exports.stripSuffix = stripSuffix;
|
|
20
21
|
function lastPathSegment(path, isSep, start = 0) {
|
|
21
22
|
let matchedNonSeparator = false;
|
|
22
23
|
let end = path.length;
|
|
@@ -34,7 +35,6 @@ function lastPathSegment(path, isSep, start = 0) {
|
|
|
34
35
|
}
|
|
35
36
|
return path.slice(start, end);
|
|
36
37
|
}
|
|
37
|
-
exports.lastPathSegment = lastPathSegment;
|
|
38
38
|
function assertArgs(path, suffix) {
|
|
39
39
|
(0, assert_path_js_1.assertPath)(path);
|
|
40
40
|
if (path.length === 0)
|
|
@@ -43,4 +43,3 @@ function assertArgs(path, suffix) {
|
|
|
43
43
|
throw new TypeError(`Suffix must be a string, received "${JSON.stringify(suffix)}"`);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
exports.assertArgs = assertArgs;
|
|
@@ -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.common =
|
|
5
|
+
exports.common = common;
|
|
6
6
|
function common(paths, sep) {
|
|
7
7
|
const [first = "", ...remaining] = paths;
|
|
8
8
|
const parts = first.split(sep);
|
|
@@ -24,4 +24,3 @@ function common(paths, sep) {
|
|
|
24
24
|
}
|
|
25
25
|
return parts.slice(0, endOfPrefix).join(sep) + append;
|
|
26
26
|
}
|
|
27
|
-
exports.common = common;
|
|
@@ -2,11 +2,10 @@
|
|
|
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.assertArg =
|
|
5
|
+
exports.assertArg = assertArg;
|
|
6
6
|
const assert_path_js_1 = require("./assert_path.js");
|
|
7
7
|
function assertArg(path) {
|
|
8
8
|
(0, assert_path_js_1.assertPath)(path);
|
|
9
9
|
if (path.length === 0)
|
|
10
10
|
return ".";
|
|
11
11
|
}
|
|
12
|
-
exports.assertArg = assertArg;
|
|
@@ -2,7 +2,8 @@
|
|
|
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.
|
|
5
|
+
exports._format = _format;
|
|
6
|
+
exports.assertArg = assertArg;
|
|
6
7
|
function _format(sep, pathObject) {
|
|
7
8
|
const dir = pathObject.dir || pathObject.root;
|
|
8
9
|
const base = pathObject.base ||
|
|
@@ -15,10 +16,8 @@ function _format(sep, pathObject) {
|
|
|
15
16
|
return dir + base;
|
|
16
17
|
return dir + sep + base;
|
|
17
18
|
}
|
|
18
|
-
exports._format = _format;
|
|
19
19
|
function assertArg(pathObject) {
|
|
20
20
|
if (pathObject === null || typeof pathObject !== "object") {
|
|
21
21
|
throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof pathObject}"`);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.assertArg = assertArg;
|
|
@@ -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.assertArg =
|
|
5
|
+
exports.assertArg = assertArg;
|
|
6
6
|
function assertArg(url) {
|
|
7
7
|
url = url instanceof URL ? url : new URL(url);
|
|
8
8
|
if (url.protocol !== "file:") {
|
|
@@ -10,4 +10,3 @@ function assertArg(url) {
|
|
|
10
10
|
}
|
|
11
11
|
return url;
|
|
12
12
|
}
|
|
13
|
-
exports.assertArg = assertArg;
|
|
@@ -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._globToRegExp =
|
|
5
|
+
exports._globToRegExp = _globToRegExp;
|
|
6
6
|
const REG_EXP_ESCAPE_CHARS = [
|
|
7
7
|
"!",
|
|
8
8
|
"$",
|
|
@@ -235,4 +235,3 @@ caseInsensitive = false, } = {}) {
|
|
|
235
235
|
regExpString = `^${regExpString}$`;
|
|
236
236
|
return new RegExp(regExpString, caseInsensitive ? "i" : "");
|
|
237
237
|
}
|
|
238
|
-
exports._globToRegExp = _globToRegExp;
|
|
@@ -2,11 +2,10 @@
|
|
|
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.assertArg =
|
|
5
|
+
exports.assertArg = assertArg;
|
|
6
6
|
const assert_path_js_1 = require("./assert_path.js");
|
|
7
7
|
function assertArg(path) {
|
|
8
8
|
(0, assert_path_js_1.assertPath)(path);
|
|
9
9
|
if (path.length === 0)
|
|
10
10
|
return ".";
|
|
11
11
|
}
|
|
12
|
-
exports.assertArg = assertArg;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Ported from https://github.com/browserify/path-browserify/
|
|
5
5
|
// This module is browser compatible.
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.normalizeString =
|
|
7
|
+
exports.normalizeString = normalizeString;
|
|
8
8
|
const constants_js_1 = require("./constants.js");
|
|
9
9
|
// Resolves . and .. elements in a path with directory names
|
|
10
10
|
function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
@@ -78,4 +78,3 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
|
78
78
|
}
|
|
79
79
|
return res;
|
|
80
80
|
}
|
|
81
|
-
exports.normalizeString = normalizeString;
|
|
@@ -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.assertArgs =
|
|
5
|
+
exports.assertArgs = assertArgs;
|
|
6
6
|
const assert_path_js_1 = require("./assert_path.js");
|
|
7
7
|
function assertArgs(from, to) {
|
|
8
8
|
(0, assert_path_js_1.assertPath)(from);
|
|
@@ -10,4 +10,3 @@ function assertArgs(from, to) {
|
|
|
10
10
|
if (from === to)
|
|
11
11
|
return "";
|
|
12
12
|
}
|
|
13
|
-
exports.assertArgs = assertArgs;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Ported from https://github.com/browserify/path-browserify/
|
|
5
5
|
// This module is browser compatible.
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.stripTrailingSeparators =
|
|
7
|
+
exports.stripTrailingSeparators = stripTrailingSeparators;
|
|
8
8
|
function stripTrailingSeparators(segment, isSep) {
|
|
9
9
|
if (segment.length <= 1) {
|
|
10
10
|
return segment;
|
|
@@ -20,4 +20,3 @@ function stripTrailingSeparators(segment, isSep) {
|
|
|
20
20
|
}
|
|
21
21
|
return segment.slice(0, end);
|
|
22
22
|
}
|
|
23
|
-
exports.stripTrailingSeparators = stripTrailingSeparators;
|
|
@@ -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.encodeWhitespace =
|
|
5
|
+
exports.encodeWhitespace = encodeWhitespace;
|
|
6
6
|
const WHITESPACE_ENCODINGS = {
|
|
7
7
|
"\u0009": "%09",
|
|
8
8
|
"\u000A": "%0A",
|
|
@@ -16,4 +16,3 @@ function encodeWhitespace(string) {
|
|
|
16
16
|
return WHITESPACE_ENCODINGS[c] ?? c;
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
exports.encodeWhitespace = encodeWhitespace;
|
|
@@ -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.basename =
|
|
5
|
+
exports.basename = basename;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const basename_js_1 = require("./posix/basename.js");
|
|
8
8
|
const basename_js_2 = require("./windows/basename.js");
|
|
@@ -37,4 +37,3 @@ function basename(path, suffix = "") {
|
|
|
37
37
|
? (0, basename_js_2.basename)(path, suffix)
|
|
38
38
|
: (0, basename_js_1.basename)(path, suffix);
|
|
39
39
|
}
|
|
40
|
-
exports.basename = basename;
|
|
@@ -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.common =
|
|
5
|
+
exports.common = common;
|
|
6
6
|
const common_js_1 = require("./_common/common.js");
|
|
7
7
|
const constants_js_1 = require("./constants.js");
|
|
8
8
|
/**
|
|
@@ -34,4 +34,3 @@ const constants_js_1 = require("./constants.js");
|
|
|
34
34
|
function common(paths) {
|
|
35
35
|
return (0, common_js_1.common)(paths, constants_js_1.SEPARATOR);
|
|
36
36
|
}
|
|
37
|
-
exports.common = common;
|
|
@@ -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.dirname =
|
|
5
|
+
exports.dirname = dirname;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const dirname_js_1 = require("./posix/dirname.js");
|
|
8
8
|
const dirname_js_2 = require("./windows/dirname.js");
|
|
@@ -30,4 +30,3 @@ const dirname_js_2 = require("./windows/dirname.js");
|
|
|
30
30
|
function dirname(path) {
|
|
31
31
|
return _os_js_1.isWindows ? (0, dirname_js_2.dirname)(path) : (0, dirname_js_1.dirname)(path);
|
|
32
32
|
}
|
|
33
|
-
exports.dirname = dirname;
|
|
@@ -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.extname =
|
|
5
|
+
exports.extname = extname;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const extname_js_1 = require("./posix/extname.js");
|
|
8
8
|
const extname_js_2 = require("./windows/extname.js");
|
|
@@ -30,4 +30,3 @@ const extname_js_2 = require("./windows/extname.js");
|
|
|
30
30
|
function extname(path) {
|
|
31
31
|
return _os_js_1.isWindows ? (0, extname_js_2.extname)(path) : (0, extname_js_1.extname)(path);
|
|
32
32
|
}
|
|
33
|
-
exports.extname = extname;
|
|
@@ -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.format =
|
|
5
|
+
exports.format = format;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const format_js_1 = require("./posix/format.js");
|
|
8
8
|
const format_js_2 = require("./windows/format.js");
|
|
@@ -28,4 +28,3 @@ const format_js_2 = require("./windows/format.js");
|
|
|
28
28
|
function format(pathObject) {
|
|
29
29
|
return _os_js_1.isWindows ? (0, format_js_2.format)(pathObject) : (0, format_js_1.format)(pathObject);
|
|
30
30
|
}
|
|
31
|
-
exports.format = format;
|
|
@@ -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.fromFileUrl =
|
|
5
|
+
exports.fromFileUrl = fromFileUrl;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const from_file_url_js_1 = require("./posix/from_file_url.js");
|
|
8
8
|
const from_file_url_js_2 = require("./windows/from_file_url.js");
|
|
@@ -29,4 +29,3 @@ const from_file_url_js_2 = require("./windows/from_file_url.js");
|
|
|
29
29
|
function fromFileUrl(url) {
|
|
30
30
|
return _os_js_1.isWindows ? (0, from_file_url_js_2.fromFileUrl)(url) : (0, from_file_url_js_1.fromFileUrl)(url);
|
|
31
31
|
}
|
|
32
|
-
exports.fromFileUrl = fromFileUrl;
|
|
@@ -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.globToRegExp =
|
|
5
|
+
exports.globToRegExp = globToRegExp;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const glob_to_regexp_js_1 = require("./posix/glob_to_regexp.js");
|
|
8
8
|
const glob_to_regexp_js_2 = require("./windows/glob_to_regexp.js");
|
|
@@ -84,4 +84,3 @@ function globToRegExp(glob, options = {}) {
|
|
|
84
84
|
? (0, glob_to_regexp_js_2.globToRegExp)(glob, options)
|
|
85
85
|
: (0, glob_to_regexp_js_1.globToRegExp)(glob, options);
|
|
86
86
|
}
|
|
87
|
-
exports.globToRegExp = globToRegExp;
|
|
@@ -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.isAbsolute =
|
|
5
|
+
exports.isAbsolute = isAbsolute;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const is_absolute_js_1 = require("./posix/is_absolute.js");
|
|
8
8
|
const is_absolute_js_2 = require("./windows/is_absolute.js");
|
|
@@ -29,4 +29,3 @@ const is_absolute_js_2 = require("./windows/is_absolute.js");
|
|
|
29
29
|
function isAbsolute(path) {
|
|
30
30
|
return _os_js_1.isWindows ? (0, is_absolute_js_2.isAbsolute)(path) : (0, is_absolute_js_1.isAbsolute)(path);
|
|
31
31
|
}
|
|
32
|
-
exports.isAbsolute = isAbsolute;
|
|
@@ -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.isGlob =
|
|
5
|
+
exports.isGlob = isGlob;
|
|
6
6
|
/**
|
|
7
7
|
* Test whether the given string is a glob.
|
|
8
8
|
*
|
|
@@ -43,4 +43,3 @@ function isGlob(str) {
|
|
|
43
43
|
}
|
|
44
44
|
return false;
|
|
45
45
|
}
|
|
46
|
-
exports.isGlob = isGlob;
|
|
@@ -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.join =
|
|
5
|
+
exports.join = join;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const join_js_1 = require("./posix/join.js");
|
|
8
8
|
const join_js_2 = require("./windows/join.js");
|
|
@@ -30,4 +30,3 @@ const join_js_2 = require("./windows/join.js");
|
|
|
30
30
|
function join(...paths) {
|
|
31
31
|
return _os_js_1.isWindows ? (0, join_js_2.join)(...paths) : (0, join_js_1.join)(...paths);
|
|
32
32
|
}
|
|
33
|
-
exports.join = join;
|
|
@@ -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.joinGlobs =
|
|
5
|
+
exports.joinGlobs = joinGlobs;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const join_globs_js_1 = require("./posix/join_globs.js");
|
|
8
8
|
const join_globs_js_2 = require("./windows/join_globs.js");
|
|
@@ -35,4 +35,3 @@ function joinGlobs(globs, options = {}) {
|
|
|
35
35
|
? (0, join_globs_js_2.joinGlobs)(globs, options)
|
|
36
36
|
: (0, join_globs_js_1.joinGlobs)(globs, options);
|
|
37
37
|
}
|
|
38
|
-
exports.joinGlobs = joinGlobs;
|
|
@@ -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.normalize =
|
|
5
|
+
exports.normalize = normalize;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const normalize_js_1 = require("./posix/normalize.js");
|
|
8
8
|
const normalize_js_2 = require("./windows/normalize.js");
|
|
@@ -34,4 +34,3 @@ const normalize_js_2 = require("./windows/normalize.js");
|
|
|
34
34
|
function normalize(path) {
|
|
35
35
|
return _os_js_1.isWindows ? (0, normalize_js_2.normalize)(path) : (0, normalize_js_1.normalize)(path);
|
|
36
36
|
}
|
|
37
|
-
exports.normalize = normalize;
|
|
@@ -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.normalizeGlob =
|
|
5
|
+
exports.normalizeGlob = normalizeGlob;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const normalize_glob_js_1 = require("./posix/normalize_glob.js");
|
|
8
8
|
const normalize_glob_js_2 = require("./windows/normalize_glob.js");
|
|
@@ -36,4 +36,3 @@ function normalizeGlob(glob, options = {}) {
|
|
|
36
36
|
? (0, normalize_glob_js_2.normalizeGlob)(glob, options)
|
|
37
37
|
: (0, normalize_glob_js_1.normalizeGlob)(glob, options);
|
|
38
38
|
}
|
|
39
|
-
exports.normalizeGlob = normalizeGlob;
|
|
@@ -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.parse =
|
|
5
|
+
exports.parse = parse;
|
|
6
6
|
const _os_js_1 = require("./_os.js");
|
|
7
7
|
const parse_js_1 = require("./posix/parse.js");
|
|
8
8
|
const parse_js_2 = require("./windows/parse.js");
|
|
@@ -40,4 +40,3 @@ const parse_js_2 = require("./windows/parse.js");
|
|
|
40
40
|
function parse(path) {
|
|
41
41
|
return _os_js_1.isWindows ? (0, parse_js_2.parse)(path) : (0, parse_js_1.parse)(path);
|
|
42
42
|
}
|
|
43
|
-
exports.parse = parse;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
// Ported from https://github.com/browserify/path-browserify/
|
|
5
5
|
// This module is browser compatible.
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.isPosixPathSeparator =
|
|
7
|
+
exports.isPosixPathSeparator = isPosixPathSeparator;
|
|
8
8
|
const constants_js_1 = require("../_common/constants.js");
|
|
9
9
|
function isPosixPathSeparator(code) {
|
|
10
10
|
return code === constants_js_1.CHAR_FORWARD_SLASH;
|
|
11
11
|
}
|
|
12
|
-
exports.isPosixPathSeparator = isPosixPathSeparator;
|
|
@@ -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.basename =
|
|
5
|
+
exports.basename = basename;
|
|
6
6
|
const basename_js_1 = require("../_common/basename.js");
|
|
7
7
|
const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
8
8
|
const _util_js_1 = require("./_util.js");
|
|
@@ -33,4 +33,3 @@ function basename(path, suffix = "") {
|
|
|
33
33
|
const strippedSegment = (0, strip_trailing_separators_js_1.stripTrailingSeparators)(lastSegment, _util_js_1.isPosixPathSeparator);
|
|
34
34
|
return suffix ? (0, basename_js_1.stripSuffix)(strippedSegment, suffix) : strippedSegment;
|
|
35
35
|
}
|
|
36
|
-
exports.basename = basename;
|
|
@@ -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.dirname =
|
|
5
|
+
exports.dirname = dirname;
|
|
6
6
|
const dirname_js_1 = require("../_common/dirname.js");
|
|
7
7
|
const strip_trailing_separators_js_1 = require("../_common/strip_trailing_separators.js");
|
|
8
8
|
const _util_js_1 = require("./_util.js");
|
|
@@ -51,4 +51,3 @@ function dirname(path) {
|
|
|
51
51
|
}
|
|
52
52
|
return (0, strip_trailing_separators_js_1.stripTrailingSeparators)(path.slice(0, end), _util_js_1.isPosixPathSeparator);
|
|
53
53
|
}
|
|
54
|
-
exports.dirname = dirname;
|
|
@@ -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.extname =
|
|
5
|
+
exports.extname = extname;
|
|
6
6
|
const constants_js_1 = require("../_common/constants.js");
|
|
7
7
|
const assert_path_js_1 = require("../_common/assert_path.js");
|
|
8
8
|
const _util_js_1 = require("./_util.js");
|
|
@@ -74,4 +74,3 @@ function extname(path) {
|
|
|
74
74
|
}
|
|
75
75
|
return path.slice(startDot, end);
|
|
76
76
|
}
|
|
77
|
-
exports.extname = extname;
|