@unhead/addons 1.11.9 → 1.11.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.
@@ -335,8 +335,10 @@ const UseSeoMetaTransform = createUnplugin((options = {}) => {
335
335
  const importNames = {};
336
336
  for (const i of statements.flatMap((i2) => parseStaticImport(i2))) {
337
337
  if (i.namedImports) {
338
- for (const key in i.namedImports)
339
- importNames[i.namedImports[key]] = key;
338
+ for (const key in i.namedImports) {
339
+ if (key === "useSeoMeta" || key === "useServerSeoMeta")
340
+ importNames[i.namedImports[key]] = key;
341
+ }
340
342
  }
341
343
  }
342
344
  const ast = this.parse(code);
@@ -341,8 +341,10 @@ const UseSeoMetaTransform = unplugin.createUnplugin((options = {}) => {
341
341
  const importNames = {};
342
342
  for (const i of statements.flatMap((i2) => mlly.parseStaticImport(i2))) {
343
343
  if (i.namedImports) {
344
- for (const key in i.namedImports)
345
- importNames[i.namedImports[key]] = key;
344
+ for (const key in i.namedImports) {
345
+ if (key === "useSeoMeta" || key === "useServerSeoMeta")
346
+ importNames[i.namedImports[key]] = key;
347
+ }
346
348
  }
347
349
  }
348
350
  const ast = this.parse(code);
package/dist/vite.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const UseSeoMetaTransform = require('./shared/addons.0b3283ae.cjs');
3
+ const UseSeoMetaTransform = require('./shared/addons.ec57f468.cjs');
4
4
  require('node:url');
5
5
  require('ufo');
6
6
  require('unplugin');
package/dist/vite.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.cd2b345d.mjs';
1
+ import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.c17a6ac5.mjs';
2
2
  import 'node:url';
3
3
  import 'ufo';
4
4
  import 'unplugin';
package/dist/webpack.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const UseSeoMetaTransform = require('./shared/addons.0b3283ae.cjs');
3
+ const UseSeoMetaTransform = require('./shared/addons.ec57f468.cjs');
4
4
  require('node:url');
5
5
  require('ufo');
6
6
  require('unplugin');
package/dist/webpack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.cd2b345d.mjs';
1
+ import { T as TreeshakeServerComposables, U as UseSeoMetaTransform } from './shared/addons.c17a6ac5.mjs';
2
2
  import 'node:url';
3
3
  import 'ufo';
4
4
  import 'unplugin';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/addons",
3
3
  "type": "module",
4
- "version": "1.11.9",
4
+ "version": "1.11.10",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -50,16 +50,16 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "@rollup/pluginutils": "^5.1.2",
53
- "magic-string": "^0.30.11",
54
- "mlly": "^1.7.1",
53
+ "magic-string": "^0.30.12",
54
+ "mlly": "^1.7.2",
55
55
  "ufo": "^1.5.4",
56
56
  "unplugin": "^1.14.1",
57
57
  "unplugin-ast": "^0.10.0",
58
- "@unhead/schema": "1.11.9",
59
- "@unhead/shared": "1.11.9"
58
+ "@unhead/schema": "1.11.10",
59
+ "@unhead/shared": "1.11.10"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/types": "^7.25.6",
62
+ "@babel/types": "^7.25.8",
63
63
  "estree-walker": "^3.0.3"
64
64
  },
65
65
  "scripts": {