@unhead/addons 1.1.8 → 1.1.10

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.
@@ -364,10 +364,10 @@ const UseSeoMetaTransform = createUnplugin(() => {
364
364
  if (calleeName === "useServerSeoMeta") {
365
365
  if (output.length)
366
366
  output.push("});");
367
- output.push("useServerHead({", " meta: [");
368
- } else if (calleeName === "useSeoMeta") {
369
- output.push(" meta: [");
367
+ output.push("useServerHead({");
370
368
  }
369
+ if (meta.length)
370
+ output.push(" meta: [");
371
371
  meta.forEach((property) => {
372
372
  if (output === false)
373
373
  return;
@@ -366,10 +366,10 @@ const UseSeoMetaTransform = unplugin.createUnplugin(() => {
366
366
  if (calleeName === "useServerSeoMeta") {
367
367
  if (output.length)
368
368
  output.push("});");
369
- output.push("useServerHead({", " meta: [");
370
- } else if (calleeName === "useSeoMeta") {
371
- output.push(" meta: [");
369
+ output.push("useServerHead({");
372
370
  }
371
+ if (meta.length)
372
+ output.push(" meta: [");
373
373
  meta.forEach((property) => {
374
374
  if (output === false)
375
375
  return;
package/dist/vite.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const UseSeoMetaTransform = require('./shared/addons.cdb14016.cjs');
3
+ const UseSeoMetaTransform = require('./shared/addons.f535394e.cjs');
4
4
  require('node:url');
5
5
  require('unplugin');
6
6
  require('unplugin-ast');
package/dist/vite.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.f060f6c8.mjs';
1
+ import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.0b352d71.mjs';
2
2
  import 'node:url';
3
3
  import 'unplugin';
4
4
  import 'unplugin-ast';
package/dist/webpack.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const UseSeoMetaTransform = require('./shared/addons.cdb14016.cjs');
3
+ const UseSeoMetaTransform = require('./shared/addons.f535394e.cjs');
4
4
  require('node:url');
5
5
  require('unplugin');
6
6
  require('unplugin-ast');
package/dist/webpack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.f060f6c8.mjs';
1
+ import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.0b352d71.mjs';
2
2
  import 'node:url';
3
3
  import 'unplugin';
4
4
  import 'unplugin-ast';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/addons",
3
3
  "type": "module",
4
- "version": "1.1.8",
4
+ "version": "1.1.10",
5
5
  "packageManager": "pnpm@7.27.1",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
@@ -56,9 +56,9 @@
56
56
  "ufo": "^1.1.0",
57
57
  "unplugin": "^1.1.0",
58
58
  "unplugin-ast": "^0.7.0",
59
- "@unhead/schema": "1.1.8",
60
- "@unhead/shared": "1.1.8",
61
- "unhead": "1.1.8"
59
+ "@unhead/schema": "1.1.10",
60
+ "@unhead/shared": "1.1.10",
61
+ "unhead": "1.1.10"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@babel/types": "^7.21.2",