@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 +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugin.d.ts +6 -15
- package/dist/runtime/plugin.mjs +2 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
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.
|
|
6
|
+
const version = "6.1.5";
|
|
7
7
|
|
|
8
8
|
const en = {
|
|
9
9
|
accept: "Accept",
|
package/dist/runtime/plugin.d.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
package/dist/runtime/plugin.mjs
CHANGED
|
@@ -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
|
-
|
|
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;
|