nuxt-og-image 6.4.3 → 6.4.4
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/chunks/tw4.cjs +1 -1
- package/dist/chunks/tw4.mjs +1 -1
- package/dist/chunks/uno.cjs +1 -1
- package/dist/chunks/uno.mjs +1 -1
- package/dist/devtools/200.html +1 -1
- package/dist/devtools/404.html +1 -1
- package/dist/devtools/_nuxt/{BlCLj09b.js → C5LFIfwi.js} +6 -6
- package/dist/devtools/_nuxt/{H3aAOs4d.js → CThtpBJK.js} +1 -1
- package/dist/devtools/_nuxt/{D7u0rku6.js → CYOZ55V_.js} +1 -1
- package/dist/devtools/_nuxt/{QLqpVsIv.js → CqGOSK9s.js} +1 -1
- package/dist/devtools/_nuxt/{rybsNufq.js → CxhRt3FZ.js} +1 -1
- package/dist/devtools/_nuxt/{B5qFn-Gu.js → DLMIIqSE.js} +1 -1
- package/dist/devtools/_nuxt/DevtoolsSection.Be9AJQOh.css +1 -0
- package/dist/devtools/_nuxt/DevtoolsSnippet.BubiVHug.css +1 -0
- package/dist/devtools/_nuxt/{BVne4GIn.js → DjEkFT0U.js} +1 -1
- package/dist/devtools/_nuxt/builds/latest.json +1 -1
- package/dist/devtools/_nuxt/builds/meta/ca9f1307-1f7b-4a5f-b061-2c680927caac.json +1 -0
- package/dist/devtools/_nuxt/{entry.DTjl7Lr7.css → entry.CJ6yFnTt.css} +1 -1
- package/dist/devtools/_nuxt/{pages.DqKYLiSy.css → pages.D8s6dQja.css} +1 -1
- package/dist/devtools/_nuxt/renderer-select.cI9Vfr5y.css +1 -0
- package/dist/devtools/debug/index.html +1 -1
- package/dist/devtools/docs/index.html +1 -1
- package/dist/devtools/index.html +1 -1
- package/dist/devtools/templates/index.html +1 -1
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/shared/{nuxt-og-image.BHvLMojr.mjs → nuxt-og-image.Cr3WHMk1.mjs} +15 -11
- package/dist/shared/{nuxt-og-image.B55LvX3B.cjs → nuxt-og-image.TJuh6pW5.cjs} +16 -12
- package/package.json +6 -6
- package/dist/devtools/_nuxt/DevtoolsSection.C56mUBtZ.css +0 -1
- package/dist/devtools/_nuxt/DevtoolsSnippet.BfzotPc4.css +0 -1
- package/dist/devtools/_nuxt/builds/meta/cbeb6bb2-84a2-4c9c-a725-a30474eb2d1e.json +0 -1
- package/dist/devtools/_nuxt/renderer-select.Do_uPaOg.css +0 -1
|
@@ -805,6 +805,15 @@ ${content}`, "utf-8");
|
|
|
805
805
|
return insertDefineOgImage(componentName, pageFile);
|
|
806
806
|
}
|
|
807
807
|
}, nuxt).then((rpc) => {
|
|
808
|
+
const safeBroadcast = (fn) => {
|
|
809
|
+
try {
|
|
810
|
+
const result = fn();
|
|
811
|
+
if (result && typeof result.then === "function")
|
|
812
|
+
result.catch(() => {
|
|
813
|
+
});
|
|
814
|
+
} catch {
|
|
815
|
+
}
|
|
816
|
+
};
|
|
808
817
|
let cssRefreshTimer;
|
|
809
818
|
nuxt.hook("builder:watch", (e, watchPath) => {
|
|
810
819
|
if (!e || !watchPath)
|
|
@@ -818,23 +827,18 @@ ${content}`, "utf-8");
|
|
|
818
827
|
if (isCssChange || normalizedPath.includes("uno.config")) {
|
|
819
828
|
clearTimeout(cssRefreshTimer);
|
|
820
829
|
cssRefreshTimer = setTimeout(() => {
|
|
821
|
-
rpc.broadcast.refresh()
|
|
822
|
-
});
|
|
830
|
+
safeBroadcast(() => rpc.broadcast.refresh());
|
|
823
831
|
}, 200);
|
|
824
832
|
return;
|
|
825
833
|
}
|
|
826
834
|
if ((e === "change" || e.includes("link")) && (normalizedPath.startsWith("pages") || normalizedPath.startsWith("content"))) {
|
|
827
|
-
rpc.broadcast.refreshRouteData(normalizedPath)
|
|
828
|
-
});
|
|
835
|
+
safeBroadcast(() => rpc.broadcast.refreshRouteData(normalizedPath));
|
|
829
836
|
}
|
|
830
837
|
if (options.componentDirs.some((dir) => normalizedPath.includes(dir))) {
|
|
831
|
-
if (e === "change")
|
|
832
|
-
rpc.broadcast.refresh()
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
rpc.broadcast.refreshGlobalData().catch(() => {
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
+
if (e === "change")
|
|
839
|
+
safeBroadcast(() => rpc.broadcast.refresh());
|
|
840
|
+
else
|
|
841
|
+
safeBroadcast(() => rpc.broadcast.refreshGlobalData());
|
|
838
842
|
}
|
|
839
843
|
});
|
|
840
844
|
});
|
|
@@ -825,6 +825,15 @@ ${content}`, "utf-8");
|
|
|
825
825
|
return insertDefineOgImage(componentName, pageFile);
|
|
826
826
|
}
|
|
827
827
|
}, nuxt).then((rpc) => {
|
|
828
|
+
const safeBroadcast = (fn) => {
|
|
829
|
+
try {
|
|
830
|
+
const result = fn();
|
|
831
|
+
if (result && typeof result.then === "function")
|
|
832
|
+
result.catch(() => {
|
|
833
|
+
});
|
|
834
|
+
} catch {
|
|
835
|
+
}
|
|
836
|
+
};
|
|
828
837
|
let cssRefreshTimer;
|
|
829
838
|
nuxt.hook("builder:watch", (e, watchPath) => {
|
|
830
839
|
if (!e || !watchPath)
|
|
@@ -838,23 +847,18 @@ ${content}`, "utf-8");
|
|
|
838
847
|
if (isCssChange || normalizedPath.includes("uno.config")) {
|
|
839
848
|
clearTimeout(cssRefreshTimer);
|
|
840
849
|
cssRefreshTimer = setTimeout(() => {
|
|
841
|
-
rpc.broadcast.refresh()
|
|
842
|
-
});
|
|
850
|
+
safeBroadcast(() => rpc.broadcast.refresh());
|
|
843
851
|
}, 200);
|
|
844
852
|
return;
|
|
845
853
|
}
|
|
846
854
|
if ((e === "change" || e.includes("link")) && (normalizedPath.startsWith("pages") || normalizedPath.startsWith("content"))) {
|
|
847
|
-
rpc.broadcast.refreshRouteData(normalizedPath)
|
|
848
|
-
});
|
|
855
|
+
safeBroadcast(() => rpc.broadcast.refreshRouteData(normalizedPath));
|
|
849
856
|
}
|
|
850
857
|
if (options.componentDirs.some((dir) => normalizedPath.includes(dir))) {
|
|
851
|
-
if (e === "change")
|
|
852
|
-
rpc.broadcast.refresh()
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
rpc.broadcast.refreshGlobalData().catch(() => {
|
|
856
|
-
});
|
|
857
|
-
}
|
|
858
|
+
if (e === "change")
|
|
859
|
+
safeBroadcast(() => rpc.broadcast.refresh());
|
|
860
|
+
else
|
|
861
|
+
safeBroadcast(() => rpc.broadcast.refreshGlobalData());
|
|
858
862
|
}
|
|
859
863
|
});
|
|
860
864
|
});
|
|
@@ -4316,7 +4320,7 @@ const module$1 = kit.defineNuxtModule({
|
|
|
4316
4320
|
await onUpgrade(nuxt, options, previousVersion);
|
|
4317
4321
|
},
|
|
4318
4322
|
async setup(config, nuxt) {
|
|
4319
|
-
const _resolver = kit.createResolver((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/nuxt-og-image.
|
|
4323
|
+
const _resolver = kit.createResolver((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('shared/nuxt-og-image.TJuh6pW5.cjs', document.baseURI).href)));
|
|
4320
4324
|
const fixSharedPath = (p) => {
|
|
4321
4325
|
if (p.includes("/shared/runtime/"))
|
|
4322
4326
|
return p.replace("/shared/runtime/", "/runtime/");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.4.
|
|
4
|
+
"version": "6.4.4",
|
|
5
5
|
"description": "Enlightened OG Image generation for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"website": "https://harlanzw.com",
|
|
@@ -152,14 +152,14 @@
|
|
|
152
152
|
"@shikijs/langs": "^4.0.2",
|
|
153
153
|
"@shikijs/themes": "^4.0.2",
|
|
154
154
|
"@tailwindcss/vite": "^4.2.2",
|
|
155
|
-
"@takumi-rs/core": "^1.0.
|
|
156
|
-
"@takumi-rs/wasm": "^1.0.
|
|
155
|
+
"@takumi-rs/core": "^1.0.14",
|
|
156
|
+
"@takumi-rs/wasm": "^1.0.14",
|
|
157
157
|
"@unocss/nuxt": "^66.6.8",
|
|
158
158
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
159
159
|
"@vueuse/nuxt": "^14.2.1",
|
|
160
160
|
"birpc": "^4.0.0",
|
|
161
161
|
"bumpp": "^11.0.1",
|
|
162
|
-
"eslint": "^10.2.
|
|
162
|
+
"eslint": "^10.2.1",
|
|
163
163
|
"eslint-plugin-harlanzw": "^0.12.1",
|
|
164
164
|
"fontless": "^0.2.1",
|
|
165
165
|
"get-image-colors": "^4.0.1",
|
|
@@ -176,11 +176,11 @@
|
|
|
176
176
|
"sharp": "^0.34.5",
|
|
177
177
|
"sirv": "^3.0.2",
|
|
178
178
|
"tailwindcss": "^4.2.2",
|
|
179
|
-
"typescript": "^6.0.
|
|
179
|
+
"typescript": "^6.0.3",
|
|
180
180
|
"unifont": "^0.7.4",
|
|
181
181
|
"unocss": "^66.6.8",
|
|
182
182
|
"vitest": "^4.1.4",
|
|
183
|
-
"vue-tsc": "^3.2.
|
|
183
|
+
"vue-tsc": "^3.2.7",
|
|
184
184
|
"wrangler": "^4.83.0",
|
|
185
185
|
"yoga-wasm-web": "^0.3.3"
|
|
186
186
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.section-block[data-v-30bc216a]{background:var(--color-surface-elevated);border:1px solid var(--color-border);border-radius:var(--radius-lg);transition:border-color .2s;overflow:hidden}.section-block[data-v-30bc216a]:hover{border-color:var(--color-neutral-300)}.dark .section-block[data-v-30bc216a]:hover{border-color:var(--color-neutral-700)}.section-header[data-v-30bc216a]{cursor:pointer;-webkit-user-select:none;user-select:none;padding:.875rem 1rem;list-style:none;transition:background .15s}.section-header[data-v-30bc216a]::-webkit-details-marker{display:none}.section-header[data-v-30bc216a]:hover{background:var(--color-surface-sunken)}details[open] .section-header[data-v-30bc216a]{border-bottom:1px solid var(--color-border)}.section-title[data-v-30bc216a]{align-items:center;gap:.625rem;transition:opacity .15s;display:flex}.section-icon[data-v-30bc216a]{color:var(--color-text-muted);flex-shrink:0;font-size:1.125rem}.section-label[data-v-30bc216a]{color:var(--color-text);font-size:.875rem;font-weight:600}.section-description[data-v-30bc216a]{color:var(--color-text-muted);margin-top:.125rem;font-size:.75rem}.chevron[data-v-30bc216a]{color:var(--color-text-subtle);flex-shrink:0;font-size:.875rem;transition:transform .2s cubic-bezier(.22,1,.36,1)}details[open] .chevron[data-v-30bc216a]{color:var(--color-text-muted);transform:rotate(180deg)}.section-content[data-v-30bc216a]{background:var(--color-surface-sunken);flex-direction:column;gap:.75rem;padding:1rem;display:flex}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.devtools-snippet[data-v-a6ab0a4c]{margin:.5rem .75rem}.devtools-snippet-header[data-v-a6ab0a4c]{justify-content:space-between;align-items:center;margin-bottom:.375rem;display:flex}.devtools-snippet-label[data-v-a6ab0a4c]{color:var(--color-text-muted);font-family:var(--font-mono);letter-spacing:-.01em;font-size:.6875rem;font-weight:500}.devtools-snippet-block[data-v-a6ab0a4c]{border-radius:var(--radius-sm);max-height:300px;font-size:.6875rem;line-height:1.6;overflow-y:auto;padding:.5rem .625rem!important}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"cbeb6bb2-84a2-4c9c-a725-a30474eb2d1e","timestamp":1776345720480,"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.devtools-alert[data-v-0d0fe6ed]{border-bottom:1px solid var(--color-border);align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.8125rem;display:flex}.devtools-alert-icon[data-v-0d0fe6ed]{flex-shrink:0}.devtools-alert-content[data-v-0d0fe6ed]{flex:1;min-width:0}.devtools-alert-action[data-v-0d0fe6ed]{flex-shrink:0;margin-left:auto}.devtools-alert-info[data-v-0d0fe6ed]{color:oklch(55% .12 230);background:oklch(85% .1 230/.1);border-bottom-color:oklch(75% .1 230/.2)}.dark .devtools-alert-info[data-v-0d0fe6ed]{color:oklch(80% .1 230);background:oklch(45% .1 230/.15)}.devtools-alert-error[data-v-0d0fe6ed]{color:oklch(52% .18 25);background:oklch(65% .18 25/.1);border-bottom-color:oklch(55% .15 25/.25)}.dark .devtools-alert-error[data-v-0d0fe6ed]{color:oklch(75% .14 25);background:oklch(40% .14 25/.18)}.devtools-alert-warning[data-v-0d0fe6ed]{color:oklch(55% .15 85);background:oklch(85% .12 85/.1);border-bottom-color:oklch(75% .12 85/.2)}.dark .devtools-alert-warning[data-v-0d0fe6ed]{color:oklch(80% .12 85);background:oklch(45% .12 85/.15)}.devtools-alert-success[data-v-0d0fe6ed]{color:oklch(50% .15 145);background:oklch(75% .15 145/.12);border-bottom-color:oklch(65% .12 145/.2)}.dark .devtools-alert-success[data-v-0d0fe6ed]{color:oklch(75% .18 145);background:oklch(50% .15 145/.15)}.devtools-alert-production[data-v-0d0fe6ed]{color:oklch(45% .15 145);background:oklch(85% .12 145/.1);border-bottom-color:oklch(75% .12 145/.2)}.dark .devtools-alert-production[data-v-0d0fe6ed]{color:oklch(75% .12 145);background:oklch(35% .08 145/.15)}
|