nuxt-og-image 3.1.1 → 4.0.0
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/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/f8cf0c2a-d2c2-44be-94c5-481b139589cf.json +1 -0
- package/dist/client/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -14
- package/package.json +4 -5
- package/dist/client/_nuxt/builds/meta/52ed68a4-7100-435e-b5ed-e39bac0de095.json +0 -1
package/dist/client/200.html
CHANGED
|
@@ -276,5 +276,5 @@
|
|
|
276
276
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/DwSUWO6N.js">
|
|
277
277
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-og-image/_nuxt/error-500.BJcKCN8F.css">
|
|
278
278
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/BeUwqJEY.js">
|
|
279
|
-
<script type="module" src="/__nuxt-og-image/_nuxt/Ce3NjAxN.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
280
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildId:"
|
|
279
|
+
<script type="module" src="/__nuxt-og-image/_nuxt/Ce3NjAxN.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1732464697946,false]</script>
|
|
280
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildId:"f8cf0c2a-d2c2-44be-94c5-481b139589cf",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -276,5 +276,5 @@
|
|
|
276
276
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/DwSUWO6N.js">
|
|
277
277
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-og-image/_nuxt/error-500.BJcKCN8F.css">
|
|
278
278
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/BeUwqJEY.js">
|
|
279
|
-
<script type="module" src="/__nuxt-og-image/_nuxt/Ce3NjAxN.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
280
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildId:"
|
|
279
|
+
<script type="module" src="/__nuxt-og-image/_nuxt/Ce3NjAxN.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1732464697947,false]</script>
|
|
280
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildId:"f8cf0c2a-d2c2-44be-94c5-481b139589cf",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"f8cf0c2a-d2c2-44be-94c5-481b139589cf","timestamp":1732464665832}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"f8cf0c2a-d2c2-44be-94c5-481b139589cf","timestamp":1732464665832,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -276,5 +276,5 @@
|
|
|
276
276
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/DwSUWO6N.js">
|
|
277
277
|
<link rel="prefetch" as="style" crossorigin href="/__nuxt-og-image/_nuxt/error-500.BJcKCN8F.css">
|
|
278
278
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt-og-image/_nuxt/BeUwqJEY.js">
|
|
279
|
-
<script type="module" src="/__nuxt-og-image/_nuxt/Ce3NjAxN.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},
|
|
280
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildId:"
|
|
279
|
+
<script type="module" src="/__nuxt-og-image/_nuxt/Ce3NjAxN.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1732464697946,false]</script>
|
|
280
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-og-image",buildId:"f8cf0c2a-d2c2-44be-94c5-481b139589cf",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { existsSync } from 'node:fs';
|
|
|
3
3
|
import { readFile, writeFile } from 'node:fs/promises';
|
|
4
4
|
import { useNuxt, tryResolveModule, addTemplate, resolvePath, loadNuxtModuleInstance, createResolver, defineNuxtModule, useLogger, addImports, addBuildPlugin, hasNuxtModule, addServerPlugin, addServerHandler, addComponentsDir, addComponent, addPlugin } from '@nuxt/kit';
|
|
5
5
|
import { defu } from 'defu';
|
|
6
|
-
import {
|
|
6
|
+
import { installNuxtSiteConfig } from 'nuxt-site-config/kit';
|
|
7
7
|
import { hash } from 'ohash';
|
|
8
8
|
import { dirname, relative as relative$1, isAbsolute, basename } from 'pathe';
|
|
9
9
|
import { readPackageJSON } from 'pkg-types';
|
|
@@ -329,11 +329,6 @@ function setupGenerateHandler(options, resolve, nuxt = useNuxt()) {
|
|
|
329
329
|
},
|
|
330
330
|
resolve
|
|
331
331
|
});
|
|
332
|
-
assertSiteConfig("nuxt-og-image", {
|
|
333
|
-
url: "OG Image tags are required to be absolute URLs."
|
|
334
|
-
}, {
|
|
335
|
-
throwError: true
|
|
336
|
-
});
|
|
337
332
|
});
|
|
338
333
|
}
|
|
339
334
|
|
|
@@ -343,14 +338,6 @@ function setupPrerenderHandler(options, resolve, nuxt = useNuxt()) {
|
|
|
343
338
|
await applyNitroPresetCompatibility(nitroConfig, { compatibility: options.compatibility?.prerender, resolve });
|
|
344
339
|
nitroConfig.wasm = nitroConfig.wasm || {};
|
|
345
340
|
nitroConfig.wasm.esmImport = false;
|
|
346
|
-
const prerenderingPages = (nuxt.options.nitro.prerender?.routes || []).some((r) => r && (!r.includes(".") || r.includes("*")));
|
|
347
|
-
if (prerenderingPages) {
|
|
348
|
-
assertSiteConfig("nuxt-og-image", {
|
|
349
|
-
url: "OG Image tags are required to be absolute URLs."
|
|
350
|
-
}, {
|
|
351
|
-
throwError: false
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
341
|
});
|
|
355
342
|
});
|
|
356
343
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"description": "Enlightened OG Image generation for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"website": "https://harlanzw.com",
|
|
@@ -46,8 +46,7 @@
|
|
|
46
46
|
"execa": "^9.5.1",
|
|
47
47
|
"image-size": "^1.1.1",
|
|
48
48
|
"magic-string": "^0.30.13",
|
|
49
|
-
"nuxt-site-config": "^
|
|
50
|
-
"nuxt-site-config-kit": "^2.2.21",
|
|
49
|
+
"nuxt-site-config": "^3.0.4",
|
|
51
50
|
"nypm": "^0.3.12",
|
|
52
51
|
"ofetch": "^1.4.1",
|
|
53
52
|
"ohash": "^1.1.4",
|
|
@@ -99,9 +98,9 @@
|
|
|
99
98
|
"playwright": "^1.49.0",
|
|
100
99
|
"sass": "^1.81.0",
|
|
101
100
|
"sharp": "^0.33.5",
|
|
101
|
+
"typescript": "5.6.3",
|
|
102
102
|
"unocss": "^0.64.1",
|
|
103
|
-
"vitest": "^2.1.5"
|
|
104
|
-
"typescript": "5.6.3"
|
|
103
|
+
"vitest": "^2.1.5"
|
|
105
104
|
},
|
|
106
105
|
"resolutions": {
|
|
107
106
|
"typescript": "5.6.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"52ed68a4-7100-435e-b5ed-e39bac0de095","timestamp":1732426743929,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|