Comparing version 16.7.0 to 16.8.4
'use strict'; | ||
// Load modules | ||
const Boom = require('boom'); | ||
const Hoek = require('hoek'); | ||
const Schema = require('./schema'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -13,0 +10,0 @@ |
'use strict'; | ||
// Load modules | ||
const Zlib = require('zlib'); | ||
const Zlib = require('zlib'); | ||
const Accept = require('accept'); | ||
@@ -10,4 +9,2 @@ const Hoek = require('hoek'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -14,0 +11,0 @@ |
'use strict'; | ||
// Load modules | ||
const Http = require('http'); | ||
@@ -9,2 +7,3 @@ const Https = require('https'); | ||
const Path = require('path'); | ||
const Boom = require('boom'); | ||
@@ -16,2 +15,3 @@ const Call = require('call'); | ||
const Statehood = require('statehood'); | ||
const Auth = require('./auth'); | ||
@@ -24,4 +24,2 @@ const Compression = require('./compression'); | ||
// Declare internals | ||
const internals = { | ||
@@ -31,3 +29,4 @@ counter: { | ||
max: 99999 | ||
} | ||
}, | ||
badRequestResponse: Buffer.from('HTTP/1.1 400 Bad Request\r\n\r\n', 'ascii') | ||
}; | ||
@@ -101,3 +100,9 @@ | ||
this.server._log(['connection', 'client', 'error'], err); | ||
socket.destroy(err); | ||
if (socket.writable) { | ||
socket.end(internals.badRequestResponse); | ||
} | ||
else { | ||
socket.destroy(err); | ||
} | ||
}); | ||
@@ -104,0 +109,0 @@ |
'use strict'; | ||
// Load modules | ||
const Boom = require('boom'); | ||
const Hoek = require('hoek'); | ||
const Defaults = require('./defaults'); | ||
@@ -11,4 +10,2 @@ let Route = null; // Delayed load due to circular dependency | ||
// Declare internals | ||
const internals = {}; | ||
@@ -15,0 +12,0 @@ |
'use strict'; | ||
// Load modules | ||
const Os = require('os'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -11,0 +7,0 @@ |
'use strict'; | ||
// Load modules | ||
const Hoek = require('hoek'); | ||
@@ -9,4 +7,2 @@ const Topo = require('topo'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -13,0 +9,0 @@ |
'use strict'; | ||
// Load modules | ||
const Hoek = require('hoek'); | ||
const Boom = require('boom'); | ||
const Items = require('items'); | ||
const Methods = require('./methods'); | ||
@@ -13,4 +12,2 @@ const Promises = require('./promises'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -17,0 +14,0 @@ |
'use strict'; | ||
// Load modules | ||
const Server = require('./server'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -11,0 +7,0 @@ |
'use strict'; | ||
// Load modules | ||
const Boom = require('boom'); | ||
const Hoek = require('hoek'); | ||
const Schema = require('./schema'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -13,0 +10,0 @@ |
'use strict'; | ||
// Load modules | ||
const Catbox = require('catbox'); | ||
@@ -10,2 +8,3 @@ const Hoek = require('hoek'); | ||
const Somever = require('somever'); | ||
const Connection = require('./connection'); | ||
@@ -18,4 +17,2 @@ const Ext = require('./ext'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -22,0 +19,0 @@ |
'use strict'; | ||
// Load modules | ||
// Declare internals | ||
const internals = {}; | ||
@@ -9,0 +4,0 @@ |
'use strict'; | ||
// Load modules | ||
let Domain = null; // Loaded as needed | ||
let Domain = null; // Loaded as needed | ||
const Boom = require('boom'); | ||
@@ -10,4 +9,2 @@ const Hoek = require('hoek'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -14,0 +11,0 @@ |
'use strict'; | ||
// Load modules | ||
const Hoek = require('hoek'); | ||
const Hoek = require('hoek'); | ||
const Response = require('./response'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -12,0 +9,0 @@ |
'use strict'; | ||
// Load modules | ||
const Url = require('url'); | ||
const Url = require('url'); | ||
const Boom = require('boom'); | ||
@@ -10,2 +9,3 @@ const Hoek = require('hoek'); | ||
const Podium = require('podium'); | ||
const Cors = require('./cors'); | ||
@@ -17,4 +17,2 @@ const Protect = require('./protect'); | ||
// Declare internals | ||
const internals = { | ||
@@ -21,0 +19,0 @@ properties: ['connection', 'server', 'url', 'query', 'path', 'method', 'mime', 'setUrl', 'setMethod', 'headers', 'id', 'app', 'plugins', 'route', 'auth', 'pre', 'preResponses', 'info', 'orig', 'params', 'paramsArray', 'payload', 'state', 'jsonp', 'response', 'raw', 'tail', 'addTail', 'domain', 'log', 'getLog', 'generateResponse'], |
'use strict'; | ||
// Load modules | ||
const Stream = require('stream'); | ||
const Stream = require('stream'); | ||
const Boom = require('boom'); | ||
const Hoek = require('hoek'); | ||
const Podium = require('podium'); | ||
const Streams = require('./streams'); | ||
// Declare internals | ||
const internals = { | ||
@@ -15,0 +13,0 @@ emitter: new Podium(['finish', { name: 'peek', spread: true }]) |
'use strict'; | ||
// Load modules | ||
const Boom = require('boom'); | ||
@@ -9,2 +7,3 @@ const Catbox = require('catbox'); | ||
const Subtext = require('subtext'); | ||
const Auth = require('./auth'); | ||
@@ -20,4 +19,2 @@ const Cors = require('./cors'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -24,0 +21,0 @@ |
'use strict'; | ||
// Load modules | ||
const Joi = require('joi'); | ||
@@ -9,4 +7,2 @@ const Hoek = require('hoek'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -13,0 +9,0 @@ |
'use strict'; | ||
// Load modules | ||
const Hoek = require('hoek'); | ||
const Hoek = require('hoek'); | ||
const Defaults = require('./defaults'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -12,0 +9,0 @@ |
'use strict'; | ||
// Load modules | ||
const Catbox = require('catbox'); | ||
@@ -13,2 +11,3 @@ const CatboxMemory = require('catbox-memory'); | ||
const Somever = require('somever'); | ||
const Connection = require('./connection'); | ||
@@ -25,4 +24,2 @@ const Defaults = require('./defaults'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -29,0 +26,0 @@ |
'use strict'; | ||
// Load modules | ||
// Declare internals | ||
const internals = {}; | ||
@@ -9,0 +4,0 @@ |
'use strict'; | ||
// Load modules | ||
const Http = require('http'); | ||
const Stream = require('stream'); | ||
const Ammo = require('ammo'); | ||
@@ -12,2 +11,3 @@ const Boom = require('boom'); | ||
const Shot = require('shot'); | ||
const Auth = require('./auth'); | ||
@@ -19,4 +19,2 @@ const Cors = require('./cors'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -23,0 +21,0 @@ |
'use strict'; | ||
// Load modules | ||
const Boom = require('boom'); | ||
@@ -10,4 +8,2 @@ const Hoek = require('hoek'); | ||
// Declare internals | ||
const internals = {}; | ||
@@ -139,3 +135,4 @@ | ||
} | ||
} | ||
}, | ||
escapeHtml: true | ||
}; | ||
@@ -142,0 +139,0 @@ |
@@ -5,6 +5,6 @@ { | ||
"homepage": "http://hapijs.com", | ||
"version": "16.7.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/hapijs/hapi" | ||
"version": "16.8.4", | ||
"repository": "git://github.com/hapijs/hapi", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
@@ -18,22 +18,25 @@ "main": "lib/index.js", | ||
], | ||
"files": [ | ||
"lib" | ||
], | ||
"dependencies": { | ||
"accept": "2.x.x", | ||
"ammo": "2.x.x", | ||
"boom": "5.x.x", | ||
"call": "4.x.x", | ||
"catbox": "7.x.x", | ||
"catbox-memory": "2.x.x", | ||
"cryptiles": "3.x.x", | ||
"heavy": "4.x.x", | ||
"hoek": "4.x.x", | ||
"iron": "4.x.x", | ||
"items": "2.x.x", | ||
"joi": "11.x.x", | ||
"mimos": "3.x.x", | ||
"podium": "1.x.x", | ||
"shot": "3.x.x", | ||
"somever": "1.x.x", | ||
"statehood": "5.x.x", | ||
"subtext": "5.x.x", | ||
"topo": "2.x.x" | ||
"accept": "^2.2.2", | ||
"ammo": "^2.1.1", | ||
"boom": "^5.3.1", | ||
"call": "^4.1.1", | ||
"catbox": "^7.2.0", | ||
"catbox-memory": "^2.1.0", | ||
"cryptiles": "^3.2.0", | ||
"heavy": "^4.1.0", | ||
"hoek": "^4.3.0", | ||
"iron": "^4.1.0", | ||
"items": "^2.2.0", | ||
"joi": "^12.1.0", | ||
"mimos": "^3.1.0", | ||
"podium": "^1.4.0", | ||
"shot": "^3.5.1", | ||
"somever": "^1.1.0", | ||
"statehood": "^5.1.0", | ||
"subtext": "^5.1.2", | ||
"topo": "^2.1.0" | ||
}, | ||
@@ -46,8 +49,8 @@ "devDependencies": { | ||
"vision": "4.x.x", | ||
"wreck": "12.x.x" | ||
"wreck": "^12.6.1" | ||
}, | ||
"scripts": { | ||
"test": "lab -a code -t 100 -L -I SharedArrayBuffer,Atomics,BigUint64Array,BigInt64Array,BigInt,URL,URLSearchParams -m 3000" | ||
"test": "lab -a code -t 100 -L -m 3000 -l" | ||
}, | ||
"license": "BSD-3-Clause" | ||
"license": "SEE LICENSE IN LICENSE.md" | ||
} |
@@ -1,19 +0,16 @@ | ||
<img src="https://raw.github.com/hapijs/hapi/master/images/hapi.png" /> | ||
<img src="https://raw.githubusercontent.com/hapijs/assets/master/images/hapi.png" width="400px" /> | ||
### Web and services application framework | ||
# hapi | ||
Lead Maintainer: [Eran Hammer](https://github.com/hueniverse) | ||
## The Simple, Secure Framework Developers Trust | ||
**hapi** is a simple to use configuration-centric framework with built-in support for input validation, caching, | ||
authentication, and other essential facilities for building web and services applications. **hapi** enables | ||
developers to focus on writing reusable application logic in a highly modular and prescriptive approach. | ||
Build powerful, scalable applications, with minimal overhead and full out-of-the-box functionality - your code, your way. | ||
This **v16** is a maintenance-only branch for those unable to update to the latest major | ||
version of the core module. It on receives critical bug fixes and security patches. It will stop | ||
being maintained on March 1st, 2019. | ||
### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support | ||
[![Build Status](https://secure.travis-ci.org/hapijs/hapi.svg?branch=v16)](http://travis-ci.org/hapijs/hapi) | ||
## Useful resources | ||
For the latest updates, [change log](http://hapijs.com/updates), and release information visit | ||
[hapijs.com](http://hapijs.com) and follow [@hapijs](https://twitter.com/hapijs) on twitter. If you | ||
have questions, please open an issue in the [discussion forum](https://github.com/hapijs/discuss). | ||
- [Documentation and API](https://hapi.dev/) | ||
- [Version status](https://hapi.dev/resources/status/#hapi) (builds, dependencies, node versions, licenses, eol) | ||
- [Project policies](https://hapi.dev/policies/) | ||
- [Free and commercial support options](https://hapi.dev/support/) |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
184615
25
1
1
80
4527
17
1
4
- Removedisemail@3.2.0(transitive)
- Removedjoi@11.4.0(transitive)
- Removedpunycode@2.3.1(transitive)
Updatedaccept@^2.2.2
Updatedammo@^2.1.1
Updatedboom@^5.3.1
Updatedcall@^4.1.1
Updatedcatbox@^7.2.0
Updatedcatbox-memory@^2.1.0
Updatedcryptiles@^3.2.0
Updatedheavy@^4.1.0
Updatedhoek@^4.3.0
Updatediron@^4.1.0
Updateditems@^2.2.0
Updatedjoi@^12.1.0
Updatedmimos@^3.1.0
Updatedpodium@^1.4.0
Updatedshot@^3.5.1
Updatedsomever@^1.1.0
Updatedstatehood@^5.1.0
Updatedsubtext@^5.1.2
Updatedtopo@^2.1.0