@dargmuesli/nuxt-vio 13.2.8 → 14.0.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,9 @@
|
|
1
1
|
import { POLYFILLS } from '../utils/constants'
|
2
2
|
|
3
3
|
export const usePolyfills = () => {
|
4
|
-
return // hijacked ⚠️
|
5
4
|
if (!POLYFILLS.length) return
|
6
5
|
|
7
|
-
const polyfillsUrl = `https://
|
6
|
+
const polyfillsUrl = `https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=${POLYFILLS.join(
|
8
7
|
'%2C',
|
9
8
|
)}&flags=gated`
|
10
9
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"dependencies": {
|
3
|
-
"@dargmuesli/nuxt-cookie-control": "8.4.
|
3
|
+
"@dargmuesli/nuxt-cookie-control": "8.4.12",
|
4
4
|
"@eslint/compat": "1.1.1",
|
5
5
|
"@heroicons/vue": "2.1.5",
|
6
6
|
"@http-util/status-i18n": "0.8.1",
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"@nuxt/devtools": "1.4.2",
|
9
9
|
"@nuxt/eslint": "0.5.7",
|
10
10
|
"@nuxt/image": "1.8.0",
|
11
|
-
"@nuxtjs/color-mode": "3.5.
|
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",
|
@@ -28,14 +28,14 @@
|
|
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.
|
31
|
+
"jose": "5.9.2",
|
32
32
|
"nuxt-gtag": "3.0.1",
|
33
33
|
"nuxt-security": "2.0.0-rc.9",
|
34
34
|
"sweetalert2": "11.14.0",
|
35
35
|
"vue-tsc": "2.1.6"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
|
-
"@unhead/vue": "1.11.
|
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,7 +45,7 @@
|
|
45
45
|
"h3": "1.12.0",
|
46
46
|
"jiti": "1.21.6",
|
47
47
|
"lodash-es": "4.17.21",
|
48
|
-
"nuxt": "3.13.
|
48
|
+
"nuxt": "3.13.2",
|
49
49
|
"pinia": "2.2.2",
|
50
50
|
"prettier": "3.3.3",
|
51
51
|
"prettier-plugin-tailwindcss": "0.6.6",
|
@@ -55,9 +55,9 @@
|
|
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.
|
59
|
-
"unhead": "1.11.
|
60
|
-
"vue": "3.5.
|
58
|
+
"tailwindcss": "3.4.12",
|
59
|
+
"unhead": "1.11.6",
|
60
|
+
"vue": "3.5.6",
|
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.
|
90
|
-
"vue": "3.5.
|
89
|
+
"nuxt": "3.13.2",
|
90
|
+
"vue": "3.5.6",
|
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": "
|
120
|
+
"version": "14.0.0"
|
121
121
|
}
|
package/types/fetch.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export
|
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
|
10
|
+
export type CollectionItem<T> = {
|
11
|
+
documentId: string
|
11
12
|
id: number
|
12
|
-
|
13
|
-
}
|
13
|
+
} & T
|
package/utils/constants.ts
CHANGED
@@ -41,9 +41,9 @@ export const GET_CSP = (siteUrl: string) =>
|
|
41
41
|
{
|
42
42
|
// vio
|
43
43
|
'manifest-src': [`${siteUrl}/site.webmanifest`],
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
'script-src-elem': [
|
45
|
+
'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js', // ESLint plugin compat
|
46
|
+
],
|
47
47
|
},
|
48
48
|
// {
|
49
49
|
// // nuxt-link-checker
|
@@ -155,7 +155,7 @@ export const I18N_VUE_CONFIG = {
|
|
155
155
|
export const JWT_NAME = () =>
|
156
156
|
`${process.env.NODE_ENV === 'production' ? '__Secure-' : ''}jwt`
|
157
157
|
export const POLYFILLS = [
|
158
|
-
|
158
|
+
'Promise', // op_mini
|
159
159
|
]
|
160
160
|
export const REGEX_UUID =
|
161
161
|
/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/
|