File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codedoc/coding-blog-plugin" ,
3
- "version" : " 0.1.11 " ,
3
+ "version" : " 0.1.12 " ,
4
4
"description" : " A CODEDOC plugin for blogging." ,
5
5
"main" : " dist/es5/index.js" ,
6
6
"module" : " dist/es6/index.js" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ interface CommitType {
34
34
name : string ;
35
35
}
36
36
} ,
37
- author : {
37
+ author ? : {
38
38
avatar_url : string ;
39
39
html_url : string ;
40
40
}
@@ -72,8 +72,8 @@ export function Author(
72
72
. subscribe ( res => {
73
73
if ( res . length ) {
74
74
const commit = res [ 0 ] ;
75
- avatar . next ( commit . author . avatar_url || _DefaultAvatar ) ;
76
- url . next ( commit . author . html_url ) ;
75
+ avatar . next ( commit . author ? .avatar_url || _DefaultAvatar ) ;
76
+ url . next ( commit . author ? .html_url || '' ) ;
77
77
name . next ( commit . commit . author . name ) ;
78
78
const dateString = ! ! options . date ? options . date : commit . commit . author . date ;
79
79
date . next ( new Date ( dateString ) . toDateString ( ) ) ;
You can’t perform that action at this time.
0 commit comments