fastify-graylog-reporter
Advanced tools
Comparing version 1.13.0 to 1.13.1
@@ -1,6 +0,6 @@ | ||
# [1.13.0](https://github.com/Blynskyniki/fastify-graylog-reporter/compare/v1.12.0...v1.13.0) (2023-10-13) | ||
## [1.13.1](https://github.com/Blynskyniki/fastify-graylog-reporter/compare/v1.13.0...v1.13.1) (2023-11-21) | ||
### Features | ||
### Bug Fixes | ||
* update description ([18e5355](https://github.com/Blynskyniki/fastify-graylog-reporter/commit/18e5355397d81bb012a829289d50df3243e4c491)) | ||
* return payload in async on Send Hook ([16471de](https://github.com/Blynskyniki/fastify-graylog-reporter/commit/16471de3c3e76dae93577c29a272b872be6e0161)) |
@@ -11,3 +11,3 @@ "use strict"; | ||
const instance = new Gelf_1.GrayLogGelfReporter(options); | ||
fastify.addHook('onSend', async (request, reply, response) => { | ||
fastify.addHook('onSend', async (request, reply, payload) => { | ||
var _a, _b; | ||
@@ -26,3 +26,3 @@ const { query, params, body, headers, routerMethod, routerPath, credentials } = request; | ||
body, | ||
response, | ||
response: payload, | ||
credentials, | ||
@@ -42,3 +42,7 @@ responseStatusCode: reply.statusCode, | ||
console.error(err); | ||
console.error(err.stack); | ||
} | ||
finally { | ||
return payload; | ||
} | ||
}); | ||
@@ -45,0 +49,0 @@ done(); |
{ | ||
"name": "fastify-graylog-reporter", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"description": "Fastify plugin for report request data to Graylog", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Blynskyniki/fastify-graylog-reporter#readme", |
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
145781
316