@mtkruto/node 0.1.170 → 0.1.190
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 +4 -4
- package/esm/0_deps.js +5 -5
- package/esm/4_constants.d.ts +1 -2
- package/esm/4_constants.js +2 -3
- package/esm/5_client.d.ts +2 -2
- package/esm/5_client.js +2 -2
- package/esm/client/0_client_abstract.d.ts +6 -4
- package/esm/client/0_client_abstract.js +11 -5
- package/esm/client/0_html.js +0 -6
- package/esm/client/0_markdown.d.ts +21 -0
- package/esm/client/0_markdown.js +321 -0
- package/esm/client/0_message.d.ts +1 -1
- package/esm/client/0_message.js +3 -6
- package/esm/client/0_params.d.ts +16 -0
- package/esm/client/1_client_encrypted.d.ts +34 -0
- package/esm/client/1_client_encrypted.js +239 -0
- package/esm/client/{2_client_plain.d.ts → 1_client_plain.d.ts} +3 -0
- package/esm/client/{2_client_plain.js → 1_client_plain.js} +4 -1
- package/esm/client/1_composer.d.ts +2 -3
- package/esm/client/2_message_manager.d.ts +8 -3
- package/esm/client/2_message_manager.js +101 -9
- package/esm/client/4_client.d.ts +98 -40
- package/esm/client/4_client.js +263 -414
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_diff.js +6 -3
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/encoding/base64.js +2 -1
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/normalize_string.js +2 -2
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_interface.d.ts +13 -1
- package/{script/deps/deno.land/std@0.219.0 → esm/deps/deno.land/std@0.221.0}/path/basename.d.ts +9 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/basename.js +9 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/format.d.ts +3 -1
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/format.js +3 -1
- package/esm/deps/deno.land/std@0.221.0/path/parse.d.ts +18 -0
- package/esm/deps/deno.land/std@0.221.0/path/parse.js +24 -0
- package/esm/deps/deno.land/std@0.221.0/path/posix/basename.d.ts +17 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/basename.js +9 -0
- package/esm/deps/deno.land/std@0.221.0/path/posix/dirname.d.ts +14 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/dirname.js +9 -0
- package/esm/deps/deno.land/std@0.221.0/path/posix/extname.d.ts +15 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/extname.js +9 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/join.js +1 -1
- package/esm/deps/deno.land/{std@0.219.0/path/posix → std@0.221.0/path/windows}/basename.d.ts +9 -0
- package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/basename.js +9 -0
- package/esm/storage/0_storage.d.ts +10 -1
- package/esm/storage/0_storage.js +40 -5
- package/esm/tl/6_message.d.ts +3 -2
- package/esm/tl/6_message.js +1 -1
- package/esm/tl/7_message_container.d.ts +6 -4
- package/esm/tl/7_message_container.js +22 -7
- package/esm/types/0_message_entity.d.ts +1 -0
- package/esm/types/0_message_entity.js +34 -0
- package/esm/types/0_parse_mode.d.ts +1 -1
- package/esm/types/4_inline_query_result.d.ts +1 -1
- package/esm/types/4_inline_query_result.js +4 -0
- package/esm/utilities/0_bigint.d.ts +1 -0
- package/esm/utilities/0_bigint.js +1 -0
- package/package.json +1 -1
- package/script/0_deps.d.ts +4 -4
- package/script/0_deps.js +5 -5
- package/script/4_constants.d.ts +1 -2
- package/script/4_constants.js +3 -4
- package/script/5_client.d.ts +2 -2
- package/script/5_client.js +2 -2
- package/script/client/0_client_abstract.d.ts +6 -4
- package/script/client/0_client_abstract.js +11 -5
- package/script/client/0_html.js +0 -6
- package/script/client/0_markdown.d.ts +21 -0
- package/script/client/0_markdown.js +325 -0
- package/script/client/0_message.d.ts +1 -1
- package/script/client/0_message.js +3 -6
- package/script/client/0_params.d.ts +16 -0
- package/script/client/1_client_encrypted.d.ts +34 -0
- package/script/client/1_client_encrypted.js +243 -0
- package/script/client/{2_client_plain.d.ts → 1_client_plain.d.ts} +3 -0
- package/script/client/{2_client_plain.js → 1_client_plain.js} +4 -1
- package/script/client/1_composer.d.ts +2 -3
- package/script/client/2_message_manager.d.ts +8 -3
- package/script/client/2_message_manager.js +101 -9
- package/script/client/4_client.d.ts +98 -40
- package/script/client/4_client.js +259 -410
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_diff.js +6 -3
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/encoding/base64.js +2 -1
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/normalize_string.js +2 -2
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_interface.d.ts +13 -1
- package/{esm/deps/deno.land/std@0.219.0/path/windows → script/deps/deno.land/std@0.221.0/path}/basename.d.ts +9 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/basename.js +9 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/format.d.ts +3 -1
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/format.js +3 -1
- package/script/deps/deno.land/std@0.221.0/path/parse.d.ts +18 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/parse.js +13 -1
- package/script/deps/deno.land/std@0.221.0/path/posix/basename.d.ts +17 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/basename.js +9 -0
- package/script/deps/deno.land/std@0.221.0/path/posix/dirname.d.ts +14 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/dirname.js +9 -0
- package/script/deps/deno.land/std@0.221.0/path/posix/extname.d.ts +15 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/extname.js +9 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/join.js +1 -1
- package/{esm/deps/deno.land/std@0.219.0/path → script/deps/deno.land/std@0.221.0/path/windows}/basename.d.ts +9 -0
- package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/basename.js +9 -0
- package/script/storage/0_storage.d.ts +10 -1
- package/script/storage/0_storage.js +40 -5
- package/script/tl/6_message.d.ts +3 -2
- package/script/tl/6_message.js +1 -1
- package/script/tl/7_message_container.d.ts +6 -4
- package/script/tl/7_message_container.js +20 -5
- package/script/types/0_message_entity.d.ts +1 -0
- package/script/types/0_message_entity.js +36 -1
- package/script/types/0_parse_mode.d.ts +1 -1
- package/script/types/4_inline_query_result.d.ts +1 -1
- package/script/types/4_inline_query_result.js +4 -0
- package/script/utilities/0_bigint.d.ts +1 -0
- package/script/utilities/0_bigint.js +1 -0
- package/esm/client/5_composer.d.ts +0 -4
- package/esm/client/5_composer.js +0 -3
- package/esm/deps/deno.land/std@0.219.0/path/parse.d.ts +0 -6
- package/esm/deps/deno.land/std@0.219.0/path/parse.js +0 -12
- package/script/client/5_composer.d.ts +0 -4
- package/script/client/5_composer.js +0 -7
- package/script/deps/deno.land/std@0.219.0/path/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.219.0/path/posix/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.219.0/path/posix/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.219.0/path/posix/extname.d.ts +0 -6
- package/script/deps/deno.land/std@0.219.0/path/windows/basename.d.ts +0 -8
- package/script/deps/deno.land/std@0.219.0/path/windows/dirname.d.ts +0 -5
- package/script/deps/deno.land/std@0.219.0/path/windows/extname.d.ts +0 -6
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_rejects.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_throws.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/unreachable.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/unreachable.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/_db.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/_db.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/extensions_by_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/assert_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0/path/posix → std@0.221.0/path/windows}/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0/path/posix → std@0.221.0/path/windows}/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_rejects.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_throws.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/unreachable.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/assert/unreachable.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/_db.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/_db.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/extensions_by_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/extensions_by_type.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/assert_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/glob_to_reg_exp.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/constants.js +0 -0
- /package/{esm/deps/deno.land/std@0.219.0/path/windows → script/deps/deno.land/std@0.221.0/path}/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/dirname.js +0 -0
- /package/{esm/deps/deno.land/std@0.219.0/path/windows → script/deps/deno.land/std@0.221.0/path}/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0/path → std@0.221.0/path/windows}/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0/path → std@0.221.0/path/windows}/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/glob_to_regexp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.219.0 → std@0.221.0}/path/windows/to_namespaced_path.js +0 -0
|
@@ -249,7 +249,8 @@ export function diffstr(A, B) {
|
|
|
249
249
|
}
|
|
250
250
|
// Compute multi-line diff
|
|
251
251
|
const diffResult = diff(tokenize(`${unescape(A)}\n`), tokenize(`${unescape(B)}\n`));
|
|
252
|
-
const added = []
|
|
252
|
+
const added = [];
|
|
253
|
+
const removed = [];
|
|
253
254
|
for (const result of diffResult) {
|
|
254
255
|
if (result.type === DiffType.added) {
|
|
255
256
|
added.push(result);
|
|
@@ -263,7 +264,8 @@ export function diffstr(A, B) {
|
|
|
263
264
|
const aLines = hasMoreRemovedLines ? added : removed;
|
|
264
265
|
const bLines = hasMoreRemovedLines ? removed : added;
|
|
265
266
|
for (const a of aLines) {
|
|
266
|
-
let tokens = []
|
|
267
|
+
let tokens = [];
|
|
268
|
+
let b;
|
|
267
269
|
// Search another diff line with at least one common token
|
|
268
270
|
while (bLines.length) {
|
|
269
271
|
b = bLines.shift();
|
|
@@ -319,7 +321,8 @@ function createSign(diffType) {
|
|
|
319
321
|
}
|
|
320
322
|
}
|
|
321
323
|
export function buildMessage(diffResult, { stringDiff = false } = {}) {
|
|
322
|
-
const messages = []
|
|
324
|
+
const messages = [];
|
|
325
|
+
const diffMessages = [];
|
|
323
326
|
messages.push("");
|
|
324
327
|
messages.push("");
|
|
325
328
|
messages.push(` ${gray(bold("[Diff]"))} ${red(bold("Actual"))} / ${green(bold("Expected"))}`);
|
|
@@ -91,7 +91,8 @@ const base64abc = [
|
|
|
91
91
|
export function encodeBase64(data) {
|
|
92
92
|
// CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727
|
|
93
93
|
const uint8 = validateBinaryLike(data);
|
|
94
|
-
let result = ""
|
|
94
|
+
let result = "";
|
|
95
|
+
let i;
|
|
95
96
|
const l = uint8.length;
|
|
96
97
|
for (i = 2; i < l; i += 3) {
|
|
97
98
|
result += base64abc[(uint8[i - 2]) >> 2];
|
|
@@ -10,8 +10,8 @@ export function normalizeString(path, allowAboveRoot, separator, isPathSeparator
|
|
|
10
10
|
let lastSlash = -1;
|
|
11
11
|
let dots = 0;
|
|
12
12
|
let code;
|
|
13
|
-
for (let i = 0
|
|
14
|
-
if (i <
|
|
13
|
+
for (let i = 0; i <= path.length; ++i) {
|
|
14
|
+
if (i < path.length)
|
|
15
15
|
code = path.charCodeAt(i);
|
|
16
16
|
else if (isPathSeparator(code))
|
|
17
17
|
break;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A parsed path object generated by path.parse() or consumed by path.format().
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { parse } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
7
|
+
*
|
|
8
|
+
* const parsedPathObj = parse("c:\\path\\dir\\index.html");
|
|
9
|
+
* parsedPathObj.root; // "c:\\"
|
|
10
|
+
* parsedPathObj.dir; // "c:\\path\\dir"
|
|
11
|
+
* parsedPathObj.base; // "index.html"
|
|
12
|
+
* parsedPathObj.ext; // ".html"
|
|
13
|
+
* parsedPathObj.name; // "index"
|
|
14
|
+
* ```
|
|
3
15
|
*/
|
|
4
16
|
export interface ParsedPath {
|
|
5
17
|
/**
|
|
@@ -7,7 +19,7 @@ export interface ParsedPath {
|
|
|
7
19
|
*/
|
|
8
20
|
root: string;
|
|
9
21
|
/**
|
|
10
|
-
* The full directory path such as '/home/user/dir' or 'c:\path\dir'
|
|
22
|
+
* The full directory path of the parent such as '/home/user/dir' or 'c:\path\dir'
|
|
11
23
|
*/
|
|
12
24
|
dir: string;
|
|
13
25
|
/**
|
package/{script/deps/deno.land/std@0.219.0 → esm/deps/deno.land/std@0.221.0}/path/basename.d.ts
RENAMED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
* Return the last portion of a `path`.
|
|
3
3
|
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
4
4
|
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
|
|
8
|
+
*
|
|
9
|
+
* basename("/home/user/Documents/"); // "Documents"
|
|
10
|
+
* basename("C:\\user\\Documents\\image.png"); // "image.png"
|
|
11
|
+
* basename("/home/user/Documents/image.png", ".png"); // "image"
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
5
14
|
* @param path - path to extract the name from.
|
|
6
15
|
* @param [suffix] - suffix to remove from extracted name.
|
|
7
16
|
*/
|
|
@@ -7,6 +7,15 @@ import { basename as windowsBasename } from "./windows/basename.js";
|
|
|
7
7
|
* Return the last portion of a `path`.
|
|
8
8
|
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
9
9
|
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
|
|
13
|
+
*
|
|
14
|
+
* basename("/home/user/Documents/"); // "Documents"
|
|
15
|
+
* basename("C:\\user\\Documents\\image.png"); // "image.png"
|
|
16
|
+
* basename("/home/user/Documents/image.png", ".png"); // "image"
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
10
19
|
* @param path - path to extract the name from.
|
|
11
20
|
* @param [suffix] - suffix to remove from extracted name.
|
|
12
21
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { FormatInputPathObject } from "./_interface.js";
|
|
2
2
|
/**
|
|
3
|
-
* Generate a path from `FormatInputPathObject` object.
|
|
3
|
+
* Generate a path from `FormatInputPathObject` object. It does the opposite
|
|
4
|
+
* of `parse`.
|
|
5
|
+
*
|
|
4
6
|
* @param pathObject with path
|
|
5
7
|
*/
|
|
6
8
|
export declare function format(pathObject: FormatInputPathObject): string;
|
|
@@ -4,7 +4,9 @@ import { isWindows } from "./_os.js";
|
|
|
4
4
|
import { format as posixFormat } from "./posix/format.js";
|
|
5
5
|
import { format as windowsFormat } from "./windows/format.js";
|
|
6
6
|
/**
|
|
7
|
-
* Generate a path from `FormatInputPathObject` object.
|
|
7
|
+
* Generate a path from `FormatInputPathObject` object. It does the opposite
|
|
8
|
+
* of `parse`.
|
|
9
|
+
*
|
|
8
10
|
* @param pathObject with path
|
|
9
11
|
*/
|
|
10
12
|
export function format(pathObject) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ParsedPath } from "./_interface.js";
|
|
2
|
+
/**
|
|
3
|
+
* Return a `ParsedPath` object of the `path`. Use `format` to reverse the result.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { parse } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
8
|
+
*
|
|
9
|
+
* const parsedPathObj = parse("/path/to/dir/script.ts");
|
|
10
|
+
* parsedPathObj.root; // "/"
|
|
11
|
+
* parsedPathObj.dir; // "/path/to/dir"
|
|
12
|
+
* parsedPathObj.base; // "script.ts"
|
|
13
|
+
* parsedPathObj.ext; // ".ts"
|
|
14
|
+
* parsedPathObj.name; // "script"
|
|
15
|
+
* ```
|
|
16
|
+
* @param path to process
|
|
17
|
+
*/
|
|
18
|
+
export declare function parse(path: string): ParsedPath;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
2
|
+
// This module is browser compatible.
|
|
3
|
+
import { isWindows } from "./_os.js";
|
|
4
|
+
import { parse as posixParse } from "./posix/parse.js";
|
|
5
|
+
import { parse as windowsParse } from "./windows/parse.js";
|
|
6
|
+
/**
|
|
7
|
+
* Return a `ParsedPath` object of the `path`. Use `format` to reverse the result.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { parse } from "https://deno.land/std@$STD_VERSION/path/mod.ts";
|
|
12
|
+
*
|
|
13
|
+
* const parsedPathObj = parse("/path/to/dir/script.ts");
|
|
14
|
+
* parsedPathObj.root; // "/"
|
|
15
|
+
* parsedPathObj.dir; // "/path/to/dir"
|
|
16
|
+
* parsedPathObj.base; // "script.ts"
|
|
17
|
+
* parsedPathObj.ext; // ".ts"
|
|
18
|
+
* parsedPathObj.name; // "script"
|
|
19
|
+
* ```
|
|
20
|
+
* @param path to process
|
|
21
|
+
*/
|
|
22
|
+
export function parse(path) {
|
|
23
|
+
return isWindows ? windowsParse(path) : posixParse(path);
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the last portion of a `path`.
|
|
3
|
+
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
|
|
8
|
+
*
|
|
9
|
+
* console.log(basename("/home/user/Documents/")); // "Documents"
|
|
10
|
+
* console.log(basename("/home/user/Documents/image.png")); // "image.png"
|
|
11
|
+
* console.log(basename("/home/user/Documents/image.png", ".png")); // "image"
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @param path - path to extract the name from.
|
|
15
|
+
* @param [suffix] - suffix to remove from extracted name.
|
|
16
|
+
*/
|
|
17
|
+
export declare function basename(path: string, suffix?: string): string;
|
|
@@ -7,6 +7,15 @@ import { isPosixPathSeparator } from "./_util.js";
|
|
|
7
7
|
* Return the last portion of a `path`.
|
|
8
8
|
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
9
9
|
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
|
|
13
|
+
*
|
|
14
|
+
* console.log(basename("/home/user/Documents/")); // "Documents"
|
|
15
|
+
* console.log(basename("/home/user/Documents/image.png")); // "image.png"
|
|
16
|
+
* console.log(basename("/home/user/Documents/image.png", ".png")); // "image"
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
10
19
|
* @param path - path to extract the name from.
|
|
11
20
|
* @param [suffix] - suffix to remove from extracted name.
|
|
12
21
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the directory path of a `path`.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { dirname } from "https://deno.land/std@$STD_VERSION/path/dirname.ts";
|
|
7
|
+
*
|
|
8
|
+
* console.log(dirname("/home/user/Documents/")); // "/home/user"
|
|
9
|
+
* console.log(dirname("/home/user/Documents/image.png")); // "/home/user/Documents"
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @param path - path to extract the directory from.
|
|
13
|
+
*/
|
|
14
|
+
export declare function dirname(path: string): string;
|
|
@@ -5,6 +5,15 @@ import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js
|
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
6
|
/**
|
|
7
7
|
* Return the directory path of a `path`.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { dirname } from "https://deno.land/std@$STD_VERSION/path/dirname.ts";
|
|
12
|
+
*
|
|
13
|
+
* console.log(dirname("/home/user/Documents/")); // "/home/user"
|
|
14
|
+
* console.log(dirname("/home/user/Documents/image.png")); // "/home/user/Documents"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
8
17
|
* @param path - path to extract the directory from.
|
|
9
18
|
*/
|
|
10
19
|
export function dirname(path) {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the extension of the `path` with leading period.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { extname } from "https://deno.land/std@$STD_VERSION/path/extname.ts";
|
|
7
|
+
*
|
|
8
|
+
* console.log(extname("/home/user/Documents/")); // ""
|
|
9
|
+
* console.log(extname("/home/user/Documents/image.png")); // ".png"
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @param path with extension
|
|
13
|
+
* @returns extension (ex. for `file.ts` returns `.ts`)
|
|
14
|
+
*/
|
|
15
|
+
export declare function extname(path: string): string;
|
|
@@ -5,6 +5,15 @@ import { assertPath } from "../_common/assert_path.js";
|
|
|
5
5
|
import { isPosixPathSeparator } from "./_util.js";
|
|
6
6
|
/**
|
|
7
7
|
* Return the extension of the `path` with leading period.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { extname } from "https://deno.land/std@$STD_VERSION/path/extname.ts";
|
|
12
|
+
*
|
|
13
|
+
* console.log(extname("/home/user/Documents/")); // ""
|
|
14
|
+
* console.log(extname("/home/user/Documents/image.png")); // ".png"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
8
17
|
* @param path with extension
|
|
9
18
|
* @returns extension (ex. for `file.ts` returns `.ts`)
|
|
10
19
|
*/
|
|
@@ -10,7 +10,7 @@ export function join(...paths) {
|
|
|
10
10
|
if (paths.length === 0)
|
|
11
11
|
return ".";
|
|
12
12
|
let joined;
|
|
13
|
-
for (let i = 0
|
|
13
|
+
for (let i = 0; i < paths.length; ++i) {
|
|
14
14
|
const path = paths[i];
|
|
15
15
|
assertPath(path);
|
|
16
16
|
if (path.length > 0) {
|
package/esm/deps/deno.land/{std@0.219.0/path/posix → std@0.221.0/path/windows}/basename.d.ts
RENAMED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
* Return the last portion of a `path`.
|
|
3
3
|
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
4
4
|
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
|
|
8
|
+
*
|
|
9
|
+
* basename("C:\\user\\Documents\\"); // "Documents"
|
|
10
|
+
* basename("C:\\user\\Documents\\image.png"); // "image.png"
|
|
11
|
+
* basename("C:\\user\\Documents\\image.png", ".png"); // "image"
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
5
14
|
* @param path - path to extract the name from.
|
|
6
15
|
* @param [suffix] - suffix to remove from extracted name.
|
|
7
16
|
*/
|
|
@@ -8,6 +8,15 @@ import { isPathSeparator, isWindowsDeviceRoot } from "./_util.js";
|
|
|
8
8
|
* Return the last portion of a `path`.
|
|
9
9
|
* Trailing directory separators are ignored, and optional suffix is removed.
|
|
10
10
|
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { basename } from "https://deno.land/std@$STD_VERSION/path/basename.ts";
|
|
14
|
+
*
|
|
15
|
+
* basename("C:\\user\\Documents\\"); // "Documents"
|
|
16
|
+
* basename("C:\\user\\Documents\\image.png"); // "image.png"
|
|
17
|
+
* basename("C:\\user\\Documents\\image.png", ".png"); // "image"
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
11
20
|
* @param path - path to extract the name from.
|
|
12
21
|
* @param [suffix] - suffix to remove from extracted name.
|
|
13
22
|
*/
|
|
@@ -2,6 +2,10 @@ import { MaybePromise } from "../1_utilities.js";
|
|
|
2
2
|
import { AnyEntity, enums, ReadObject, TLObject, types } from "../2_tl.js";
|
|
3
3
|
import { DC } from "../3_transport.js";
|
|
4
4
|
export declare const K: {
|
|
5
|
+
connection: {
|
|
6
|
+
P: (string: string) => string;
|
|
7
|
+
apiId: () => StorageKeyPart[];
|
|
8
|
+
};
|
|
5
9
|
session: {
|
|
6
10
|
P: (string: string) => string;
|
|
7
11
|
serverSalt: () => StorageKeyPart[];
|
|
@@ -10,6 +14,7 @@ export declare const K: {
|
|
|
10
14
|
P: (string: string) => string;
|
|
11
15
|
dc: () => StorageKeyPart[];
|
|
12
16
|
key: () => StorageKeyPart[];
|
|
17
|
+
accountId: () => StorageKeyPart[];
|
|
13
18
|
accountType: () => StorageKeyPart[];
|
|
14
19
|
};
|
|
15
20
|
updates: {
|
|
@@ -75,7 +80,7 @@ export declare abstract class Storage {
|
|
|
75
80
|
getAuthKey(): Promise<Uint8Array | null>;
|
|
76
81
|
setAuthKey(authKey: Uint8Array | null): Promise<void>;
|
|
77
82
|
get authKeyId(): bigint | null;
|
|
78
|
-
exportAuthString(): Promise<string>;
|
|
83
|
+
exportAuthString(apiId_?: number | null): Promise<string>;
|
|
79
84
|
importAuthString(string: string): Promise<void>;
|
|
80
85
|
getChannelAccessHash(id: number): Promise<bigint | null>;
|
|
81
86
|
getUserAccessHash(id: number): Promise<bigint | null>;
|
|
@@ -94,6 +99,8 @@ export declare abstract class Storage {
|
|
|
94
99
|
getChannelPts(channelId: bigint): MaybePromise<number | null>;
|
|
95
100
|
setEntity(entity: AnyEntity): Promise<void>;
|
|
96
101
|
getEntity(key: number): Promise<ReadObject | null>;
|
|
102
|
+
setAccountId(accountId: number): Promise<void>;
|
|
103
|
+
getAccountId(): Promise<number | null>;
|
|
97
104
|
setAccountType(type: "user" | "bot"): Promise<void>;
|
|
98
105
|
getAccountType(): Promise<"user" | "bot" | null>;
|
|
99
106
|
updateStickerSetName(id: bigint, accessHash: bigint, name: string): Promise<void>;
|
|
@@ -130,4 +137,6 @@ export declare abstract class Storage {
|
|
|
130
137
|
deletePeers(): Promise<void>;
|
|
131
138
|
deleteUsernames(): Promise<void>;
|
|
132
139
|
clear(): Promise<void>;
|
|
140
|
+
setApiId(apiId: number): Promise<void>;
|
|
141
|
+
getApiId(): Promise<number | null>;
|
|
133
142
|
}
|
package/esm/storage/0_storage.js
CHANGED
|
@@ -9,11 +9,15 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _Storage_instances, _Storage_authKeyId, _Storage_resetAuthKeyId, _Storage_accountType, _Storage_getUpdateId;
|
|
12
|
+
var _Storage_instances, _Storage_authKeyId, _Storage_resetAuthKeyId, _Storage_accountId, _Storage_accountType, _Storage_getUpdateId;
|
|
13
13
|
import { base64DecodeUrlSafe, base64EncodeUrlSafe, bigIntFromBuffer, rleDecode, rleEncode, sha1, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
|
|
14
14
|
import { peerToChatId, serialize, TLObject, TLReader, TLWriter, types } from "../2_tl.js";
|
|
15
15
|
// key parts
|
|
16
16
|
export const K = {
|
|
17
|
+
connection: {
|
|
18
|
+
P: (string) => `connection.${string}`,
|
|
19
|
+
apiId: () => [K.connection.P("apiId")],
|
|
20
|
+
},
|
|
17
21
|
session: {
|
|
18
22
|
P: (string) => `session.${string}`,
|
|
19
23
|
serverSalt: () => [K.session.P("serverSalt")],
|
|
@@ -22,6 +26,7 @@ export const K = {
|
|
|
22
26
|
P: (string) => `auth.${string}`,
|
|
23
27
|
dc: () => [K.auth.P("dc")],
|
|
24
28
|
key: () => [K.auth.P("key")],
|
|
29
|
+
accountId: () => [K.auth.P("accountId")],
|
|
25
30
|
accountType: () => [K.auth.P("accountType")],
|
|
26
31
|
},
|
|
27
32
|
updates: {
|
|
@@ -66,6 +71,7 @@ export class Storage {
|
|
|
66
71
|
constructor() {
|
|
67
72
|
_Storage_instances.add(this);
|
|
68
73
|
_Storage_authKeyId.set(this, null);
|
|
74
|
+
_Storage_accountId.set(this, null);
|
|
69
75
|
_Storage_accountType.set(this, null);
|
|
70
76
|
}
|
|
71
77
|
get isMemoryStorage() {
|
|
@@ -89,14 +95,20 @@ export class Storage {
|
|
|
89
95
|
get authKeyId() {
|
|
90
96
|
return __classPrivateFieldGet(this, _Storage_authKeyId, "f");
|
|
91
97
|
}
|
|
92
|
-
async exportAuthString() {
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
async exportAuthString(apiId_) {
|
|
99
|
+
if (typeof apiId_ === "number") {
|
|
100
|
+
await this.setApiId(apiId_);
|
|
101
|
+
}
|
|
102
|
+
const [dc, authKey, apiId, accountId, accountType] = await Promise.all([this.getDc(), this.getAuthKey(), this.getApiId(), this.getAccountId(), this.getAccountType()]);
|
|
103
|
+
if (dc == null || authKey == null || apiId == null || accountId == null || accountType == null) {
|
|
95
104
|
throw new Error("Not authorized");
|
|
96
105
|
}
|
|
97
106
|
const writer = new TLWriter();
|
|
98
107
|
writer.writeString(dc);
|
|
99
108
|
writer.writeBytes(authKey);
|
|
109
|
+
writer.writeInt32(apiId);
|
|
110
|
+
writer.write(new Uint8Array([accountType == "bot" ? 1 : 0]));
|
|
111
|
+
writer.writeInt64(BigInt(accountId));
|
|
100
112
|
const data = rleEncode(writer.buffer);
|
|
101
113
|
return base64EncodeUrlSafe(data);
|
|
102
114
|
}
|
|
@@ -105,6 +117,12 @@ export class Storage {
|
|
|
105
117
|
const reader = new TLReader(data);
|
|
106
118
|
const dc = reader.readString();
|
|
107
119
|
const authKey = reader.readBytes();
|
|
120
|
+
const apiId = reader.readInt32();
|
|
121
|
+
const isBot = reader.read(1)[0];
|
|
122
|
+
const accountId = Number(reader.readInt64());
|
|
123
|
+
await this.setAccountId(accountId);
|
|
124
|
+
await this.setAccountType(isBot ? "bot" : "user");
|
|
125
|
+
await this.setApiId(apiId);
|
|
108
126
|
await this.setDc(dc);
|
|
109
127
|
await this.setAuthKey(authKey);
|
|
110
128
|
}
|
|
@@ -214,6 +232,17 @@ export class Storage {
|
|
|
214
232
|
return null;
|
|
215
233
|
}
|
|
216
234
|
}
|
|
235
|
+
async setAccountId(accountId) {
|
|
236
|
+
await this.set(K.auth.accountId(), accountId);
|
|
237
|
+
}
|
|
238
|
+
async getAccountId() {
|
|
239
|
+
if (__classPrivateFieldGet(this, _Storage_accountId, "f") != null) {
|
|
240
|
+
return __classPrivateFieldGet(this, _Storage_accountId, "f");
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
return (__classPrivateFieldSet(this, _Storage_accountId, await this.get(K.auth.accountId()), "f"));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
217
246
|
async setAccountType(type) {
|
|
218
247
|
try {
|
|
219
248
|
await this.getAccountType();
|
|
@@ -408,8 +437,14 @@ export class Storage {
|
|
|
408
437
|
this.deleteUsernames(),
|
|
409
438
|
]);
|
|
410
439
|
}
|
|
440
|
+
async setApiId(apiId) {
|
|
441
|
+
await this.set(K.connection.apiId(), apiId);
|
|
442
|
+
}
|
|
443
|
+
async getApiId() {
|
|
444
|
+
return await this.get(K.connection.apiId());
|
|
445
|
+
}
|
|
411
446
|
}
|
|
412
|
-
_Storage_authKeyId = new WeakMap(), _Storage_accountType = new WeakMap(), _Storage_instances = new WeakSet(), _Storage_resetAuthKeyId = async function _Storage_resetAuthKeyId(authKey) {
|
|
447
|
+
_Storage_authKeyId = new WeakMap(), _Storage_accountId = new WeakMap(), _Storage_accountType = new WeakMap(), _Storage_instances = new WeakSet(), _Storage_resetAuthKeyId = async function _Storage_resetAuthKeyId(authKey) {
|
|
413
448
|
if (authKey != null) {
|
|
414
449
|
__classPrivateFieldSet(this, _Storage_authKeyId, await sha1(authKey).then((hash) => bigIntFromBuffer(hash.subarray(-8), true, false)), "f");
|
|
415
450
|
}
|
package/esm/tl/6_message.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { serialize } from "./1_tl_object.js";
|
|
1
2
|
import { ReadObject, TLReader } from "./3_tl_reader.js";
|
|
2
3
|
import { RPCResult } from "./4_rpc_result.js";
|
|
3
|
-
export declare function calculateLength(object: ReadObject): number;
|
|
4
|
+
export declare function calculateLength(object: Message_ | ReadObject): number;
|
|
4
5
|
export declare class Message_ {
|
|
5
6
|
readonly id: bigint;
|
|
6
7
|
readonly seqNo: number;
|
|
7
8
|
readonly body: ReadObject | RPCResult;
|
|
8
9
|
constructor(id: bigint, seqNo: number, body: ReadObject | RPCResult);
|
|
9
|
-
serialize(): Uint8Array;
|
|
10
|
+
[serialize](): Uint8Array;
|
|
10
11
|
static deserialize(reader: TLReader): Message_;
|
|
11
12
|
}
|
package/esm/tl/6_message.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { id, name } from "./1_tl_object.js";
|
|
1
|
+
import { id, name, serialize } from "./1_tl_object.js";
|
|
2
2
|
import { Message_ } from "./6_message.js";
|
|
3
3
|
export declare class MessageContainer {
|
|
4
|
+
readonly id: bigint;
|
|
5
|
+
readonly seqNo: number;
|
|
4
6
|
messages: Message_[];
|
|
5
7
|
static get [id](): number;
|
|
6
8
|
get [name](): string;
|
|
7
|
-
constructor(messages: Message_[]);
|
|
8
|
-
serialize(): Uint8Array;
|
|
9
|
-
static deserialize(buffer: Uint8Array):
|
|
9
|
+
constructor(id: bigint, seqNo: number, messages: Message_[]);
|
|
10
|
+
[serialize](): Uint8Array;
|
|
11
|
+
static deserialize(buffer: Uint8Array): Message_[];
|
|
10
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { id, name } from "./1_tl_object.js";
|
|
1
|
+
import { id, name, serialize } from "./1_tl_object.js";
|
|
2
2
|
import { TLReader } from "./3_tl_reader.js";
|
|
3
3
|
import { TLWriter } from "./4_tl_writer.js";
|
|
4
|
-
import { Message_ } from "./6_message.js";
|
|
4
|
+
import { calculateLength, Message_ } from "./6_message.js";
|
|
5
5
|
export class MessageContainer {
|
|
6
6
|
static get [id]() {
|
|
7
7
|
return 0x73F1F8DC;
|
|
@@ -9,7 +9,19 @@ export class MessageContainer {
|
|
|
9
9
|
get [name]() {
|
|
10
10
|
return "msg_container";
|
|
11
11
|
}
|
|
12
|
-
constructor(messages) {
|
|
12
|
+
constructor(id, seqNo, messages) {
|
|
13
|
+
Object.defineProperty(this, "id", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: id
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(this, "seqNo", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: seqNo
|
|
24
|
+
});
|
|
13
25
|
Object.defineProperty(this, "messages", {
|
|
14
26
|
enumerable: true,
|
|
15
27
|
configurable: true,
|
|
@@ -17,12 +29,15 @@ export class MessageContainer {
|
|
|
17
29
|
value: messages
|
|
18
30
|
});
|
|
19
31
|
}
|
|
20
|
-
serialize() {
|
|
32
|
+
[serialize]() {
|
|
21
33
|
const writer = new TLWriter();
|
|
22
|
-
writer.
|
|
34
|
+
writer.writeInt64(this.id);
|
|
35
|
+
writer.writeInt32(this.seqNo);
|
|
36
|
+
writer.writeInt32(8 + this.messages.map(calculateLength).reduce((a, b) => a + b));
|
|
37
|
+
writer.writeInt32(MessageContainer[id], false);
|
|
23
38
|
writer.writeInt32(this.messages.length);
|
|
24
39
|
for (const message of this.messages) {
|
|
25
|
-
writer.write(message
|
|
40
|
+
writer.write(message[serialize]());
|
|
26
41
|
}
|
|
27
42
|
return writer.buffer;
|
|
28
43
|
}
|
|
@@ -33,6 +48,6 @@ export class MessageContainer {
|
|
|
33
48
|
for (let i = 0; i < length; i++) {
|
|
34
49
|
messages.push(Message_.deserialize(reader));
|
|
35
50
|
}
|
|
36
|
-
return
|
|
51
|
+
return messages;
|
|
37
52
|
}
|
|
38
53
|
}
|
|
@@ -96,3 +96,4 @@ export interface MessageEntityCustomEmoji extends _MessageEntityBase {
|
|
|
96
96
|
export type MessageEntity = MessageEntityMention | MessageEntityHashtag | MessageEntityBotCommand | MessageEntityURL | MessageEntityEmailAddress | MessageEntityBold | MessageEntityItalic | MessageEntityCode | MessageEntityPre | MessageEntityTextLink | MessageEntityTextMention | MessageEntityCashtag | MessageEntityPhoneNumber | MessageEntityUnderline | MessageEntityStrikethrough | MessageEntityBlockquote | MessageEntityBankCard | MessageEntitySpoiler | MessageEntityCustomEmoji;
|
|
97
97
|
export declare function constructMessageEntity(obj: enums.MessageEntity): MessageEntity | null;
|
|
98
98
|
export declare function messageEntityToTlObject(entity: MessageEntity, getEntity: EntityGetter): Promise<enums.MessageEntity>;
|
|
99
|
+
export declare function sortMessageEntities(entities: MessageEntity[]): MessageEntity[];
|
|
@@ -127,3 +127,37 @@ export async function messageEntityToTlObject(entity, getEntity) {
|
|
|
127
127
|
return new types.MessageEntityCustomEmoji({ offset, length, document_id: BigInt(entity.customEmojiId) });
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
+
const priorities = {
|
|
131
|
+
"mention": 50,
|
|
132
|
+
"hashtag": 50,
|
|
133
|
+
"botCommand": 50,
|
|
134
|
+
"url": 50,
|
|
135
|
+
"email": 50,
|
|
136
|
+
"bold": 90,
|
|
137
|
+
"italic": 91,
|
|
138
|
+
"code": 20,
|
|
139
|
+
"pre": 11,
|
|
140
|
+
"textLink": 49,
|
|
141
|
+
"textMention": 49,
|
|
142
|
+
"cashtag": 50,
|
|
143
|
+
"phoneNumber": 50,
|
|
144
|
+
"underline": 92,
|
|
145
|
+
"strikethrough": 93,
|
|
146
|
+
"blockquote": 0,
|
|
147
|
+
"bankCard": 50,
|
|
148
|
+
"spoiler": 94,
|
|
149
|
+
"customEmoji": 99,
|
|
150
|
+
};
|
|
151
|
+
export function sortMessageEntities(entities) {
|
|
152
|
+
return entities.sort(({ offset, type, length }, other) => {
|
|
153
|
+
if (offset !== other.offset) {
|
|
154
|
+
return offset < other.offset ? -1 : 1;
|
|
155
|
+
}
|
|
156
|
+
if (length !== other.length) {
|
|
157
|
+
return length > other.length ? -1 : 1;
|
|
158
|
+
}
|
|
159
|
+
const priority = priorities[type];
|
|
160
|
+
const otherPriority = priorities[other.type];
|
|
161
|
+
return priority < otherPriority ? -1 : 1;
|
|
162
|
+
});
|
|
163
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Message parse mode. */
|
|
2
|
-
export type ParseMode = "HTML" | null;
|
|
2
|
+
export type ParseMode = "HTML" | "Markdown" | null;
|
|
@@ -29,7 +29,7 @@ export interface _InlineQueryResultThumbnailCommon {
|
|
|
29
29
|
thumbnailHeight?: string;
|
|
30
30
|
}
|
|
31
31
|
/** @unlisted */
|
|
32
|
-
export interface InlineQueryResultArticle extends _InlineQueryResultBase {
|
|
32
|
+
export interface InlineQueryResultArticle extends _InlineQueryResultBase, _InlineQueryResultThumbnailCommon {
|
|
33
33
|
type: "article";
|
|
34
34
|
title: string;
|
|
35
35
|
inputMessageContent: InputMessageContent;
|