Skip to content

Commit f94349b

Browse files
authored
Merge pull request #3 from aptoma/dep-update
Update deps
2 parents 7e3d7c0 + d2db6a5 commit f94349b

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
coverage
33
package-lock.json
4+
.nyc_output

.travis.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
language: node_js
22
node_js:
3-
- 8
4-
5-
script:
6-
- npm run ci
3+
- 10

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
const Hoek = require('hoek');
2+
const Hoek = require('@hapi/hoek');
33

44
function register(server, options) {
55
Hoek.assert(typeof options.headers === 'object', 'Option headers must be an object');

package.json

+8-10
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
"scripts": {
77
"lint": "eslint --ext '.js' lib test *.js",
88
"watch": "mocha --watch 'test/**/*.js' 'index.js' --timeout 500",
9-
"test": "npm run lint && NODE_ENV=test istanbul cover -i 'index.js' _mocha -- -u exports -R spec --timeout 3000 'test/**/*.test.js'",
9+
"test": "npm run lint && nyc --reporter=text-summary --reporter=lcov mocha --exit 'test/**/*.test.js'",
1010
"mocha-only-detect": "mocha-only-detector-glob **/*.test.js",
11-
"ci": "npm test --coverage && istanbul report cobertura",
1211
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:\" * %s\"",
13-
"release": "npm run ci && release-it -n -i patch",
14-
"release:minor": "npm run ci && release-it -n -i minor",
15-
"release:major": "npm run ci && release-it -n -i major"
12+
"release": "npm test && release-it -n -i patch",
13+
"release:minor": "npm test && release-it -n -i minor",
14+
"release:major": "npm test && release-it -n -i major"
1615
},
1716
"engines": {
18-
"node": ">=8.x.x"
17+
"node": ">=10.x.x"
1918
},
2019
"repository": {
2120
"type": "git",
@@ -43,17 +42,16 @@
4342
}
4443
},
4544
"dependencies": {
46-
"hoek": "^5.0.2"
45+
"@hapi/hoek": "^8.0.2"
4746
},
4847
"devDependencies": {
4948
"@aptoma/eslint-config": "^7.0.1",
50-
"boom": "^7.1.1",
49+
"@hapi/hapi": "^18.3.1",
5150
"chai": "^4.1.2",
5251
"eslint": "^4.12.1",
53-
"hapi": "^17.1.1",
54-
"istanbul": "^0.4.5",
5552
"mocha": "^4.0.1",
5653
"mocha-only-detector": "^0.1.0",
54+
"nyc": "^14.1.1",
5755
"release-it": "^2.3.1"
5856
}
5957
}

test/index.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
22

3-
const Hapi = require('hapi');
3+
const Hapi = require('@hapi/hapi');
44
const assert = require('chai').assert;
5-
const Boom = require('boom');
5+
const Boom = require('@hapi/boom');
66
const plugin = require('../');
77

88
describe('Hapi Static Headers', () => {

0 commit comments

Comments
 (0)