@karta.io/utils 0.26.5 → 0.26.6
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/dist/index.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -9,6 +9,7 @@ const utc = require('dayjs/plugin/utc.js');
|
|
|
9
9
|
const tz = require('dayjs/plugin/timezone.js');
|
|
10
10
|
const updateLocale = require('dayjs/plugin/updateLocale.js');
|
|
11
11
|
const isToday = require('dayjs/plugin/isToday.js');
|
|
12
|
+
const customParseFormat = require('dayjs/plugin/customParseFormat');
|
|
12
13
|
const detectBrowser = require('detect-browser');
|
|
13
14
|
const logdown = require('logdown');
|
|
14
15
|
|
|
@@ -437,6 +438,7 @@ dayjs.extend(utc);
|
|
|
437
438
|
dayjs.extend(tz);
|
|
438
439
|
dayjs.extend(updateLocale);
|
|
439
440
|
dayjs.extend(isToday);
|
|
441
|
+
dayjs.extend(customParseFormat);
|
|
440
442
|
function useDayjs(timezone) {
|
|
441
443
|
dayjs.updateLocale("en", {
|
|
442
444
|
weekStart: 1
|
package/dist/index.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import utc from 'dayjs/plugin/utc.js';
|
|
|
7
7
|
import tz from 'dayjs/plugin/timezone.js';
|
|
8
8
|
import updateLocale from 'dayjs/plugin/updateLocale.js';
|
|
9
9
|
import isToday from 'dayjs/plugin/isToday.js';
|
|
10
|
+
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
10
11
|
import { detect } from 'detect-browser';
|
|
11
12
|
import logdown from 'logdown';
|
|
12
13
|
|
|
@@ -435,6 +436,7 @@ dayjs.extend(utc);
|
|
|
435
436
|
dayjs.extend(tz);
|
|
436
437
|
dayjs.extend(updateLocale);
|
|
437
438
|
dayjs.extend(isToday);
|
|
439
|
+
dayjs.extend(customParseFormat);
|
|
438
440
|
function useDayjs(timezone) {
|
|
439
441
|
dayjs.updateLocale("en", {
|
|
440
442
|
weekStart: 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karta.io/utils",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.6",
|
|
4
4
|
"description": "karta.io utils for admin and application",
|
|
5
5
|
"author": "Vitaly Blokhin <karambafe@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"vue": "3.2.45"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@karta.io/common-data": "^0.26.
|
|
26
|
+
"@karta.io/common-data": "^0.26.6",
|
|
27
27
|
"@vueuse/core": "9.10.0",
|
|
28
28
|
"dayjs": "1.11.6",
|
|
29
29
|
"detect-browser": "5.3.0",
|