koa2-swagger-ui
Advanced tools
Comparing version 5.7.0 to 5.8.0
@@ -72,3 +72,3 @@ "use strict"; | ||
const index = Handlebars.compile((0, fs_1.readFileSync)((0, path_1.join)(__dirname, './index.hbs'), 'utf-8')); | ||
// eslint-disable-next-line func-names | ||
// eslint-disable-next-line func-names, @typescript-eslint/promise-function-async | ||
return function koaSwaggerUi(ctx, next) { | ||
@@ -75,0 +75,0 @@ if (options.exposeSpec && specPrefixRegex.test(ctx.path)) { |
{ | ||
"name": "koa2-swagger-ui", | ||
"version": "5.7.0", | ||
"version": "5.8.0", | ||
"description": "Swagger UI middleware for koa", | ||
@@ -15,3 +15,3 @@ "main": "dist/index.js", | ||
"prepare": "npm run build", | ||
"build": "del-cli dist && tsc -p tsconfig.build.json", | ||
"build": "tsc -p tsconfig.build.json", | ||
"postbuild": "cp lib/index.hbs dist && cp lib/favicon.png dist", | ||
@@ -23,3 +23,3 @@ "test": "jest", | ||
"dependencies": { | ||
"@types/koa": "^2.13.5", | ||
"@types/koa": "^2.13.6", | ||
"handlebars": "^4.7.7", | ||
@@ -30,18 +30,17 @@ "lodash": "^4.17.21", | ||
"devDependencies": { | ||
"@babel/plugin-transform-modules-commonjs": "7.20.11", | ||
"@babel/preset-typescript": "7.18.6", | ||
"@ctrl/eslint-config": "3.5.10", | ||
"@jest/globals": "29.3.1", | ||
"@babel/plugin-transform-modules-commonjs": "7.21.5", | ||
"@babel/preset-typescript": "7.21.5", | ||
"@ctrl/eslint-config": "3.7.0", | ||
"@jest/globals": "29.5.0", | ||
"@types/koa-router": "7.4.4", | ||
"@types/lodash": "4.14.191", | ||
"@types/node": "18.11.18", | ||
"@types/lodash": "4.14.194", | ||
"@types/node": "20.1.4", | ||
"@types/supertest": "2.0.12", | ||
"del-cli": "5.0.0", | ||
"jest": "29.3.1", | ||
"koa": "2.14.1", | ||
"jest": "29.5.0", | ||
"koa": "2.14.2", | ||
"koa-router": "12.0.0", | ||
"supertest": "6.3.3", | ||
"swagger-ui-dist": "4.15.5", | ||
"swagger-ui-dist": "4.18.3", | ||
"ts-node": "10.9.1", | ||
"typescript": "4.9.4" | ||
"typescript": "5.0.4" | ||
}, | ||
@@ -53,2 +52,6 @@ "release": { | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"provenance": true | ||
}, | ||
"jest": { | ||
@@ -55,0 +58,0 @@ "testEnvironment": "node" |
Sorry, the diff of this file is not supported yet
21883
15
Updated@types/koa@^2.13.6