nuxt-seo-utils 7.0.17 → 7.0.18
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/module.json +1 -1
- package/dist/module.mjs +2 -1
- package/dist/runtime/app/logic/applyDefaults.js +4 -1
- package/package.json +19 -19
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -544,10 +544,11 @@ export {}
|
|
|
544
544
|
nuxt: true
|
|
545
545
|
});
|
|
546
546
|
const appRuntimeDir = resolve(runtimeDir, "./app");
|
|
547
|
-
if (config.treeShakeUseSeoMeta)
|
|
547
|
+
if (config.treeShakeUseSeoMeta) {
|
|
548
548
|
addVitePlugin(UnheadVite(), {
|
|
549
549
|
prepend: true
|
|
550
550
|
});
|
|
551
|
+
}
|
|
551
552
|
if (config.automaticOgAndTwitterTags)
|
|
552
553
|
addPlugin({ src: resolve(appRuntimeDir, "plugins", "inferSeoMetaPlugin") });
|
|
553
554
|
if (config.mergeWithSiteConfig)
|
|
@@ -9,7 +9,10 @@ export function applyDefaults() {
|
|
|
9
9
|
const siteConfig = useSiteConfig({
|
|
10
10
|
resolveRefs: false
|
|
11
11
|
});
|
|
12
|
-
const resolveCurrentLocale = () =>
|
|
12
|
+
const resolveCurrentLocale = () => {
|
|
13
|
+
const locale = toValue(siteConfig.currentLocale) || toValue(siteConfig.defaultLocale) || "en";
|
|
14
|
+
return locale.replace(/_/g, "-");
|
|
15
|
+
};
|
|
13
16
|
const head = injectHead();
|
|
14
17
|
head.use(TemplateParamsPlugin);
|
|
15
18
|
const { canonicalQueryWhitelist, canonicalLowercase } = useRuntimeConfig().public["seo-utils"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-seo-utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.18",
|
|
5
5
|
"description": "SEO utilities to improve your Nuxt sites discoverability and shareability",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -32,43 +32,43 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nuxt/kit": "^4.1.
|
|
36
|
-
"@unhead/addons": "^2.0.
|
|
35
|
+
"@nuxt/kit": "^4.1.3",
|
|
36
|
+
"@unhead/addons": "^2.0.19",
|
|
37
37
|
"defu": "^6.1.4",
|
|
38
38
|
"escape-string-regexp": "^5.0.0",
|
|
39
39
|
"fast-glob": "^3.3.3",
|
|
40
40
|
"image-size": "^2.0.2",
|
|
41
|
-
"nuxt-site-config": "^3.2.
|
|
41
|
+
"nuxt-site-config": "^3.2.10",
|
|
42
42
|
"pathe": "^2.0.3",
|
|
43
43
|
"pkg-types": "^2.3.0",
|
|
44
44
|
"scule": "^1.3.0",
|
|
45
|
-
"semver": "^7.7.
|
|
45
|
+
"semver": "^7.7.3",
|
|
46
46
|
"ufo": "^1.6.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@antfu/eslint-config": "^
|
|
49
|
+
"@antfu/eslint-config": "^6.0.0",
|
|
50
50
|
"@nuxt/module-builder": "^1.0.2",
|
|
51
|
-
"@nuxt/schema": "^4.1.
|
|
51
|
+
"@nuxt/schema": "^4.1.3",
|
|
52
52
|
"@nuxt/test-utils": "^3.19.2",
|
|
53
|
-
"@nuxt/ui": "^3.3.
|
|
53
|
+
"@nuxt/ui": "^3.3.6",
|
|
54
54
|
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
|
55
|
-
"@nuxtjs/i18n": "^10.1.
|
|
56
|
-
"@types/node": "^24.
|
|
57
|
-
"@unhead/vue": "^2.0.
|
|
55
|
+
"@nuxtjs/i18n": "^10.1.1",
|
|
56
|
+
"@types/node": "^24.7.2",
|
|
57
|
+
"@unhead/vue": "^2.0.19",
|
|
58
58
|
"@vue/test-utils": "^2.4.6",
|
|
59
|
-
"bumpp": "^10.
|
|
59
|
+
"bumpp": "^10.3.1",
|
|
60
60
|
"case-police": "^2.0.0",
|
|
61
61
|
"cheerio": "^1.1.2",
|
|
62
|
-
"eslint": "^9.
|
|
63
|
-
"happy-dom": "^
|
|
62
|
+
"eslint": "^9.37.0",
|
|
63
|
+
"happy-dom": "^20.0.2",
|
|
64
64
|
"markdownlint-cli": "^0.45.0",
|
|
65
|
-
"nuxt": "^4.1.
|
|
65
|
+
"nuxt": "^4.1.3",
|
|
66
66
|
"nuxt-content-twoslash": "^0.1.2",
|
|
67
|
-
"playwright-core": "^1.
|
|
68
|
-
"sass": "^1.
|
|
69
|
-
"typescript": "^5.9.
|
|
67
|
+
"playwright-core": "^1.56.0",
|
|
68
|
+
"sass": "^1.93.2",
|
|
69
|
+
"typescript": "^5.9.3",
|
|
70
70
|
"vitest": "^3.2.4",
|
|
71
|
-
"vue-tsc": "^3.0.
|
|
71
|
+
"vue-tsc": "^3.0.9"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"lint": "eslint . --fix",
|