Skip to content

Commit e54b409

Browse files
authored
Merge pull request #2 from ericjohney/VULN-40-upgrade-dependencies
upgrade dependencies. plugin now targets hapi 19
2 parents fd71c24 + a780daa commit e54b409

File tree

5 files changed

+990
-252
lines changed

5 files changed

+990
-252
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.9.1
1+
12.16.1

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
language: node_js
22
node_js:
3-
- "8"
3+
- "12"

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hapi-x-request-id",
3-
"version": "1.1.1",
4-
"description": "hapi 17 plugin: sets request.id from x-request-id (or custom like x-amzn-trace-id) header",
3+
"version": "1.1.2",
4+
"description": "hapi 19 plugin: sets request.id from x-request-id (or custom like x-amzn-trace-id) header",
55
"main": "lib/index.js",
66
"scripts": {
77
"test": "mocha test/index.js"
@@ -26,11 +26,11 @@
2626
"dependencies": {
2727
},
2828
"peerDependencies": {
29-
"hapi": "^17.1.1"
29+
"@hapi/hapi": "^19.0.0"
3030
},
3131
"devDependencies": {
32-
"chai": "^4.1.2",
33-
"hapi": "^17.1.1",
34-
"mocha": "^4.0.1"
32+
"@hapi/hapi": "^19.0.0",
33+
"chai": "^4.2.0",
34+
"mocha": "^8.1.0"
3535
}
3636
}

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const chai = require('chai');
44
const expect = chai.expect;
55

6-
const Hapi = require('hapi');
6+
const Hapi = require('@hapi/hapi');
77
const HapiXRequestId = require('..');
88

99
describe('x-request-id -> request.id', function () {
@@ -84,4 +84,4 @@ describe('x-request-id -> request.id', function () {
8484
expect(tested).to.be.true;
8585
expect(res.result).to.equal("test trace id");
8686
});
87-
});
87+
});

0 commit comments

Comments
 (0)