@dargmuesli/nuxt-cookie-control 8.0.0-beta.2 → 8.0.0-beta.3

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 CHANGED
@@ -158,6 +158,7 @@ cookieNameCookiesEnabledIds: 'ncc_e',
158
158
  // Options to pass to nuxt's useCookie
159
159
  cookieOptions: {
160
160
  path: '/',
161
+ sameSite: 'strict',
161
162
  }
162
163
 
163
164
  // Switch to toggle the "accept necessary" button.
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "8.0.0-beta.2",
3
+ "version": "8.0.0-beta.3",
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 = "8.0.0-beta.2";
6
+ const version = "8.0.0-beta.3";
7
7
 
8
8
  const en = {
9
9
  accept: "Accept",
@@ -63,7 +63,9 @@ const DEFAULTS = {
63
63
  cookieNameIsConsentGiven: "ncc_c",
64
64
  cookieNameCookiesEnabledIds: "ncc_e",
65
65
  cookieOptions: {
66
- path: "/"
66
+ path: "/",
67
+ sameSite: "strict",
68
+ secure: process.env.NODE_ENV === "development" ? void 0 : true
67
69
  },
68
70
  isAcceptNecessaryButtonEnabled: true,
69
71
  isControlButtonEnabled: true,
@@ -44,7 +44,9 @@ export const DEFAULTS = {
44
44
  cookieNameIsConsentGiven: "ncc_c",
45
45
  cookieNameCookiesEnabledIds: "ncc_e",
46
46
  cookieOptions: {
47
- path: "/"
47
+ path: "/",
48
+ sameSite: "strict",
49
+ secure: process.env.NODE_ENV === "development" ? void 0 : true
48
50
  },
49
51
  isAcceptNecessaryButtonEnabled: true,
50
52
  isControlButtonEnabled: true,
package/package.json CHANGED
@@ -79,5 +79,5 @@
79
79
  },
80
80
  "type": "module",
81
81
  "types": "./dist/module.d.ts",
82
- "version": "8.0.0-beta.2"
82
+ "version": "8.0.0-beta.3"
83
83
  }