@unhead/schema-org 1.8.0 → 1.8.1
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
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as UnheadSchemaOrg } from './shared/schema-org.
|
|
2
|
-
export { H as HowToId, a0 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, W as PrimaryWebPageId, Z as PrimaryWebSiteId, L as ProductId, R as RecipeId, a1 as SchemaOrgUnheadPlugin, K as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, a as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as howToResolver, y as howToStepDirectionResolver, x as howToStepResolver, A as imageResolver, z as itemListResolver, B as jobPostingResolver, C as listItemResolver, D as localBusinessResolver, E as movieResolver, n as normaliseNodes, F as offerResolver, G as openingHoursResolver, I as organizationResolver, J as personResolver, u as placeResolver, M as productResolver, N as questionResolver, O as ratingResolver, Y as readActionResolver, Q as recipeResolver, r as resolveMeta, b as resolveNode, e as resolveNodeId, f as resolveRelation, T as reviewResolver, $ as searchActionResolver, S as softwareAppResolver, V as videoResolver, v as virtualLocationResolver, X as webPageResolver, _ as webSiteResolver } from './shared/schema-org.
|
|
1
|
+
import { U as UnheadSchemaOrg } from './shared/schema-org.792f9fa2.mjs';
|
|
2
|
+
export { H as HowToId, a0 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, W as PrimaryWebPageId, Z as PrimaryWebSiteId, L as ProductId, R as RecipeId, a1 as SchemaOrgUnheadPlugin, K as addressResolver, g as aggregateOfferResolver, h as aggregateRatingResolver, i as articleResolver, j as bookEditionResolver, l as bookResolver, o as breadcrumbResolver, p as commentResolver, q as courseResolver, c as createSchemaOrgGraph, a as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as howToResolver, y as howToStepDirectionResolver, x as howToStepResolver, A as imageResolver, z as itemListResolver, B as jobPostingResolver, C as listItemResolver, D as localBusinessResolver, E as movieResolver, n as normaliseNodes, F as offerResolver, G as openingHoursResolver, I as organizationResolver, J as personResolver, u as placeResolver, M as productResolver, N as questionResolver, O as ratingResolver, Y as readActionResolver, Q as recipeResolver, r as resolveMeta, b as resolveNode, e as resolveNodeId, f as resolveRelation, T as reviewResolver, $ as searchActionResolver, S as softwareAppResolver, V as videoResolver, v as virtualLocationResolver, X as webPageResolver, _ as webSiteResolver } from './shared/schema-org.792f9fa2.mjs';
|
|
3
3
|
import { getActiveHead, useHead } from 'unhead';
|
|
4
4
|
import '@unhead/shared';
|
|
5
5
|
import 'ufo';
|
|
@@ -1980,11 +1980,12 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
|
|
|
1980
1980
|
resolvedMeta.description = tag.props.content;
|
|
1981
1981
|
} else if (tag.tag === "link" && tag.props.rel === "canonical") {
|
|
1982
1982
|
resolvedMeta.url = tag.props.href;
|
|
1983
|
-
if (resolvedMeta.url && !resolvedMeta.host)
|
|
1983
|
+
if (resolvedMeta.url && !resolvedMeta.host) {
|
|
1984
1984
|
try {
|
|
1985
1985
|
resolvedMeta.host = new URL(resolvedMeta.url).origin;
|
|
1986
1986
|
} catch {
|
|
1987
1987
|
}
|
|
1988
|
+
}
|
|
1988
1989
|
} else if (tag.tag === "meta" && tag.props.property === "og:image") {
|
|
1989
1990
|
resolvedMeta.image = tag.props.content;
|
|
1990
1991
|
} else if (tag.tag === "templateParams" && tag.props.schemaOrg) {
|
|
@@ -1982,11 +1982,12 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
|
|
|
1982
1982
|
resolvedMeta.description = tag.props.content;
|
|
1983
1983
|
} else if (tag.tag === "link" && tag.props.rel === "canonical") {
|
|
1984
1984
|
resolvedMeta.url = tag.props.href;
|
|
1985
|
-
if (resolvedMeta.url && !resolvedMeta.host)
|
|
1985
|
+
if (resolvedMeta.url && !resolvedMeta.host) {
|
|
1986
1986
|
try {
|
|
1987
1987
|
resolvedMeta.host = new URL(resolvedMeta.url).origin;
|
|
1988
1988
|
} catch {
|
|
1989
1989
|
}
|
|
1990
|
+
}
|
|
1990
1991
|
} else if (tag.tag === "meta" && tag.props.property === "og:image") {
|
|
1991
1992
|
resolvedMeta.image = tag.props.content;
|
|
1992
1993
|
} else if (tag.tag === "templateParams" && tag.props.schemaOrg) {
|
package/dist/vue.cjs
CHANGED
package/dist/vue.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as UnheadSchemaOrg } from './shared/schema-org.
|
|
2
|
-
export { a0 as PluginSchemaOrg, a1 as SchemaOrgUnheadPlugin } from './shared/schema-org.
|
|
1
|
+
import { U as UnheadSchemaOrg } from './shared/schema-org.792f9fa2.mjs';
|
|
2
|
+
export { a0 as PluginSchemaOrg, a1 as SchemaOrgUnheadPlugin } from './shared/schema-org.792f9fa2.mjs';
|
|
3
3
|
import { injectHead, useHead } from '@unhead/vue';
|
|
4
4
|
import { defineComponent, ref, computed, unref, h } from 'vue';
|
|
5
5
|
import '@unhead/shared';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/schema-org",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Unhead Schema.org for Simple and Automated Google Rich Results",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"unhead": ">=1.7.4",
|
|
43
|
-
"@unhead/shared": "1.8.
|
|
43
|
+
"@unhead/shared": "1.8.1"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"ufo": "^1.3.1"
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"unplugin-vue-components": "^0.25.2",
|
|
50
50
|
"vue": "^3.3.7",
|
|
51
|
-
"@unhead/schema": "1.8.
|
|
52
|
-
"@unhead/shared": "1.8.
|
|
53
|
-
"@unhead/vue": "1.8.
|
|
54
|
-
"unhead": "1.8.
|
|
51
|
+
"@unhead/schema": "1.8.1",
|
|
52
|
+
"@unhead/shared": "1.8.1",
|
|
53
|
+
"@unhead/vue": "1.8.1",
|
|
54
|
+
"unhead": "1.8.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "unbuild .",
|