@dargmuesli/nuxt-vio 13.2.8 → 13.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,7 +59,7 @@ defineOgImageComponent(
59
59
  )
60
60
  useAppLayout()
61
61
  useFavicons()
62
- // usePolyfills() // hijacked ⚠️
62
+ usePolyfills()
63
63
  useSchemaOrg([
64
64
  defineWebSite({
65
65
  description: siteConfig.description,
@@ -10,7 +10,6 @@ export const useAppLayout = () => {
10
10
  },
11
11
  })
12
12
 
13
- // TODO: convert to `useServerHeadSafe` (https://github.com/unjs/unhead/issues/221)
14
13
  // adding `Server` leads incorrect title template on hydration
15
14
  useSeoMeta({
16
15
  titleTemplate: (title) =>
@@ -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://polyfill.io/v3/polyfill.min.js?features=${POLYFILLS.join(
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.8.0",
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.2.8"
120
+ "version": "13.3.0"
121
121
  }
@@ -41,9 +41,9 @@ export const GET_CSP = (siteUrl: string) =>
41
41
  {
42
42
  // vio
43
43
  'manifest-src': [`${siteUrl}/site.webmanifest`],
44
- // 'script-src-elem': [
45
- // 'https://polyfill.io/v3/polyfill.min.js', // ESLint plugin compat
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
- // 'Promise', // op_mini
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}$/