Skip to content

Commit

Permalink
Support hapi v20. Closes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Aug 27, 2020
1 parent a82c0e0 commit 03eca39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "test"
},
"scripts": {
"test": "lab -a @hapi/code -t 100 -L test/*.js",
"test": "lab -a @hapi/code -t 100 -L -I \"FinalizationRegistry,WeakRef\" test/*.js",
"coveralls": "lab -r lcov test/*.js | coveralls"
},
"repository": {
Expand All @@ -22,15 +22,15 @@
},
"homepage": "https://github.com/hapipal/schmervice#readme",
"peerDependencies": {
"@hapi/hapi": ">=17 <20"
"@hapi/hapi": ">=17 <21"
},
"dependencies": {
"@hapi/hoek": "8.x.x"
},
"devDependencies": {
"@hapi/code": "6.x.x",
"@hapi/hapi": "18.x.x",
"@hapi/hapi-19": "npm:@hapi/hapi@19",
"@hapi/hapi-20": "npm:@hapi/hapi@20",
"@hapi/lab": "20.x.x",
"@hapi/somever": "2.x.x",
"ahem": "1.x.x",
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const InternalHapi = require('@hapi/hapi');
const Schmervice = require('..');
const Lab = require('@hapi/lab');

const Hapi = Somever.match(process.version, '>=12') ? require('@hapi/hapi-19') : require('@hapi/hapi');
const Hapi = Somever.match(process.version, '>=12') ? require('@hapi/hapi-20') : require('@hapi/hapi');

const { describe, it, before, after } = exports.lab = Lab.script();
const expect = Code.expect;
Expand Down

0 comments on commit 03eca39

Please sign in to comment.