@mtkruto/node 0.1.153 → 0.1.155
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/0_deps.d.ts +6 -8
- package/esm/0_deps.js +14 -9
- package/esm/1_utilities.d.ts +3 -1
- package/esm/1_utilities.js +3 -1
- package/esm/4_constants.d.ts +2 -2
- package/esm/4_constants.js +4 -4
- package/esm/5_client.d.ts +0 -1
- package/esm/5_client.js +0 -1
- package/esm/client/0_params.d.ts +13 -1
- package/esm/client/0_types.d.ts +1 -0
- package/esm/client/1_file_manager.js +12 -10
- package/esm/client/1_update_manager.js +27 -20
- package/esm/client/2_client_plain.js +22 -15
- package/esm/client/2_message_manager.d.ts +1 -0
- package/esm/client/2_message_manager.js +12 -6
- package/esm/client/3_chat_list_manager.js +7 -6
- package/esm/client/4_client.d.ts +16 -2
- package/esm/client/4_client.js +85 -39
- package/esm/connection/1_connection_web_socket.js +9 -10
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/assert/assert_rejects.d.ts +4 -0
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/assert/assert_throws.d.ts +6 -0
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/assert/unreachable.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unreachable.js +2 -2
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/base64.js +12 -9
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/_db.d.ts +3 -1
- package/esm/deps/deno.land/std@0.218.0/media_types/_db.js +32 -0
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/media_types/_util.d.ts +0 -2
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/_util.js +0 -2
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/media_types/extensions_by_type.d.ts +1 -3
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extensions_by_type.js +1 -3
- package/esm/deps/deno.land/std@0.218.0/path/_common/assert_path.d.ts +1 -0
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/glob_to_reg_exp.js +3 -1
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/path/format.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/glob_to_regexp.d.ts +1 -1
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/path/mod.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/mod.js +1 -1
- package/{script/deps/deno.land/std@0.216.0 → esm/deps/deno.land/std@0.218.0}/path/posix/glob_to_regexp.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join_globs.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize_glob.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/parse.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0/path/posix → std@0.218.0/path/windows}/glob_to_regexp.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join_globs.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize_glob.d.ts +1 -1
- package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/parse.d.ts +1 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +1 -0
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +1 -0
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +1 -5
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +2 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +1 -5
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +1 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +8 -8
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +2 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +21 -19
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +3 -3
- package/esm/mod.d.ts +1 -2
- package/esm/mod.js +1 -2
- package/esm/storage/0_storage.d.ts +2 -0
- package/esm/storage/0_storage.js +21 -2
- package/esm/storage/1_storage_memory.d.ts +2 -1
- package/esm/storage/1_storage_memory.js +15 -10
- package/esm/tl/2_types.d.ts +44 -6
- package/esm/tl/2_types.js +143 -20
- package/esm/tl/3_functions.d.ts +36 -0
- package/esm/tl/3_functions.js +88 -0
- package/esm/types/4_message.js +3 -4
- package/esm/utilities/0_logger.d.ts +25 -0
- package/esm/utilities/0_logger.js +90 -0
- package/esm/utilities/0_mutex.d.ts +4 -0
- package/esm/utilities/0_mutex.js +26 -0
- package/esm/utilities/{0_queue.js → 1_queue.js} +6 -6
- package/package.json +1 -1
- package/script/0_deps.d.ts +6 -8
- package/script/0_deps.js +18 -15
- package/script/1_utilities.d.ts +3 -1
- package/script/1_utilities.js +3 -1
- package/script/4_constants.d.ts +2 -2
- package/script/4_constants.js +4 -4
- package/script/5_client.d.ts +0 -1
- package/script/5_client.js +0 -1
- package/script/client/0_params.d.ts +13 -1
- package/script/client/0_types.d.ts +1 -0
- package/script/client/1_file_manager.js +10 -8
- package/script/client/1_update_manager.js +26 -19
- package/script/client/2_client_plain.js +20 -13
- package/script/client/2_message_manager.d.ts +1 -0
- package/script/client/2_message_manager.js +10 -4
- package/script/client/3_chat_list_manager.js +6 -5
- package/script/client/4_client.d.ts +16 -2
- package/script/client/4_client.js +84 -38
- package/script/connection/1_connection_web_socket.js +11 -12
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/assert/assert_rejects.d.ts +4 -0
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/assert/assert_throws.d.ts +6 -0
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/assert/unreachable.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unreachable.js +2 -2
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/base64.js +12 -9
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/_db.d.ts +3 -1
- package/script/deps/deno.land/std@0.218.0/media_types/_db.js +39 -0
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/media_types/_util.d.ts +0 -2
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/_util.js +1 -3
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/media_types/extensions_by_type.d.ts +1 -3
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extensions_by_type.js +3 -5
- package/script/deps/deno.land/std@0.218.0/path/_common/assert_path.d.ts +1 -0
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/glob_to_reg_exp.js +3 -1
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/path/format.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/glob_to_regexp.d.ts +1 -1
- package/{esm/deps/deno.land/std@0.216.0 → script/deps/deno.land/std@0.218.0}/path/mod.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/mod.js +1 -1
- package/{esm/deps/deno.land/std@0.216.0/path/windows → script/deps/deno.land/std@0.218.0/path/posix}/glob_to_regexp.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join_globs.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize_glob.d.ts +1 -1
- package/script/deps/deno.land/std@0.218.0/path/posix/parse.d.ts +6 -0
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/glob_to_regexp.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join_globs.d.ts +1 -1
- package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize_glob.d.ts +1 -1
- package/script/deps/deno.land/std@0.218.0/path/windows/parse.d.ts +6 -0
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.d.ts +1 -0
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/mod.js +6 -0
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/deflate.js +1 -7
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.d.ts +2 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/inflate.js +1 -7
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/crc32.js +1 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/deflate.js +8 -8
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inffast.js +2 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/inflate.js +21 -19
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/zlib/zlib/trees.js +3 -3
- package/script/mod.d.ts +1 -2
- package/script/mod.js +2 -2
- package/script/storage/0_storage.d.ts +2 -0
- package/script/storage/0_storage.js +19 -0
- package/script/storage/1_storage_memory.d.ts +2 -1
- package/script/storage/1_storage_memory.js +15 -10
- package/script/tl/2_types.d.ts +44 -6
- package/script/tl/2_types.js +168 -43
- package/script/tl/3_functions.d.ts +36 -0
- package/script/tl/3_functions.js +93 -3
- package/script/types/4_message.js +2 -3
- package/script/utilities/0_logger.d.ts +25 -0
- package/script/utilities/0_logger.js +118 -0
- package/script/utilities/0_mutex.d.ts +4 -0
- package/script/utilities/0_mutex.js +30 -0
- package/script/utilities/{0_queue.js → 1_queue.js} +6 -6
- package/esm/_dnt.polyfills.d.ts +0 -6
- package/esm/_dnt.polyfills.js +0 -1
- package/esm/client/5_session_string.d.ts +0 -3
- package/esm/client/5_session_string.js +0 -22
- package/esm/deps/deno.land/std@0.216.0/media_types/_db.js +0 -33
- package/esm/deps/deno.land/std@0.216.0/path/_common/assert_path.d.ts +0 -1
- package/esm/deps/deno.land/std@0.69.0/fmt/colors.d.ts +0 -77
- package/esm/deps/deno.land/std@0.69.0/fmt/colors.js +0 -224
- package/esm/deps/deno.land/x/crc32@v0.2.0/mod.d.ts +0 -15
- package/esm/deps/deno.land/x/crc32@v0.2.0/mod.js +0 -105
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.d.ts +0 -16
- package/esm/deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js +0 -239
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/colors.d.ts +0 -3
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/colors.js +0 -71
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/debug.d.ts +0 -22
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/debug.js +0 -112
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/deps.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/deps.js +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/format.d.ts +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/format.js +0 -39
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/mod.d.ts +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/debug/main/mod.js +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/mod.d.ts +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/mod.js +0 -2
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/mutex.d.ts +0 -26
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/mutex.js +0 -32
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/semaphore.d.ts +0 -41
- package/esm/deps/raw.githubusercontent.com/MTKruto/mutex/main/semaphore.js +0 -113
- package/esm/deps/raw.githubusercontent.com/MTKruto/object-inspect/main/index.d.ts +0 -1
- package/esm/deps/raw.githubusercontent.com/MTKruto/object-inspect/main/index.js +0 -524
- package/script/_dnt.polyfills.d.ts +0 -6
- package/script/_dnt.polyfills.js +0 -2
- package/script/client/5_session_string.d.ts +0 -3
- package/script/client/5_session_string.js +0 -27
- package/script/deps/deno.land/std@0.216.0/media_types/_db.js +0 -39
- package/script/deps/deno.land/std@0.216.0/path/_common/assert_path.d.ts +0 -1
- package/script/deps/deno.land/std@0.216.0/path/posix/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.216.0/path/windows/parse.d.ts +0 -6
- package/script/deps/deno.land/std@0.69.0/fmt/colors.d.ts +0 -77
- package/script/deps/deno.land/std@0.69.0/fmt/colors.js +0 -298
- package/script/deps/deno.land/x/crc32@v0.2.0/mod.d.ts +0 -15
- package/script/deps/deno.land/x/crc32@v0.2.0/mod.js +0 -113
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.d.ts +0 -16
- package/script/deps/raw.githubusercontent.com/MTKruto/compress/main/gzip/gzip.js +0 -271
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/colors.d.ts +0 -3
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/colors.js +0 -98
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/debug.d.ts +0 -22
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/debug.js +0 -141
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/deps.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/deps.js +0 -32
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/format.d.ts +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/format.js +0 -43
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/mod.d.ts +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/debug/main/mod.js +0 -17
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/mod.d.ts +0 -2
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/mod.js +0 -18
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/mutex.d.ts +0 -26
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/mutex.js +0 -36
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/semaphore.d.ts +0 -41
- package/script/deps/raw.githubusercontent.com/MTKruto/mutex/main/semaphore.js +0 -117
- package/script/deps/raw.githubusercontent.com/MTKruto/object-inspect/main/index.d.ts +0 -1
- package/script/deps/raw.githubusercontent.com/MTKruto/object-inspect/main/index.js +0 -550
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_diff.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_diff.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_almost_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_array_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_array_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_exists.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_exists.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_false.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_false.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_is_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_is_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less_or_equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_instance_of.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_object_match.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_object_match.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_rejects.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_strict_equals.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_string_includes.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_string_includes.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_throws.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assertion_error.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assertion_error.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/equal.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/equal.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/fail.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/fail.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unimplemented.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unimplemented.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/base64.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/fmt/colors.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/fmt/colors.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/content_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/content_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/format_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/format_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/get_charset.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/get_charset.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/parse_media_type.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/parse_media_type.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/type_by_extension.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/type_by_extension.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/assert_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize_string.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_interface.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_interface.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_os.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_os.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join_globs.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/parse.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_namespaced_path.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/_util.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/_util.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/basename.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/basename.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/common.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/common.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/constants.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/constants.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/dirname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/dirname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/extname.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/extname.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/format.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/format.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/from_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/glob_to_regexp.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_absolute.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_absolute.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_glob.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join_globs.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/mod.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/mod.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize_glob.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/parse.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/relative.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/relative.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/resolve.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/resolve.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_file_url.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_file_url.js +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/esm/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_namespaced_path.js +0 -0
- /package/esm/utilities/{0_queue.d.ts → 1_queue.d.ts} +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_diff.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_diff.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/_format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_almost_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_almost_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_array_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_array_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_exists.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_exists.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_false.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_false.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_greater_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_is_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_is_error.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less_or_equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_less_or_equal.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_match.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_instance_of.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_instance_of.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_match.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_not_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_object_match.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_object_match.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_rejects.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_strict_equals.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_strict_equals.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_string_includes.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_string_includes.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assert_throws.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assertion_error.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/assertion_error.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/equal.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/equal.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/fail.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/fail.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unimplemented.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/assert/unimplemented.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/encoding/base64.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/fmt/colors.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/fmt/colors.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/content_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/content_type.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/extension.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/format_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/format_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/get_charset.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/get_charset.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/parse_media_type.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/parse_media_type.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/type_by_extension.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/type_by_extension.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/assert_path.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/common.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/glob_to_reg_exp.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize_string.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/normalize_string.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/strip_trailing_separators.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/strip_trailing_separators.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_common/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_interface.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_interface.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_os.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/_os.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/common.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join_globs.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/parse.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/common.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/posix/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/to_namespaced_path.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/_util.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/_util.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/basename.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/basename.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/common.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/common.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/constants.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/constants.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/dirname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/dirname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/extname.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/extname.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/format.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/format.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/from_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/from_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/glob_to_regexp.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_absolute.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_absolute.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_glob.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/is_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/join_globs.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/mod.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/mod.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/normalize_glob.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/parse.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/relative.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/relative.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/resolve.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/resolve.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_file_url.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_file_url.js +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_namespaced_path.d.ts +0 -0
- /package/script/deps/deno.land/{std@0.216.0 → std@0.218.0}/path/windows/to_namespaced_path.js +0 -0
- /package/script/utilities/{0_queue.d.ts → 1_queue.d.ts} +0 -0
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
/** A module to print ANSI terminal colors. Inspired by chalk, kleur, and colors
|
|
3
|
-
* on npm.
|
|
4
|
-
*
|
|
5
|
-
* ```
|
|
6
|
-
* import { bgBlue, red, bold } from "https://deno.land/std/fmt/colors.ts";
|
|
7
|
-
* console.log(bgBlue(red(bold("Hello world!"))));
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* This module supports `NO_COLOR` environmental variable disabling any coloring
|
|
11
|
-
* if `NO_COLOR` is set.
|
|
12
|
-
*
|
|
13
|
-
* This module is browser compatible. */
|
|
14
|
-
import * as dntShim from "../../../../_dnt.shims.js";
|
|
15
|
-
const noColor = dntShim.dntGlobalThis.Deno?.noColor ?? true;
|
|
16
|
-
let enabled = !noColor;
|
|
17
|
-
export function setColorEnabled(value) {
|
|
18
|
-
if (noColor) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
enabled = value;
|
|
22
|
-
}
|
|
23
|
-
export function getColorEnabled() {
|
|
24
|
-
return enabled;
|
|
25
|
-
}
|
|
26
|
-
function code(open, close) {
|
|
27
|
-
return {
|
|
28
|
-
open: `\x1b[${open.join(";")}m`,
|
|
29
|
-
close: `\x1b[${close}m`,
|
|
30
|
-
regexp: new RegExp(`\\x1b\\[${close}m`, "g"),
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function run(str, code) {
|
|
34
|
-
return enabled
|
|
35
|
-
? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
|
|
36
|
-
: str;
|
|
37
|
-
}
|
|
38
|
-
export function reset(str) {
|
|
39
|
-
return run(str, code([0], 0));
|
|
40
|
-
}
|
|
41
|
-
export function bold(str) {
|
|
42
|
-
return run(str, code([1], 22));
|
|
43
|
-
}
|
|
44
|
-
export function dim(str) {
|
|
45
|
-
return run(str, code([2], 22));
|
|
46
|
-
}
|
|
47
|
-
export function italic(str) {
|
|
48
|
-
return run(str, code([3], 23));
|
|
49
|
-
}
|
|
50
|
-
export function underline(str) {
|
|
51
|
-
return run(str, code([4], 24));
|
|
52
|
-
}
|
|
53
|
-
export function inverse(str) {
|
|
54
|
-
return run(str, code([7], 27));
|
|
55
|
-
}
|
|
56
|
-
export function hidden(str) {
|
|
57
|
-
return run(str, code([8], 28));
|
|
58
|
-
}
|
|
59
|
-
export function strikethrough(str) {
|
|
60
|
-
return run(str, code([9], 29));
|
|
61
|
-
}
|
|
62
|
-
export function black(str) {
|
|
63
|
-
return run(str, code([30], 39));
|
|
64
|
-
}
|
|
65
|
-
export function red(str) {
|
|
66
|
-
return run(str, code([31], 39));
|
|
67
|
-
}
|
|
68
|
-
export function green(str) {
|
|
69
|
-
return run(str, code([32], 39));
|
|
70
|
-
}
|
|
71
|
-
export function yellow(str) {
|
|
72
|
-
return run(str, code([33], 39));
|
|
73
|
-
}
|
|
74
|
-
export function blue(str) {
|
|
75
|
-
return run(str, code([34], 39));
|
|
76
|
-
}
|
|
77
|
-
export function magenta(str) {
|
|
78
|
-
return run(str, code([35], 39));
|
|
79
|
-
}
|
|
80
|
-
export function cyan(str) {
|
|
81
|
-
return run(str, code([36], 39));
|
|
82
|
-
}
|
|
83
|
-
export function white(str) {
|
|
84
|
-
return run(str, code([37], 39));
|
|
85
|
-
}
|
|
86
|
-
export function gray(str) {
|
|
87
|
-
return brightBlack(str);
|
|
88
|
-
}
|
|
89
|
-
export function brightBlack(str) {
|
|
90
|
-
return run(str, code([90], 39));
|
|
91
|
-
}
|
|
92
|
-
export function brightRed(str) {
|
|
93
|
-
return run(str, code([91], 39));
|
|
94
|
-
}
|
|
95
|
-
export function brightGreen(str) {
|
|
96
|
-
return run(str, code([92], 39));
|
|
97
|
-
}
|
|
98
|
-
export function brightYellow(str) {
|
|
99
|
-
return run(str, code([93], 39));
|
|
100
|
-
}
|
|
101
|
-
export function brightBlue(str) {
|
|
102
|
-
return run(str, code([94], 39));
|
|
103
|
-
}
|
|
104
|
-
export function brightMagenta(str) {
|
|
105
|
-
return run(str, code([95], 39));
|
|
106
|
-
}
|
|
107
|
-
export function brightCyan(str) {
|
|
108
|
-
return run(str, code([96], 39));
|
|
109
|
-
}
|
|
110
|
-
export function brightWhite(str) {
|
|
111
|
-
return run(str, code([97], 39));
|
|
112
|
-
}
|
|
113
|
-
export function bgBlack(str) {
|
|
114
|
-
return run(str, code([40], 49));
|
|
115
|
-
}
|
|
116
|
-
export function bgRed(str) {
|
|
117
|
-
return run(str, code([41], 49));
|
|
118
|
-
}
|
|
119
|
-
export function bgGreen(str) {
|
|
120
|
-
return run(str, code([42], 49));
|
|
121
|
-
}
|
|
122
|
-
export function bgYellow(str) {
|
|
123
|
-
return run(str, code([43], 49));
|
|
124
|
-
}
|
|
125
|
-
export function bgBlue(str) {
|
|
126
|
-
return run(str, code([44], 49));
|
|
127
|
-
}
|
|
128
|
-
export function bgMagenta(str) {
|
|
129
|
-
return run(str, code([45], 49));
|
|
130
|
-
}
|
|
131
|
-
export function bgCyan(str) {
|
|
132
|
-
return run(str, code([46], 49));
|
|
133
|
-
}
|
|
134
|
-
export function bgWhite(str) {
|
|
135
|
-
return run(str, code([47], 49));
|
|
136
|
-
}
|
|
137
|
-
export function bgBrightBlack(str) {
|
|
138
|
-
return run(str, code([100], 49));
|
|
139
|
-
}
|
|
140
|
-
export function bgBrightRed(str) {
|
|
141
|
-
return run(str, code([101], 49));
|
|
142
|
-
}
|
|
143
|
-
export function bgBrightGreen(str) {
|
|
144
|
-
return run(str, code([102], 49));
|
|
145
|
-
}
|
|
146
|
-
export function bgBrightYellow(str) {
|
|
147
|
-
return run(str, code([103], 49));
|
|
148
|
-
}
|
|
149
|
-
export function bgBrightBlue(str) {
|
|
150
|
-
return run(str, code([104], 49));
|
|
151
|
-
}
|
|
152
|
-
export function bgBrightMagenta(str) {
|
|
153
|
-
return run(str, code([105], 49));
|
|
154
|
-
}
|
|
155
|
-
export function bgBrightCyan(str) {
|
|
156
|
-
return run(str, code([106], 49));
|
|
157
|
-
}
|
|
158
|
-
export function bgBrightWhite(str) {
|
|
159
|
-
return run(str, code([107], 49));
|
|
160
|
-
}
|
|
161
|
-
/* Special Color Sequences */
|
|
162
|
-
function clampAndTruncate(n, max = 255, min = 0) {
|
|
163
|
-
return Math.trunc(Math.max(Math.min(n, max), min));
|
|
164
|
-
}
|
|
165
|
-
/** Set text color using paletted 8bit colors.
|
|
166
|
-
* https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit */
|
|
167
|
-
export function rgb8(str, color) {
|
|
168
|
-
return run(str, code([38, 5, clampAndTruncate(color)], 39));
|
|
169
|
-
}
|
|
170
|
-
/** Set background color using paletted 8bit colors.
|
|
171
|
-
* https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit */
|
|
172
|
-
export function bgRgb8(str, color) {
|
|
173
|
-
return run(str, code([48, 5, clampAndTruncate(color)], 49));
|
|
174
|
-
}
|
|
175
|
-
/** Set text color using 24bit rgb.
|
|
176
|
-
* `color` can be a number in range `0x000000` to `0xffffff` or
|
|
177
|
-
* an `Rgb`.
|
|
178
|
-
*
|
|
179
|
-
* To produce the color magenta:
|
|
180
|
-
*
|
|
181
|
-
* rgba24("foo", 0xff00ff);
|
|
182
|
-
* rgba24("foo", {r: 255, g: 0, b: 255});
|
|
183
|
-
*/
|
|
184
|
-
export function rgb24(str, color) {
|
|
185
|
-
if (typeof color === "number") {
|
|
186
|
-
return run(str, code([38, 2, (color >> 16) & 0xff, (color >> 8) & 0xff, color & 0xff], 39));
|
|
187
|
-
}
|
|
188
|
-
return run(str, code([
|
|
189
|
-
38,
|
|
190
|
-
2,
|
|
191
|
-
clampAndTruncate(color.r),
|
|
192
|
-
clampAndTruncate(color.g),
|
|
193
|
-
clampAndTruncate(color.b),
|
|
194
|
-
], 39));
|
|
195
|
-
}
|
|
196
|
-
/** Set background color using 24bit rgb.
|
|
197
|
-
* `color` can be a number in range `0x000000` to `0xffffff` or
|
|
198
|
-
* an `Rgb`.
|
|
199
|
-
*
|
|
200
|
-
* To produce the color magenta:
|
|
201
|
-
*
|
|
202
|
-
* bgRgba24("foo", 0xff00ff);
|
|
203
|
-
* bgRgba24("foo", {r: 255, g: 0, b: 255});
|
|
204
|
-
*/
|
|
205
|
-
export function bgRgb24(str, color) {
|
|
206
|
-
if (typeof color === "number") {
|
|
207
|
-
return run(str, code([48, 2, (color >> 16) & 0xff, (color >> 8) & 0xff, color & 0xff], 49));
|
|
208
|
-
}
|
|
209
|
-
return run(str, code([
|
|
210
|
-
48,
|
|
211
|
-
2,
|
|
212
|
-
clampAndTruncate(color.r),
|
|
213
|
-
clampAndTruncate(color.g),
|
|
214
|
-
clampAndTruncate(color.b),
|
|
215
|
-
], 49));
|
|
216
|
-
}
|
|
217
|
-
// https://github.com/chalk/ansi-regex/blob/2b56fb0c7a07108e5b54241e8faec160d393aedb/index.js
|
|
218
|
-
const ANSI_PATTERN = new RegExp([
|
|
219
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
220
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",
|
|
221
|
-
].join("|"), "g");
|
|
222
|
-
export function stripColor(string) {
|
|
223
|
-
return string.replace(ANSI_PATTERN, "");
|
|
224
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare function crc32(arr: Uint8Array | string): string;
|
|
2
|
-
export declare class Crc32Stream {
|
|
3
|
-
#private;
|
|
4
|
-
private bytes;
|
|
5
|
-
private poly;
|
|
6
|
-
private crc;
|
|
7
|
-
private encoder;
|
|
8
|
-
constructor();
|
|
9
|
-
get crc32(): string;
|
|
10
|
-
reset(): void;
|
|
11
|
-
append(arr: Uint8Array | string): string;
|
|
12
|
-
}
|
|
13
|
-
export declare function numberToHex(n: number): string;
|
|
14
|
-
export declare function hexToUint8Array(str: string): Uint8Array;
|
|
15
|
-
export declare function uint8ArrayToHex(bytes: Uint8Array): string;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
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");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
7
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
|
-
};
|
|
12
|
-
var _Crc32Stream_crc32;
|
|
13
|
-
export function crc32(arr) {
|
|
14
|
-
if (typeof arr === "string") {
|
|
15
|
-
arr = new TextEncoder().encode(arr);
|
|
16
|
-
}
|
|
17
|
-
let crc = -1, i, j, l, temp, poly = 0xEDB88320;
|
|
18
|
-
for (i = 0, l = arr.length; i < l; i += 1) {
|
|
19
|
-
temp = (crc ^ arr[i]) & 0xff;
|
|
20
|
-
for (j = 0; j < 8; j += 1) {
|
|
21
|
-
if ((temp & 1) === 1) {
|
|
22
|
-
temp = (temp >>> 1) ^ poly;
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
temp = (temp >>> 1);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
crc = (crc >>> 8) ^ temp;
|
|
29
|
-
}
|
|
30
|
-
return numberToHex(crc ^ -1);
|
|
31
|
-
}
|
|
32
|
-
export class Crc32Stream {
|
|
33
|
-
constructor() {
|
|
34
|
-
Object.defineProperty(this, "bytes", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true,
|
|
37
|
-
writable: true,
|
|
38
|
-
value: []
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(this, "poly", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true,
|
|
43
|
-
writable: true,
|
|
44
|
-
value: 0xEDB88320
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(this, "crc", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true,
|
|
50
|
-
value: 0 ^ -1
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(this, "encoder", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
configurable: true,
|
|
55
|
-
writable: true,
|
|
56
|
-
value: new TextEncoder()
|
|
57
|
-
});
|
|
58
|
-
_Crc32Stream_crc32.set(this, "");
|
|
59
|
-
this.reset();
|
|
60
|
-
}
|
|
61
|
-
get crc32() {
|
|
62
|
-
return __classPrivateFieldGet(this, _Crc32Stream_crc32, "f");
|
|
63
|
-
}
|
|
64
|
-
reset() {
|
|
65
|
-
__classPrivateFieldSet(this, _Crc32Stream_crc32, "", "f");
|
|
66
|
-
this.crc = 0 ^ -1;
|
|
67
|
-
for (let n = 0; n < 256; n += 1) {
|
|
68
|
-
let c = n;
|
|
69
|
-
for (let k = 0; k < 8; k += 1) {
|
|
70
|
-
if (c & 1) {
|
|
71
|
-
c = this.poly ^ (c >>> 1);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
c = c >>> 1;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
this.bytes[n] = c >>> 0;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
append(arr) {
|
|
81
|
-
if (typeof arr === "string") {
|
|
82
|
-
arr = this.encoder.encode(arr);
|
|
83
|
-
}
|
|
84
|
-
let crc = this.crc;
|
|
85
|
-
for (let i = 0, l = arr.length; i < l; i += 1) {
|
|
86
|
-
crc = (crc >>> 8) ^ this.bytes[(crc ^ arr[i]) & 0xff];
|
|
87
|
-
}
|
|
88
|
-
this.crc = crc;
|
|
89
|
-
__classPrivateFieldSet(this, _Crc32Stream_crc32, numberToHex(crc ^ -1), "f");
|
|
90
|
-
return __classPrivateFieldGet(this, _Crc32Stream_crc32, "f");
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
_Crc32Stream_crc32 = new WeakMap();
|
|
94
|
-
export function numberToHex(n) {
|
|
95
|
-
return (n >>> 0).toString(16);
|
|
96
|
-
}
|
|
97
|
-
export function hexToUint8Array(str) {
|
|
98
|
-
if (str.length === 0 || str.length % 2 !== 0) {
|
|
99
|
-
throw new Error(`The string "${str}" is not valid hex.`);
|
|
100
|
-
}
|
|
101
|
-
return new Uint8Array(str.match(/.{1,2}/g).map((byte) => parseInt(byte, 16)));
|
|
102
|
-
}
|
|
103
|
-
export function uint8ArrayToHex(bytes) {
|
|
104
|
-
return bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, "0"), "");
|
|
105
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_LEVEL = 6;
|
|
2
|
-
export declare function putLong(n: number, arr: number[]): void;
|
|
3
|
-
interface Options {
|
|
4
|
-
level?: number;
|
|
5
|
-
timestamp?: number;
|
|
6
|
-
name?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function getHeader(options?: Options): Uint8Array;
|
|
9
|
-
export declare function gzip(bytes: Uint8Array, options?: Options): Uint8Array;
|
|
10
|
-
export declare function gunzip(bytes: Uint8Array): Uint8Array;
|
|
11
|
-
export declare function checkHeader(arr: number[]): void;
|
|
12
|
-
export declare function checkTail(arr: number[]): {
|
|
13
|
-
crc32: number;
|
|
14
|
-
size: number;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
import * as dntShim from "../../../../../../_dnt.shims.js";
|
|
2
|
-
import { crc32 } from "../../../../../deno.land/x/crc32@v0.2.0/mod.js";
|
|
3
|
-
/** very fast */
|
|
4
|
-
import { deflateRaw, inflateRaw } from "../zlib/mod.js";
|
|
5
|
-
/** slow */
|
|
6
|
-
// import { deflateRaw, inflateRaw } from "../deflate/mod.ts";
|
|
7
|
-
// magic numbers marking this file as GZIP
|
|
8
|
-
const ID1 = 0x1F;
|
|
9
|
-
const ID2 = 0x8B;
|
|
10
|
-
const compressionMethods = {
|
|
11
|
-
"deflate": 8,
|
|
12
|
-
};
|
|
13
|
-
const possibleFlags = {
|
|
14
|
-
"FTEXT": 0x01,
|
|
15
|
-
"FHCRC": 0x02,
|
|
16
|
-
"FEXTRA": 0x04,
|
|
17
|
-
"FNAME": 0x08,
|
|
18
|
-
"FCOMMENT": 0x10,
|
|
19
|
-
};
|
|
20
|
-
// const osMap = {
|
|
21
|
-
// "fat": 0, // FAT file system (DOS, OS/2, NT) + PKZIPW 2.50 VFAT, NTFS
|
|
22
|
-
// "amiga": 1, // Amiga
|
|
23
|
-
// "vmz": 2, // VMS (VAX or Alpha AXP)
|
|
24
|
-
// "unix": 3, // Unix
|
|
25
|
-
// "vm/cms": 4, // VM/CMS
|
|
26
|
-
// "atari": 5, // Atari
|
|
27
|
-
// "hpfs": 6, // HPFS file system (OS/2, NT 3.x)
|
|
28
|
-
// "macintosh": 7, // Macintosh
|
|
29
|
-
// "z-system": 8, // Z-System
|
|
30
|
-
// "cplm": 9, // CP/M
|
|
31
|
-
// "tops-20": 10, // TOPS-20
|
|
32
|
-
// "ntfs": 11, // NTFS file system (NT)
|
|
33
|
-
// "qdos": 12, // SMS/QDOS
|
|
34
|
-
// "acorn": 13, // Acorn RISC OS
|
|
35
|
-
// "vfat": 14, // VFAT file system (Win95, NT)
|
|
36
|
-
// "vms": 15, // MVS (code also taken for PRIMOS)
|
|
37
|
-
// "beos": 16, // BeOS (BeBox or PowerMac)
|
|
38
|
-
// "tandem": 17, // Tandem/NSK
|
|
39
|
-
// "theos": 18, // THEOS
|
|
40
|
-
// };
|
|
41
|
-
const os = {
|
|
42
|
-
"darwin": 3,
|
|
43
|
-
"linux": 3,
|
|
44
|
-
"windows": 0,
|
|
45
|
-
};
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
const osCode = os[dntShim.dntGlobalThis["Deno"]?.build?.os] ?? 255;
|
|
48
|
-
export const DEFAULT_LEVEL = 6;
|
|
49
|
-
function putByte(n, arr) {
|
|
50
|
-
arr.push(n & 0xFF);
|
|
51
|
-
}
|
|
52
|
-
// LSB first
|
|
53
|
-
function putShort(n, arr) {
|
|
54
|
-
arr.push(n & 0xFF);
|
|
55
|
-
arr.push(n >>> 8);
|
|
56
|
-
}
|
|
57
|
-
// LSB first
|
|
58
|
-
export function putLong(n, arr) {
|
|
59
|
-
putShort(n & 0xffff, arr);
|
|
60
|
-
putShort(n >>> 16, arr);
|
|
61
|
-
}
|
|
62
|
-
function putString(s, arr) {
|
|
63
|
-
for (let i = 0, len = s.length; i < len; i += 1) {
|
|
64
|
-
putByte(s.charCodeAt(i), arr);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function readByte(arr) {
|
|
68
|
-
return arr.shift();
|
|
69
|
-
}
|
|
70
|
-
function readShort(arr) {
|
|
71
|
-
return arr.shift() | (arr.shift() << 8);
|
|
72
|
-
}
|
|
73
|
-
function readLong(arr) {
|
|
74
|
-
const n1 = readShort(arr);
|
|
75
|
-
let n2 = readShort(arr);
|
|
76
|
-
// JavaScript can't handle bits in the position 32
|
|
77
|
-
// we'll emulate this by removing the left-most bit (if it exists)
|
|
78
|
-
// and add it back in via multiplication, which does work
|
|
79
|
-
if (n2 > 32768) {
|
|
80
|
-
n2 -= 32768;
|
|
81
|
-
return ((n2 << 16) | n1) + 32768 * Math.pow(2, 16);
|
|
82
|
-
}
|
|
83
|
-
return (n2 << 16) | n1;
|
|
84
|
-
}
|
|
85
|
-
function readString(arr) {
|
|
86
|
-
const charArr = [];
|
|
87
|
-
// turn all bytes into chars until the terminating null
|
|
88
|
-
while (arr[0] !== 0) {
|
|
89
|
-
charArr.push(String.fromCharCode(arr.shift()));
|
|
90
|
-
}
|
|
91
|
-
// throw away terminating null
|
|
92
|
-
arr.shift();
|
|
93
|
-
// join all characters into a cohesive string
|
|
94
|
-
return charArr.join("");
|
|
95
|
-
}
|
|
96
|
-
function readBytes(arr, n) {
|
|
97
|
-
const ret = [];
|
|
98
|
-
for (let i = 0; i < n; i += 1) {
|
|
99
|
-
ret.push(arr.shift());
|
|
100
|
-
}
|
|
101
|
-
return ret;
|
|
102
|
-
}
|
|
103
|
-
export function getHeader(options = {}) {
|
|
104
|
-
let flags = 0;
|
|
105
|
-
const level = options.level ?? DEFAULT_LEVEL;
|
|
106
|
-
const out = [];
|
|
107
|
-
putByte(ID1, out);
|
|
108
|
-
putByte(ID2, out);
|
|
109
|
-
putByte(compressionMethods["deflate"], out);
|
|
110
|
-
if (options.name) {
|
|
111
|
-
flags |= possibleFlags["FNAME"];
|
|
112
|
-
}
|
|
113
|
-
putByte(flags, out);
|
|
114
|
-
putLong(options.timestamp ?? Math.floor(Date.now() / 1000), out);
|
|
115
|
-
// put deflate args (extra flags)
|
|
116
|
-
if (level === 1) {
|
|
117
|
-
// fastest algorithm
|
|
118
|
-
putByte(4, out);
|
|
119
|
-
}
|
|
120
|
-
else if (level === 9) {
|
|
121
|
-
// maximum compression (fastest algorithm)
|
|
122
|
-
putByte(2, out);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
putByte(0, out);
|
|
126
|
-
}
|
|
127
|
-
// OS identifier
|
|
128
|
-
putByte(osCode, out);
|
|
129
|
-
if (options.name) {
|
|
130
|
-
// ignore the directory part
|
|
131
|
-
putString(options.name.substring(options.name.lastIndexOf("/") + 1), out);
|
|
132
|
-
// terminating null
|
|
133
|
-
putByte(0, out);
|
|
134
|
-
}
|
|
135
|
-
return new Uint8Array(out);
|
|
136
|
-
}
|
|
137
|
-
export function gzip(bytes, options = {}) {
|
|
138
|
-
let flags = 0;
|
|
139
|
-
const level = options.level ?? DEFAULT_LEVEL;
|
|
140
|
-
const out = [];
|
|
141
|
-
putByte(ID1, out);
|
|
142
|
-
putByte(ID2, out);
|
|
143
|
-
putByte(compressionMethods["deflate"], out);
|
|
144
|
-
if (options.name) {
|
|
145
|
-
flags |= possibleFlags["FNAME"];
|
|
146
|
-
}
|
|
147
|
-
putByte(flags, out);
|
|
148
|
-
putLong(options.timestamp ?? Math.floor(Date.now() / 1000), out);
|
|
149
|
-
// put deflate args (extra flags)
|
|
150
|
-
if (level === 1) {
|
|
151
|
-
// fastest algorithm
|
|
152
|
-
putByte(4, out);
|
|
153
|
-
}
|
|
154
|
-
else if (level === 9) {
|
|
155
|
-
// maximum compression (fastest algorithm)
|
|
156
|
-
putByte(2, out);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
putByte(0, out);
|
|
160
|
-
}
|
|
161
|
-
// OS identifier
|
|
162
|
-
putByte(osCode, out);
|
|
163
|
-
if (options.name) {
|
|
164
|
-
// ignore the directory part
|
|
165
|
-
putString(options.name.substring(options.name.lastIndexOf("/") + 1), out);
|
|
166
|
-
// terminating null
|
|
167
|
-
putByte(0, out);
|
|
168
|
-
}
|
|
169
|
-
deflateRaw(bytes).forEach(function (byte) {
|
|
170
|
-
putByte(byte, out);
|
|
171
|
-
});
|
|
172
|
-
// import { deflateRaw, inflateRaw } from "../deflate/mod.ts";
|
|
173
|
-
// deflateRaw(bytes, level).forEach(function (byte) {
|
|
174
|
-
// putByte(byte, out);
|
|
175
|
-
// });
|
|
176
|
-
putLong(parseInt(crc32(bytes), 16), out);
|
|
177
|
-
putLong(bytes.length, out);
|
|
178
|
-
return new Uint8Array(out);
|
|
179
|
-
}
|
|
180
|
-
export function gunzip(bytes) {
|
|
181
|
-
const arr = Array.from(bytes);
|
|
182
|
-
checkHeader(arr);
|
|
183
|
-
// give deflate everything but the last 8 bytes
|
|
184
|
-
// the last 8 bytes are for the CRC32 checksum and filesize
|
|
185
|
-
const res = inflateRaw(new Uint8Array(arr.splice(0, arr.length - 8)));
|
|
186
|
-
// if (flags & possibleFlags["FTEXT"]) {
|
|
187
|
-
// res = Array.prototype.map.call(res, function (byte) {
|
|
188
|
-
// return String.fromCharCode(byte);
|
|
189
|
-
// }).join("");
|
|
190
|
-
// }
|
|
191
|
-
const crc = readLong(arr) >>> 0;
|
|
192
|
-
if (crc !== parseInt(crc32(res), 16)) {
|
|
193
|
-
throw "Checksum does not match";
|
|
194
|
-
}
|
|
195
|
-
const size = readLong(arr);
|
|
196
|
-
if (size !== res.length) {
|
|
197
|
-
throw "Size of decompressed file not correct";
|
|
198
|
-
}
|
|
199
|
-
return res;
|
|
200
|
-
}
|
|
201
|
-
export function checkHeader(arr) {
|
|
202
|
-
// check the first two bytes for the magic numbers
|
|
203
|
-
if (readByte(arr) !== ID1 || readByte(arr) !== ID2) {
|
|
204
|
-
throw "Not a GZIP file";
|
|
205
|
-
}
|
|
206
|
-
if (readByte(arr) !== 8) {
|
|
207
|
-
throw "Unsupported compression method";
|
|
208
|
-
}
|
|
209
|
-
const flags = readByte(arr);
|
|
210
|
-
readLong(arr); // mtime
|
|
211
|
-
readByte(arr); // xFlags
|
|
212
|
-
readByte(arr); // os, throw away
|
|
213
|
-
// just throw away the bytes for now
|
|
214
|
-
if (flags & possibleFlags["FEXTRA"]) {
|
|
215
|
-
const t = readShort(arr);
|
|
216
|
-
readBytes(arr, t);
|
|
217
|
-
}
|
|
218
|
-
// just throw away for now
|
|
219
|
-
if (flags & possibleFlags["FNAME"]) {
|
|
220
|
-
readString(arr);
|
|
221
|
-
}
|
|
222
|
-
// just throw away for now
|
|
223
|
-
if (flags & possibleFlags["FCOMMENT"]) {
|
|
224
|
-
readString(arr);
|
|
225
|
-
}
|
|
226
|
-
// just throw away for now
|
|
227
|
-
if (flags & possibleFlags["FHCRC"]) {
|
|
228
|
-
readShort(arr);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
export function checkTail(arr) {
|
|
232
|
-
const tail = arr.splice(arr.length - 8);
|
|
233
|
-
const crc32 = readLong(tail) >>> 0;
|
|
234
|
-
const size = readLong(tail);
|
|
235
|
-
return {
|
|
236
|
-
crc32,
|
|
237
|
-
size,
|
|
238
|
-
};
|
|
239
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
2
|
-
import { colors } from "./deps.js";
|
|
3
|
-
// @ts-ignore: lib
|
|
4
|
-
const isBrowser = typeof dntShim.Deno === "undefined" &&
|
|
5
|
-
// @ts-ignore: lib
|
|
6
|
-
typeof process === "undefined" && typeof dntShim.dntGlobalThis !== "undefined" &&
|
|
7
|
-
// @ts-ignore: lib
|
|
8
|
-
typeof document !== "undefined";
|
|
9
|
-
export const colorFunctions = [
|
|
10
|
-
(v) => {
|
|
11
|
-
if (isBrowser) {
|
|
12
|
-
return [`%c${v}`, "color: red"];
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return [colors.red(v)];
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
(v) => {
|
|
19
|
-
if (isBrowser) {
|
|
20
|
-
return [`%c${v}`, "color: green"];
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return [colors.green(v)];
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
(v) => {
|
|
27
|
-
if (isBrowser) {
|
|
28
|
-
return [`%c${v}`, "color: yellow"];
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
return [colors.yellow(v)];
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
(v) => {
|
|
35
|
-
if (isBrowser) {
|
|
36
|
-
return [`%c${v}`, "color: blue"];
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return [colors.blue(v)];
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
(v) => {
|
|
43
|
-
if (isBrowser) {
|
|
44
|
-
return [`%c${v}`, "color: magenta"];
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return [colors.magenta(v)];
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
(v) => {
|
|
51
|
-
if (isBrowser) {
|
|
52
|
-
return [`%c${v}`, "color: cyan"];
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return [colors.cyan(v)];
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
];
|
|
59
|
-
function hashCode(s) {
|
|
60
|
-
let h = 0;
|
|
61
|
-
const l = s.length;
|
|
62
|
-
let i = 0;
|
|
63
|
-
if (l > 0)
|
|
64
|
-
while (i < l)
|
|
65
|
-
h = ((h << 5) - h + s.charCodeAt(i++)) | 0;
|
|
66
|
-
return h;
|
|
67
|
-
}
|
|
68
|
-
export function generateColor(message) {
|
|
69
|
-
const hash = Math.abs(hashCode(message));
|
|
70
|
-
return colorFunctions[hash % colorFunctions.length];
|
|
71
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ColorFunction } from "./colors.js";
|
|
2
|
-
export interface Debug {
|
|
3
|
-
(fmt: string, ...args: unknown[]): void;
|
|
4
|
-
self: Debugger;
|
|
5
|
-
}
|
|
6
|
-
export declare class Debugger {
|
|
7
|
-
manager: DebugManager;
|
|
8
|
-
ns: string;
|
|
9
|
-
color: ColorFunction;
|
|
10
|
-
last: number;
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
constructor(manager: DebugManager, namespace: string);
|
|
13
|
-
log(fmt: string, ...args: unknown[]): void;
|
|
14
|
-
}
|
|
15
|
-
declare class DebugManager {
|
|
16
|
-
debuggers: Map<string, Debugger>;
|
|
17
|
-
enabled: RegExp[];
|
|
18
|
-
constructor(enabled?: RegExp[]);
|
|
19
|
-
}
|
|
20
|
-
export declare function withoutEnv(enabled?: RegExp[] | string): void;
|
|
21
|
-
export declare function debug(namespace: string): Debug;
|
|
22
|
-
export {};
|