@unhead/schema-org 1.11.0-beta.3 → 1.11.0

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.c789b2ef.cjs');
3
+ const plugin = require('./shared/schema-org.53313bde.cjs');
4
4
  const unhead = require('unhead');
5
5
  require('ufo');
6
6
 
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UnheadSchemaOrg } from './shared/schema-org.6b1998ca.mjs';
2
- export { H as HowToId, a1 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, X as PrimaryWebPageId, _ as PrimaryWebSiteId, M as ProductId, R as RecipeId, a2 as SchemaOrgUnheadPlugin, L 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, f as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as foodEstablishmentResolver, x as howToResolver, z as howToStepDirectionResolver, y as howToStepResolver, A as imageResolver, B as itemListResolver, C as jobPostingResolver, D as listItemResolver, E as localBusinessResolver, F as movieResolver, n as normaliseNodes, G as offerResolver, I as openingHoursResolver, J as organizationResolver, K as personResolver, u as placeResolver, N as productResolver, O as questionResolver, Q as ratingResolver, Z as readActionResolver, S as recipeResolver, r as resolveMeta, a as resolveNode, b as resolveNodeId, e as resolveRelation, T as reviewResolver, a0 as searchActionResolver, V as softwareAppResolver, W as videoResolver, v as virtualLocationResolver, Y as webPageResolver, $ as webSiteResolver } from './shared/schema-org.6b1998ca.mjs';
1
+ import { U as UnheadSchemaOrg } from './shared/schema-org.a1962b95.mjs';
2
+ export { H as HowToId, a1 as PluginSchemaOrg, P as PrimaryArticleId, k as PrimaryBookId, m as PrimaryBreadcrumbId, s as PrimaryEventId, X as PrimaryWebPageId, _ as PrimaryWebSiteId, M as ProductId, R as RecipeId, a2 as SchemaOrgUnheadPlugin, L 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, f as dedupeNodes, d as defineSchemaOrgResolver, t as eventResolver, w as foodEstablishmentResolver, x as howToResolver, z as howToStepDirectionResolver, y as howToStepResolver, A as imageResolver, B as itemListResolver, C as jobPostingResolver, D as listItemResolver, E as localBusinessResolver, F as movieResolver, n as normaliseNodes, G as offerResolver, I as openingHoursResolver, J as organizationResolver, K as personResolver, u as placeResolver, N as productResolver, O as questionResolver, Q as ratingResolver, Z as readActionResolver, S as recipeResolver, r as resolveMeta, a as resolveNode, b as resolveNodeId, e as resolveRelation, T as reviewResolver, a0 as searchActionResolver, V as softwareAppResolver, W as videoResolver, v as virtualLocationResolver, Y as webPageResolver, $ as webSiteResolver } from './shared/schema-org.a1962b95.mjs';
3
3
  import { getActiveHead, useHead } from 'unhead';
4
4
  import 'ufo';
5
5
 
@@ -2160,7 +2160,7 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
2160
2160
  graph = createSchemaOrgGraph();
2161
2161
  },
2162
2162
  "tag:normalise": async ({ tag }) => {
2163
- if (tag.props.type === "application/ld+json" && tag.props.nodes) {
2163
+ if (tag.tag === "script" && tag.props.type === "application/ld+json" && tag.props.nodes) {
2164
2164
  const { loadResolver } = await Promise.resolve().then(function () { return resolver; });
2165
2165
  const nodes = await tag.props.nodes;
2166
2166
  for (const node of Array.isArray(nodes) ? nodes : [nodes]) {
@@ -2199,7 +2199,7 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
2199
2199
  },
2200
2200
  "tags:resolve": async (ctx) => {
2201
2201
  for (const tag of ctx.tags) {
2202
- if (tag.tag === "script" && tag.key === "schema-org-graph") {
2202
+ if (tag.tag === "script" && tag.props.type === "application/ld+json" && tag.props.nodes) {
2203
2203
  const minify = options?.minify || process.env.NODE_ENV === "production";
2204
2204
  tag.innerHTML = JSON.stringify({
2205
2205
  "@context": "https://schema.org",
@@ -2158,7 +2158,7 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
2158
2158
  graph = createSchemaOrgGraph();
2159
2159
  },
2160
2160
  "tag:normalise": async ({ tag }) => {
2161
- if (tag.props.type === "application/ld+json" && tag.props.nodes) {
2161
+ if (tag.tag === "script" && tag.props.type === "application/ld+json" && tag.props.nodes) {
2162
2162
  const { loadResolver } = await Promise.resolve().then(function () { return resolver; });
2163
2163
  const nodes = await tag.props.nodes;
2164
2164
  for (const node of Array.isArray(nodes) ? nodes : [nodes]) {
@@ -2197,7 +2197,7 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
2197
2197
  },
2198
2198
  "tags:resolve": async (ctx) => {
2199
2199
  for (const tag of ctx.tags) {
2200
- if (tag.tag === "script" && tag.key === "schema-org-graph") {
2200
+ if (tag.tag === "script" && tag.props.type === "application/ld+json" && tag.props.nodes) {
2201
2201
  const minify = options?.minify || process.env.NODE_ENV === "production";
2202
2202
  tag.innerHTML = JSON.stringify({
2203
2203
  "@context": "https://schema.org",
package/dist/vue.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const plugin = require('./shared/schema-org.c789b2ef.cjs');
3
+ const plugin = require('./shared/schema-org.53313bde.cjs');
4
4
  const vue = require('vue');
5
5
  const vue$1 = require('@unhead/vue');
6
6
  require('ufo');
package/dist/vue.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UnheadSchemaOrg } from './shared/schema-org.6b1998ca.mjs';
2
- export { a1 as PluginSchemaOrg, a2 as SchemaOrgUnheadPlugin } from './shared/schema-org.6b1998ca.mjs';
1
+ import { U as UnheadSchemaOrg } from './shared/schema-org.a1962b95.mjs';
2
+ export { a1 as PluginSchemaOrg, a2 as SchemaOrgUnheadPlugin } from './shared/schema-org.a1962b95.mjs';
3
3
  import { defineComponent, ref, computed, unref, h } from 'vue';
4
4
  import { injectHead, useHead } from '@unhead/vue';
5
5
  import 'ufo';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/schema-org",
3
3
  "type": "module",
4
- "version": "1.11.0-beta.3",
4
+ "version": "1.11.0",
5
5
  "description": "Unhead Schema.org for Simple and Automated Google Rich Results",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -49,10 +49,10 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "unplugin-vue-components": "^0.27.4",
52
- "@unhead/shared": "1.11.0-beta.3",
53
- "@unhead/schema": "1.11.0-beta.3",
54
- "@unhead/vue": "1.11.0-beta.3",
55
- "unhead": "1.11.0-beta.3"
52
+ "@unhead/schema": "1.11.0",
53
+ "@unhead/vue": "1.11.0",
54
+ "@unhead/shared": "1.11.0",
55
+ "unhead": "1.11.0"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "unbuild .",