Skip to content

Commit

Permalink
Merge pull request #2 from ericjohney/VULN-40-upgrade-dependencies
Browse files Browse the repository at this point in the history
upgrade dependencies. plugin now targets hapi 19
  • Loading branch information
rajivm authored Aug 13, 2020
2 parents fd71c24 + a780daa commit e54b409
Show file tree
Hide file tree
Showing 5 changed files with 990 additions and 252 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.9.1
12.16.1
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: node_js
node_js:
- "8"
- "12"
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hapi-x-request-id",
"version": "1.1.1",
"description": "hapi 17 plugin: sets request.id from x-request-id (or custom like x-amzn-trace-id) header",
"version": "1.1.2",
"description": "hapi 19 plugin: sets request.id from x-request-id (or custom like x-amzn-trace-id) header",
"main": "lib/index.js",
"scripts": {
"test": "mocha test/index.js"
Expand All @@ -26,11 +26,11 @@
"dependencies": {
},
"peerDependencies": {
"hapi": "^17.1.1"
"@hapi/hapi": "^19.0.0"
},
"devDependencies": {
"chai": "^4.1.2",
"hapi": "^17.1.1",
"mocha": "^4.0.1"
"@hapi/hapi": "^19.0.0",
"chai": "^4.2.0",
"mocha": "^8.1.0"
}
}
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const chai = require('chai');
const expect = chai.expect;

const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const HapiXRequestId = require('..');

describe('x-request-id -> request.id', function () {
Expand Down Expand Up @@ -84,4 +84,4 @@ describe('x-request-id -> request.id', function () {
expect(tested).to.be.true;
expect(res.result).to.equal("test trace id");
});
});
});
Loading

0 comments on commit e54b409

Please sign in to comment.