Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update deno_graph to v0.56.0 #140

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rs-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "MIT"
anyhow = "1.0.44"
base64 = "0.13.0"
deno_ast = { version = "0.29.3", features = ["bundler", "codegen", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "visit", "transpiling"] }
deno_graph = "0.55.0"
deno_graph = "0.56.0"
escape8259 = "0.5.2"
futures = "0.3.17"
import_map = "0.15.0"
Expand Down
5 changes: 3 additions & 2 deletions rs-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mod text;

use anyhow::Result;
use deno_graph::source::LoadResponse;
use deno_graph::source::ResolveError;
use deno_graph::BuildOptions;
use deno_graph::CapturingModuleAnalyzer;
use deno_graph::GraphKind;
Expand Down Expand Up @@ -163,7 +164,7 @@ impl deno_graph::source::Resolver for ImportMapResolver {
&self,
specifier: &str,
referrer: &ModuleSpecifier,
) -> Result<ModuleSpecifier, anyhow::Error> {
) -> Result<ModuleSpecifier, ResolveError> {
let maybe_import_map = &self.0;

let maybe_import_map_err = match maybe_import_map
Expand All @@ -176,7 +177,7 @@ impl deno_graph::source::Resolver for ImportMapResolver {
};

if let Some(err) = maybe_import_map_err {
Err(err.into())
Err(ResolveError::Other(err.into()))
} else {
deno_graph::resolve_import(specifier, referrer).map_err(|err| err.into())
}
Expand Down