Skip to content

Commit 4591c83

Browse files
committed
works with hapi 20. closes #80
1 parent e989f18 commit 4591c83

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ is used as a Sentry instance or to initialize an internally used Sentry instance
5858
The internally used client (initialized in either way) is accessible through
5959
`server.plugins['hapi-sentry'].client`.
6060

61-
## Own Sentry instance
61+
## Using your own Sentry instance
6262

6363
You can pass a `Sentry` instance to the `client` option if you already initialized your own like this:
6464

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { name, version } = require('./package.json');
44
const schema = require('./schema');
55

66
const Hoek = require('@hapi/hoek');
7-
const joi = require('@hapi/joi');
7+
const joi = require('joi');
88
const domain = require('domain');
99

1010
exports.register = (server, options) => {

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "hapi plugin for @sentry/node",
55
"main": "index.js",
66
"scripts": {
7-
"test": "ava test.js --serial",
7+
"test": "ava -v test.js --serial",
88
"lint": "eslint --ignore-path .gitignore .",
99
"lint-fix": "eslint --fix --ignore-path .gitignore ."
1010
},
@@ -31,22 +31,22 @@
3131
"author": "Christian Hotz <hotz@hydra-newmedia.com>",
3232
"license": "MIT",
3333
"peerDependencies": {
34-
"@hapi/hapi": "^19.0.0"
34+
"@hapi/hapi": "^19.0.0 || ^20.0.0"
3535
},
3636
"dependencies": {
37-
"@hapi/hoek": "^9.0.4",
38-
"@hapi/joi": "^17.1.0",
39-
"@sentry/node": "^5.21.1"
37+
"@hapi/hoek": "^9.1.0",
38+
"@sentry/node": "^5.22.3",
39+
"joi": "^17.2.1"
4040
},
4141
"devDependencies": {
42-
"@hapi/hapi": "19.1.1",
42+
"@hapi/hapi": "^20.0.0",
4343
"@hydrant/eslint-config": "2.1.3",
4444
"ava": "3.12.1",
4545
"delay": "4.4.0",
4646
"eslint": "7.8.1",
4747
"eslint-plugin-ava": "11.0.0",
48-
"husky": "4.2.5",
49-
"lint-staged": "10.2.11",
48+
"husky": "^4.3.0",
49+
"lint-staged": "^10.3.0",
5050
"p-defer": "3.0.0"
5151
}
5252
}

schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const { Severity } = require('@sentry/node');
4-
const joi = require('@hapi/joi');
4+
const joi = require('joi');
55

66
const levels = Object.values(Severity).filter(level => typeof level === 'string')
77
|| ['fatal', 'error', 'warning', 'log', 'info', 'debug', 'critical'];

0 commit comments

Comments
 (0)