Comparing version 3.2.1 to 3.2.2
@@ -378,8 +378,11 @@ 'use strict'; | ||
exports.serverTimeout = function (message, data) { | ||
exports.serverUnavailable = function (message, data) { | ||
return internals.serverError(message, data, 503, exports.serverTimeout); | ||
return internals.serverError(message, data, 503, exports.serverUnavailable); | ||
}; | ||
// Deprecated | ||
exports.serverTimeout = exports.serverUnavailable; | ||
exports.gatewayTimeout = function (message, data) { | ||
@@ -386,0 +389,0 @@ |
{ | ||
"name": "boom", | ||
"description": "HTTP-friendly error objects", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"repository": "git://github.com/hapijs/boom", | ||
@@ -26,5 +26,5 @@ "main": "lib/index.js", | ||
"toc": "node generate-toc.js", | ||
"postversion": "npm run toc && git commit -a --amend --no-edit" | ||
"version": "npm run toc && git add README.md" | ||
}, | ||
"license": "BSD-3-Clause" | ||
} |
@@ -43,3 +43,3 @@ ![boom Logo](https://raw.github.com/hapijs/boom/master/images/boom.png) | ||
- [`Boom.badGateway([message], [data])`](#boombadgatewaymessage-data) | ||
- [`Boom.serverTimeout([message], [data])`](#boomservertimeoutmessage-data) | ||
- [`Boom.serverUnavailable([message], [data])`](#boomserverunavailablemessage-data) | ||
- [`Boom.gatewayTimeout([message], [data])`](#boomgatewaytimeoutmessage-data) | ||
@@ -657,3 +657,3 @@ - [F.A.Q.](#faq) | ||
### `Boom.serverTimeout([message], [data])` | ||
### `Boom.serverUnavailable([message], [data])` | ||
@@ -665,3 +665,3 @@ Returns a 503 Service Unavailable error where: | ||
```js | ||
Boom.serverTimeout('unavailable'); | ||
Boom.serverUnavailable('unavailable'); | ||
``` | ||
@@ -668,0 +668,0 @@ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
30049
4
263