@karta.io/utils 0.23.4 → 0.23.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 +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
const libphonenumberJs = require('libphonenumber-js');
|
|
4
4
|
const lodashEs = require('lodash-es');
|
|
5
5
|
const dayjs = require('dayjs');
|
|
6
|
-
const utc = require('dayjs/plugin/utc');
|
|
7
|
-
const tz = require('dayjs/plugin/timezone');
|
|
8
|
-
const updateLocale = require('dayjs/plugin/updateLocale');
|
|
9
|
-
const isToday = require('dayjs/plugin/isToday');
|
|
6
|
+
const utc = require('dayjs/plugin/utc.js');
|
|
7
|
+
const tz = require('dayjs/plugin/timezone.js');
|
|
8
|
+
const updateLocale = require('dayjs/plugin/updateLocale.js');
|
|
9
|
+
const isToday = require('dayjs/plugin/isToday.js');
|
|
10
10
|
const detectBrowser = require('detect-browser');
|
|
11
11
|
|
|
12
12
|
function viewExample(value) {
|
package/dist/index.d.ts
CHANGED
|
@@ -100,7 +100,7 @@ declare const useClassName: (block: string) => {
|
|
|
100
100
|
* @see https://day.js.org/en/
|
|
101
101
|
*
|
|
102
102
|
* Использовать параметр timezone нужно крайне аккуратно,
|
|
103
|
-
* может привести к
|
|
103
|
+
* может привести к утечкам памяти
|
|
104
104
|
* @todo Подумать как сделать оптимальнее
|
|
105
105
|
*/
|
|
106
106
|
declare function useDayjs(timezone?: string): (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean) => dayjs.Dayjs;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { parsePhoneNumberFromString } from 'libphonenumber-js';
|
|
2
2
|
import { camelCase } from 'lodash-es';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
|
-
import utc from 'dayjs/plugin/utc';
|
|
5
|
-
import tz from 'dayjs/plugin/timezone';
|
|
6
|
-
import updateLocale from 'dayjs/plugin/updateLocale';
|
|
7
|
-
import isToday from 'dayjs/plugin/isToday';
|
|
4
|
+
import utc from 'dayjs/plugin/utc.js';
|
|
5
|
+
import tz from 'dayjs/plugin/timezone.js';
|
|
6
|
+
import updateLocale from 'dayjs/plugin/updateLocale.js';
|
|
7
|
+
import isToday from 'dayjs/plugin/isToday.js';
|
|
8
8
|
import { detect } from 'detect-browser';
|
|
9
9
|
|
|
10
10
|
function viewExample(value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karta.io/utils",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.6",
|
|
4
4
|
"description": "karta.io utils for admin and application",
|
|
5
5
|
"author": "Vitaly Blokhin <karambafe@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@karta.io/common-data": "^0.23.
|
|
23
|
+
"@karta.io/common-data": "^0.23.6",
|
|
24
24
|
"dayjs": "1.11.6",
|
|
25
25
|
"detect-browser": "5.3.0",
|
|
26
26
|
"libphonenumber-js": "1.9.44",
|