vue-i18n-routing
Advanced tools
Comparing version 0.12.2 to 0.13.0-9686ab3
@@ -816,3 +816,10 @@ var VueI18nRouting = function(exports, VueRouter3, vueDemi, vueI18nBridge) { | ||
addHreflangLinks.call(this, locales, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute); | ||
addCanonicalLinks.call(this, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute, addSeoAttributes); | ||
addCanonicalLinksAndOgUrl.call( | ||
this, | ||
vueDemi.unref(i18n.baseUrl), | ||
metaObject.link, | ||
metaObject.meta, | ||
identifierAttribute, | ||
addSeoAttributes | ||
); | ||
addCurrentOgLocale(currentLocale, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
@@ -865,3 +872,3 @@ addAlternateOgLocales(locales, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
} | ||
function addCanonicalLinks(baseUrl, link, identifierAttribute, seoAttributesOptions) { | ||
function addCanonicalLinksAndOgUrl(baseUrl, link, meta, identifierAttribute, seoAttributesOptions) { | ||
const route = this.route; | ||
@@ -898,2 +905,7 @@ const currentRoute = localeRoute.call(this, { | ||
}); | ||
meta.push({ | ||
[identifierAttribute]: "i18n-og-url", | ||
property: "og:url", | ||
content: href | ||
}); | ||
} | ||
@@ -1123,3 +1135,3 @@ } | ||
} | ||
const VERSION = "0.12.2"; | ||
const VERSION = "0.13.0"; | ||
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; | ||
@@ -1126,0 +1138,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION; |
@@ -819,3 +819,10 @@ "use strict"; | ||
addHreflangLinks.call(this, locales, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute); | ||
addCanonicalLinks.call(this, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute, addSeoAttributes); | ||
addCanonicalLinksAndOgUrl.call( | ||
this, | ||
vueDemi.unref(i18n.baseUrl), | ||
metaObject.link, | ||
metaObject.meta, | ||
identifierAttribute, | ||
addSeoAttributes | ||
); | ||
addCurrentOgLocale(currentLocale, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
@@ -868,3 +875,3 @@ addAlternateOgLocales(locales, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
} | ||
function addCanonicalLinks(baseUrl, link, identifierAttribute, seoAttributesOptions) { | ||
function addCanonicalLinksAndOgUrl(baseUrl, link, meta, identifierAttribute, seoAttributesOptions) { | ||
const route = this.route; | ||
@@ -901,2 +908,7 @@ const currentRoute = localeRoute.call(this, { | ||
}); | ||
meta.push({ | ||
[identifierAttribute]: "i18n-og-url", | ||
property: "og:url", | ||
content: href | ||
}); | ||
} | ||
@@ -1126,3 +1138,3 @@ } | ||
} | ||
const VERSION = "0.12.2"; | ||
const VERSION = "0.13.0"; | ||
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; | ||
@@ -1129,0 +1141,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION; |
{ | ||
"name": "vue-i18n-routing", | ||
"description": "The i18n routing with using vue-i18n", | ||
"version": "0.12.2", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"typecheck": "tsc -p . --noEmit", | ||
"switch:2": "vue-demi-switch 2 vue2 && vue-router-switch 3 vue-router3 && vue-i18n-switch 8 vue-i18n-legacy", | ||
"switch:3": "vue-demi-switch 3 && vue-router-switch 4 && vue-i18n-switch 9", | ||
"test": "vitest run", | ||
"test:watch": "vitest", | ||
"test:cover": "vitest --coverage", | ||
"build:docs": "api-docs-gen ./temp/vue-i18n-routing.api.json -c ./docsgen.config.js -o ./ -g noprefix" | ||
}, | ||
"version": "0.13.0-9686ab3", | ||
"dependencies": { | ||
@@ -120,3 +109,14 @@ "@intlify/shared": "next", | ||
}, | ||
"sideEffects": false | ||
} | ||
"sideEffects": false, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"typecheck": "tsc -p . --noEmit", | ||
"switch:2": "vue-demi-switch 2 vue2 && vue-router-switch 3 vue-router3 && vue-i18n-switch 8 vue-i18n-legacy", | ||
"switch:3": "vue-demi-switch 3 && vue-router-switch 4 && vue-i18n-switch 9", | ||
"test": "vitest run", | ||
"test:watch": "vitest", | ||
"test:cover": "vitest --coverage", | ||
"build:docs": "api-docs-gen ./temp/vue-i18n-routing.api.json -c ./docsgen.config.js -o ./ -g noprefix" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163693
4510