@dargmuesli/nuxt-vio 13.1.6 → 13.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +5 -5
- package/server/utils/timezone.ts +3 -1
package/package.json
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
"@heroicons/vue": "2.1.4",
|
6
6
|
"@http-util/status-i18n": "0.8.1",
|
7
7
|
"@intlify/eslint-plugin-vue-i18n": "3.0.0",
|
8
|
-
"@nuxt/devtools": "1.3.
|
8
|
+
"@nuxt/devtools": "1.3.7",
|
9
9
|
"@nuxt/eslint": "0.3.13",
|
10
10
|
"@nuxt/image": "1.7.0",
|
11
|
-
"@nuxtjs/color-mode": "3.4.
|
11
|
+
"@nuxtjs/color-mode": "3.4.2",
|
12
12
|
"@nuxtjs/html-validator": "1.8.2",
|
13
13
|
"@nuxtjs/i18n": "8.3.0",
|
14
|
-
"@nuxtjs/seo": "2.0.0-rc.
|
14
|
+
"@nuxtjs/seo": "2.0.0-rc.11",
|
15
15
|
"@nuxtjs/tailwindcss": "6.12.0",
|
16
16
|
"@pinia/nuxt": "0.5.1",
|
17
17
|
"@tailwindcss/forms": "0.5.7",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
"eslint-plugin-prettier": "5.1.3",
|
29
29
|
"eslint-plugin-yml": "1.14.0",
|
30
30
|
"globals": "15.6.0",
|
31
|
-
"jose": "5.
|
31
|
+
"jose": "5.6.2",
|
32
32
|
"nuxt-gtag": "2.0.6",
|
33
33
|
"nuxt-security": "1.4.3",
|
34
34
|
"sweetalert2": "11.12.0",
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
|
117
117
|
},
|
118
118
|
"type": "module",
|
119
|
-
"version": "13.1.
|
119
|
+
"version": "13.1.8"
|
120
120
|
}
|
package/server/utils/timezone.ts
CHANGED
@@ -12,7 +12,9 @@ export const getTimezoneServer = async (event: H3Event) => {
|
|
12
12
|
|
13
13
|
if (timezoneByCookie) return timezoneByCookie
|
14
14
|
|
15
|
-
const ip = event
|
15
|
+
const ip = getRequestIP(event, { xForwardedFor: true })
|
16
|
+
|
17
|
+
console.log(`X-Real-IP: ${ip}`) // TODO: remove once traefik setup is clear
|
16
18
|
|
17
19
|
if (ip && !Array.isArray(ip)) {
|
18
20
|
const timezoneByIpApi = await getTimezoneByIpApi(ip)
|