@dargmuesli/nuxt-vio 14.0.6 → 14.0.7

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,8 @@
1
1
  import type { Dayjs } from 'dayjs'
2
2
 
3
3
  export const useDateTime = () => {
4
- const { $dayjs, ssrContext } = useNuxtApp()
5
- const timezone = ssrContext
6
- ? ssrContext.event.context.$timezone
7
- : getTimezone()
4
+ const { $dayjs } = useNuxtApp()
5
+ const timezone = getTimezone()
8
6
 
9
7
  return (dateTime?: string | number | Dayjs | Date | null) =>
10
8
  $dayjs(dateTime).tz(timezone)
package/package.json CHANGED
@@ -5,7 +5,7 @@
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.5.2",
8
+ "@nuxt/devtools": "1.6.0",
9
9
  "@nuxt/eslint": "0.5.7",
10
10
  "@nuxt/image": "1.8.1",
11
11
  "@nuxtjs/color-mode": "3.5.1",
@@ -33,7 +33,7 @@
33
33
  "jose": "5.9.4",
34
34
  "nuxt-gtag": "3.0.1",
35
35
  "nuxt-security": "2.0.0",
36
- "sweetalert2": "11.14.2",
36
+ "sweetalert2": "11.14.3",
37
37
  "vue-tsc": "2.1.6"
38
38
  },
39
39
  "devDependencies": {
@@ -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": "14.0.6"
120
+ "version": "14.0.7"
121
121
  }
@@ -20,7 +20,7 @@ export const GET_CSP = (siteUrl: string) =>
20
20
  'connect-src': ['https://cloudflareinsights.com'], // analytics
21
21
  'script-src-elem': [
22
22
  'https://static.cloudflareinsights.com', // analytics
23
- `${siteUrl}/cdn-cgi/scripts/`, // email obfuscation
23
+ `${siteUrl}/cdn-cgi/`, // https://developers.cloudflare.com/fundamentals/reference/cdn-cgi-endpoint/
24
24
  ],
25
25
  }
26
26
  : {}),
package/utils/timezone.ts CHANGED
@@ -5,6 +5,6 @@ export const getTimezone = () =>
5
5
  sameSite: 'strict',
6
6
  secure: !import.meta.dev,
7
7
  }).value ||
8
- import.meta.client
8
+ (import.meta.client
9
9
  ? Intl.DateTimeFormat().resolvedOptions().timeZone
10
- : undefined
10
+ : undefined)