Skip to content

Commit

Permalink
chore: update deno_graph to v0.56.0 (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Sep 28, 2023
1 parent 178a8a7 commit 098405a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
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

0 comments on commit 098405a

Please sign in to comment.