@dargmuesli/nuxt-vio 13.2.8 → 13.3.0
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.
@@ -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
@@ -28,7 +28,7 @@
|
|
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.1",
|
32
32
|
"nuxt-gtag": "3.0.1",
|
33
33
|
"nuxt-security": "2.0.0-rc.9",
|
34
34
|
"sweetalert2": "11.14.0",
|
@@ -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.
|
120
|
+
"version": "13.3.0"
|
121
121
|
}
|
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}$/
|