@unhead/addons 1.5.3 → 1.5.5
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ function InferSeoMetaPlugin(options = {}) {
|
|
|
24
24
|
const description = resolvedMeta.find((meta) => meta.name === "description")?.content;
|
|
25
25
|
const hasOgTitle = !!resolvedMeta.find((meta) => meta.property === "og:title");
|
|
26
26
|
const hasOgImage = !!resolvedMeta.find((meta) => meta.property === "og:image");
|
|
27
|
-
const hasTwitterCard = !!resolvedMeta.find((meta) => meta.
|
|
27
|
+
const hasTwitterCard = !!resolvedMeta.find((meta) => meta.name === "twitter:card");
|
|
28
28
|
const hasOgDescription = !!resolvedMeta.find((meta) => meta.property === "og:description");
|
|
29
29
|
entry[inputKey].meta = input.meta || [];
|
|
30
30
|
if (titleTemplate && !hasOgTitle) {
|
package/dist/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ function InferSeoMetaPlugin(options = {}) {
|
|
|
22
22
|
const description = resolvedMeta.find((meta) => meta.name === "description")?.content;
|
|
23
23
|
const hasOgTitle = !!resolvedMeta.find((meta) => meta.property === "og:title");
|
|
24
24
|
const hasOgImage = !!resolvedMeta.find((meta) => meta.property === "og:image");
|
|
25
|
-
const hasTwitterCard = !!resolvedMeta.find((meta) => meta.
|
|
25
|
+
const hasTwitterCard = !!resolvedMeta.find((meta) => meta.name === "twitter:card");
|
|
26
26
|
const hasOgDescription = !!resolvedMeta.find((meta) => meta.property === "og:description");
|
|
27
27
|
entry[inputKey].meta = input.meta || [];
|
|
28
28
|
if (titleTemplate && !hasOgTitle) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/addons",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.5",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"ufo": "^1.3.0",
|
|
56
56
|
"unplugin": "^1.4.0",
|
|
57
57
|
"unplugin-ast": "^0.8.2",
|
|
58
|
-
"@unhead/schema": "1.5.
|
|
59
|
-
"@unhead/shared": "1.5.
|
|
58
|
+
"@unhead/schema": "1.5.5",
|
|
59
|
+
"@unhead/shared": "1.5.5"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/types": "^7.22.
|
|
62
|
+
"@babel/types": "^7.22.17",
|
|
63
63
|
"estree-walker": "^3.0.3"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|