@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.
- package/composables/dateTime.ts +2 -4
 - package/package.json +3 -3
 - 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
    
    | 
         @@ -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. 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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