Skip to content

Commit

Permalink
Update dependencies (including the Joi package rename) (#56)
Browse files Browse the repository at this point in the history
* Update joi

* switches to the new package name
* updates to the latest stable version

ref #41

* Update all dependencies to latest stable versions
  • Loading branch information
abeluck authored Nov 20, 2020
1 parent 86280cf commit f9f94ce
Show file tree
Hide file tree
Showing 3 changed files with 1,134 additions and 1,096 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Load modules
const Chalk = require('chalk');
const Hoek = require('@hapi/hoek');
const Joi = require('@hapi/joi');
const Joi = require('joi');
const Pkg = require('../package.json');
const Table = require('easy-table');

Expand All @@ -19,7 +19,7 @@ const internals = {

exports.register = function (server, options) {

const result = Joi.validate(options, internals.schema);
const result = Joi.object(internals.schema).validate(options);
Hoek.assert(!result.error, result.error && result.error.annotate());
options = result.value;

Expand Down
Loading

0 comments on commit f9f94ce

Please sign in to comment.