@peng_kai/kit 0.2.0-beta.2 → 0.2.0-beta.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/package.json +1 -1
  2. package/utils/date.ts +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
3
  "type": "module",
4
- "version": "0.2.0-beta.2",
4
+ "version": "0.2.0-beta.4",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
package/utils/date.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import dayjs from 'dayjs';
2
- import relativeTime from 'dayjs/plugin/relativeTime.js';
2
+ import * as relativeTime from 'dayjs/plugin/relativeTime';
3
3
  import 'dayjs/locale/zh';
4
4
  import 'dayjs/locale/en';
5
5
 
6
6
  export { default as dayjs } from 'dayjs';
7
7
 
8
8
  dayjs.locale('zh');
9
- dayjs.extend(relativeTime);
9
+ dayjs.extend(relativeTime.default);
10
10
 
11
11
  /**
12
12
  * 返回给定日期的一天的开始时间。