File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ const processor = require('remark')
1010const path = require ( 'path' )
1111const fs = require ( 'fs' )
1212
13+ const kPromise = Symbol ( 'promise' )
14+
1315function hallmark ( options , callback ) {
14- callback = fromCallback ( callback )
16+ callback = fromCallback ( callback , kPromise )
1517
1618 const fix = ! ! options . fix
1719 const cwd = path . resolve ( options . cwd || '.' )
@@ -116,7 +118,7 @@ function hallmark (options, callback) {
116118 } )
117119 } )
118120
119- return callback . promise
121+ return callback [ kPromise ]
120122}
121123
122124exports . lint = function ( options , callback ) {
Original file line number Diff line number Diff line change 1919 " USAGE"
2020 ],
2121 "dependencies" : {
22- "catering" : " ^2.0 .0" ,
22+ "catering" : " ^2.1 .0" ,
2323 "deglob" : " ^4.0.0" ,
2424 "find-file-up" : " ^2.0.1" ,
2525 "find-githost" : " ^1.0.0" ,
You can’t perform that action at this time.
0 commit comments