@wzyjs/utils 0.0.25 → 0.0.27
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/cjs/fe/dayjs.d.ts +2 -0
- package/dist/cjs/fe/index.d.ts +2 -1
- package/dist/cjs/fe/other.d.ts +1 -0
- package/dist/cjs/rd/jsonFile/index.d.ts +1 -1
- package/dist/cjs/rd/mail/index.js +1 -1
- package/dist/esm/fe/dayjs.d.ts +2 -0
- package/dist/esm/fe/dayjs.js +11 -2
- package/dist/esm/fe/index.d.ts +2 -1
- package/dist/esm/fe/other.d.ts +1 -0
- package/dist/esm/fe/other.js +10 -0
- package/dist/esm/index_fe.js +2 -1
- package/package.json +2 -2
package/dist/cjs/fe/dayjs.d.ts
CHANGED
package/dist/cjs/fe/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const readClipboard: () => Promise<string>;
|
package/dist/esm/fe/dayjs.d.ts
CHANGED
package/dist/esm/fe/dayjs.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
export { default } from 'dayjs';
|
|
2
|
+
export { Dayjs, default } from 'dayjs';
|
|
3
3
|
import isBetween from 'dayjs/plugin/isBetween';
|
|
4
4
|
import weekday from 'dayjs/plugin/weekday';
|
|
5
5
|
import localeData from 'dayjs/plugin/localeData';
|
|
6
|
+
import isoWeek from 'dayjs/plugin/isoWeek';
|
|
7
|
+
import updateLocale from 'dayjs/plugin/updateLocale';
|
|
8
|
+
import 'dayjs/locale/zh-cn';
|
|
6
9
|
|
|
7
10
|
dayjs.extend(isBetween);
|
|
8
11
|
dayjs.extend(weekday);
|
|
9
|
-
dayjs.extend(localeData);
|
|
12
|
+
dayjs.extend(localeData);
|
|
13
|
+
dayjs.extend(isoWeek);
|
|
14
|
+
dayjs.extend(updateLocale);
|
|
15
|
+
dayjs.locale('zh-cn');
|
|
16
|
+
dayjs.updateLocale('zh-cn', {
|
|
17
|
+
weekStart: 1,
|
|
18
|
+
});
|
package/dist/esm/fe/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const readClipboard: () => Promise<string>;
|
package/dist/esm/index_fe.js
CHANGED
|
@@ -7,9 +7,10 @@ export { delay, executePromise, handleParams, handleRes2List, locationFn } from
|
|
|
7
7
|
export { getFileSize, getRandomNum, limitDecimals } from './common/tools/number.js';
|
|
8
8
|
export { localforage } from './fe/index.js';
|
|
9
9
|
import './fe/dayjs.js';
|
|
10
|
-
export { default as dayjs } from 'dayjs';
|
|
10
|
+
export { Dayjs, default as dayjs } from 'dayjs';
|
|
11
11
|
export { flashBackground, flashBorder, hexToRgba } from './fe/style.js';
|
|
12
12
|
export { getElement, isElementInViewport, scrollIntoView } from './fe/element.js';
|
|
13
|
+
export { readClipboard } from './fe/other.js';
|
|
13
14
|
export { default as copy } from 'copy-to-clipboard';
|
|
14
15
|
export { default as classnames } from 'classnames';
|
|
15
16
|
export { default as md5 } from 'md5';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wzyjs/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "description",
|
|
5
5
|
"author": "wzy",
|
|
6
6
|
"license": "ISC",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"type": "git",
|
|
54
54
|
"url": "https://gitee.com/wang-zhenyu/app.git"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "df22fdc32eef4bfe3a8920a1c3d048f5713bda8e"
|
|
57
57
|
}
|