@dargmuesli/nuxt-cookie-control 4.6.0 → 4.6.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/module.d.ts CHANGED
@@ -48,7 +48,7 @@ interface ModuleOptions {
48
48
  initialState: boolean;
49
49
  };
50
50
  locales: Locale[];
51
- localeTexts: PartialRecord<Locale, LocaleStrings>;
51
+ localeTexts: PartialRecord<Locale, Partial<LocaleStrings>>;
52
52
  }
53
53
 
54
54
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
package/dist/module.mjs CHANGED
@@ -2,7 +2,7 @@ import { resolve } from 'node:path';
2
2
  import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, resolvePath } from '@nuxt/kit';
3
3
 
4
4
  const name = "@dargmuesli/nuxt-cookie-control";
5
- const version = "4.6.0";
5
+ const version = "4.6.1";
6
6
 
7
7
  const en = {
8
8
  accept: "Accept",
@@ -150,7 +150,10 @@ const loadLocales = async (moduleOptions) => {
150
150
  if (!text)
151
151
  throw new Error(`Could not import text for locale ${locale}`);
152
152
  moduleOptions.locales.push(locale);
153
- moduleOptions.localeTexts[locale] = text;
153
+ moduleOptions.localeTexts[locale] = {
154
+ ...text,
155
+ ...moduleOptions.localeTexts[locale]
156
+ };
154
157
  }
155
158
  };
156
159
  const pushCss = (moduleOptions, nuxt) => {
@@ -51,7 +51,7 @@ export interface ModuleOptions {
51
51
  initialState: boolean;
52
52
  };
53
53
  locales: Locale[];
54
- localeTexts: PartialRecord<Locale, LocaleStrings>;
54
+ localeTexts: PartialRecord<Locale, Partial<LocaleStrings>>;
55
55
  }
56
56
  export declare const DEFAULTS: Required<ModuleOptions>;
57
57
  export interface State {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "Nuxt Cookies Control Module",
5
5
  "author": "Dario Ferderber <dario.ferderber@broj42.com>",
6
6
  "maintainers": [