Tags: godaddy/terminus
Tags
feat(status): Custom status response (#192) * Added statusOkResponse to configuration The new configuration property: statusOkResponse will allow to globally configure the HTTP response body, used to respond with on a successful healthcheck. * Memoize the value of statusOkResponse When no healthtchecks were defined, the value of statusOkResponse would be returned as is. Therefore, memoizing its string representation would boost performance. * Added statusErrorResponse to configuration The new configuration property: statusErrorResponse will allow to globally configure the HTTP response body, used to respond with on an unsuccessful healthcheck. An unsuccessful healthcheck may override the global statusErrorResponse property by setting the statusResponse property on the Error object. * Incorporated use of headers
fix: upgrade mongodb from 3.1.13 to 3.7.3 (#218) Snyk has created this PR to upgrade mongodb from 3.1.13 to 3.7.3. See this package in npm: https://www.npmjs.com/package/mongodb See this project in Snyk: https://app.snyk.io/org/jgowdy/project/70fbeb05-9d70-4742-bfc8-2967637af789?utm_source=github&utm_medium=referral&page=upgrade-pr Co-authored-by: snyk-bot <snyk-bot@snyk.io>
feat(status): custom status codes (#190) * feat(status): custom status codes * revert(binary) revert lockfile change * Custom status (#191) * Revert "feat(status): custom status codes" This reverts commit 522df64. * Added statusOk and statusError to configuration The new configuration properties: statusOk and statusError will allow to globally configure the HTTP codes, used to respond with on a successful or an unsuccessful healthcheck respectively. An unsuccessful healthcheck may override the global statusError property by setting the statusCode property on the Error object. * Added typings for statusOk and statusError Co-authored-by: rxmarbles <rmarkins@gmail.com> Co-authored-by: Matanel Sindilevich <sindilevich@users.noreply.github.com>
PreviousNext