@dargmuesli/nuxt-cookie-control 5.10.2 → 5.10.4

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": "5.10.2",
3
+ "version": "5.10.4",
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, resolvePath } from '@nuxt/kit';
4
4
 
5
5
  const name = "@dargmuesli/nuxt-cookie-control";
6
- const version = "5.10.2";
6
+ const version = "5.10.4";
7
7
 
8
8
  const en = {
9
9
  accept: "Accept",
@@ -94,7 +94,7 @@
94
94
  type="checkbox"
95
95
  :checked="
96
96
  getCookieIds(localCookiesEnabled).includes(
97
- getCookieId(cookie)
97
+ getCookieId(cookie),
98
98
  ) ||
99
99
  (cookieIsConsentGiven !== allCookieIdsString &&
100
100
  typeof moduleOptions.isIframeBlocked ===
@@ -135,7 +135,7 @@
135
135
  >
136
136
  <span
137
137
  v-for="entry in Object.entries(
138
- cookie.links || {}
138
+ cookie.links || {},
139
139
  )"
140
140
  :key="entry[0]"
141
141
  >
@@ -224,7 +224,7 @@ const localCookiesEnabled = ref([...(cookiesEnabled.value || [])])
224
224
  const allCookieIdsString = getAllCookieIdsString(moduleOptions)
225
225
  const cookieIsConsentGiven = useCookie(moduleOptions.cookieNameIsConsentGiven)
226
226
  const cookieCookiesEnabledIds = useCookie(
227
- moduleOptions.cookieNameCookiesEnabledIds
227
+ moduleOptions.cookieNameCookiesEnabledIds,
228
228
  )
229
229
 
230
230
  // computations
@@ -232,7 +232,7 @@ const isSaved = computed(
232
232
  () =>
233
233
  getCookieIds(cookiesEnabled.value || [])
234
234
  .sort()
235
- .join('|') !== getCookieIds(localCookiesEnabled.value).sort().join('|')
235
+ .join('|') !== getCookieIds(localCookiesEnabled.value).sort().join('|'),
236
236
  )
237
237
  const localeStrings = computed(() => moduleOptions.localeTexts[props.locale])
238
238
 
@@ -295,7 +295,7 @@ const setCookies = ({
295
295
  ? [
296
296
  ...moduleOptions.cookies.necessary,
297
297
  ...moduleOptions.cookies.optional.filter((cookieOptional: Cookie) =>
298
- cookiesOptionalEnabledNew.includes(cookieOptional)
298
+ cookiesOptionalEnabledNew.includes(cookieOptional),
299
299
  ),
300
300
  ]
301
301
  : []
@@ -311,7 +311,7 @@ const toggleButton = ($event: MouseEvent) => {
311
311
  }
312
312
  const toogleCookie = (cookie: Cookie) => {
313
313
  const cookieIndex = getCookieIds(localCookiesEnabled.value).indexOf(
314
- getCookieId(cookie)
314
+ getCookieId(cookie),
315
315
  )
316
316
 
317
317
  if (cookieIndex < 0) {
@@ -363,7 +363,7 @@ watch(
363
363
  getCookieIds(current || []).join('|'),
364
364
  {
365
365
  expires,
366
- }
366
+ },
367
367
  )
368
368
 
369
369
  for (const cookieEnabled of current || []) {
@@ -379,7 +379,7 @@ watch(
379
379
 
380
380
  // delete formerly enabled cookies that are now disabled
381
381
  const cookiesOptionalDisabled = moduleOptions.cookies.optional.filter(
382
- (cookieOptional) => !(current || []).includes(cookieOptional)
382
+ (cookieOptional) => !(current || []).includes(cookieOptional),
383
383
  )
384
384
 
385
385
  for (const cookieOptionalDisabled of cookiesOptionalDisabled) {
@@ -392,7 +392,7 @@ watch(
392
392
  if (cookieOptionalDisabled.src) {
393
393
  for (const script of [
394
394
  ...document.head.querySelectorAll(
395
- `script[src="${cookieOptionalDisabled.src}"]`
395
+ `script[src="${cookieOptionalDisabled.src}"]`,
396
396
  ),
397
397
  ]) {
398
398
  script.parentNode?.removeChild(script)
@@ -400,7 +400,7 @@ watch(
400
400
  }
401
401
  }
402
402
  },
403
- { deep: true }
403
+ { deep: true },
404
404
  )
405
405
  watch(isConsentGiven, (current, _previous) => {
406
406
  if (current === undefined) {
@@ -411,7 +411,7 @@ watch(isConsentGiven, (current, _previous) => {
411
411
  current ? allCookieIdsString : '0',
412
412
  {
413
413
  expires,
414
- }
414
+ },
415
415
  )
416
416
  }
417
417
  })
@@ -35,8 +35,8 @@ const { cookiesEnabled, isModalActive, moduleOptions } = useCookieControl()
35
35
  const isCookieFunctionalEnabled = computed(
36
36
  () =>
37
37
  (cookiesEnabled.value || []).filter(
38
- (cookieEnabled: Cookie) => cookieEnabled.name === 'functional'
39
- ).length > 0
38
+ (cookieEnabled: Cookie) => cookieEnabled.name === 'functional',
39
+ ).length > 0,
40
40
  )
41
41
  const localeStrings = computed(() => moduleOptions.localeTexts[props.locale])
42
42
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "5.10.2",
3
+ "version": "5.10.4",
4
4
  "description": "Nuxt Cookies 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.3",
21
+ "packageManager": "pnpm@8.6.7",
22
22
  "exports": {
23
23
  ".": {
24
24
  "import": "./dist/module.mjs",
@@ -35,32 +35,33 @@
35
35
  "scripts": {
36
36
  "build": "nuxt-module-build",
37
37
  "lint": "eslint --ext .js,.ts,.vue . && nuxt typecheck",
38
+ "lint:fix": "eslint --ext .js,.ts,.vue --fix . && nuxt typecheck --fix",
38
39
  "prepack": "pnpm build",
39
40
  "prepare": "husky install"
40
41
  },
41
42
  "dependencies": {
42
- "@nuxt/kit": "3.5.3",
43
+ "@nuxt/kit": "3.6.2",
43
44
  "@sindresorhus/slugify": "2.2.1",
44
45
  "css-vars-ponyfill": "2.4.8",
45
46
  "string-replace-loader": "3.1.0"
46
47
  },
47
48
  "devDependencies": {
48
- "@commitlint/cli": "17.6.5",
49
- "@commitlint/config-conventional": "17.6.5",
49
+ "@commitlint/cli": "17.6.6",
50
+ "@commitlint/config-conventional": "17.6.6",
50
51
  "@dargmuesli/nuxt-cookie-control": "link:.",
51
52
  "@nuxt/module-builder": "0.4.0",
52
53
  "@nuxtjs/eslint-config-typescript": "12.0.0",
53
- "eslint": "8.43.0",
54
+ "eslint": "8.44.0",
54
55
  "eslint-config-prettier": "8.8.0",
55
- "eslint-plugin-prettier": "4.2.1",
56
+ "eslint-plugin-prettier": "5.0.0",
56
57
  "husky": "8.0.3",
57
- "lint-staged": "13.2.2",
58
- "nuxt": "3.5.3",
59
- "prettier": "2.8.8",
60
- "typescript": "5.1.3",
58
+ "lint-staged": "13.2.3",
59
+ "nuxt": "3.6.2",
60
+ "prettier": "3.0.0",
61
+ "typescript": "5.1.6",
61
62
  "vue": "3.3.4",
62
- "vue-tsc": "1.8.1",
63
- "webpack": "5.87.0"
63
+ "vue-tsc": "1.8.4",
64
+ "webpack": "5.88.1"
64
65
  },
65
66
  "publishConfig": {
66
67
  "access": "public"