@unhead/schema-org 1.8.0-beta.9 → 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
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const plugin = require('./shared/schema-org.508fa88d.cjs');
3
+ const plugin = require('./shared/schema-org.a8dde0e3.cjs');
4
4
  const unhead = require('unhead');
5
5
  require('@unhead/shared');
6
6
  require('ufo');
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UnheadSchemaOrg } from './shared/schema-org.662e1dca.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.662e1dca.mjs';
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,8 +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)
1984
- resolvedMeta.host = new URL(resolvedMeta.url).origin;
1983
+ if (resolvedMeta.url && !resolvedMeta.host) {
1984
+ try {
1985
+ resolvedMeta.host = new URL(resolvedMeta.url).origin;
1986
+ } catch {
1987
+ }
1988
+ }
1985
1989
  } else if (tag.tag === "meta" && tag.props.property === "og:image") {
1986
1990
  resolvedMeta.image = tag.props.content;
1987
1991
  } else if (tag.tag === "templateParams" && tag.props.schemaOrg) {
@@ -1982,8 +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)
1986
- resolvedMeta.host = new URL(resolvedMeta.url).origin;
1985
+ if (resolvedMeta.url && !resolvedMeta.host) {
1986
+ try {
1987
+ resolvedMeta.host = new URL(resolvedMeta.url).origin;
1988
+ } catch {
1989
+ }
1990
+ }
1987
1991
  } else if (tag.tag === "meta" && tag.props.property === "og:image") {
1988
1992
  resolvedMeta.image = tag.props.content;
1989
1993
  } else if (tag.tag === "templateParams" && tag.props.schemaOrg) {
package/dist/vue.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const plugin = require('./shared/schema-org.508fa88d.cjs');
3
+ const plugin = require('./shared/schema-org.a8dde0e3.cjs');
4
4
  const vue = require('@unhead/vue');
5
5
  const vue$1 = require('vue');
6
6
  require('@unhead/shared');
package/dist/vue.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UnheadSchemaOrg } from './shared/schema-org.662e1dca.mjs';
2
- export { a0 as PluginSchemaOrg, a1 as SchemaOrgUnheadPlugin } from './shared/schema-org.662e1dca.mjs';
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.0-beta.9",
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,18 +40,18 @@
40
40
  ],
41
41
  "peerDependencies": {
42
42
  "unhead": ">=1.7.4",
43
- "@unhead/shared": "1.8.0-beta.9"
43
+ "@unhead/shared": "1.8.1"
44
44
  },
45
45
  "dependencies": {
46
46
  "ufo": "^1.3.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "unplugin-vue-components": "^0.25.2",
50
- "vue": "^3.3.4",
51
- "@unhead/schema": "1.8.0-beta.9",
52
- "@unhead/shared": "1.8.0-beta.9",
53
- "@unhead/vue": "1.8.0-beta.9",
54
- "unhead": "1.8.0-beta.9"
50
+ "vue": "^3.3.7",
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 .",