File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-template-curly-in-string */
2
2
3
- const dateFormat = import ( 'dateformat' ) ;
4
- const promisify = import ( 'util' ) ;
5
- const readFile = import ( 'fs' ) ;
6
- const readFileAsync = promisify ( readFile ) ;
3
+ const dateformat = import ( 'dateformat' ) ;
4
+ const util = import ( 'util' ) ;
5
+ const fs = import ( 'fs' ) ;
6
+ const readFileAsync = util . promisify ( fs . readFile ) ;
7
7
8
8
// the *.hbs template and partials should be passed as strings of contents
9
9
const template = readFileAsync ( './build/default-template.hbs' ) ;
@@ -129,7 +129,7 @@ module.exports = {
129
129
partials : { commitTemplate } ,
130
130
helpers : {
131
131
datetime ( format = 'UTC:yyyy-mm-dd' ) {
132
- return dateFormat ( new Date ( ) , format ) ;
132
+ return dateformat . dateFormat ( new Date ( ) , format ) ;
133
133
} ,
134
134
} ,
135
135
issueResolution : {
You can’t perform that action at this time.
0 commit comments