trpc-to-openapi
Advanced tools
Comparing version
@@ -16,13 +16,3 @@ "use strict"; | ||
request.raw.url = prefixRemovedFromUrl; | ||
return await openApiHttpHandler(request, Object.assign(reply, { | ||
once: () => undefined, | ||
setHeader: (key, value) => { | ||
if (Array.isArray(value)) { | ||
value.forEach((v) => reply.header(key, v)); | ||
return reply; | ||
} | ||
return reply.header(key, value); | ||
}, | ||
end: (body) => reply.send(body), | ||
})); | ||
return await openApiHttpHandler(request, reply.raw); | ||
}); | ||
@@ -29,0 +19,0 @@ done(); |
{ | ||
"name": "trpc-to-openapi", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "tRPC OpenAPI", | ||
@@ -5,0 +5,0 @@ "author": "mcampa", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
255064
-0.62%2720
-0.73%