fastify-decorators
Advanced tools
Comparing version 3.13.0 to 3.13.1
@@ -8,2 +8,9 @@ # Changelog | ||
## 3.13.1 | ||
### Fixed | ||
- Tags from controller not applied to routes when handler has schema object | ||
## 3.13.0 | ||
@@ -10,0 +17,0 @@ |
@@ -54,3 +54,3 @@ /** | ||
const { url, method, handlerMethod, options } = handler; | ||
instance[method](url, tags.length > 0 ? { schema: { tags: tags.map((tag) => tag.name), ...options.schema }, ...options } : options, function (request, ...args) { | ||
instance[method](url, tags.length > 0 ? { ...options, schema: { tags: tags.map((tag) => tag.name), ...options.schema } } : options, function (request, ...args) { | ||
return getTarget(request)[handlerMethod](request, ...args); | ||
@@ -72,3 +72,3 @@ }); | ||
handlers.forEach((handler) => { | ||
instance[handler.method](handler.url, tags.length > 0 ? { schema: { tags: tags.map((it) => it.name), ...handler.options.schema }, ...handler.options } : handler.options, controllerInstance[handler.handlerMethod].bind(controllerInstance)); | ||
instance[handler.method](handler.url, tags.length > 0 ? { ...handler.options, schema: { tags: tags.map((it) => it.name), ...handler.options.schema } } : handler.options, controllerInstance[handler.handlerMethod].bind(controllerInstance)); | ||
}); | ||
@@ -84,2 +84,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbGxlci10eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGliL2RlY29yYXRvcnMvc3RyYXRlZ2llcy9jb250cm9sbGVyLXR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBS0gsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBQ25FLE9BQU8sRUFBRSxjQUFjLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQ3pFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxXQUFXLEVBQ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2lzdGVyRXJyb3JIYW5kbGVycyhcbiAgZXJyb3JIYW5kbGVyczogSUVycm9ySGFuZGxlcltdLFxuICBpbnN0YW5jZTogRmFzdGlmeUluc3RhbmNlLFxuICBjbGFzc0luc3RhbmNlOiBSZWNvcmQ8c3RyaW5nLCAoZXJyb3I6IEVycm9yLCByZXF1ZXN0OiBGYXN0aWZ5UmVxdWVzdCwgcmVwbHk6IEZhc3RpZnlSZXBseSkgPT4gdm9pZD4sXG4pIHtcbiAgaW5zdGFuY2Uuc2V0RXJyb3JIYW5kbGVyKGNyZWF0ZUVycm9yc0hhbmRsZXIoZXJyb3JIYW5kbGVycywgY2xhc3NJbnN0YW5jZSkpO1xufVxuIl19 |
@@ -0,0 +0,0 @@ <h1 style="text-align: center">Fastify decorators</h1> |
@@ -0,0 +0,0 @@ <h1 style="text-align: center">Fastify decorators</h1> |
{ | ||
"name": "fastify-decorators", | ||
"version": "3.13.0", | ||
"version": "3.13.1", | ||
"description": "Framework aimed to provide useful TypeScript decorators to implement controllers, services and request handlers, built with Fastify.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,2 +0,2 @@ | ||
[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v3.13.0/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators) | ||
[![Fastify decorators](https://raw.githubusercontent.com/L2jLiga/fastify-decorators/v3.13.1/assets/logo.png)](https://github.com/L2jLiga/fastify-decorators) | ||
@@ -255,7 +255,7 @@ [![npm version](https://badge.fury.io/js/fastify-decorators.svg?colorB=brightgreen)](https://www.npmjs.com/package/fastify-decorators) | ||
[fastify resty]: https://github.com/FastifyResty/fastify-resty | ||
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.0/docs/Bootstrapping.md | ||
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.0/docs/Controllers.md | ||
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.0/docs/Request%20Handlers.md | ||
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.0/docs/Services%20and%20dependency%20injection.md | ||
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.0/docs/Testing.md | ||
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.0/docs/Migration%20to%20v3.md | ||
[bootstrapping]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Bootstrapping.md | ||
[controllers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Controllers.md | ||
[request handlers]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Request%20Handlers.md | ||
[services and dependency injection]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Services%20and%20dependency%20injection.md | ||
[testing]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Testing.md | ||
[migration guide (v3)]: https://github.com/L2jLiga/fastify-decorators/blob/v3.13.1/docs/Migration%20to%20v3.md |
Sorry, the diff of this file is not supported yet
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
325374