Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
martinj committed Mar 16, 2022
1 parent 09ef56c commit fd0b10f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const Joi = require('@hapi/joi');
const Joi = require('joi');
const Hoek = require('@hapi/hoek');
const SNS = require('./lib/sns');
const handlers = require('./handlers');
Expand All @@ -25,11 +25,10 @@ const validOptions = Joi.array().items(Joi.object({
})).single();

function register(server, opts) {
const results = Joi.validate(opts, validOptions);
Hoek.assert(!results.error, results.error);
const value = Joi.attempt(opts, validOptions);

const snsInstances = [];
results.value.forEach((config) => init(config));
value.forEach((config) => init(config));
server.expose('snsInstances', snsInstances);
return;

Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@
},
"homepage": "https://github.com/martinj/hookido",
"dependencies": {
"@hapi/hoek": "^8.0.2",
"@hapi/joi": "^15.1.0",
"aws-sdk": "^2.486.0",
"bluebird": "^3.5.5",
"@hapi/hoek": "^9.2.1",
"aws-sdk": "^2.1094.0",
"bluebird": "^3.7.2",
"joi": "^17.6.0",
"request-prom": "^4.0.1",
"sns-validator": "^0.3.4"
},
"devDependencies": {
"@aptoma/eslint-config": "^7.0.1",
"@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",
"@hapi/hapi": "^20.2.1",
"chai": "^4.3.6",
"eslint": "^8.11.0",
"mocha": "^9.2.2",
"nock": "^13.2.4",
"nyc": "^15.1.0",
"release-it": "^2.7.3"
}
}

0 comments on commit fd0b10f

Please sign in to comment.