@dargmuesli/nuxt-cookie-control 6.1.4 → 6.1.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "6.1.4",
3
+ "version": "6.1.5",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { pathToFileURL } from 'node:url';
3
3
  import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, extendViteConfig, resolvePath } from '@nuxt/kit';
4
4
 
5
5
  const name = "@dargmuesli/nuxt-cookie-control";
6
- const version = "6.1.4";
6
+ const version = "6.1.5";
7
7
 
8
8
  const en = {
9
9
  accept: "Accept",
@@ -1,15 +1,6 @@
1
- import { State } from './types'
2
-
3
- declare module '#app' {
4
- interface NuxtApp {
5
- $cookies: State
6
- }
7
- }
8
-
9
- declare module '@vue/runtime-core' {
10
- interface ComponentCustomProperties {
11
- $cookies: State
12
- }
13
- }
14
-
15
- export {}
1
+ import { Plugin } from '#app';
2
+ import { State } from './types';
3
+ declare const plugin: Plugin<{
4
+ cookies: State;
5
+ }>;
6
+ export default plugin;
@@ -2,7 +2,7 @@ import { ref } from "vue";
2
2
  import { getAllCookieIdsString, getCookieId } from "./methods.mjs";
3
3
  import { defineNuxtPlugin, useCookie } from "#imports";
4
4
  import moduleOptions from "#build/cookie-control-options";
5
- export default defineNuxtPlugin((_nuxtApp) => {
5
+ const plugin = defineNuxtPlugin((_nuxtApp) => {
6
6
  const cookieIsConsentGiven = useCookie(
7
7
  moduleOptions.cookieNameIsConsentGiven,
8
8
  moduleOptions.cookieOptions
@@ -41,3 +41,4 @@ export default defineNuxtPlugin((_nuxtApp) => {
41
41
  }
42
42
  };
43
43
  });
44
+ export default plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "6.1.4",
3
+ "version": "6.1.5",
4
4
  "description": "Nuxt Cookie Control Module",
5
5
  "author": "Dario Ferderber <dario.ferderber@broj42.com>",
6
6
  "maintainers": [