From bf0c77db896ffe180947404ffd7864db2695fff8 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Tue, 25 Jul 2023 15:13:51 +0300 Subject: [PATCH] chore: revert formatting --- packages/kit/src/module/compatibility.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kit/src/module/compatibility.ts b/packages/kit/src/module/compatibility.ts index fc3110ffa6..f161f739fc 100644 --- a/packages/kit/src/module/compatibility.ts +++ b/packages/kit/src/module/compatibility.ts @@ -12,7 +12,7 @@ import { loadNuxtModuleInstance } from './install' */ export function hasNuxtModule (moduleName: string, nuxt: Nuxt = useNuxt()) : boolean { return nuxt.options._installedModules.some(({ meta }) => meta.name === moduleName) || - nuxt.options.modules.includes(moduleName) + nuxt.options.modules.includes(moduleName) } /** @@ -40,7 +40,7 @@ export async function getNuxtModuleVersion (module: string | NuxtModule, nuxt: N if (!moduleMeta.name) { return false } // maybe the version got attached within the installed module instance? const version = nuxt.options._installedModules - // @ts-expect-error _installedModules is not typed + // @ts-expect-error _installedModules is not typed .filter(m => m.meta.name === moduleMeta.name).map(m => m.meta.version)?.[0] if (version) { return version