@unhead/addons 1.1.7 → 1.1.9

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.
@@ -366,8 +366,9 @@ 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") {
369
+ output.push("useServerHead({");
370
+ }
371
+ if (meta.length) {
371
372
  output.push(" meta: [");
372
373
  }
373
374
  meta.forEach((property) => {
@@ -364,8 +364,9 @@ 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") {
367
+ output.push("useServerHead({");
368
+ }
369
+ if (meta.length) {
369
370
  output.push(" meta: [");
370
371
  }
371
372
  meta.forEach((property) => {
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.6abdcfe6.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.dc495f65.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.6abdcfe6.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.dc495f65.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.7",
4
+ "version": "1.1.9",
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.7",
60
- "unhead": "1.1.7",
61
- "@unhead/shared": "1.1.7"
59
+ "@unhead/schema": "1.1.9",
60
+ "@unhead/shared": "1.1.9",
61
+ "unhead": "1.1.9"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@babel/types": "^7.21.2",