@unhead/schema-org 1.11.12 → 1.11.13

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.f5bc531c.cjs');
3
+ const plugin = require('./shared/schema-org.bad51ab7.cjs');
4
4
  const unhead = require('unhead');
5
5
  require('ufo');
6
6
  require('ohash');
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UnheadSchemaOrg } from './shared/schema-org.ac0c24a5.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.ac0c24a5.mjs';
1
+ import { U as UnheadSchemaOrg } from './shared/schema-org.5caec424.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.5caec424.mjs';
3
3
  import { getActiveHead, useHead } from 'unhead';
4
4
  import 'ufo';
5
5
  import 'ohash';
@@ -1573,7 +1573,6 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
1573
1573
  },
1574
1574
  "tag:normalise": async ({ tag }) => {
1575
1575
  if (tag.tag === "script" && tag.props.type === "application/ld+json" && tag.props.nodes) {
1576
- console.log("tag", tag);
1577
1576
  const { loadResolver } = await Promise.resolve().then(function () { return resolver; });
1578
1577
  const nodes = await tag.props.nodes;
1579
1578
  for (const node of Array.isArray(nodes) ? nodes : [nodes]) {
@@ -1642,6 +1641,7 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
1642
1641
  for (const k in ctx.tags) {
1643
1642
  const tag = ctx.tags[k];
1644
1643
  if (tag.props.type === "application/ld+json" && tag.props.nodes || tag.key === "schema-org-graph") {
1644
+ delete tag.props.nodes;
1645
1645
  if (typeof firstNodeKey === "undefined") {
1646
1646
  firstNodeKey = k;
1647
1647
  continue;
@@ -1575,7 +1575,6 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
1575
1575
  },
1576
1576
  "tag:normalise": async ({ tag }) => {
1577
1577
  if (tag.tag === "script" && tag.props.type === "application/ld+json" && tag.props.nodes) {
1578
- console.log("tag", tag);
1579
1578
  const { loadResolver } = await Promise.resolve().then(function () { return resolver; });
1580
1579
  const nodes = await tag.props.nodes;
1581
1580
  for (const node of Array.isArray(nodes) ? nodes : [nodes]) {
@@ -1644,6 +1643,7 @@ function SchemaOrgUnheadPlugin(config, meta, options) {
1644
1643
  for (const k in ctx.tags) {
1645
1644
  const tag = ctx.tags[k];
1646
1645
  if (tag.props.type === "application/ld+json" && tag.props.nodes || tag.key === "schema-org-graph") {
1646
+ delete tag.props.nodes;
1647
1647
  if (typeof firstNodeKey === "undefined") {
1648
1648
  firstNodeKey = k;
1649
1649
  continue;
package/dist/vue.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const plugin = require('./shared/schema-org.f5bc531c.cjs');
3
+ const plugin = require('./shared/schema-org.bad51ab7.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.ac0c24a5.mjs';
2
- export { a1 as PluginSchemaOrg, a2 as SchemaOrgUnheadPlugin } from './shared/schema-org.ac0c24a5.mjs';
1
+ import { U as UnheadSchemaOrg } from './shared/schema-org.5caec424.mjs';
2
+ export { a1 as PluginSchemaOrg, a2 as SchemaOrgUnheadPlugin } from './shared/schema-org.5caec424.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.12",
4
+ "version": "1.11.13",
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",
@@ -67,10 +67,10 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "unplugin-vue-components": "^0.27.4",
70
- "@unhead/schema": "1.11.12",
71
- "@unhead/shared": "1.11.12",
72
- "@unhead/vue": "1.11.12",
73
- "unhead": "1.11.12"
70
+ "@unhead/schema": "1.11.13",
71
+ "@unhead/shared": "1.11.13",
72
+ "@unhead/vue": "1.11.13",
73
+ "unhead": "1.11.13"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "unbuild .",