winston-slack-webhook-transport
Advanced tools
Changelog
2.3.6 (2024/11/12)
Changelog
2.3.5 (2024/3/21)
Changelog
2.3.2 (2023/5/10)
SlackHookOptions
type now extends TransportStreamOptions
, properly this time. This change is courtesy of Pull #28. Thanks again @DominicRoyStang!Changelog
2.3.0 (2023/4/5)
Added an option (emitAxiosErrors
) to enable or disable emitting errors if Axios throws an error. Previously, if Axios returned an error for any reason, this would emit an error, which if unhandled would be treated as an unhandled exception. This includes potentially transient issues, such as if Slack would return an error for any reason, including API outages or 429 Too Many Requests
errors. This option requires the user to explicitly opt into this behavior, and is false
by default. This closes Issue #24. Thanks @jbojbo for bringing this to my attention!
When I had initially added the code that would do that, I was under the impression this would log the Slack error to Winston itself as an error, but after rereading the relevant documentation I realized this was not the case.
Minor change to the log()
function to make it an async function, which simplifies some minor aspects of unit testing. This should have no impact on using the transport within Winston.
Updated tests to check the error handling behavior.
Added new option to the type definitions.
Added a Prettier script and prettierrc.
Updated dependencies, and double checked to make sure everything continued to work this time.
Changelog
2.2.1 (2022/10/6)