nuxtseo-shared 0.1.0 → 0.1.1

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/i18n.d.mts CHANGED
@@ -1,8 +1,12 @@
1
1
  import { LocaleObject, NuxtI18nOptions } from '@nuxtjs/i18n';
2
2
 
3
3
  type Strategies = 'no_prefix' | 'prefix_except_default' | 'prefix' | 'prefix_and_default';
4
+ type NormalisedLocale = LocaleObject & {
5
+ _sitemap: string;
6
+ _hreflang: string;
7
+ };
4
8
  interface AutoI18nConfig {
5
- locales: LocaleObject[];
9
+ locales: NormalisedLocale[];
6
10
  defaultLocale: string;
7
11
  strategy: Strategies;
8
12
  differentDomains?: boolean;
@@ -25,4 +29,4 @@ declare function resolveI18nConfig(logger?: {
25
29
  declare function mergeOnKey<T extends Record<string, any>>(arr: T[], key: keyof T): T[];
26
30
 
27
31
  export { generatePathForI18nPages, mapPathForI18nPages, mergeOnKey, normalizeLocales, resolveI18nConfig, splitPathForI18nLocales };
28
- export type { AutoI18nConfig, Strategies, StrategyProps };
32
+ export type { AutoI18nConfig, NormalisedLocale, Strategies, StrategyProps };
package/dist/i18n.d.ts CHANGED
@@ -1,8 +1,12 @@
1
1
  import { LocaleObject, NuxtI18nOptions } from '@nuxtjs/i18n';
2
2
 
3
3
  type Strategies = 'no_prefix' | 'prefix_except_default' | 'prefix' | 'prefix_and_default';
4
+ type NormalisedLocale = LocaleObject & {
5
+ _sitemap: string;
6
+ _hreflang: string;
7
+ };
4
8
  interface AutoI18nConfig {
5
- locales: LocaleObject[];
9
+ locales: NormalisedLocale[];
6
10
  defaultLocale: string;
7
11
  strategy: Strategies;
8
12
  differentDomains?: boolean;
@@ -25,4 +29,4 @@ declare function resolveI18nConfig(logger?: {
25
29
  declare function mergeOnKey<T extends Record<string, any>>(arr: T[], key: keyof T): T[];
26
30
 
27
31
  export { generatePathForI18nPages, mapPathForI18nPages, mergeOnKey, normalizeLocales, resolveI18nConfig, splitPathForI18nLocales };
28
- export type { AutoI18nConfig, Strategies, StrategyProps };
32
+ export type { AutoI18nConfig, NormalisedLocale, Strategies, StrategyProps };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxtseo-shared",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Shared utilities for Nuxt SEO modules.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",