nuxt-og-image 5.1.7 → 5.1.9
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 +1 -15
- package/dist/client/404.html +1 -15
- package/dist/client/_nuxt/C0O1sPH1.js +4017 -0
- package/dist/client/_nuxt/C83k_r4_.js +1 -0
- package/dist/client/_nuxt/DAn4LZxu.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/9c728642-f464-4f02-9cbc-65fa9d60f818.json +1 -0
- package/dist/client/_nuxt/entry.Hpb5KO2G.css +1 -0
- package/dist/client/_nuxt/error-404.D1qMyH7R.css +1 -0
- package/dist/client/_nuxt/error-500.C-aGJHmP.css +1 -0
- package/dist/client/index.html +1 -15
- package/dist/content.cjs +7 -5
- package/dist/content.d.cts +18 -2
- package/dist/content.d.mts +18 -2
- package/dist/content.d.ts +18 -2
- package/dist/content.mjs +7 -6
- package/dist/module.cjs +35 -43
- package/dist/module.json +2 -3
- package/dist/module.mjs +37 -45
- package/dist/runtime/app/components/OgImage/OgImage.js +1 -1
- package/dist/runtime/app/components/OgImage/OgImageScreenshot.js +1 -1
- package/dist/runtime/app/components/Templates/Community/BrandedLogo.vue.d.ts +1 -4
- package/dist/runtime/app/components/Templates/Community/Frame.vue.d.ts +1 -3
- package/dist/runtime/app/components/Templates/Community/Nuxt.vue.d.ts +1 -5
- package/dist/runtime/app/components/Templates/Community/NuxtSeo.vue +2 -2
- package/dist/runtime/app/components/Templates/Community/NuxtSeo.vue.d.ts +1 -4
- package/dist/runtime/app/components/Templates/Community/Pergel.vue.d.ts +1 -5
- package/dist/runtime/app/components/Templates/Community/SimpleBlog.vue +2 -1
- package/dist/runtime/app/components/Templates/Community/SimpleBlog.vue.d.ts +1 -3
- package/dist/runtime/app/components/Templates/Community/UnJs.vue +1 -1
- package/dist/runtime/app/components/Templates/Community/UnJs.vue.d.ts +1 -8
- package/dist/runtime/app/components/Templates/Community/Wave.vue.d.ts +1 -3
- package/dist/runtime/app/components/Templates/Community/WithEmoji.vue.d.ts +1 -4
- package/dist/runtime/app/composables/defineOgImage.js +11 -23
- package/dist/runtime/app/composables/defineOgImageScreenshot.js +2 -1
- package/dist/runtime/app/plugins/__zero-runtime/og-image-canonical-urls.server.js +1 -1
- package/dist/runtime/app/plugins/__zero-runtime/route-rule-og-image.server.js +1 -1
- package/dist/runtime/app/plugins/og-image-canonical-urls.server.js +4 -2
- package/dist/runtime/app/plugins/route-rule-og-image.server.js +4 -2
- package/dist/runtime/app/utils/plugins.d.ts +3 -3
- package/dist/runtime/app/utils/plugins.js +15 -12
- package/dist/runtime/app/utils.d.ts +3 -1
- package/dist/runtime/app/utils.js +23 -5
- package/dist/runtime/server/og-image/bindings/chromium/on-demand.js +8 -3
- package/dist/runtime/server/og-image/chromium/screenshot.js +5 -4
- package/dist/runtime/server/og-image/context.js +14 -9
- package/dist/runtime/server/og-image/satori/font.js +4 -3
- package/dist/runtime/server/og-image/satori/plugins/flex.js +1 -1
- package/dist/runtime/server/og-image/satori/plugins/imageSrc.js +11 -6
- package/dist/runtime/server/og-image/satori/plugins/unocss.js +13 -7
- package/dist/runtime/server/og-image/satori/renderer.js +5 -2
- package/dist/runtime/server/og-image/satori/transforms/emojis.d.ts +2 -2
- package/dist/runtime/server/og-image/satori/transforms/inlineCss.d.ts +1 -1
- package/dist/runtime/server/og-image/satori/transforms/inlineCss.js +6 -5
- package/dist/runtime/server/og-image/templates/html.js +2 -1
- package/dist/runtime/server/plugins/__zero-runtime/nuxt-content-v2.d.ts +1 -1
- package/dist/runtime/server/plugins/__zero-runtime/nuxt-content-v2.js +1 -1
- package/dist/runtime/server/plugins/nuxt-content-v2.d.ts +1 -1
- package/dist/runtime/server/plugins/nuxt-content-v2.js +1 -1
- package/dist/runtime/server/plugins/prerender.d.ts +1 -1
- package/dist/runtime/server/plugins/prerender.js +3 -3
- package/dist/runtime/server/routes/debug.json.js +2 -2
- package/dist/runtime/server/util/cache.js +2 -2
- package/dist/runtime/server/util/eventHandlers.js +5 -4
- package/dist/runtime/server/util/kit.d.ts +2 -2
- package/dist/runtime/server/util/kit.js +1 -1
- package/dist/runtime/server/util/plugins.js +3 -2
- package/dist/runtime/server/utils.d.ts +4 -0
- package/dist/runtime/server/utils.js +20 -0
- package/dist/runtime/shared.d.ts +13 -4
- package/dist/runtime/shared.js +103 -17
- package/dist/runtime/types.d.ts +15 -1
- package/package.json +38 -31
- package/{virtual.d.ts → types/virtual.d.ts} +11 -2
- package/dist/client/_nuxt/BuG-6Qss.js +0 -4017
- package/dist/client/_nuxt/CN8iCxzm.js +0 -1
- package/dist/client/_nuxt/DK6ySO-b.js +0 -1
- package/dist/client/_nuxt/builds/meta/a8d773e2-13ae-466e-b246-42e9659ce587.json +0 -1
- package/dist/client/_nuxt/entry.BVkKIlAn.css +0 -1
- package/dist/client/_nuxt/error-404.CWHu2lpK.css +0 -1
- package/dist/client/_nuxt/error-500.xMt3qmEl.css +0 -1
- package/dist/runtime/pure.d.ts +0 -9
- package/dist/runtime/pure.js +0 -105
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.9",
|
|
5
5
|
"description": "Enlightened OG Image generation for Nuxt.",
|
|
6
6
|
"author": {
|
|
7
7
|
"website": "https://harlanzw.com",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist",
|
|
41
|
-
"virtual.d.ts"
|
|
41
|
+
"types/virtual.d.ts"
|
|
42
42
|
],
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=18.0.0"
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"unstorage": "^1.15.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@nuxt/devtools-kit": "^2.
|
|
52
|
-
"@nuxt/kit": "^3.17.
|
|
51
|
+
"@nuxt/devtools-kit": "^2.6.2",
|
|
52
|
+
"@nuxt/kit": "^3.17.6",
|
|
53
53
|
"@resvg/resvg-js": "^2.6.2",
|
|
54
54
|
"@resvg/resvg-wasm": "^2.6.2",
|
|
55
|
-
"@unocss/core": "^66.2
|
|
56
|
-
"@unocss/preset-wind3": "^66.2
|
|
55
|
+
"@unocss/core": "^66.3.2",
|
|
56
|
+
"@unocss/preset-wind3": "^66.3.2",
|
|
57
57
|
"chrome-launcher": "^1.2.0",
|
|
58
58
|
"consola": "^3.4.2",
|
|
59
59
|
"defu": "^6.1.4",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"image-size": "^2.0.2",
|
|
62
62
|
"magic-string": "^0.30.17",
|
|
63
63
|
"mocked-exports": "^0.1.1",
|
|
64
|
-
"nuxt-site-config": "^3.2.
|
|
64
|
+
"nuxt-site-config": "^3.2.2",
|
|
65
65
|
"nypm": "^0.6.0",
|
|
66
66
|
"ofetch": "^1.4.1",
|
|
67
67
|
"ohash": "^2.0.11",
|
|
68
68
|
"pathe": "^2.0.3",
|
|
69
|
-
"pkg-types": "^2.
|
|
70
|
-
"playwright-core": "^1.53.
|
|
69
|
+
"pkg-types": "^2.2.0",
|
|
70
|
+
"playwright-core": "^1.53.2",
|
|
71
71
|
"radix3": "^1.1.2",
|
|
72
72
|
"satori": "^0.15.2",
|
|
73
73
|
"satori-html": "^0.3.2",
|
|
@@ -80,43 +80,48 @@
|
|
|
80
80
|
"yoga-wasm-web": "^0.3.3"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@antfu/eslint-config": "^4.
|
|
84
|
-
"@css-inline/css-inline": "^0.
|
|
83
|
+
"@antfu/eslint-config": "^4.16.2",
|
|
84
|
+
"@css-inline/css-inline": "^0.15.0",
|
|
85
85
|
"@headlessui/vue": "^1.7.23",
|
|
86
|
-
"@iconify-json/carbon": "^1.2.
|
|
86
|
+
"@iconify-json/carbon": "^1.2.10",
|
|
87
87
|
"@iconify-json/logos": "^1.2.4",
|
|
88
88
|
"@iconify-json/noto": "^1.2.3",
|
|
89
89
|
"@iconify-json/ri": "^1.2.5",
|
|
90
90
|
"@iconify-json/tabler": "^1.2.19",
|
|
91
91
|
"@img/sharp-linux-x64": "^0.34.2",
|
|
92
|
-
"@nuxt/content": "^3.6.
|
|
93
|
-
"@nuxt/devtools": "^2.
|
|
94
|
-
"@nuxt/devtools-ui-kit": "^2.
|
|
95
|
-
"@nuxt/icon": "^1.
|
|
92
|
+
"@nuxt/content": "^3.6.3",
|
|
93
|
+
"@nuxt/devtools": "^2.6.2",
|
|
94
|
+
"@nuxt/devtools-ui-kit": "^2.6.2",
|
|
95
|
+
"@nuxt/icon": "^1.15.0",
|
|
96
96
|
"@nuxt/image": "^1.10.0",
|
|
97
97
|
"@nuxt/module-builder": "^1.0.1",
|
|
98
|
-
"@nuxt/test-utils": "^3.19.
|
|
99
|
-
"@nuxt/ui": "^3.
|
|
98
|
+
"@nuxt/test-utils": "^3.19.2",
|
|
99
|
+
"@nuxt/ui": "^3.2.0",
|
|
100
100
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
101
101
|
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
|
102
|
-
"@nuxtjs/i18n": "^9.5.
|
|
102
|
+
"@nuxtjs/i18n": "^9.5.6",
|
|
103
103
|
"@nuxtjs/tailwindcss": "^6.14.0",
|
|
104
|
-
"@unocss/nuxt": "^66.2
|
|
105
|
-
"@unocss/preset-icons": "^66.2
|
|
106
|
-
"@unocss/runtime": "^66.2
|
|
107
|
-
"@vueuse/nuxt": "^13.
|
|
104
|
+
"@unocss/nuxt": "^66.3.2",
|
|
105
|
+
"@unocss/preset-icons": "^66.3.2",
|
|
106
|
+
"@unocss/runtime": "^66.3.2",
|
|
107
|
+
"@vueuse/nuxt": "^13.5.0",
|
|
108
108
|
"bumpp": "^10.2.0",
|
|
109
|
-
"eslint": "^9.
|
|
109
|
+
"eslint": "^9.30.1",
|
|
110
110
|
"happy-dom": "^18.0.1",
|
|
111
111
|
"jest-image-snapshot": "^6.5.1",
|
|
112
|
-
"nuxt": "^3.17.
|
|
113
|
-
"playwright": "^1.53.
|
|
112
|
+
"nuxt": "^3.17.6",
|
|
113
|
+
"playwright": "^1.53.2",
|
|
114
114
|
"sass": "^1.89.2",
|
|
115
115
|
"sharp": "^0.34.2",
|
|
116
116
|
"typescript": "^5.8.3",
|
|
117
|
-
"unocss": "^66.2
|
|
117
|
+
"unocss": "^66.3.2",
|
|
118
118
|
"vitest": "^3.2.4",
|
|
119
|
-
"vue-tsc": "^
|
|
119
|
+
"vue-tsc": "^3.0.1"
|
|
120
|
+
},
|
|
121
|
+
"resolutions": {
|
|
122
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.0.0-29191554.69345c32",
|
|
123
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.0.0-29191554.69345c32",
|
|
124
|
+
"nuxt": "npm:nuxt-nightly@4.0.0-29191554.69345c32"
|
|
120
125
|
},
|
|
121
126
|
"scripts": {
|
|
122
127
|
"stub": "nuxt-build-module build --stub && nuxt-module-build prepare",
|
|
@@ -124,13 +129,15 @@
|
|
|
124
129
|
"build:client": "nuxi generate client",
|
|
125
130
|
"build:module": "nuxt-build-module build",
|
|
126
131
|
"client:dev": "nuxi dev client --port 3030",
|
|
127
|
-
"lint": "eslint .
|
|
132
|
+
"lint": "eslint .",
|
|
133
|
+
"lint:fix": "eslint . --fix",
|
|
128
134
|
"dev": "nuxi dev playground",
|
|
129
135
|
"dev:build": "nuxi build playground",
|
|
130
|
-
"
|
|
136
|
+
"prepare:fixtures": "nuxi prepare test/fixtures/basic",
|
|
137
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare client && pnpm run prepare:fixtures",
|
|
131
138
|
"release": "pnpm build && bumpp && pnpm -r publish --no-git-checks",
|
|
132
139
|
"typecheck": "tsc --noEmit",
|
|
133
|
-
"test": "vitest",
|
|
140
|
+
"test": "pnpm run prepare:fixtures && vitest",
|
|
134
141
|
"test:chrome": "HAS_CHROME=true vitest"
|
|
135
142
|
}
|
|
136
143
|
}
|
|
@@ -5,13 +5,13 @@ declare module '#og-image/components' {
|
|
|
5
5
|
export default components
|
|
6
6
|
}
|
|
7
7
|
declare module '#og-image/renderers/satori' {
|
|
8
|
-
import type Renderer from '
|
|
8
|
+
import type Renderer from '#og-image/types'
|
|
9
9
|
|
|
10
10
|
const renderer: Renderer | { __mock__: true } | undefined
|
|
11
11
|
export default renderer
|
|
12
12
|
}
|
|
13
13
|
declare module '#og-image/renderers/chromium' {
|
|
14
|
-
import type Renderer from '
|
|
14
|
+
import type Renderer from '#og-image/types'
|
|
15
15
|
|
|
16
16
|
const renderer: Renderer | { __mock__: true } | undefined
|
|
17
17
|
export default renderer
|
|
@@ -69,3 +69,12 @@ declare module '#og-image-cache' {
|
|
|
69
69
|
|
|
70
70
|
export const emojiCache: Storage<string>
|
|
71
71
|
}
|
|
72
|
+
|
|
73
|
+
declare module '@css-inline/css-inline-wasm' {
|
|
74
|
+
export function inline(css: string, html: string): string
|
|
75
|
+
export default function init(): Promise<void>
|
|
76
|
+
const cssInline: {
|
|
77
|
+
inline: (css: string, html: string) => string
|
|
78
|
+
}
|
|
79
|
+
export { cssInline }
|
|
80
|
+
}
|