@inversify-cn/swagger-express-ts
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -45,2 +45,3 @@ "use strict"; | ||
var modelGenerator = require("./model-generator"); | ||
var _ = require("lodash"); | ||
function express(options) { | ||
@@ -65,3 +66,3 @@ var path = '/api-docs/swagger.json'; | ||
var router = express_1.Router(); | ||
router.get(path, function (request, response, next) { return __awaiter(_this, void 0, void 0, function () { | ||
router.get(path, _.memoize(function (request, response, next) { return __awaiter(_this, void 0, void 0, function () { | ||
var data; | ||
@@ -78,3 +79,3 @@ return __generator(this, function (_a) { | ||
}); | ||
}); }); | ||
}); })); | ||
return router; | ||
@@ -81,0 +82,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Generate and serve swagger.json", | ||
@@ -9,0 +9,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
747934
11682