@explorer-1/vue 0.2.14 → 0.2.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -51,9 +51,12 @@
51
51
  <script lang="ts">
52
52
  import type { PropType } from 'vue'
53
53
  import { defineComponent } from 'vue'
54
- import dayjs from './../../utils/dayjs'
55
- import { type Dayjs } from 'dayjs'
56
- import { type Duration } from 'dayjs/plugin/duration.js'
54
+ import dayjs, { type Dayjs } from 'dayjs'
55
+ import duration, { type Duration } from 'dayjs/plugin/duration.js'
56
+ import minMax from 'dayjs/plugin/minMax.js'
57
+
58
+ dayjs.extend(duration)
59
+ dayjs.extend(minMax)
57
60
 
58
61
  const calculateDuration = (start: Dayjs): Duration | undefined => {
59
62
  // Use round seconds so the datetime string stays valid and can be read by screen readers.
@@ -3,9 +3,6 @@ import updateLocale from 'dayjs/plugin/updateLocale.js'
3
3
  import localizedFormat from 'dayjs/plugin/localizedFormat.js'
4
4
  import timezone from 'dayjs/plugin/timezone.js'
5
5
  import advancedFormat from 'dayjs/plugin/advancedFormat.js'
6
- // for BaseTimer
7
- import duration from 'dayjs/plugin/duration.js'
8
- import minMax from 'dayjs/plugin/minMax.js'
9
6
 
10
7
  // Locales must be imported manually
11
8
  // see https://github.com/iamkun/dayjs/tree/dev/src/locale
@@ -31,8 +28,5 @@ dayjs.updateLocale('en', {
31
28
  })
32
29
  dayjs.extend(timezone)
33
30
  dayjs.extend(advancedFormat)
34
- // for BaseTimer
35
- dayjs.extend(duration)
36
- dayjs.extend(minMax)
37
31
 
38
32
  export default dayjs