106 lines
22 KiB
JSON
106 lines
22 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "boom@4.x.x",
|
||
|
"scope": null,
|
||
|
"escapedName": "boom",
|
||
|
"name": "boom",
|
||
|
"rawSpec": "4.x.x",
|
||
|
"spec": ">=4.0.0 <5.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/hawk"
|
||
|
]
|
||
|
],
|
||
|
"_from": "boom@>=4.0.0 <5.0.0",
|
||
|
"_id": "boom@4.3.1",
|
||
|
"_inCache": true,
|
||
|
"_location": "/boom",
|
||
|
"_nodeVersion": "7.6.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "packages-12-west.internal.npmjs.com",
|
||
|
"tmp": "tmp/boom-4.3.1.tgz_1490708346910_0.7436342970468104"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "arb",
|
||
|
"email": "arbretz@gmail.com"
|
||
|
},
|
||
|
"_npmVersion": "4.4.1",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "boom@4.x.x",
|
||
|
"scope": null,
|
||
|
"escapedName": "boom",
|
||
|
"name": "boom",
|
||
|
"rawSpec": "4.x.x",
|
||
|
"spec": ">=4.0.0 <5.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/hawk"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz",
|
||
|
"_shasum": "4f8a3005cb4a7e3889f749030fd25b96e01d2e31",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "boom@4.x.x",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/hawk",
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/hapijs/boom/issues"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"hoek": "4.x.x"
|
||
|
},
|
||
|
"description": "HTTP-friendly error objects",
|
||
|
"devDependencies": {
|
||
|
"code": "4.x.x",
|
||
|
"lab": "13.x.x",
|
||
|
"markdown-toc": "0.12.x"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "4f8a3005cb4a7e3889f749030fd25b96e01d2e31",
|
||
|
"tarball": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">=4.0.0"
|
||
|
},
|
||
|
"gitHead": "3d30c69faf6733a1604b400df71ed4781799a032",
|
||
|
"homepage": "https://github.com/hapijs/boom#readme",
|
||
|
"keywords": [
|
||
|
"error",
|
||
|
"http"
|
||
|
],
|
||
|
"license": "BSD-3-Clause",
|
||
|
"main": "lib/index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "hueniverse",
|
||
|
"email": "eran@hueniverse.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "wyatt",
|
||
|
"email": "wpreul@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "arb",
|
||
|
"email": "arbretz@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "boom",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "![boom Logo](https://raw.github.com/hapijs/boom/master/images/boom.png)\n\nHTTP-friendly error objects\n\n[![Build Status](https://secure.travis-ci.org/hapijs/boom.svg)](http://travis-ci.org/hapijs/boom)\n[![Current Version](https://img.shields.io/npm/v/boom.svg)](https://www.npmjs.com/package/boom)\n\nLead Maintainer: [Adam Bretz](https://github.com/arb)\n\n<!-- toc -->\n\n- [Boom](#boom)\n - [Helper Methods](#helper-methods)\n - [`wrap(error, [statusCode], [message])`](#wraperror-statuscode-message)\n - [`create(statusCode, [message], [data])`](#createstatuscode-message-data)\n - [HTTP 4xx Errors](#http-4xx-errors)\n - [`Boom.badRequest([message], [data])`](#boombadrequestmessage-data)\n - [`Boom.unauthorized([message], [scheme], [attributes])`](#boomunauthorizedmessage-scheme-attributes)\n - [`Boom.paymentRequired([message], [data])`](#boompaymentrequiredmessage-data)\n - [`Boom.forbidden([message], [data])`](#boomforbiddenmessage-data)\n - [`Boom.notFound([message], [data])`](#boomnotfoundmessage-data)\n - [`Boom.methodNotAllowed([message], [data], [allow])`](#boommethodnotallowedmessage-data-allow)\n - [`Boom.notAcceptable([message], [data])`](#boomnotacceptablemessage-data)\n - [`Boom.proxyAuthRequired([message], [data])`](#boomproxyauthrequiredmessage-data)\n - [`Boom.clientTimeout([message], [data])`](#boomclienttimeoutmessage-data)\n - [`Boom.conflict([message], [data])`](#boomconflictmessage-data)\n - [`Boom.resourceGone([message], [data])`](#boomresourcegonemessage-data)\n - [`Boom.lengthRequired([message], [data])`](#boomlengthrequiredmessage-data)\n - [`Boom.preconditionFailed([message], [data])`](#boompreconditionfailedmessage-data)\n - [`Boom.entityTooLarge([message], [data])`](#boomentitytoolargemessage-data)\n - [`Boom.uriTooLong([message], [data])`](#boomuritoolongmessage-data)\n - [`Boom.unsupportedMediaType([message], [data])`](#boomunsupportedmediatypemessage-data)\n - [`Boom.rangeNotSatisfiable([message], [data])`](#boomrangenotsatisfiablemessage-data)\n - [`Boom.expectationFailed([message], [data])`](#boomexpectationfailedmessage-data)\n - [`Boom.teapot([message], [data])`](#boomteapotmessage-data)\n - [`Boom.badData([message], [data])`](#boombaddatamessage-data)\n - [`Boom.locked([message], [data])`](#boomlockedmessage-data)\n - [`Boom.preconditionRequired([message], [data])`](#boompreconditionrequiredmessage-data)\n - [`Boom.tooManyRequests([message], [data])`](#boomtoomanyrequestsmessage-data)\n - [`Boom.illegal([message], [data])`](#boomillegalmessage-data)\n - [HTTP 5xx Errors](#http-5xx-errors)\n - [`Boom.badImplementation([message], [data])` - (*alias: `internal`*)](#boombadimplementationmessage-data---alias-internal)\n - [`Boom.notImplemented([message], [data])`](#boomnotimplementedmessage-data)\n - [`Boom.badGateway([message], [data])`](#boombadgatewaymessage-data)\n - [`Boom.serverUnavailable([message], [data])`](#boomserverunavailablemessage-data)\n - [`Boom.gatewayTimeout([message], [data])`](#boomgatewaytimeoutmessage-data)\n - [F.A.Q.](#faq)\n\n<!-- tocstop -->\n\n# Boom\n\n**boom** provides a set of utilities for returning HTTP errors. Each utility returns a `Boom` error response\nobject (instance of `Error`) which includes the following properties:\n- `isBoom` - if `true`, indicates this is a `Boom` object instance.\n- `isServer` - convenience bool indicating status code >= 500.\n- `message` - the error message.\n- `output` - the formatted response. Can be directly manipulated after object construction to return a custom\n error response. Allowed root keys:\n - `statusCode` - the HTTP status code (typically 4xx or 5xx).\n - `headers` - an object containing any HTTP headers where each key is a header name and value is the header content.\n - `payload` - the formatted object used as the response payload (stringified). Can be directly manipulated but any\n changes will be lost\n if `reformat()` is called. Any content allowed and by default includes the foll
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/hapijs/boom.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "lab -a code -t 100 -L -v",
|
||
|
"test-cov-html": "lab -a code -r html -o coverage.html -L",
|
||
|
"toc": "node generate-toc.js",
|
||
|
"version": "npm run toc && git add README.md"
|
||
|
},
|
||
|
"version": "4.3.1"
|
||
|
}
|