@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.
- package/composables/dateTime.ts +2 -4
- package/package.json +17 -17
- package/utils/constants.ts +1 -1
- package/utils/timezone.ts +2 -2
package/composables/dateTime.ts
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
import type { Dayjs } from 'dayjs'
|
2
2
|
|
3
3
|
export const useDateTime = () => {
|
4
|
-
const { $dayjs
|
5
|
-
const timezone =
|
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.
|
4
|
-
"@eslint/compat": "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.
|
8
|
+
"@nuxt/devtools": "1.6.0",
|
9
9
|
"@nuxt/eslint": "0.5.7",
|
10
|
-
"@nuxt/image": "1.8.
|
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.
|
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.
|
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.
|
32
|
-
"jiti": "2.
|
33
|
-
"jose": "5.9.
|
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.
|
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.
|
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.
|
46
|
+
"h3": "1.13.0",
|
47
47
|
"lodash-es": "4.17.21",
|
48
48
|
"nuxt": "3.13.2",
|
49
|
-
"pinia": "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.
|
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.
|
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.
|
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.
|
120
|
+
"version": "14.0.7"
|
121
121
|
}
|
package/utils/constants.ts
CHANGED
@@ -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
|
23
|
+
`${siteUrl}/cdn-cgi/`, // https://developers.cloudflare.com/fundamentals/reference/cdn-cgi-endpoint/
|
24
24
|
],
|
25
25
|
}
|
26
26
|
: {}),
|
package/utils/timezone.ts
CHANGED