From 20d8aa8d95875446a390cf94b680a6dd2353b579 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Tue, 24 Dec 2024 22:01:52 +0800 Subject: [PATCH] fix typo libs/remix-url-resolver/src/resolve.ts --- libs/remix-url-resolver/src/resolve.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-url-resolver/src/resolve.ts b/libs/remix-url-resolver/src/resolve.ts index f4b5b0a6297..a859643325f 100644 --- a/libs/remix-url-resolver/src/resolve.ts +++ b/libs/remix-url-resolver/src/resolve.ts @@ -140,8 +140,8 @@ export class RemixURLResolver { async handleNpmImport(url: string): Promise { if (!url) throw new Error('url is empty') let fetchUrl = url - const isVersionned = semverRegex().exec(url.replace(/@/g, '@ ').replace(/\//g, ' /')) - if (this.getDependencies && !isVersionned) { + const isVersioned = semverRegex().exec(url.replace(/@/g, '@ ').replace(/\//g, ' /')) + if (this.getDependencies && !isVersioned) { try { const { deps, yarnLock, packageLock } = await this.getDependencies() let matchLength = 0