File tree 5 files changed +13
-17
lines changed
5 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
2
coverage
3
3
package-lock.json
4
+ .nyc_output
Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
- - 8
4
-
5
- script :
6
- - npm run ci
3
+ - 10
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- const Hoek = require ( 'hoek' ) ;
2
+ const Hoek = require ( '@hapi/ hoek' ) ;
3
3
4
4
function register ( server , options ) {
5
5
Hoek . assert ( typeof options . headers === 'object' , 'Option headers must be an object' ) ;
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"lint" : " eslint --ext '.js' lib test *.js" ,
8
8
"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'" ,
10
10
"mocha-only-detect" : " mocha-only-detector-glob **/*.test.js" ,
11
- "ci" : " npm test --coverage && istanbul report cobertura" ,
12
11
"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"
16
15
},
17
16
"engines" : {
18
- "node" : " >=8 .x.x"
17
+ "node" : " >=10 .x.x"
19
18
},
20
19
"repository" : {
21
20
"type" : " git" ,
43
42
}
44
43
},
45
44
"dependencies" : {
46
- "hoek" : " ^5 .0.2"
45
+ "@hapi/ hoek" : " ^8 .0.2"
47
46
},
48
47
"devDependencies" : {
49
48
"@aptoma/eslint-config" : " ^7.0.1" ,
50
- "boom " : " ^7.1 .1" ,
49
+ "@hapi/hapi " : " ^18.3 .1" ,
51
50
"chai" : " ^4.1.2" ,
52
51
"eslint" : " ^4.12.1" ,
53
- "hapi" : " ^17.1.1" ,
54
- "istanbul" : " ^0.4.5" ,
55
52
"mocha" : " ^4.0.1" ,
56
53
"mocha-only-detector" : " ^0.1.0" ,
54
+ "nyc" : " ^14.1.1" ,
57
55
"release-it" : " ^2.3.1"
58
56
}
59
57
}
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const Hapi = require ( 'hapi' ) ;
3
+ const Hapi = require ( '@hapi/ hapi' ) ;
4
4
const assert = require ( 'chai' ) . assert ;
5
- const Boom = require ( 'boom' ) ;
5
+ const Boom = require ( '@hapi/ boom' ) ;
6
6
const plugin = require ( '../' ) ;
7
7
8
8
describe ( 'Hapi Static Headers' , ( ) => {
You can’t perform that action at this time.
0 commit comments