Skip to content

Commit

Permalink
feat: add framework version
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Apr 26, 2023
1 parent a806787 commit 89e94ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ async function analyze (originalUrl, options = {}) {
getNuxtMeta(context),
getNuxtModules(context)
])
infos.framework.version = await page.evaluate(`__unctx__?.get('nuxt-app')?.use()?.versions?.nuxt`)
if (!infos.framework.version && infos.vueVersion) {
infos.framework.version = infos.vueVersion.split('.')[0]
}
infos.isStatic = meta.static
infos.hasSSR = meta.ssr
infos.frameworkModules = modules
Expand Down

0 comments on commit 89e94ea

Please sign in to comment.