@topwrite/reader 1.0.68 → 1.0.70
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/267-960f60.js +1 -0
- package/dist/{7-b07a36.js → 7-aa176f.js} +1 -1
- package/dist/index.js +20 -30
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/types/index.d.ts +1 -1
- package/types/lib/date.d.ts +17 -0
- package/dist/267-efd799.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topwrite/reader",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
4
4
|
"author": "yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepack": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@topwrite/common": "^1.0.
|
|
21
|
+
"@topwrite/common": "^1.0.57",
|
|
22
22
|
"@types/color": "^3.0.3",
|
|
23
23
|
"@types/lodash": "^4.14.168",
|
|
24
24
|
"@types/node": "^16.4.13",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"webpack-cli": "^4.7.0",
|
|
46
46
|
"webpack-dev-server": "^4.7.3"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "24f00bb12de52e208084cb5f5a46be4cc7593721"
|
|
49
49
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './typings';
|
|
2
|
-
import './lib/date';
|
|
3
2
|
export * from '@topwrite/common';
|
|
4
3
|
export { default as bootstrap } from './lib/bootstrap';
|
|
5
4
|
export { history } from './lib/history';
|
|
5
|
+
export { default as date } from './lib/date';
|
|
6
6
|
export { default as useTitle } from './lib/use-title';
|
|
7
7
|
export { default as useFile } from './lib/use-file';
|
|
8
8
|
export { default as useAssetUrl } from './lib/use-asset-url';
|
package/types/lib/date.d.ts
CHANGED
|
@@ -3,4 +3,21 @@ declare global {
|
|
|
3
3
|
format(fmt: string): string;
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
+
declare class D {
|
|
7
|
+
_date: Date;
|
|
8
|
+
constructor(date: string | number | Date);
|
|
9
|
+
get year(): number;
|
|
10
|
+
get yr(): string;
|
|
11
|
+
get month(): string;
|
|
12
|
+
get mon(): string;
|
|
13
|
+
get day(): string;
|
|
14
|
+
get dy(): string;
|
|
15
|
+
get date(): number;
|
|
16
|
+
get hours(): number;
|
|
17
|
+
get mins(): number;
|
|
18
|
+
get secs(): number;
|
|
19
|
+
getOrdinal(n: number): string;
|
|
20
|
+
format(mask?: string): string;
|
|
21
|
+
}
|
|
22
|
+
export default function date(date: string | number | Date | null | undefined): D;
|
|
6
23
|
export {};
|
package/dist/267-efd799.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_topwrite_reader=self.webpackChunk_topwrite_reader||[]).push([[267],{53267:e=>{e.exports=JSON.parse('{"2QzYmY":"取消","47GdDb":"关闭","4R5GEq":"首页","51pt/B":"未命名分组","FDRhoz":"发送","IHXx7d":"本文档使用 {link} 构建","OyX2KZ":"问一个问题...","U3+qBB":"搜索文档...","Z+slnL":"没有结果:","fTNnxP":"回到顶部","inUHj3":"选中","k+fk3r":"导航","lLNl8o":"智问","lXhmij":"没有最近搜索","n24ytq":"未命名文档","xUjLTE":"搜索","zg86wv":"我是一个智能AI助理,你可以向我提问关于本文档的任何问题"}')}}]);
|