Skip to content

Commit

Permalink
Drop node 8 support and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
martinj committed Jul 2, 2019
1 parent 153a764 commit e90abc9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
coverage
package-lock.json
.nyc_output
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
language: node_js
node_js:
- 8
- 10

script:
- npm run ci
2 changes: 1 addition & 1 deletion handlers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const Promise = require('bluebird');
const Hoek = require('hoek');
const Hoek = require('@hapi/hoek');
const request = require('request-prom');

exports.hook = (sns, {handlers, skipPayloadValidation, topic}) => {
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const Joi = require('joi');
const Hoek = require('hoek');
const Joi = require('@hapi/joi');
const Hoek = require('@hapi/hoek');
const SNS = require('./lib/sns');
const handlers = require('./handlers');

Expand Down
29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
"scripts": {
"lint": "eslint --ext '.js' lib test *.js",
"watch": "mocha --watch 'test/**/*.js' 'lib/**/*.js' '*.js' --timeout 500",
"test": "npm run lint && NODE_ENV=test istanbul cover -i '*.js' _mocha -- -u exports -R spec --timeout 3000 test/*.test.js test/**/*.test.js",
"ci": "npm test --coverage && istanbul report cobertura",
"test": "npm run lint && nyc --reporter=text-summary --reporter=lcov mocha --exit 'test/**/*.test.js'",
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:\" * %s\"",
"release": "npm run ci && release-it -n -i patch",
"release:minor": "npm run ci && release-it -n -i minor",
"release:major": "npm run ci && release-it -n -i major"
},
"engines": {
"node": ">=8.x.x"
"node": ">=10.x.x"
},
"repository": {
"type": "git",
Expand All @@ -32,21 +31,21 @@
},
"homepage": "https://github.com/martinj/hookido",
"dependencies": {
"aws-sdk": "^2.160.0",
"bluebird": "^3.5.1",
"hoek": "^5.0.2",
"joi": "^13.0.2",
"request-prom": "^3.1.0",
"sns-validator": "^0.3.2"
"@hapi/hoek": "^8.0.2",
"@hapi/joi": "^15.1.0",
"aws-sdk": "^2.486.0",
"bluebird": "^3.5.5",
"request-prom": "^4.0.1",
"sns-validator": "^0.3.4"
},
"devDependencies": {
"@aptoma/eslint-config": "^7.0.1",
"chai": "^4.1.2",
"eslint": "^4.12.1",
"hapi": "^17.1.1",
"istanbul": "^1.1.0-alpha.1",
"mocha": "^4.0.1",
"nock": "^9.1.3",
"@hapi/hapi": "^18.3.1",
"chai": "^4.2.0",
"eslint": "^6.0.1",
"mocha": "^6.1.4",
"nock": "^10.0.6",
"nyc": "^14.1.1",
"release-it": "^2.7.3"
}
}
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const Promise = require('bluebird');
const Hapi = require('hapi');
const Hapi = require('@hapi/hapi');
const plugin = require('../');
const expect = require('chai').expect;
const nock = require('nock');
Expand Down

0 comments on commit e90abc9

Please sign in to comment.