vue-i18n-routing
Advanced tools
Comparing version 0.12.0 to 0.12.1-19ad418
@@ -922,1 +922,33 @@ import type { Composer } from '@intlify/vue-i18n-bridge'; | ||
export { } | ||
import type { ComputedRef } from 'vue-demi' | ||
export interface ComposerCustomProperties { | ||
/** | ||
* List of locales | ||
* | ||
* @remarks | ||
* Can either be an array of string codes (e.g. `['en', 'fr']`) or an array of {@link LocaleObject} for more complex configurations | ||
*/ | ||
locales: ComputedRef<string[] | LocaleObject[]> | ||
/** | ||
* List of locale codes | ||
*/ | ||
localeCodes: ComputedRef<string[]> | ||
/** | ||
* Base URL that is used in generating canonical links | ||
*/ | ||
baseUrl: ComputedRef<string> | ||
} | ||
declare module 'vue-i18n' { | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface ComposerCustom extends ComposerCustomProperties {} | ||
} | ||
declare module 'vue-i18n-bridge' { | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface ComposerCustom extends ComposerCustomProperties {} | ||
} | ||
declare module '@intlify/vue-i18n-bridge' { | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface ComposerCustom extends ComposerCustomProperties {} | ||
} |
@@ -29,3 +29,2 @@ var VueI18nRouting = function(exports, VueRouter3, vueDemi, vueI18nBridge) { | ||
const isString = (val) => typeof val === "string"; | ||
const isBoolean = (val) => typeof val === "boolean"; | ||
const isSymbol = (val) => typeof val === "symbol"; | ||
@@ -472,3 +471,3 @@ const isObject = (val) => val !== null && typeof val === "object"; | ||
function isPluginOptions(options) { | ||
return isObject(options) && ("inject" in options || "__composerExtend" in options || "__vueI18nExtend" in options) && isBoolean(options.inject); | ||
return isObject(options) && ("inject" in options || "__composerExtend" in options || "__vueI18nExtend" in options); | ||
} | ||
@@ -1123,3 +1122,3 @@ const GlobalOptionsRegistory = makeSymbol("vue-i18n-routing-gor"); | ||
} | ||
const VERSION = "0.12.0"; | ||
const VERSION = "0.12.1"; | ||
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; | ||
@@ -1126,0 +1125,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION; |
@@ -32,3 +32,2 @@ "use strict"; | ||
const isString = (val) => typeof val === "string"; | ||
const isBoolean = (val) => typeof val === "boolean"; | ||
const isSymbol = (val) => typeof val === "symbol"; | ||
@@ -475,3 +474,3 @@ const isObject = (val) => val !== null && typeof val === "object"; | ||
function isPluginOptions(options) { | ||
return isObject(options) && ("inject" in options || "__composerExtend" in options || "__vueI18nExtend" in options) && isBoolean(options.inject); | ||
return isObject(options) && ("inject" in options || "__composerExtend" in options || "__vueI18nExtend" in options); | ||
} | ||
@@ -1126,3 +1125,3 @@ const GlobalOptionsRegistory = makeSymbol("vue-i18n-routing-gor"); | ||
} | ||
const VERSION = "0.12.0"; | ||
const VERSION = "0.12.1"; | ||
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; | ||
@@ -1129,0 +1128,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION; |
{ | ||
"name": "vue-i18n-routing", | ||
"description": "The i18n routing with using vue-i18n", | ||
"version": "0.12.0", | ||
"version": "0.12.1-19ad418", | ||
"dependencies": { | ||
@@ -6,0 +6,0 @@ "@intlify/shared": "next", |
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
163084
11
4474