@unhead/addons 1.11.9 → 1.11.11
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
|
-
|
|
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
|
-
|
|
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
package/dist/vite.mjs
CHANGED
package/dist/webpack.cjs
CHANGED
package/dist/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unhead/addons",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.11",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
"dist"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@rollup/pluginutils": "^5.1.
|
|
53
|
-
"magic-string": "^0.30.
|
|
54
|
-
"mlly": "^1.7.
|
|
52
|
+
"@rollup/pluginutils": "^5.1.3",
|
|
53
|
+
"magic-string": "^0.30.12",
|
|
54
|
+
"mlly": "^1.7.2",
|
|
55
55
|
"ufo": "^1.5.4",
|
|
56
|
-
"unplugin": "^1.
|
|
56
|
+
"unplugin": "^1.15.0",
|
|
57
57
|
"unplugin-ast": "^0.10.0",
|
|
58
|
-
"@unhead/
|
|
59
|
-
"@unhead/
|
|
58
|
+
"@unhead/shared": "1.11.11",
|
|
59
|
+
"@unhead/schema": "1.11.11"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@babel/types": "^7.
|
|
62
|
+
"@babel/types": "^7.26.0",
|
|
63
63
|
"estree-walker": "^3.0.3"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|