@data-fair/lib-vue 1.10.3 → 1.10.4

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.
Files changed (2) hide show
  1. package/locale-dayjs.js +4 -4
  2. package/package.json +1 -1
package/locale-dayjs.js CHANGED
@@ -14,13 +14,13 @@ export function getLocaleDayjs (locale) {
14
14
  locale = locale ?? 'fr'
15
15
  return {
16
16
  locale,
17
- duration: () => {
17
+ duration: (...args) => {
18
18
  // @ts-ignore
19
- return dayjs.duration.apply(null, arguments).locale(locale)
19
+ return dayjs.duration(...args).locale(locale)
20
20
  },
21
- dayjs: () => {
21
+ dayjs: (...args) => {
22
22
  // @ts-ignore
23
- return dayjs.apply(null, arguments).locale(locale)
23
+ return dayjs(...args).locale(locale)
24
24
  }
25
25
  }
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vue",
3
- "version": "1.10.3",
3
+ "version": "1.10.4",
4
4
  "description": "Composables and other utilities for Vue applications in the data-fair stack.",
5
5
  "main": "index.js",
6
6
  "files": [