@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.
package/package.json
CHANGED
package/plugins/dayjs.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
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 {
|