@dargmuesli/nuxt-cookie-control 3.0.0-beta.6 → 3.0.0-beta.7
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/README.md +2 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/methods.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Continuing Dario Ferderber's work on [gitlab.com/broj42/nuxt-cookie-control](https://gitlab.com/broj42/nuxt-cookie-control).
|
|
8
8
|
|
|
9
|
+
🚩 **Make sure to read the Migration instructions for all major version updates like [v2.0.0](https://github.com/dargmuesli/nuxt-cookie-control/releases/tag/2.0.0), [v3.0.0](https://github.com/dargmuesli/nuxt-cookie-control/releases/tag/3.0.0) and following!**
|
|
10
|
+
|
|
9
11
|
Try it out here:
|
|
10
12
|
[Nuxt.js Cookie Control](https://codesandbox.io/s/vkwqmm577)
|
|
11
13
|
|
package/dist/module.json
CHANGED
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 = "3.0.0-beta.
|
|
5
|
+
const version = "3.0.0-beta.7";
|
|
6
6
|
|
|
7
7
|
const en = {
|
|
8
8
|
acceptAll: "Accept all",
|
package/dist/runtime/methods.mjs
CHANGED
|
@@ -15,7 +15,7 @@ export const resolveTranslatable = (translatable, locale = LOCALE_DEFAULT) => {
|
|
|
15
15
|
throw new Error(`Could not get translation for locale ${locale}.`);
|
|
16
16
|
return result;
|
|
17
17
|
};
|
|
18
|
-
export const setCookie = (name, value, options) => Cookies.set(name, value, options);
|
|
18
|
+
export const setCookie = (name, value, options) => Cookies.set(name, value, { sameSite: "Strict", ...options });
|
|
19
19
|
export const useResolveTranslatable = (locale = LOCALE_DEFAULT) => {
|
|
20
20
|
return (translatable) => resolveTranslatable(translatable, locale);
|
|
21
21
|
};
|