@dargmuesli/nuxt-vio 3.0.0-beta.4 → 3.0.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@
43
43
  <script setup lang="ts">
44
44
  import type { BaseValidation } from '@vuelidate/core'
45
45
 
46
- import type { BackendError } from '~/../types/api'
46
+ import type { BackendError } from '../../../types/api'
47
47
 
48
48
  export interface Props {
49
49
  errors?: BackendError[]
@@ -18,6 +18,6 @@ export const useAppLayout = () => {
18
18
  ? `${titleChunk} ${siteConfig.titleSeparator} ${siteConfig.name}`
19
19
  : siteConfig.name
20
20
  },
21
- ...appConfig.vio.seoMeta,
21
+ ...(appConfig.vio.seoMeta ? appConfig.vio.seoMeta : {}),
22
22
  })
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/plugins/dayjs.ts CHANGED
@@ -1,4 +1,5 @@
1
- import dayjs, { extend, locale } from 'dayjs'
1
+ /* eslint-disable import/no-named-as-default-member */
2
+ import dayjs from 'dayjs'
2
3
 
3
4
  // workaround for [1]
4
5
  import de from 'dayjs/locale/de'
@@ -10,13 +11,13 @@ import timezone from 'dayjs/plugin/timezone'
10
11
  import utc from 'dayjs/plugin/utc'
11
12
 
12
13
  export default defineNuxtPlugin((_nuxtApp) => {
13
- extend(isSameOrBefore)
14
- extend(localizedFormat)
15
- extend(timezone)
16
- extend(utc)
14
+ dayjs.extend(isSameOrBefore)
15
+ dayjs.extend(localizedFormat)
16
+ dayjs.extend(timezone)
17
+ dayjs.extend(utc)
17
18
 
18
19
  // workaround for [1]
19
- locale(de)
20
+ dayjs.locale(de)
20
21
  // dayjs.locale(en) makes `format` error
21
22
 
22
23
  return {