Skip to content

Commit

Permalink
fix: upgrade swagger, other dep
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Dec 14, 2020
1 parent 31359ac commit c14c3db
Show file tree
Hide file tree
Showing 3 changed files with 650 additions and 761 deletions.
13 changes: 6 additions & 7 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,12 @@ export function koaSwagger(
const options: KoaSwaggerUiOptions = defaultsDeep(config, defaultOptions);
Handlebars.registerHelper('json', (context) => JSON.stringify(context));
Handlebars.registerHelper('strfnc', (fnc: HelperDelegate) => fnc);
Handlebars.registerHelper('isset', function (
this: any,
conditional: any,
opt: HelperOptions,
) {
return conditional ? opt.fn(this) : opt.inverse(this);
});
Handlebars.registerHelper(
'isset',
function (this: any, conditional: any, opt: HelperOptions) {
return conditional ? opt.fn(this) : opt.inverse(this);
},
);
const index = Handlebars.compile(
readFileSync(join(__dirname, './index.hbs'), 'utf-8'),
);
Expand Down
Loading

0 comments on commit c14c3db

Please sign in to comment.