@dargmuesli/nuxt-vio 13.3.0 → 14.0.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "dependencies": {
3
- "@dargmuesli/nuxt-cookie-control": "8.4.10",
3
+ "@dargmuesli/nuxt-cookie-control": "8.4.13",
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
- "@nuxt/devtools": "1.4.2",
8
+ "@nuxt/devtools": "1.5.1",
9
9
  "@nuxt/eslint": "0.5.7",
10
10
  "@nuxt/image": "1.8.0",
11
- "@nuxtjs/color-mode": "3.5.0",
11
+ "@nuxtjs/color-mode": "3.5.1",
12
12
  "@nuxtjs/html-validator": "1.8.2",
13
13
  "@nuxtjs/i18n": "8.3.0",
14
14
  "@nuxtjs/seo": "2.0.0-rc.21",
@@ -22,20 +22,20 @@
22
22
  "@vuelidate/validators": "2.0.4",
23
23
  "clipboardy": "4.0.0",
24
24
  "dayjs": "2.0.0-alpha.4",
25
- "eslint": "9.10.0",
25
+ "eslint": "9.11.1",
26
26
  "eslint-config-prettier": "9.1.0",
27
27
  "eslint-plugin-compat": "6.0.1",
28
28
  "eslint-plugin-prettier": "5.2.1",
29
29
  "eslint-plugin-yml": "1.14.0",
30
30
  "globals": "15.9.0",
31
- "jose": "5.9.1",
31
+ "jose": "5.9.3",
32
32
  "nuxt-gtag": "3.0.1",
33
- "nuxt-security": "2.0.0-rc.9",
34
- "sweetalert2": "11.14.0",
33
+ "nuxt-security": "2.0.0",
34
+ "sweetalert2": "11.14.1",
35
35
  "vue-tsc": "2.1.6"
36
36
  },
37
37
  "devDependencies": {
38
- "@unhead/vue": "1.11.2",
38
+ "@unhead/vue": "1.11.6",
39
39
  "@urql/devtools": "2.0.3",
40
40
  "@urql/exchange-graphcache": "7.1.3",
41
41
  "@urql/vue": "1.4.1",
@@ -45,19 +45,19 @@
45
45
  "h3": "1.12.0",
46
46
  "jiti": "1.21.6",
47
47
  "lodash-es": "4.17.21",
48
- "nuxt": "3.13.1",
48
+ "nuxt": "3.13.2",
49
49
  "pinia": "2.2.2",
50
50
  "prettier": "3.3.3",
51
- "prettier-plugin-tailwindcss": "0.6.6",
51
+ "prettier-plugin-tailwindcss": "0.6.8",
52
52
  "serve": "14.2.3",
53
53
  "sharp": "0.33.5",
54
54
  "stylelint": "16.9.0",
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.11",
59
- "unhead": "1.11.2",
60
- "vue": "3.5.5",
58
+ "tailwindcss": "3.4.13",
59
+ "unhead": "1.11.6",
60
+ "vue": "3.5.10",
61
61
  "vue-router": "4.4.5"
62
62
  },
63
63
  "engines": {
@@ -86,8 +86,8 @@
86
86
  "main": "nuxt.config.ts",
87
87
  "name": "@dargmuesli/nuxt-vio",
88
88
  "peerDependencies": {
89
- "nuxt": "3.13.1",
90
- "vue": "3.5.5",
89
+ "nuxt": "3.13.2",
90
+ "vue": "3.5.10",
91
91
  "vue-router": "4.4.5"
92
92
  },
93
93
  "publishConfig": {
@@ -117,5 +117,5 @@
117
117
  "start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
118
118
  },
119
119
  "type": "module",
120
- "version": "13.3.0"
120
+ "version": "14.0.1"
121
121
  }
@@ -28,17 +28,6 @@ export const cleanupCsp = (
28
28
  }
29
29
 
30
30
  export default defineNitroPlugin((nitroApp) => {
31
- // TODO: migrate to nuxt-security (https://github.com/Baroshem/nuxt-security/discussions/454)
32
- if (import.meta.dev) {
33
- nitroApp.hooks.hook('render:html', (html, { event }) => {
34
- if (!event.context.security?.nonce) return
35
-
36
- html.head.push(
37
- `<meta property="csp-nonce" nonce="${event.context.security.nonce}">`,
38
- )
39
- })
40
- }
41
-
42
31
  nitroApp.hooks.hook('nuxt-security:routeRules', async (routeRules) => {
43
32
  const runtimeConfig = useRuntimeConfig()
44
33
  const siteUrl = runtimeConfig.public.site.url
package/types/fetch.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export interface StrapiResult<T> {
1
+ export type StrapiResult<T> = {
2
2
  data: CollectionItem<T>[]
3
3
  meta: {
4
4
  pagination: {
@@ -7,7 +7,7 @@ export interface StrapiResult<T> {
7
7
  }
8
8
  }
9
9
 
10
- export interface CollectionItem<T> {
10
+ export type CollectionItem<T> = {
11
+ documentId: string
11
12
  id: number
12
- attributes: T
13
- }
13
+ } & T