nuxt-og-image 2.0.0-beta.15 → 2.0.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/_nuxt/IconCSS.aeda1d94.js +1 -0
- package/dist/client/_nuxt/{ImageLoader.fe3ede25.js → ImageLoader.b645d918.js} +1 -1
- package/dist/client/_nuxt/entry.14aeaa8a.js +5 -0
- package/dist/client/_nuxt/{entry.09f25aaf.css → entry.25091edd.css} +1 -1
- package/dist/client/_nuxt/{error-404.7c81d800.js → error-404.cd15dfb2.js} +1 -1
- package/dist/client/_nuxt/{error-500.6085d60e.js → error-500.75eeb667.js} +1 -1
- package/dist/client/_nuxt/{error-component.a44fd872.js → error-component.08e1dacc.js} +2 -2
- package/dist/client/_nuxt/{index.6e84ca7d.js → index.49cbc5b0.js} +1 -1
- package/dist/client/_nuxt/{options.b57b4483.js → options.53a33251.js} +1 -1
- package/dist/client/_nuxt/{png.59dec69d.js → png.1af82445.js} +1 -1
- package/dist/client/_nuxt/{shiki.15577506.js → shiki.fda62563.js} +1 -1
- package/dist/client/_nuxt/{svg.bc1d22d0.js → svg.b2ac2dfb.js} +1 -1
- package/dist/client/_nuxt/{vnodes.bcd7509e.js → vnodes.1581f8cb.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/options/index.html +2 -2
- package/dist/client/png/index.html +2 -2
- package/dist/client/svg/index.html +2 -2
- package/dist/client/vnodes/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +8 -5
- package/dist/runtime/browserUtil.d.ts +1 -0
- package/dist/runtime/composables/defineOgImage.mjs +1 -2
- package/dist/runtime/nitro/renderers/satori/utils.mjs +1 -0
- package/dist/runtime/nitro/util-hostname.mjs +5 -3
- package/dist/runtime/nitro/utils.d.ts +1 -0
- package/dist/runtime/nitro/utils.mjs +1 -0
- package/package.json +15 -15
- package/dist/client/_nuxt/IconCSS.1ea3f0cd.js +0 -1
- package/dist/client/_nuxt/entry.e84c6828.js +0 -5
package/dist/client/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-component.08e1dacc.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-component.08e1dacc.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-component.08e1dacc.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-component.08e1dacc.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js"><link rel="preload" as="style" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_og_image__/client/_nuxt/error-component.08e1dacc.js"><link rel="stylesheet" href="/__nuxt_og_image__/client/_nuxt/entry.25091edd.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{},app:{baseURL:"\u002F__nuxt_og_image__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_og_image__/client/_nuxt/entry.14aeaa8a.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -225,6 +225,7 @@ const module = defineNuxtModule({
|
|
|
225
225
|
},
|
|
226
226
|
defaults(nuxt) {
|
|
227
227
|
const siteUrl = process.env.NUXT_PUBLIC_SITE_URL || process.env.NUXT_SITE_URL || nuxt.options.runtimeConfig.public?.siteUrl || nuxt.options.runtimeConfig.siteUrl;
|
|
228
|
+
const isEdgeProvider = edgeProvidersSupported.includes(process.env.NITRO_PRESET || "") || edgeProvidersSupported.includes(nuxt.options.nitro.preset);
|
|
228
229
|
return {
|
|
229
230
|
// when we run `nuxi generate` we need to force prerendering
|
|
230
231
|
forcePrerender: !nuxt.options.dev && nuxt.options._generate,
|
|
@@ -235,7 +236,8 @@ const module = defineNuxtModule({
|
|
|
235
236
|
height: 630
|
|
236
237
|
},
|
|
237
238
|
satoriProvider: true,
|
|
238
|
-
|
|
239
|
+
// disable browser in edge environments
|
|
240
|
+
browserProvider: !isEdgeProvider,
|
|
239
241
|
fonts: [],
|
|
240
242
|
satoriOptions: {},
|
|
241
243
|
experimentalInlineWasm: process.env.NITRO_PRESET === "netlify-edge" || nuxt.options.nitro.preset === "netlify-edge" || false,
|
|
@@ -374,14 +376,15 @@ export default async function() {
|
|
|
374
376
|
}`;
|
|
375
377
|
}
|
|
376
378
|
nitroConfig.virtual["#nuxt-og-image/provider"] = `
|
|
377
|
-
import satori from '${relative(nuxt.options.rootDir, resolve("./runtime/nitro/renderers/satori"))}'
|
|
378
|
-
import browser from '${relative(nuxt.options.rootDir, resolve("./runtime/nitro/renderers/browser"))}'
|
|
379
|
+
${config.satoriProvider ? `import satori from '${relative(nuxt.options.rootDir, resolve("./runtime/nitro/renderers/satori"))}'` : ""}
|
|
380
|
+
${config.browserProvider ? `import browser from '${relative(nuxt.options.rootDir, resolve("./runtime/nitro/renderers/browser"))}'` : ""}
|
|
379
381
|
|
|
380
382
|
export async function useProvider(provider) {
|
|
381
383
|
if (provider === 'satori')
|
|
382
|
-
return satori
|
|
384
|
+
return ${config.satoriProvider ? "satori" : "null"}
|
|
383
385
|
if (provider === 'browser')
|
|
384
|
-
return browser
|
|
386
|
+
return ${config.browserProvider ? "browser" : "null"}
|
|
387
|
+
return null
|
|
385
388
|
}
|
|
386
389
|
`;
|
|
387
390
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import type { Buffer } from 'node:buffer';
|
|
2
3
|
import type { Browser } from 'playwright-core';
|
|
3
4
|
import type { ScreenshotOptions } from '../types';
|
|
4
5
|
export declare function screenshot(browser: Browser, options: Partial<ScreenshotOptions> & Record<string, any>): Promise<Buffer>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { useServerHead } from "@vueuse/head";
|
|
2
1
|
import { withBase } from "ufo";
|
|
3
2
|
import { useRequestEvent } from "#app";
|
|
4
3
|
import { useHostname } from "../nitro/util-hostname.mjs";
|
|
5
|
-
import { useRouter, useRuntimeConfig } from "#imports";
|
|
4
|
+
import { useRouter, useRuntimeConfig, useServerHead } from "#imports";
|
|
6
5
|
export function defineOgImageScreenshot(options = {}) {
|
|
7
6
|
const router = useRouter();
|
|
8
7
|
const route = router?.currentRoute?.value?.path || "";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getRequestHost, getRequestProtocol } from "h3";
|
|
2
2
|
import { withBase } from "ufo";
|
|
3
3
|
import { useRuntimeConfig } from "#imports";
|
|
4
4
|
export function useHostname(e) {
|
|
5
5
|
const base = useRuntimeConfig().app.baseURL;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
let host = getRequestHost(e);
|
|
7
|
+
if (host === "localhost")
|
|
8
|
+
host = process.env.NITRO_HOST || process.env.HOST || host;
|
|
9
|
+
const protocol = getRequestProtocol(e);
|
|
8
10
|
const useHttp = process.dev || host.includes("127.0.0.1") || host.includes("localhost") || protocol === "http";
|
|
9
11
|
let port = host.includes(":") ? host.split(":").pop() : false;
|
|
10
12
|
if ((process.dev || process.env.prerender || host.includes("localhost")) && !port)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.18",
|
|
5
5
|
"packageManager": "pnpm@8.1.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@nuxt/kit": "3.
|
|
29
|
+
"@nuxt/kit": "3.4.1",
|
|
30
30
|
"@types/fs-extra": "^11.0.1",
|
|
31
|
-
"birpc": "^0.2.
|
|
31
|
+
"birpc": "^0.2.11",
|
|
32
32
|
"chalk": "^5.2.0",
|
|
33
|
-
"chrome-launcher": "^0.15.
|
|
33
|
+
"chrome-launcher": "^0.15.2",
|
|
34
34
|
"defu": "^6.1.2",
|
|
35
35
|
"execa": "^7.1.1",
|
|
36
36
|
"fast-glob": "^3.2.12",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"fs-extra": "^11.1.1",
|
|
39
39
|
"launch-editor": "^2.6.0",
|
|
40
40
|
"ofetch": "^1.0.1",
|
|
41
|
-
"ohash": "^1.
|
|
41
|
+
"ohash": "^1.1.1",
|
|
42
42
|
"pathe": "^1.1.0",
|
|
43
|
-
"playwright-core": "^1.32.
|
|
43
|
+
"playwright-core": "^1.32.3",
|
|
44
44
|
"radix3": "^1.0.1",
|
|
45
|
-
"satori": "0.4.
|
|
45
|
+
"satori": "0.4.13",
|
|
46
46
|
"satori-html": "^0.3.2",
|
|
47
47
|
"sirv": "^2.0.2",
|
|
48
48
|
"std-env": "^3.3.2",
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"yoga-wasm-web": "^0.3.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@antfu/eslint-config": "^0.38.
|
|
58
|
-
"@nuxt/devtools-edge": "0.
|
|
59
|
-
"@nuxt/module-builder": "^0.
|
|
60
|
-
"@nuxt/test-utils": "3.
|
|
57
|
+
"@antfu/eslint-config": "^0.38.5",
|
|
58
|
+
"@nuxt/devtools-edge": "0.4.1-28031816.5910844",
|
|
59
|
+
"@nuxt/module-builder": "^0.3.0",
|
|
60
|
+
"@nuxt/test-utils": "3.4.1",
|
|
61
61
|
"@nuxtjs/eslint-config-typescript": "^12.0.0",
|
|
62
62
|
"@types/ws": "^8.5.4",
|
|
63
63
|
"bumpp": "^9.1.0",
|
|
64
|
-
"eslint": "8.
|
|
64
|
+
"eslint": "8.38.0",
|
|
65
65
|
"jest-image-snapshot": "^6.1.0",
|
|
66
|
-
"nuxt": "^3.
|
|
67
|
-
"puppeteer": "^19.
|
|
68
|
-
"vitest": "^0.
|
|
66
|
+
"nuxt": "^3.4.1",
|
|
67
|
+
"puppeteer": "^19.9.1",
|
|
68
|
+
"vitest": "^0.30.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:client",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as p,b as u,e as l,f as t,o as f,h as m,i as _,u as o,j as d}from"./entry.e84c6828.js";const x=p({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(c){const s=c;u(e=>({"09a3f8ca":o(r)}));const n=l();n?.nuxtIcon?.aliases;const i=t(()=>(n?.nuxtIcon?.aliases||{})[s.name]||s.name),r=t(()=>`url('https://api.iconify.design/${i.value.replace(":","/")}.svg')`),a=t(()=>{if(!s.size&&typeof n.nuxtIcon?.size=="boolean"&&!n.nuxtIcon?.size)return;const e=s.size||n.nuxtIcon?.size||"1em";return String(Number(e))===e?`${e}px`:e});return(e,z)=>(f(),m("span",{style:_({width:o(a),height:o(a)})},null,4))}}),g=d(x,[["__scopeId","data-v-c836ce7b"]]);export{g as default};
|