@dargmuesli/nuxt-cookie-control 6.1.3 → 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.3",
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.3";
6
+ const version = "6.1.5";
7
7
 
8
8
  const en = {
9
9
  accept: "Accept",
@@ -152,7 +152,7 @@ const module = defineNuxtModule({
152
152
  addTemplate({
153
153
  filename: "cookie-control-options.ts",
154
154
  write: true,
155
- getContents: () => `import { ModuleOptions } from '../../src/runtime/types'
155
+ getContents: () => `import { ModuleOptions } from '#cookie-control/types'
156
156
 
157
157
  export default ${JSON.stringify(
158
158
  moduleOptions,
@@ -1,2 +1,6 @@
1
- declare const _default: any;
2
- export default _default;
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.3",
3
+ "version": "6.1.5",
4
4
  "description": "Nuxt Cookie Control Module",
5
5
  "author": "Dario Ferderber <dario.ferderber@broj42.com>",
6
6
  "maintainers": [
@@ -18,7 +18,7 @@
18
18
  "engines": {
19
19
  "node": ">=16"
20
20
  },
21
- "packageManager": "pnpm@8.6.9",
21
+ "packageManager": "pnpm@8.6.10",
22
22
  "exports": {
23
23
  ".": {
24
24
  "import": "./dist/module.mjs",
@@ -60,7 +60,7 @@
60
60
  "prettier": "3.0.0",
61
61
  "typescript": "5.1.6",
62
62
  "vue": "3.3.4",
63
- "vue-tsc": "1.8.5",
63
+ "vue-tsc": "1.8.6",
64
64
  "webpack": "5.88.2"
65
65
  },
66
66
  "publishConfig": {