Skip to content

Commit

Permalink
Bump dependencies and adapt CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Jun 27, 2020
1 parent 82ac9c9 commit 5f0ba59
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
21 changes: 19 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,26 @@ sudo: false
language: node_js

node_js:
- "8"
- "9"
- "10"
- "12"
- "14"
- "node"

env:
- HAPI=18
- HAPI=19

services:
- mongodb

before_install:
- sudo apt-get install jq moreutils
- jq ".devDependencies[\"@hapi/hapi\"]=\"${HAPI}.x.x\"" package.json | sponge package.json

jobs:
exclude:
- node_js: 10
env: HAPI=19
include:
- node_js: node
env: HAPI=x
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports.plugin = {

async register(server, pluginOptions) {

const options = await optionsSchema.validate(pluginOptions);
const { value: options } = await optionsSchema.validate(pluginOptions);

const decorationTypes = new Set(options.map((option) => typeof option.decorate));
if (decorationTypes.size > 1) {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"node": ">= 8"
},
"dependencies": {
"@hapi/joi": "^15.0.0",
"@hapi/joi": "^16.1.8",
"mongodb": "^3.2.3"
},
"devDependencies": {
"@hapi/code": "^5.3.1",
"@hapi/hapi": ">= 18.0.0",
"@hapi/hoek": "^6.2.1",
"@hapi/lab": "^18.1.2",
"@hapi/code": "^7.0.0",
"@hapi/hapi": "^18.4.1",
"@hapi/hoek": "^8.5.1",
"@hapi/lab": "^22.0.4",
"bluebird": "3.x.x"
},
"peerDependencies": {
Expand Down

0 comments on commit 5f0ba59

Please sign in to comment.