@dargmuesli/nuxt-vio 13.2.2 → 13.2.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/app.config.ts CHANGED
@@ -59,5 +59,5 @@ export type AppConfig = {
59
59
  }
60
60
 
61
61
  declare module 'nuxt/schema' {
62
- interface AppConfigInput extends AppConfig {}
62
+ interface AppConfigInput extends AppConfig {} // eslint-disable-line @typescript-eslint/no-empty-object-type
63
63
  }
@@ -26,6 +26,7 @@
26
26
 
27
27
  <script setup lang="ts">
28
28
  import type { NuxtLinkProps } from '#app'
29
+ import { append } from '../../../utils/utils' // TODO: wait for autoimport to be fixed and remove this import
29
30
 
30
31
  interface Props {
31
32
  ariaLabel?: string
@@ -28,6 +28,7 @@ const copy = async (string: string) => {
28
28
  await copyText(string)
29
29
  showToast({ title: t('donationUrlCopySuccess') })
30
30
  } catch (error: unknown) {
31
+ console.error(error)
31
32
  alert(t('donationUrlCopyError'))
32
33
  }
33
34
  }
package/nuxt.config.ts CHANGED
@@ -173,6 +173,11 @@ export default defineNuxtConfig(
173
173
  },
174
174
  locales: ['en', 'de'],
175
175
  },
176
+ eslint: {
177
+ config: {
178
+ typescript: true,
179
+ },
180
+ },
176
181
  gtag: {
177
182
  config: {
178
183
  cookie_flags: 'samesite=strict',
package/package.json CHANGED
@@ -1,64 +1,64 @@
1
1
  {
2
2
  "dependencies": {
3
- "@dargmuesli/nuxt-cookie-control": "8.4.5",
3
+ "@dargmuesli/nuxt-cookie-control": "8.4.7",
4
4
  "@eslint/compat": "1.1.1",
5
5
  "@heroicons/vue": "2.1.5",
6
6
  "@http-util/status-i18n": "0.8.1",
7
7
  "@intlify/eslint-plugin-vue-i18n": "3.0.0",
8
8
  "@nuxt/devtools": "1.3.9",
9
- "@nuxt/eslint": "0.3.13",
9
+ "@nuxt/eslint": "0.5.0",
10
10
  "@nuxt/image": "1.7.0",
11
11
  "@nuxtjs/color-mode": "3.4.2",
12
12
  "@nuxtjs/html-validator": "1.8.2",
13
13
  "@nuxtjs/i18n": "8.3.0",
14
- "@nuxtjs/seo": "2.0.0-rc.15",
14
+ "@nuxtjs/seo": "2.0.0-rc.18",
15
15
  "@nuxtjs/tailwindcss": "6.12.1",
16
- "@pinia/nuxt": "0.5.1",
16
+ "@pinia/nuxt": "0.5.3",
17
17
  "@tailwindcss/forms": "0.5.7",
18
- "@tailwindcss/typography": "0.5.13",
18
+ "@tailwindcss/typography": "0.5.14",
19
19
  "@types/lodash-es": "4.17.12",
20
- "@urql/core": "5.0.4",
20
+ "@urql/core": "5.0.5",
21
21
  "@vuelidate/core": "2.0.3",
22
22
  "@vuelidate/validators": "2.0.4",
23
23
  "clipboardy": "4.0.0",
24
24
  "dayjs": "2.0.0-alpha.4",
25
- "eslint": "9.7.0",
25
+ "eslint": "9.8.0",
26
26
  "eslint-config-prettier": "9.1.0",
27
27
  "eslint-plugin-compat": "6.0.0",
28
28
  "eslint-plugin-prettier": "5.2.1",
29
29
  "eslint-plugin-yml": "1.14.0",
30
- "globals": "15.8.0",
30
+ "globals": "15.9.0",
31
31
  "jose": "5.6.3",
32
- "nuxt-gtag": "2.0.7",
32
+ "nuxt-gtag": "2.1.0",
33
33
  "nuxt-security": "2.0.0-rc.9",
34
- "sweetalert2": "11.12.3",
35
- "vue-tsc": "2.0.26"
34
+ "sweetalert2": "11.12.4",
35
+ "vue-tsc": "2.0.29"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@unhead/vue": "1.9.16",
39
39
  "@urql/devtools": "2.0.3",
40
40
  "@urql/exchange-graphcache": "7.1.2",
41
- "@urql/vue": "1.3.2",
41
+ "@urql/vue": "1.4.0",
42
42
  "consola": "3.2.3",
43
- "cookie-es": "1.2.1",
43
+ "cookie-es": "1.2.2",
44
44
  "defu": "6.1.4",
45
45
  "h3": "1.12.0",
46
46
  "jiti": "1.21.6",
47
47
  "lodash-es": "4.17.21",
48
48
  "nuxt": "3.12.4",
49
- "pinia": "2.1.7",
49
+ "pinia": "2.2.1",
50
50
  "prettier": "3.3.3",
51
51
  "prettier-plugin-tailwindcss": "0.6.5",
52
52
  "serve": "14.2.3",
53
53
  "sharp": "0.33.4",
54
- "stylelint": "16.7.0",
54
+ "stylelint": "16.8.1",
55
55
  "stylelint-config-recommended-vue": "1.5.0",
56
56
  "stylelint-config-standard": "36.0.1",
57
57
  "stylelint-no-unsupported-browser-features": "8.0.1",
58
- "tailwindcss": "3.4.6",
58
+ "tailwindcss": "3.4.8",
59
59
  "unhead": "1.9.16",
60
- "vue": "3.4.33",
61
- "vue-router": "4.4.0"
60
+ "vue": "3.4.36",
61
+ "vue-router": "4.4.3"
62
62
  },
63
63
  "engines": {
64
64
  "node": "20"
@@ -87,8 +87,8 @@
87
87
  "name": "@dargmuesli/nuxt-vio",
88
88
  "peerDependencies": {
89
89
  "nuxt": "3.12.4",
90
- "vue": "3.4.33",
91
- "vue-router": "4.4.0"
90
+ "vue": "3.4.36",
91
+ "vue-router": "4.4.3"
92
92
  },
93
93
  "publishConfig": {
94
94
  "access": "public"
@@ -116,5 +116,5 @@
116
116
  "start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
117
117
  },
118
118
  "type": "module",
119
- "version": "13.2.2"
119
+ "version": "13.2.4"
120
120
  }
package/utils/auth.ts CHANGED
@@ -65,6 +65,7 @@ export const jwtStore = async ({
65
65
  ...(jwt ? { headers: { Authorization: `Bearer ${jwt}` } } : {}),
66
66
  })
67
67
  } catch (error: unknown) {
68
+ console.error(error)
68
69
  return Promise.reject(Error('Authentication api call failed.'))
69
70
  }
70
71
  }
@@ -1,7 +1,6 @@
1
1
  import type { CombinedError } from '@urql/core'
2
- import { type H3Event } from 'h3'
3
-
4
- import { type Ref } from 'vue'
2
+ import type { H3Event } from 'h3'
3
+ import type { Ref } from 'vue'
5
4
 
6
5
  import type { ApiData, BackendError } from '../types/api'
7
6
 
package/utils/utils.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type RouteLocationRaw } from '#vue-router'
1
+ import type { RouteLocationRaw } from '#vue-router'
2
2
 
3
3
  export const append = (path: string, pathToAppend?: RouteLocationRaw) =>
4
4
  path + (path.endsWith('/') ? '' : '/') + (pathToAppend ?? '')