@dargmuesli/nuxt-vio 14.0.5 → 14.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "dependencies": {
3
- "@dargmuesli/nuxt-cookie-control": "8.4.13",
4
- "@eslint/compat": "1.1.1",
3
+ "@dargmuesli/nuxt-cookie-control": "8.4.14",
4
+ "@eslint/compat": "1.2.0",
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.1",
8
+ "@nuxt/devtools": "1.6.0",
9
9
  "@nuxt/eslint": "0.5.7",
10
- "@nuxt/image": "1.8.0",
10
+ "@nuxt/image": "1.8.1",
11
11
  "@nuxtjs/color-mode": "3.5.1",
12
12
  "@nuxtjs/html-validator": "1.8.2",
13
13
  "@nuxtjs/i18n": "8.5.5",
14
14
  "@nuxtjs/seo": "2.0.0-rc.23",
15
15
  "@nuxtjs/tailwindcss": "6.12.1",
16
- "@pinia/nuxt": "0.5.4",
16
+ "@pinia/nuxt": "0.5.5",
17
17
  "@tailwindcss/forms": "0.5.9",
18
18
  "@tailwindcss/typography": "0.5.15",
19
19
  "@types/lodash-es": "4.17.12",
@@ -23,41 +23,41 @@
23
23
  "@vuelidate/validators": "2.0.4",
24
24
  "clipboardy": "4.0.0",
25
25
  "dayjs": "2.0.0-alpha.4",
26
- "eslint": "9.11.1",
26
+ "eslint": "9.12.0",
27
27
  "eslint-config-prettier": "9.1.0",
28
28
  "eslint-plugin-compat": "6.0.1",
29
29
  "eslint-plugin-prettier": "5.2.1",
30
30
  "eslint-plugin-yml": "1.14.0",
31
- "globals": "15.9.0",
32
- "jiti": "2.0.0",
33
- "jose": "5.9.3",
31
+ "globals": "15.11.0",
32
+ "jiti": "2.3.3",
33
+ "jose": "5.9.4",
34
34
  "nuxt-gtag": "3.0.1",
35
35
  "nuxt-security": "2.0.0",
36
- "sweetalert2": "11.14.1",
36
+ "sweetalert2": "11.14.3",
37
37
  "vue-tsc": "2.1.6"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@unhead/vue": "1.11.7",
41
41
  "@urql/devtools": "2.0.3",
42
- "@urql/exchange-graphcache": "7.1.3",
42
+ "@urql/exchange-graphcache": "7.2.0",
43
43
  "consola": "3.2.3",
44
44
  "cookie-es": "1.2.2",
45
45
  "defu": "6.1.4",
46
- "h3": "1.12.0",
46
+ "h3": "1.13.0",
47
47
  "lodash-es": "4.17.21",
48
48
  "nuxt": "3.13.2",
49
- "pinia": "2.2.2",
49
+ "pinia": "2.2.4",
50
50
  "prettier": "3.3.3",
51
51
  "prettier-plugin-tailwindcss": "0.6.8",
52
52
  "serve": "14.2.3",
53
53
  "sharp": "0.33.5",
54
- "stylelint": "16.9.0",
54
+ "stylelint": "16.10.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
58
  "tailwindcss": "3.4.13",
59
59
  "unhead": "1.11.7",
60
- "vue": "3.5.10",
60
+ "vue": "3.5.12",
61
61
  "vue-router": "4.4.5"
62
62
  },
63
63
  "engines": {
@@ -87,7 +87,7 @@
87
87
  "name": "@dargmuesli/nuxt-vio",
88
88
  "peerDependencies": {
89
89
  "nuxt": "3.13.2",
90
- "vue": "3.5.10",
90
+ "vue": "3.5.12",
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": "14.0.5"
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)