From 48ede89f1f192df28cc74822d7bb79b0b4bd0957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 13 Mar 2023 21:12:09 -0400 Subject: refactor(core): resolve_url_or_path and resolve_url_or_path_deprecated (#18170) This commit changes current "deno_core::resolve_url_or_path" API to "resolve_url_or_path_deprecated" and adds new "resolve_url_or_path" API that requires to explicitly pass the directory from which paths should be resolved to. Some of the call sites were updated to use the new API, the reminder of them will be updated in a follow up PR. Towards landing https://github.com/denoland/deno/pull/15454 --- core/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'core/lib.rs') diff --git a/core/lib.rs b/core/lib.rs index 08df6e44d..b48a77f69 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -72,6 +72,7 @@ pub use crate::module_specifier::resolve_import; pub use crate::module_specifier::resolve_path; pub use crate::module_specifier::resolve_url; pub use crate::module_specifier::resolve_url_or_path; +pub use crate::module_specifier::resolve_url_or_path_deprecated; pub use crate::module_specifier::ModuleResolutionError; pub use crate::module_specifier::ModuleSpecifier; pub use crate::module_specifier::DUMMY_SPECIFIER; -- cgit v1.2.3