diff --git a/Cargo.lock b/Cargo.lock index 4b5e4908..c98346bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -522,9 +522,9 @@ dependencies = [ [[package]] name = "deno_ast" -version = "0.43.0" +version = "0.43.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6a41d70fa043b4117c6fea30fdcf2dfee7053363a3cdb45011673ebdb3300d5" +checksum = "48d00b724e06d2081a141ec1155756a0b465d413d8e2a7515221f61d482eb2ee" dependencies = [ "base64", "deno_media_type", @@ -610,9 +610,9 @@ dependencies = [ [[package]] name = "deno_graph" -version = "0.84.0" +version = "0.85.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9d6c7edec696810563d8002e4330e87b63ecbdd48996a18a94946b9a0f4db50" +checksum = "9d097305aba3f119781fe82b4d5a85a1ad10c586a388ee4d754e5bf82901cc5c" dependencies = [ "anyhow", "async-trait", @@ -634,6 +634,7 @@ dependencies = [ "sha2", "thiserror", "url", + "wasm_dep_analyzer", ] [[package]] @@ -2638,6 +2639,15 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" +[[package]] +name = "wasm_dep_analyzer" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f270206a91783fd90625c8bb0d8fbd459d0b1d1bf209b656f713f01ae7c04b8" +dependencies = [ + "thiserror", +] + [[package]] name = "web-sys" version = "0.3.69" diff --git a/Cargo.toml b/Cargo.toml index 0350fea5..c8b30af1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/denoland/deno_doc" members = ["lib"] [workspace.dependencies] -deno_graph = { version = "0.84.0", default-features = false, features = ["symbols"] } +deno_graph = { version = "0.85.0", default-features = false, features = ["symbols"] } deno_ast = { version = "0.43.0" } import_map = "0.20.0" serde = { version = "1.0.204", features = ["derive"] } diff --git a/src/parser.rs b/src/parser.rs index 86b175d4..b8d77687 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -231,7 +231,7 @@ impl<'a> DocParser<'a> { let module = resolve_deno_graph_module(self.graph, specifier)?; match module { - Module::Js(_) | Module::Json(_) => { + Module::Js(_) | Module::Json(_) | Module::Wasm(_) => { let module_info = self.get_module_info(module.specifier())?; let module_doc_nodes = self.get_doc_nodes_for_module_info(module_info)?;