diff --git a/Cargo.lock b/Cargo.lock index 965337b..8663841 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -275,9 +275,9 @@ dependencies = [ [[package]] name = "deno_ast" -version = "0.39.0" +version = "0.39.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32edef567e3090862e865c75628f4d35ace80ca90e0fc5263a7d10fa307ae899" +checksum = "132aace7b62c317da51f84f1cfbbbfc56ce643110821937c04b36c916db64341" dependencies = [ "anyhow", "base64", @@ -354,9 +354,9 @@ dependencies = [ [[package]] name = "deno_graph" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4ccd2755a805983f96aeccd211c1f7585b6bfec77471f502c47227abe375682" +checksum = "caa95531b3eb65aced626d8dd8117b29b3e57763e0c1ace502101fb56b8a2c31" dependencies = [ "anyhow", "async-trait", @@ -668,9 +668,9 @@ checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" [[package]] name = "import_map" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "696717335b077e26921a60be7b7bdc15d1246074f1ac79d9e8560792535f7d07" +checksum = "373b8288ad259df0d1314e3e8b2fff0e5e63f22e01bc54ecd2c3c7ad77b9200c" dependencies = [ "indexmap", "log", @@ -1357,9 +1357,9 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.227.0" +version = "0.228.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1a212bd08b1121c7204a04407ea055779fc00cf80024fc666dd97b00749cf87" +checksum = "43e4698d94115ea10fe3c6fdde2d1e736c6ba6601abab0a61d95e1015d13359f" dependencies = [ "anyhow", "crc", @@ -1427,9 +1427,9 @@ dependencies = [ [[package]] name = "swc_config" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7be1a689e146be1eae53139482cb061dcf0fa01dff296bbe7b96fff92d8e2936" +checksum = "84b67e115ab136fe0eb03558bb0508ca7782eeb446a96d165508c48617e3fd94" dependencies = [ "anyhow", "indexmap", @@ -1453,9 +1453,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.113.4" +version = "0.113.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1690cc0c9ab60b44ac0225ba1e231ac532f7ba1d754df761c6ee607561afae" +checksum = "98a534a8360a076a030989f6d121ba6044345594bdf0457c4629f432742026b8" dependencies = [ "bitflags 2.5.0", "is-macro", @@ -1471,9 +1471,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.149.1" +version = "0.149.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fef147127a2926ca26171c7afcbf028ff86dc543ced87d316713f25620a15b9" +checksum = "efb2bef3f4998865b2d466fb2ef9410a03449d255d199f3eb807fb19acc3862b" dependencies = [ "memchr", "num-bigint", @@ -1516,9 +1516,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.144.1" +version = "0.144.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0499e69683ae5d67a20ff0279b94bc90f29df7922a46331b54d5dd367bf89570" +checksum = "fc0b4193b9c127db1990a5a08111aafe0122bc8b138646807c63f2a6521b7da4" dependencies = [ "either", "new_debug_unreachable", @@ -1538,9 +1538,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.138.2" +version = "0.138.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eddb95c2bdad1c9c29edf35712e1e0f9b9ddc1cdb5ba2d582fd93468cb075a03" +checksum = "f7b76d09313cdd8f99bc1519fb04f8a93427c7a6f4bfbc64b39fcc5a378ab1b7" dependencies = [ "better_scoped_tls", "bitflags 2.5.0", @@ -1587,9 +1587,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.199.1" +version = "0.199.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32ea30b3df748236c619409f222f0ba68ebeebc08dfff109d2195664a15689f9" +checksum = "25982d69c91cd64cbfae714d9e953810b3f2835486d08108967cbd15016e7720" dependencies = [ "dashmap", "indexmap", @@ -1672,14 +1672,15 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.128.1" +version = "0.128.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe5242670bc74e0a0b64b9d4912b37be36944517ce0881314162aeb4381272c3" +checksum = "02f470d8cc31adf6189b228636201ee3cdd268c0b5a2d0407f83093dfa96ff91" dependencies = [ "indexmap", "num_cpus", "once_cell", "rustc-hash", + "ryu-js", "swc_atoms", "swc_common", "swc_ecma_ast", diff --git a/Cargo.toml b/Cargo.toml index 127de36..ed486db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ members = [ [workspace.dependencies] anyhow = "1.0.44" base64 = "0.21.5" -deno_graph = { version = "0.78.0", default-features = false } +deno_graph = { version = "0.79.0", default-features = false } url = { version = "2.3.1" } [profile.release] diff --git a/rs-lib/Cargo.toml b/rs-lib/Cargo.toml index 3a9afd8..c42cf94 100644 --- a/rs-lib/Cargo.toml +++ b/rs-lib/Cargo.toml @@ -15,7 +15,7 @@ deno_ast = { version = "0.39.0", features = ["bundler", "codegen", "proposal", " deno_graph = { workspace = true } escape8259 = "0.5.2" futures = "0.3.17" -import_map = "0.19.0" +import_map = "0.20.0" parking_lot = { version = "0.11.2" } url = { workspace = true } diff --git a/rs-lib/src/lib.rs b/rs-lib/src/lib.rs index b82245c..fd66e0c 100644 --- a/rs-lib/src/lib.rs +++ b/rs-lib/src/lib.rs @@ -42,7 +42,7 @@ pub async fn bundle( maybe_import_map: Option, options: BundleOptions, ) -> Result { - let maybe_import_map = get_import_map_from_input(&maybe_import_map)?; + let maybe_import_map = get_import_map_from_input(maybe_import_map)?; let import_map_resolver = ImportMapResolver(maybe_import_map); let mut graph = ModuleGraph::new(GraphKind::CodeOnly); graph @@ -67,7 +67,7 @@ pub async fn transpile( emit_options: &EmitOptions, ) -> Result>> { let analyzer = CapturingModuleAnalyzer::default(); - let maybe_import_map = get_import_map_from_input(&maybe_import_map)?; + let maybe_import_map = get_import_map_from_input(maybe_import_map)?; let import_map_resolver = ImportMapResolver(maybe_import_map); let mut graph = ModuleGraph::new(GraphKind::CodeOnly); graph @@ -112,11 +112,11 @@ pub struct ImportMapInput { } fn get_import_map_from_input( - maybe_input: &Option, + maybe_input: Option, ) -> Result> { if let Some(input) = maybe_input { let import_map = import_map::parse_from_json_with_options( - &input.base_url, + input.base_url, &input.json_string, ImportMapOptions { address_hook: None,