fix(deps): update to latest hapi, joi and boom. requires node 4+
This commit is contained in:
Родитель
40bef0a877
Коммит
d975d21aae
|
@ -3,7 +3,6 @@ language: node_js
|
|||
sudo: false
|
||||
|
||||
node_js:
|
||||
- '0.10'
|
||||
- '4'
|
||||
|
||||
addons:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:0.10.46
|
||||
FROM node:4.5
|
||||
|
||||
RUN groupadd --gid 10001 app && \
|
||||
useradd --uid 10001 --gid 10001 --home /app --create-home app
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const Hapi = require('hapi');
|
||||
const Inert = require('inert');
|
||||
|
||||
const config = require('../config').getProperties();
|
||||
const logger = require('../logging')('server.static');
|
||||
|
@ -12,6 +13,8 @@ exports.create = function() {
|
|||
debug: false
|
||||
});
|
||||
|
||||
server.register(Inert, function() {});
|
||||
|
||||
server.connection({
|
||||
host: config.server.host,
|
||||
port: config.server.port + 1
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -12,15 +12,16 @@
|
|||
"dependencies": {
|
||||
"aws-sdk": "2.4.7",
|
||||
"bluebird": "3.4.1",
|
||||
"boom": "2.6.1",
|
||||
"boom": "4.0.0",
|
||||
"buf": "0.1.0",
|
||||
"checksum": "0.1.1",
|
||||
"compute-cluster": "0.0.9",
|
||||
"convict": "1.4.0",
|
||||
"fxa-notifier-aws": "1.0.0",
|
||||
"gm": "1.22.0",
|
||||
"hapi": "8.8.1",
|
||||
"joi": "6.9.1",
|
||||
"hapi": "15.0.3",
|
||||
"inert": "4.0.2",
|
||||
"joi": "9.0.4",
|
||||
"mozlog": "2.0.5",
|
||||
"mysql": "2.11.1",
|
||||
"mysql-patcher": "0.7.0",
|
||||
|
|
|
@ -18,7 +18,7 @@ describe('server', function() {
|
|||
|
||||
// and must return an STS header
|
||||
var stsHeader = res.headers['strict-transport-security'];
|
||||
assert.equal(stsHeader, 'max-age=15552000; includeSubdomains');
|
||||
assert.equal(stsHeader, 'max-age=15552000; includeSubDomains');
|
||||
|
||||
// but the other security builtin headers from hapi are not set
|
||||
var other = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче