From c0ec61cf16633492befd8f560ff6970db01c2a1d Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Thu, 19 Jan 2023 06:11:52 +0200 Subject: support npm dependency aliasing (#1837) * support npm dependency aliasing * fix variable name --- src/bun.js/module_loader.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bun.js/module_loader.zig') diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig index 91081786b..01ae2771a 100644 --- a/src/bun.js/module_loader.zig +++ b/src/bun.js/module_loader.zig @@ -621,9 +621,9 @@ pub const ModuleLoader = struct { .{ result.name, result.url }, ), error.DistTagNotFound, error.NoMatchingVersion => brk: { - const prefix: []const u8 = if (result.err == error.NoMatchingVersion and result.version.tag == .npm and result.version.value.npm.isExact()) + const prefix: []const u8 = if (result.err == error.NoMatchingVersion and result.version.tag == .npm and result.version.value.npm.version.isExact()) "Version not found" - else if (result.version.tag == .npm and !result.version.value.npm.isExact()) + else if (result.version.tag == .npm and !result.version.value.npm.version.isExact()) "No matching version found" else "No match found"; -- cgit v1.2.3