nestjs-swagger-koa
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -117,3 +117,3 @@ "use strict"; | ||
httpAdapter.get((0, normalize_rel_path_1.normalizeRelPath)(options.jsonDocumentUrl), (req, res) => { | ||
res.type('application/json'); | ||
httpAdapter.setHeader(res, 'Content-Type', 'application/json'); | ||
const document = getBuiltDocument(); | ||
@@ -123,6 +123,6 @@ const documentToSerialize = options.swaggerOptions.patchDocumentOnRequest | ||
: document; | ||
res.send(JSON.stringify(documentToSerialize)); | ||
httpAdapter.reply(res, JSON.stringify(documentToSerialize), 200); | ||
}); | ||
httpAdapter.get((0, normalize_rel_path_1.normalizeRelPath)(options.yamlDocumentUrl), (req, res) => { | ||
res.type('text/yaml'); | ||
httpAdapter.setHeader(res, 'Content-Type', 'text/yaml'); | ||
const document = getBuiltDocument(); | ||
@@ -136,3 +136,3 @@ const documentToSerialize = options.swaggerOptions.patchDocumentOnRequest | ||
}); | ||
res.send(yamlDocument); | ||
httpAdapter.reply(res, yamlDocument, 200); | ||
}); | ||
@@ -139,0 +139,0 @@ } |
{ | ||
"name": "nestjs-swagger-koa", | ||
"description": "NestJS module for generating Swagger documentation for Koa applications", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"scripts": { | ||
@@ -54,3 +54,3 @@ "build": "rimraf dist && tsc -p tsconfig.build.json", | ||
"@types/jest": "29.5.12", | ||
"@types/node": "20.14.9", | ||
"@types/node": "20.14.10", | ||
"@typescript-eslint/eslint-plugin": "5.62.0", | ||
@@ -67,6 +67,6 @@ "@typescript-eslint/parser": "5.62.0", | ||
"reflect-metadata": "0.2.2", | ||
"release-it": "17.4.1", | ||
"rimraf": "5.0.7", | ||
"release-it": "17.5.0", | ||
"rimraf": "6.0.1", | ||
"rxjs": "7.8.1", | ||
"ts-jest": "29.1.5", | ||
"ts-jest": "29.2.2", | ||
"ts-node": "10.9.2", | ||
@@ -73,0 +73,0 @@ "typescript": "5.5.3" |
18416