structured-outputs 0.1.0-beta.7 → 0.1.0-beta.8
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/_dnt.polyfills.d.ts +19 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +124 -0
- package/esm/_dnt.polyfills.js.map +1 -0
- package/esm/_dnt.shims.d.ts +6 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +62 -0
- package/esm/_dnt.shims.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/almost_equals.d.ts +29 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/almost_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/almost_equals.js +47 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/almost_equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.d.ts +24 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.js +47 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/assert.d.ts +16 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/assert.js +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/assert.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +31 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +17 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js +137 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +22 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +46 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/exists.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/exists.js +28 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/exists.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/fail.d.ts +15 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/fail.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/fail.js +21 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/fail.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.js +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.js +53 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +25 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +54 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/less.d.ts +19 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/less.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/less.js +29 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/less.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.js +27 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/mod.d.ts +44 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/mod.js +46 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/mod.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_equals.d.ts +21 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_equals.js +33 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +20 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.js +27 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +23 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +33 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +28 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js +160 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts +42 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.js +54 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +24 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +58 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/string_includes.d.ts +18 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/string_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/string_includes.js +27 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/string_includes.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/throws.d.ts +45 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/throws.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/throws.js +45 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/throws.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/unimplemented.d.ts +15 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/unimplemented.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/unimplemented.js +21 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/unimplemented.js.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/unreachable.d.ts +15 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/unreachable.js +21 -0
- package/esm/deps/jsr.io/@std/assert/1.0.6/unreachable.js.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/_data.d.ts +9 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/_data.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/_data.js +18 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/_data.js.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/_run_length.d.ts +9 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/_run_length.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/_run_length.js +35 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/_run_length.js.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/mod.d.ts +18 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/mod.js +19 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/mod.js.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/parse_args.d.ts +229 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/parse_args.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/parse_args.js +306 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/parse_args.js.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/prompt_secret.d.ts +28 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/prompt_secret.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/prompt_secret.js +87 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/prompt_secret.js.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/unicode_width.d.ts +40 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/unicode_width.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/unicode_width.js +75 -0
- package/esm/deps/jsr.io/@std/cli/1.0.6/unicode_width.js.map +1 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/load.d.ts +2 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/load.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/load.js +11 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/load.js.map +1 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/mod.d.ts +164 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/mod.js +213 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/mod.js.map +1 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/parse.d.ts +19 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/parse.js +75 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/parse.js.map +1 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/stringify.d.ts +17 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/stringify.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/stringify.js +45 -0
- package/esm/deps/jsr.io/@std/dotenv/0.225.2/stringify.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.d.ts +14 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.js +35 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.d.ts +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.js +19 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_is_same_path.d.ts +10 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_is_same_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_is_same_path.js +18 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_is_same_path.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_is_subdir.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_is_subdir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_is_subdir.js +26 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_is_subdir.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_to_path_string.d.ts +9 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_to_path_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_to_path_string.js +14 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/_to_path_string.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/copy.d.ts +117 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/copy.js +315 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/copy.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/empty_dir.d.ts +48 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/empty_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/empty_dir.js +88 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/empty_dir.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_dir.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_dir.js +103 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_dir.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_file.d.ts +47 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_file.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_file.js +91 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_file.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_link.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_link.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_link.js +62 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_link.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.js +122 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/eol.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/eol.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/eol.js +67 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/eol.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/exists.d.ts +218 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/exists.js +272 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/exists.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/expand_glob.d.ts +267 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/expand_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/expand_glob.js +417 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/expand_glob.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/mod.d.ts +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/mod.js +30 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/mod.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/move.d.ts +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/move.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/move.js +142 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/move.js.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/walk.d.ts +777 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/walk.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/walk.js +847 -0
- package/esm/deps/jsr.io/@std/fs/1.0.5/walk.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +82 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.js +111 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +140 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.js +277 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +99 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.js +180 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.js +38 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +159 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.js +208 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.js.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts +16 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.js +3 -0
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/assert_path.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/assert_path.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/basename.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/basename.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/common.js +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/common.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/constants.js +47 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/constants.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/dirname.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/dirname.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/format.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/format.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/from_file_url.js +10 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/from_file_url.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/glob_to_reg_exp.js +235 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/glob_to_reg_exp.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/normalize.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/normalize.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/normalize_string.js +78 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/normalize_string.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/relative.js +10 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/relative.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/strip_trailing_separators.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/strip_trailing_separators.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/to_file_url.js +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_common/to_file_url.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_os.js +10 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/_os.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/basename.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/basename.js +37 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/basename.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/common.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/common.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/common.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/constants.js +18 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/constants.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/dirname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/dirname.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/dirname.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/extname.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/extname.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/extname.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/format.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/format.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/from_file_url.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/from_file_url.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/glob_to_regexp.js +84 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/glob_to_regexp.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/is_absolute.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/is_absolute.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/is_glob.js +43 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/is_glob.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/join.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/join.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/join_globs.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/join_globs.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/mod.d.ts +54 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/mod.js +58 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/mod.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/normalize.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/normalize.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/normalize.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/normalize_glob.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/normalize_glob.js +36 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/normalize_glob.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/parse.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/parse.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/parse.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/_util.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/_util.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/basename.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/basename.js +50 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/basename.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/constants.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/constants.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/dirname.d.ts +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/dirname.js +63 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/dirname.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/extname.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/extname.js +90 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/extname.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/format.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/format.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/from_file_url.js +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/from_file_url.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/glob_to_regexp.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/is_absolute.js +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/is_absolute.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/join.d.ts +33 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/join.js +43 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/join.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/join_globs.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/normalize.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/normalize.js +58 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/normalize.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/normalize_glob.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/parse.js +116 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/parse.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/relative.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/relative.js +107 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/relative.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/resolve.js +60 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/resolve.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/to_file_url.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/to_namespaced_path.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/to_namespaced_path.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/posix/to_namespaced_path.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/relative.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/relative.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/relative.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/resolve.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/resolve.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/to_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/to_file_url.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/to_file_url.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/to_namespaced_path.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/to_namespaced_path.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/to_namespaced_path.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/types.d.ts +38 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/types.js +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/types.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/_util.js +16 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/_util.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/basename.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/basename.js +45 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/basename.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/constants.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/constants.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/dirname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/dirname.js +113 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/dirname.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/extname.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/extname.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/extname.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/format.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/format.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/from_file_url.js +31 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/from_file_url.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/glob_to_regexp.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/is_absolute.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/is_absolute.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/join.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/join.js +75 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/join.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/join_globs.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/join_globs.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/normalize.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/normalize.js +135 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/normalize.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/normalize_glob.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/parse.js +177 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/parse.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/relative.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/relative.js +132 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/relative.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/resolve.js +155 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/resolve.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/to_file_url.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/to_file_url.js.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/to_namespaced_path.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/to_namespaced_path.js +50 -0
- package/esm/deps/jsr.io/@std/path/1.0.7/windows/to_namespaced_path.js.map +1 -0
- package/esm/main.d.ts +4 -0
- package/esm/main.d.ts.map +1 -0
- package/esm/main.js +80 -0
- package/esm/main.js.map +1 -0
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/esm/mod.js.map +1 -1
- package/esm/util/displayCompletion.d.ts +3 -0
- package/esm/util/displayCompletion.d.ts.map +1 -0
- package/esm/util/displayCompletion.js +9 -0
- package/esm/util/displayCompletion.js.map +1 -0
- package/package.json +7 -2
- package/src/_dnt.polyfills.ts +172 -0
- package/src/_dnt.shims.ts +64 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/almost_equals.ts +55 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/array_includes.ts +57 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/assert.ts +23 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts +31 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/equal.ts +152 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/equals.ts +52 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/exists.ts +31 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/fail.ts +21 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/false.ts +26 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/greater.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.ts +36 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/instance_of.ts +64 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/is_error.ts +65 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/less.ts +29 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/less_or_equal.ts +36 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/match.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/mod.ts +47 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/not_equals.ts +36 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/not_instance_of.ts +33 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/not_match.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.ts +42 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/object_match.ts +202 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/rejects.ts +123 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/strict_equals.ts +67 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/string_includes.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/throws.ts +111 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/unimplemented.ts +21 -0
- package/src/deps/jsr.io/@std/assert/1.0.6/unreachable.ts +21 -0
- package/src/deps/jsr.io/@std/cli/1.0.6/_data.js +17 -0
- package/src/deps/jsr.io/@std/cli/1.0.6/_run_length.ts +41 -0
- package/src/deps/jsr.io/@std/cli/1.0.6/mod.ts +20 -0
- package/src/deps/jsr.io/@std/cli/1.0.6/parse_args.ts +776 -0
- package/src/deps/jsr.io/@std/cli/1.0.6/prompt_secret.ts +102 -0
- package/src/deps/jsr.io/@std/cli/1.0.6/unicode_width.ts +79 -0
- package/src/deps/jsr.io/@std/dotenv/0.225.2/load.ts +14 -0
- package/src/deps/jsr.io/@std/dotenv/0.225.2/mod.ts +251 -0
- package/src/deps/jsr.io/@std/dotenv/0.225.2/parse.ts +113 -0
- package/src/deps/jsr.io/@std/dotenv/0.225.2/stringify.ts +47 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/_create_walk_entry.ts +47 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/_get_file_info_type.ts +25 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/_is_same_path.ts +23 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/_is_subdir.ts +34 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/_to_path_string.ts +17 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/copy.ts +413 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/empty_dir.ts +91 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/ensure_dir.ts +110 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/ensure_file.ts +100 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/ensure_link.ts +66 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/ensure_symlink.ts +145 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/eol.ts +74 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/exists.ts +316 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/expand_glob.ts +538 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/mod.ts +31 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/move.ts +171 -0
- package/src/deps/jsr.io/@std/fs/1.0.5/walk.ts +956 -0
- package/src/deps/jsr.io/@std/internal/1.0.4/build_message.ts +134 -0
- package/src/deps/jsr.io/@std/internal/1.0.4/diff.ts +317 -0
- package/src/deps/jsr.io/@std/internal/1.0.4/diff_str.ts +204 -0
- package/src/deps/jsr.io/@std/internal/1.0.4/format.ts +39 -0
- package/src/deps/jsr.io/@std/internal/1.0.4/styles.ts +233 -0
- package/src/deps/jsr.io/@std/internal/1.0.4/types.ts +18 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/assert_path.ts +10 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/basename.ts +53 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/common.ts +26 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/constants.ts +49 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/dirname.ts +9 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/format.ts +25 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/from_file_url.ts +12 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/glob_to_reg_exp.ts +290 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/normalize.ts +9 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/normalize_string.ts +74 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/relative.ts +10 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/strip_trailing_separators.ts +25 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_common/to_file_url.ts +17 -0
- package/src/deps/jsr.io/@std/path/1.0.7/_os.ts +12 -0
- package/src/deps/jsr.io/@std/path/1.0.7/basename.ts +38 -0
- package/src/deps/jsr.io/@std/path/1.0.7/common.ts +35 -0
- package/src/deps/jsr.io/@std/path/1.0.7/constants.ts +18 -0
- package/src/deps/jsr.io/@std/path/1.0.7/dirname.ts +31 -0
- package/src/deps/jsr.io/@std/path/1.0.7/extname.ts +30 -0
- package/src/deps/jsr.io/@std/path/1.0.7/format.ts +30 -0
- package/src/deps/jsr.io/@std/path/1.0.7/from_file_url.ts +30 -0
- package/src/deps/jsr.io/@std/path/1.0.7/glob_to_regexp.ts +94 -0
- package/src/deps/jsr.io/@std/path/1.0.7/is_absolute.ts +30 -0
- package/src/deps/jsr.io/@std/path/1.0.7/is_glob.ts +49 -0
- package/src/deps/jsr.io/@std/path/1.0.7/join.ts +31 -0
- package/src/deps/jsr.io/@std/path/1.0.7/join_globs.ts +42 -0
- package/src/deps/jsr.io/@std/path/1.0.7/mod.ts +58 -0
- package/src/deps/jsr.io/@std/path/1.0.7/normalize.ts +34 -0
- package/src/deps/jsr.io/@std/path/1.0.7/normalize_glob.ts +45 -0
- package/src/deps/jsr.io/@std/path/1.0.7/parse.ts +44 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/_util.ts +10 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/basename.ts +59 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/constants.ts +15 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/dirname.ts +70 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/extname.ts +92 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/format.ts +31 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/from_file_url.ts +25 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/glob_to_regexp.ts +94 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/is_absolute.ts +25 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/join.ts +43 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/join_globs.ts +44 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/normalize.ts +62 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/normalize_glob.ts +42 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/parse.ts +121 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/relative.ts +103 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/resolve.ts +71 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/to_file_url.ts +32 -0
- package/src/deps/jsr.io/@std/path/1.0.7/posix/to_namespaced_path.ts +21 -0
- package/src/deps/jsr.io/@std/path/1.0.7/relative.ts +32 -0
- package/src/deps/jsr.io/@std/path/1.0.7/resolve.ts +32 -0
- package/src/deps/jsr.io/@std/path/1.0.7/to_file_url.ts +30 -0
- package/src/deps/jsr.io/@std/path/1.0.7/to_namespaced_path.ts +31 -0
- package/src/deps/jsr.io/@std/path/1.0.7/types.ts +40 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/_util.ts +28 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/basename.ts +51 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/constants.ts +15 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/dirname.ts +117 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/extname.ts +89 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/format.ts +31 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/from_file_url.ts +34 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/glob_to_regexp.ts +92 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/is_absolute.ts +40 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/join.ts +75 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/join_globs.ts +45 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/normalize.ts +135 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/normalize_glob.ts +42 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/parse.ts +184 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/relative.ts +128 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/resolve.ts +178 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/to_file_url.ts +38 -0
- package/src/deps/jsr.io/@std/path/1.0.7/windows/to_namespaced_path.ts +60 -0
- package/src/main.ts +106 -0
- package/src/mod.ts +2 -0
- package/src/util/displayCompletion.ts +12 -0
@@ -0,0 +1,160 @@
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
+
// This module is browser compatible.
|
3
|
+
import { assertEquals } from "./equals.js";
|
4
|
+
/**
|
5
|
+
* Make an assertion that `expected` object is a subset of `actual` object,
|
6
|
+
* deeply. If not, then throw.
|
7
|
+
*
|
8
|
+
* @example Usage
|
9
|
+
* ```ts ignore
|
10
|
+
* import { assertObjectMatch } from "@std/assert";
|
11
|
+
*
|
12
|
+
* assertObjectMatch({ foo: "bar" }, { foo: "bar" }); // Doesn't throw
|
13
|
+
* assertObjectMatch({ foo: "bar" }, { foo: "baz" }); // Throws
|
14
|
+
* assertObjectMatch({ foo: 1, bar: 2 }, { foo: 1 }); // Doesn't throw
|
15
|
+
* assertObjectMatch({ foo: 1 }, { foo: 1, bar: 2 }); // Throws
|
16
|
+
* ```
|
17
|
+
*
|
18
|
+
* @example Usage with nested objects
|
19
|
+
* ```ts ignore
|
20
|
+
* import { assertObjectMatch } from "@std/assert";
|
21
|
+
*
|
22
|
+
* assertObjectMatch({ foo: { bar: 3, baz: 4 } }, { foo: { bar: 3 } }); // Doesn't throw
|
23
|
+
* assertObjectMatch({ foo: { bar: 3 } }, { foo: { bar: 3, baz: 4 } }); // Throws
|
24
|
+
* ```
|
25
|
+
*
|
26
|
+
* @param actual The actual value to be matched.
|
27
|
+
* @param expected The expected value to match.
|
28
|
+
* @param msg The optional message to display if the assertion fails.
|
29
|
+
*/
|
30
|
+
export function assertObjectMatch(
|
31
|
+
// deno-lint-ignore no-explicit-any
|
32
|
+
actual, expected, msg) {
|
33
|
+
return assertEquals(
|
34
|
+
// get the intersection of "actual" and "expected"
|
35
|
+
// side effect: all the instances' constructor field is "Object" now.
|
36
|
+
filter(actual, expected),
|
37
|
+
// set (nested) instances' constructor field to be "Object" without changing expected value.
|
38
|
+
// see https://github.com/denoland/deno_std/pull/1419
|
39
|
+
filter(expected, expected), msg);
|
40
|
+
}
|
41
|
+
function isObject(val) {
|
42
|
+
return typeof val === "object" && val !== null;
|
43
|
+
}
|
44
|
+
function filter(a, b) {
|
45
|
+
const seen = new WeakMap();
|
46
|
+
return filterObject(a, b);
|
47
|
+
function filterObject(a, b) {
|
48
|
+
// Prevent infinite loop with circular references with same filter
|
49
|
+
if ((seen.has(a)) && (seen.get(a) === b)) {
|
50
|
+
return a;
|
51
|
+
}
|
52
|
+
try {
|
53
|
+
seen.set(a, b);
|
54
|
+
}
|
55
|
+
catch (err) {
|
56
|
+
if (err instanceof TypeError) {
|
57
|
+
throw new TypeError(`Cannot assertObjectMatch ${a === null ? null : `type ${typeof a}`}`);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
// Filter keys and symbols which are present in both actual and expected
|
61
|
+
const filtered = {};
|
62
|
+
const keysA = Reflect.ownKeys(a);
|
63
|
+
const keysB = Reflect.ownKeys(b);
|
64
|
+
const entries = keysA.filter((key) => keysB.includes(key))
|
65
|
+
.map((key) => [key, a[key]]);
|
66
|
+
if (keysA.length && keysB.length && !entries.length) {
|
67
|
+
// If both objects are not empty but don't have the same keys or symbols,
|
68
|
+
// returns the entries in object a.
|
69
|
+
for (const key of keysA) {
|
70
|
+
filtered[key] = a[key];
|
71
|
+
}
|
72
|
+
return filtered;
|
73
|
+
}
|
74
|
+
for (const [key, value] of entries) {
|
75
|
+
// On regexp references, keep value as it to avoid loosing pattern and flags
|
76
|
+
if (value instanceof RegExp) {
|
77
|
+
filtered[key] = value;
|
78
|
+
continue;
|
79
|
+
}
|
80
|
+
const subset = b[key];
|
81
|
+
// On array references, build a filtered array and filter nested objects inside
|
82
|
+
if (Array.isArray(value) && Array.isArray(subset)) {
|
83
|
+
filtered[key] = filterArray(value, subset);
|
84
|
+
continue;
|
85
|
+
}
|
86
|
+
// On nested objects references, build a filtered object recursively
|
87
|
+
if (isObject(value) && isObject(subset)) {
|
88
|
+
// When both operands are maps, build a filtered map with common keys and filter nested objects inside
|
89
|
+
if ((value instanceof Map) && (subset instanceof Map)) {
|
90
|
+
filtered[key] = new Map([...value].filter(([k]) => subset.has(k)).map(([k, v]) => {
|
91
|
+
const v2 = subset.get(k);
|
92
|
+
if (isObject(v) && isObject(v2)) {
|
93
|
+
return [k, filterObject(v, v2)];
|
94
|
+
}
|
95
|
+
return [k, v];
|
96
|
+
}));
|
97
|
+
continue;
|
98
|
+
}
|
99
|
+
// When both operands are set, build a filtered set with common values
|
100
|
+
if ((value instanceof Set) && (subset instanceof Set)) {
|
101
|
+
filtered[key] = value.intersection(subset);
|
102
|
+
continue;
|
103
|
+
}
|
104
|
+
filtered[key] = filterObject(value, subset);
|
105
|
+
continue;
|
106
|
+
}
|
107
|
+
filtered[key] = value;
|
108
|
+
}
|
109
|
+
return filtered;
|
110
|
+
}
|
111
|
+
function filterArray(a, b) {
|
112
|
+
// Prevent infinite loop with circular references with same filter
|
113
|
+
if (seen.has(a) && (seen.get(a) === b)) {
|
114
|
+
return a;
|
115
|
+
}
|
116
|
+
seen.set(a, b);
|
117
|
+
const filtered = [];
|
118
|
+
const count = Math.min(a.length, b.length);
|
119
|
+
for (let i = 0; i < count; ++i) {
|
120
|
+
const value = a[i];
|
121
|
+
const subset = b[i];
|
122
|
+
// On regexp references, keep value as it to avoid loosing pattern and flags
|
123
|
+
if (value instanceof RegExp) {
|
124
|
+
filtered.push(value);
|
125
|
+
continue;
|
126
|
+
}
|
127
|
+
// On array references, build a filtered array and filter nested objects inside
|
128
|
+
if (Array.isArray(value) && Array.isArray(subset)) {
|
129
|
+
filtered.push(filterArray(value, subset));
|
130
|
+
continue;
|
131
|
+
}
|
132
|
+
// On nested objects references, build a filtered object recursively
|
133
|
+
if (isObject(value) && isObject(subset)) {
|
134
|
+
// When both operands are maps, build a filtered map with common keys and filter nested objects inside
|
135
|
+
if ((value instanceof Map) && (subset instanceof Map)) {
|
136
|
+
const map = new Map([...value].filter(([k]) => subset.has(k))
|
137
|
+
.map(([k, v]) => {
|
138
|
+
const v2 = subset.get(k);
|
139
|
+
if (isObject(v) && isObject(v2)) {
|
140
|
+
return [k, filterObject(v, v2)];
|
141
|
+
}
|
142
|
+
return [k, v];
|
143
|
+
}));
|
144
|
+
filtered.push(map);
|
145
|
+
continue;
|
146
|
+
}
|
147
|
+
// When both operands are set, build a filtered set with common values
|
148
|
+
if ((value instanceof Set) && (subset instanceof Set)) {
|
149
|
+
filtered.push(value.intersection(subset));
|
150
|
+
continue;
|
151
|
+
}
|
152
|
+
filtered.push(filterObject(value, subset));
|
153
|
+
continue;
|
154
|
+
}
|
155
|
+
filtered.push(value);
|
156
|
+
}
|
157
|
+
return filtered;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
//# sourceMappingURL=object_match.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"object_match.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/object_match.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qCAAqC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,iBAAiB;AAC/B,mCAAmC;AACnC,MAAgC,EAChC,QAAsC,EACtC,GAAY;IAEZ,OAAO,YAAY;IACjB,kDAAkD;IAClD,qEAAqE;IACrE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;IACxB,4FAA4F;IAC5F,qDAAqD;IACrD,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAC1B,GAAG,CACJ,CAAC;AACJ,CAAC;AAID,SAAS,QAAQ,CAAC,GAAY;IAC5B,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,CAAC;AACjD,CAAC;AAED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AI,CAAC,KAAK,YAAY,GAAG,CAAC,IAAI,CAAC,MAAM,YAAY,GAAG,CAAC,EAAE,CAAC;oBACtD,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;oBAC1C,SAAS;gBACX,CAAC;gBAED,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,KAAc,EAAE,MAAe,CAAC,CAAC,CAAC;gBAC7D,SAAS;YACX,CAAC;YAED,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* Executes a function which returns a promise, expecting it to reject.
|
3
|
+
*
|
4
|
+
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
5
|
+
*
|
6
|
+
* @example Usage
|
7
|
+
* ```ts ignore
|
8
|
+
* import { assertRejects } from "@std/assert";
|
9
|
+
*
|
10
|
+
* await assertRejects(async () => Promise.reject(new Error())); // Doesn't throw
|
11
|
+
* await assertRejects(async () => console.log("Hello world")); // Throws
|
12
|
+
* ```
|
13
|
+
*
|
14
|
+
* @param fn The function to execute.
|
15
|
+
* @param msg The optional message to display if the assertion fails.
|
16
|
+
* @returns The promise which resolves to the thrown error.
|
17
|
+
*/
|
18
|
+
export declare function assertRejects(fn: () => PromiseLike<unknown>, msg?: string): Promise<unknown>;
|
19
|
+
/**
|
20
|
+
* Executes a function which returns a promise, expecting it to reject.
|
21
|
+
* If it does not, then it throws. An error class and a string that should be
|
22
|
+
* included in the error message can also be asserted.
|
23
|
+
*
|
24
|
+
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
25
|
+
*
|
26
|
+
* @example Usage
|
27
|
+
* ```ts ignore
|
28
|
+
* import { assertRejects } from "@std/assert";
|
29
|
+
*
|
30
|
+
* await assertRejects(async () => Promise.reject(new Error()), Error); // Doesn't throw
|
31
|
+
* await assertRejects(async () => Promise.reject(new Error()), SyntaxError); // Throws
|
32
|
+
* ```
|
33
|
+
*
|
34
|
+
* @typeParam E The error class to assert.
|
35
|
+
* @param fn The function to execute.
|
36
|
+
* @param ErrorClass The error class to assert.
|
37
|
+
* @param msgIncludes The string that should be included in the error message.
|
38
|
+
* @param msg The optional message to display if the assertion fails.
|
39
|
+
* @returns The promise which resolves to the thrown error.
|
40
|
+
*/
|
41
|
+
export declare function assertRejects<E extends Error = Error>(fn: () => PromiseLike<unknown>, ErrorClass: abstract new (...args: any[]) => E, msgIncludes?: string, msg?: string): Promise<E>;
|
42
|
+
//# sourceMappingURL=rejects.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/rejects.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
+
// This module is browser compatible.
|
3
|
+
import { AssertionError } from "./assertion_error.js";
|
4
|
+
import { assertIsError } from "./is_error.js";
|
5
|
+
export async function assertRejects(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
|
6
|
+
// deno-lint-ignore no-explicit-any
|
7
|
+
let ErrorClass;
|
8
|
+
let msgIncludes;
|
9
|
+
let err;
|
10
|
+
if (typeof errorClassOrMsg !== "string") {
|
11
|
+
if (errorClassOrMsg === undefined ||
|
12
|
+
errorClassOrMsg.prototype instanceof Error ||
|
13
|
+
errorClassOrMsg.prototype === Error.prototype) {
|
14
|
+
ErrorClass = errorClassOrMsg;
|
15
|
+
msgIncludes = msgIncludesOrMsg;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
else {
|
19
|
+
msg = errorClassOrMsg;
|
20
|
+
}
|
21
|
+
let doesThrow = false;
|
22
|
+
let isPromiseReturned = false;
|
23
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
24
|
+
try {
|
25
|
+
const possiblePromise = fn();
|
26
|
+
if (possiblePromise &&
|
27
|
+
typeof possiblePromise === "object" &&
|
28
|
+
typeof possiblePromise.then === "function") {
|
29
|
+
isPromiseReturned = true;
|
30
|
+
await possiblePromise;
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
throw new Error();
|
34
|
+
}
|
35
|
+
}
|
36
|
+
catch (error) {
|
37
|
+
if (!isPromiseReturned) {
|
38
|
+
throw new AssertionError(`Function throws when expected to reject${msgSuffix}`);
|
39
|
+
}
|
40
|
+
if (ErrorClass) {
|
41
|
+
if (!(error instanceof Error)) {
|
42
|
+
throw new AssertionError(`A non-Error object was rejected${msgSuffix}`);
|
43
|
+
}
|
44
|
+
assertIsError(error, ErrorClass, msgIncludes, msg);
|
45
|
+
}
|
46
|
+
err = error;
|
47
|
+
doesThrow = true;
|
48
|
+
}
|
49
|
+
if (!doesThrow) {
|
50
|
+
throw new AssertionError(`Expected function to reject${msgSuffix}`);
|
51
|
+
}
|
52
|
+
return err;
|
53
|
+
}
|
54
|
+
//# sourceMappingURL=rejects.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rejects.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.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S,EAAE,CACtD,CAAC;QACJ,CAAC;QACD,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,EAAE,CAAC;gBAC9B,MAAM,IAAI,cAAc,CAAC,kCAAkC,SAAS,EAAE,CAAC,CAAC;YAC1E,CAAC;YACD,aAAa,CACX,KAAK,EACL,UAAU,EACV,WAAW,EACX,GAAG,CACJ,CAAC;QACJ,CAAC;QACD,GAAG,GAAG,KAAK,CAAC;QACZ,SAAS,GAAG,IAAI,CAAC;IACnB,CAAC;IACD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,cAAc,CACtB,8BAA8B,SAAS,EAAE,CAC1C,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* Make an assertion that `actual` and `expected` are strictly equal, using
|
3
|
+
* {@linkcode Object.is} for equality comparison. If not, then throw.
|
4
|
+
*
|
5
|
+
* @example Usage
|
6
|
+
* ```ts ignore
|
7
|
+
* import { assertStrictEquals } from "@std/assert";
|
8
|
+
*
|
9
|
+
* const a = {};
|
10
|
+
* const b = a;
|
11
|
+
* assertStrictEquals(a, b); // Doesn't throw
|
12
|
+
*
|
13
|
+
* const c = {};
|
14
|
+
* const d = {};
|
15
|
+
* assertStrictEquals(c, d); // Throws
|
16
|
+
* ```
|
17
|
+
*
|
18
|
+
* @typeParam T The type of the expected value.
|
19
|
+
* @param actual The actual value to compare.
|
20
|
+
* @param expected The expected value to compare.
|
21
|
+
* @param msg The optional message to display if the assertion fails.
|
22
|
+
*/
|
23
|
+
export declare function assertStrictEquals<T>(actual: unknown, expected: T, msg?: string): asserts actual is T;
|
24
|
+
//# sourceMappingURL=strict_equals.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/strict_equals.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CA+BrB"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
+
// This module is browser compatible.
|
3
|
+
import { buildMessage } from "../../internal/1.0.4/build_message.js";
|
4
|
+
import { diff } from "../../internal/1.0.4/diff.js";
|
5
|
+
import { diffStr } from "../../internal/1.0.4/diff_str.js";
|
6
|
+
import { format } from "../../internal/1.0.4/format.js";
|
7
|
+
import { red } from "../../internal/1.0.4/styles.js";
|
8
|
+
import { AssertionError } from "./assertion_error.js";
|
9
|
+
/**
|
10
|
+
* Make an assertion that `actual` and `expected` are strictly equal, using
|
11
|
+
* {@linkcode Object.is} for equality comparison. If not, then throw.
|
12
|
+
*
|
13
|
+
* @example Usage
|
14
|
+
* ```ts ignore
|
15
|
+
* import { assertStrictEquals } from "@std/assert";
|
16
|
+
*
|
17
|
+
* const a = {};
|
18
|
+
* const b = a;
|
19
|
+
* assertStrictEquals(a, b); // Doesn't throw
|
20
|
+
*
|
21
|
+
* const c = {};
|
22
|
+
* const d = {};
|
23
|
+
* assertStrictEquals(c, d); // Throws
|
24
|
+
* ```
|
25
|
+
*
|
26
|
+
* @typeParam T The type of the expected value.
|
27
|
+
* @param actual The actual value to compare.
|
28
|
+
* @param expected The expected value to compare.
|
29
|
+
* @param msg The optional message to display if the assertion fails.
|
30
|
+
*/
|
31
|
+
export function assertStrictEquals(actual, expected, msg) {
|
32
|
+
if (Object.is(actual, expected)) {
|
33
|
+
return;
|
34
|
+
}
|
35
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
36
|
+
let message;
|
37
|
+
const actualString = format(actual);
|
38
|
+
const expectedString = format(expected);
|
39
|
+
if (actualString === expectedString) {
|
40
|
+
const withOffset = actualString
|
41
|
+
.split("\n")
|
42
|
+
.map((l) => ` ${l}`)
|
43
|
+
.join("\n");
|
44
|
+
message =
|
45
|
+
`Values have the same structure but are not reference-equal${msgSuffix}\n\n${red(withOffset)}\n`;
|
46
|
+
}
|
47
|
+
else {
|
48
|
+
const stringDiff = (typeof actual === "string") &&
|
49
|
+
(typeof expected === "string");
|
50
|
+
const diffResult = stringDiff
|
51
|
+
? diffStr(actual, expected)
|
52
|
+
: diff(actualString.split("\n"), expectedString.split("\n"));
|
53
|
+
const diffMsg = buildMessage(diffResult, { stringDiff }).join("\n");
|
54
|
+
message = `Values are not strictly equal${msgSuffix}\n${diffMsg}`;
|
55
|
+
}
|
56
|
+
throw new AssertionError(message);
|
57
|
+
}
|
58
|
+
//# sourceMappingURL=strict_equals.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"strict_equals.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/strict_equals.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qCAAqC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAe,EACf,QAAW,EACX,GAAY;IAEZ,IAAI,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC;QAChC,OAAO;IACT,CAAC;IAED,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACzC,IAAI,OAAe,CAAC;IAEpB,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAExC,IAAI,YAAY,KAAK,cAAc,EAAE,CAAC;QACpC,MAAM,UAAU,GAAG,YAAY;aAC5B,KAAK,CAAC,IAAI,CAAC;aACX,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;aACtB,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,OAAO;YACL,6DAA6D,SAAS,OACpE,GAAG,CAAC,UAAU,CAChB,IAAI,CAAC;IACT,CAAC;SAAM,CAAC;QACN,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC;YAC7C,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC;QACjC,MAAM,UAAU,GAAG,UAAU;YAC3B,CAAC,CAAC,OAAO,CAAC,MAAgB,EAAE,QAAkB,CAAC;YAC/C,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/D,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpE,OAAO,GAAG,gCAAgC,SAAS,KAAK,OAAO,EAAE,CAAC;IACpE,CAAC;IAED,MAAM,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Make an assertion that actual includes expected. If not
|
3
|
+
* then throw.
|
4
|
+
*
|
5
|
+
* @example Usage
|
6
|
+
* ```ts ignore
|
7
|
+
* import { assertStringIncludes } from "@std/assert";
|
8
|
+
*
|
9
|
+
* assertStringIncludes("Hello", "ello"); // Doesn't throw
|
10
|
+
* assertStringIncludes("Hello", "world"); // Throws
|
11
|
+
* ```
|
12
|
+
*
|
13
|
+
* @param actual The actual string to check for inclusion.
|
14
|
+
* @param expected The expected string to check for inclusion.
|
15
|
+
* @param msg The optional message to display if the assertion fails.
|
16
|
+
*/
|
17
|
+
export declare function assertStringIncludes(actual: string, expected: string, msg?: string): void;
|
18
|
+
//# sourceMappingURL=string_includes.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"string_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/string_includes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
+
// This module is browser compatible.
|
3
|
+
import { AssertionError } from "./assertion_error.js";
|
4
|
+
/**
|
5
|
+
* Make an assertion that actual includes expected. If not
|
6
|
+
* then throw.
|
7
|
+
*
|
8
|
+
* @example Usage
|
9
|
+
* ```ts ignore
|
10
|
+
* import { assertStringIncludes } from "@std/assert";
|
11
|
+
*
|
12
|
+
* assertStringIncludes("Hello", "ello"); // Doesn't throw
|
13
|
+
* assertStringIncludes("Hello", "world"); // Throws
|
14
|
+
* ```
|
15
|
+
*
|
16
|
+
* @param actual The actual string to check for inclusion.
|
17
|
+
* @param expected The expected string to check for inclusion.
|
18
|
+
* @param msg The optional message to display if the assertion fails.
|
19
|
+
*/
|
20
|
+
export function assertStringIncludes(actual, expected, msg) {
|
21
|
+
if (actual.includes(expected))
|
22
|
+
return;
|
23
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
24
|
+
msg = `Expected actual: "${actual}" to contain: "${expected}"${msgSuffix}`;
|
25
|
+
throw new AssertionError(msg);
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=string_includes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"string_includes.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/string_includes.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qCAAqC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAc,EACd,QAAgB,EAChB,GAAY;IAEZ,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO;IACtC,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACzC,GAAG,GAAG,qBAAqB,MAAM,kBAAkB,QAAQ,IAAI,SAAS,EAAE,CAAC;IAC3E,MAAM,IAAI,cAAc,CAAC,GAAG,CAAC,CAAC;AAChC,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/**
|
2
|
+
* Executes a function, expecting it to throw. If it does not, then it
|
3
|
+
* throws.
|
4
|
+
*
|
5
|
+
* To assert that an asynchronous function rejects, use
|
6
|
+
* {@linkcode assertRejects}.
|
7
|
+
*
|
8
|
+
* @example Usage
|
9
|
+
* ```ts ignore
|
10
|
+
* import { assertThrows } from "@std/assert";
|
11
|
+
*
|
12
|
+
* assertThrows(() => { throw new TypeError("hello world!"); }); // Doesn't throw
|
13
|
+
* assertThrows(() => console.log("hello world!")); // Throws
|
14
|
+
* ```
|
15
|
+
*
|
16
|
+
* @param fn The function to execute.
|
17
|
+
* @param msg The optional message to display if the assertion fails.
|
18
|
+
* @returns The error that was thrown.
|
19
|
+
*/
|
20
|
+
export declare function assertThrows(fn: () => unknown, msg?: string): unknown;
|
21
|
+
/**
|
22
|
+
* Executes a function, expecting it to throw. If it does not, then it
|
23
|
+
* throws. An error class and a string that should be included in the
|
24
|
+
* error message can also be asserted.
|
25
|
+
*
|
26
|
+
* To assert that an asynchronous function rejects, use
|
27
|
+
* {@linkcode assertRejects}.
|
28
|
+
*
|
29
|
+
* @example Usage
|
30
|
+
* ```ts ignore
|
31
|
+
* import { assertThrows } from "@std/assert";
|
32
|
+
*
|
33
|
+
* assertThrows(() => { throw new TypeError("hello world!"); }, TypeError); // Doesn't throw
|
34
|
+
* assertThrows(() => { throw new TypeError("hello world!"); }, RangeError); // Throws
|
35
|
+
* ```
|
36
|
+
*
|
37
|
+
* @typeParam E The error class to assert.
|
38
|
+
* @param fn The function to execute.
|
39
|
+
* @param ErrorClass The error class to assert.
|
40
|
+
* @param msgIncludes The string that should be included in the error message.
|
41
|
+
* @param msg The optional message to display if the assertion fails.
|
42
|
+
* @returns The error that was thrown.
|
43
|
+
*/
|
44
|
+
export declare function assertThrows<E extends Error = Error>(fn: () => unknown, ErrorClass: abstract new (...args: any[]) => E, msgIncludes?: string, msg?: string): E;
|
45
|
+
//# sourceMappingURL=throws.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/throws.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
+
// This module is browser compatible.
|
3
|
+
import { assertIsError } from "./is_error.js";
|
4
|
+
import { AssertionError } from "./assertion_error.js";
|
5
|
+
export function assertThrows(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
|
6
|
+
// deno-lint-ignore no-explicit-any
|
7
|
+
let ErrorClass;
|
8
|
+
let msgIncludes;
|
9
|
+
let err;
|
10
|
+
if (typeof errorClassOrMsg !== "string") {
|
11
|
+
if (errorClassOrMsg === undefined ||
|
12
|
+
errorClassOrMsg?.prototype instanceof Error ||
|
13
|
+
errorClassOrMsg?.prototype === Error.prototype) {
|
14
|
+
ErrorClass = errorClassOrMsg;
|
15
|
+
msgIncludes = msgIncludesOrMsg;
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
msg = msgIncludesOrMsg;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
else {
|
22
|
+
msg = errorClassOrMsg;
|
23
|
+
}
|
24
|
+
let doesThrow = false;
|
25
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
26
|
+
try {
|
27
|
+
fn();
|
28
|
+
}
|
29
|
+
catch (error) {
|
30
|
+
if (ErrorClass) {
|
31
|
+
if (error instanceof Error === false) {
|
32
|
+
throw new AssertionError(`A non-Error object was thrown${msgSuffix}`);
|
33
|
+
}
|
34
|
+
assertIsError(error, ErrorClass, msgIncludes, msg);
|
35
|
+
}
|
36
|
+
err = error;
|
37
|
+
doesThrow = true;
|
38
|
+
}
|
39
|
+
if (!doesThrow) {
|
40
|
+
msg = `Expected function to throw${msgSuffix}`;
|
41
|
+
throw new AssertionError(msg);
|
42
|
+
}
|
43
|
+
return err;
|
44
|
+
}
|
45
|
+
//# sourceMappingURL=throws.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"throws.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/throws.ts"],"names":[],"mappings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AAG,GAAG,6BAA6B,SAAS,EAAE,CAAC;QAC/C,MAAM,IAAI,cAAc,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Use this to stub out methods that will throw when invoked.
|
3
|
+
*
|
4
|
+
* @example Usage
|
5
|
+
* ```ts ignore
|
6
|
+
* import { unimplemented } from "@std/assert";
|
7
|
+
*
|
8
|
+
* unimplemented(); // Throws
|
9
|
+
* ```
|
10
|
+
*
|
11
|
+
* @param msg Optional message to include in the error.
|
12
|
+
* @returns Never returns, always throws.
|
13
|
+
*/
|
14
|
+
export declare function unimplemented(msg?: string): never;
|
15
|
+
//# sourceMappingURL=unimplemented.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/unimplemented.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGjD"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
+
// This module is browser compatible.
|
3
|
+
import { AssertionError } from "./assertion_error.js";
|
4
|
+
/**
|
5
|
+
* Use this to stub out methods that will throw when invoked.
|
6
|
+
*
|
7
|
+
* @example Usage
|
8
|
+
* ```ts ignore
|
9
|
+
* import { unimplemented } from "@std/assert";
|
10
|
+
*
|
11
|
+
* unimplemented(); // Throws
|
12
|
+
* ```
|
13
|
+
*
|
14
|
+
* @param msg Optional message to include in the error.
|
15
|
+
* @returns Never returns, always throws.
|
16
|
+
*/
|
17
|
+
export function unimplemented(msg) {
|
18
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
19
|
+
throw new AssertionError(`Unimplemented${msgSuffix}`);
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=unimplemented.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unimplemented.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/unimplemented.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qCAAqC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,aAAa,CAAC,GAAY;IACxC,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACzC,MAAM,IAAI,cAAc,CAAC,gBAAgB,SAAS,EAAE,CAAC,CAAC;AACxD,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Use this to assert unreachable code.
|
3
|
+
*
|
4
|
+
* @example Usage
|
5
|
+
* ```ts ignore
|
6
|
+
* import { unreachable } from "@std/assert";
|
7
|
+
*
|
8
|
+
* unreachable(); // Throws
|
9
|
+
* ```
|
10
|
+
*
|
11
|
+
* @param msg Optional message to include in the error.
|
12
|
+
* @returns Never returns, always throws.
|
13
|
+
*/
|
14
|
+
export declare function unreachable(msg?: string): never;
|
15
|
+
//# sourceMappingURL=unreachable.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/unreachable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAG/C"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
+
// This module is browser compatible.
|
3
|
+
import { AssertionError } from "./assertion_error.js";
|
4
|
+
/**
|
5
|
+
* Use this to assert unreachable code.
|
6
|
+
*
|
7
|
+
* @example Usage
|
8
|
+
* ```ts ignore
|
9
|
+
* import { unreachable } from "@std/assert";
|
10
|
+
*
|
11
|
+
* unreachable(); // Throws
|
12
|
+
* ```
|
13
|
+
*
|
14
|
+
* @param msg Optional message to include in the error.
|
15
|
+
* @returns Never returns, always throws.
|
16
|
+
*/
|
17
|
+
export function unreachable(msg) {
|
18
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
19
|
+
throw new AssertionError(`Unreachable${msgSuffix}`);
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=unreachable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"unreachable.js","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/unreachable.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,qCAAqC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,MAAM,SAAS,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACzC,MAAM,IAAI,cAAc,CAAC,cAAc,SAAS,EAAE,CAAC,CAAC;AACtD,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_data.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/cli/1.0.6/_data.js"],"names":[],"mappings":""}
|