Skip to content

Commit

Permalink
Fix error on Joi >= 10.5.0 (#2)
Browse files Browse the repository at this point in the history
* Update package.json

* Update path to Joi-Any type
  • Loading branch information
layanto authored and kamronbatman committed May 31, 2017
1 parent 0558b55 commit 175dc64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const Any = require(path.join(path.dirname(require.resolve('joi')), 'any.js'));
const Any = require(path.join(path.dirname(require.resolve('joi')), 'types/any/index.js'));
const Language = require(path.join(path.dirname(require.resolve('joi')), 'language.js'));

const defaultOptions = {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joi-password-complexity",
"version": "1.0.1",
"version": "2.0.0",
"description": "Joi validation for password complexity requirements.",
"main": "lib/index.js",
"scripts": {
Expand All @@ -11,7 +11,7 @@
"url": "git+https://github.com/kamronbatman/joi-password-complexity.git"
},
"peerDependencies": {
"joi": ">=9.0.0"
"joi": ">=10.5.0"
},
"engines": {
"node": ">=4.0.0"
Expand Down

0 comments on commit 175dc64

Please sign in to comment.