Skip to content

Commit 175dc64

Browse files
layantokamronbatman
authored andcommitted
Fix error on Joi >= 10.5.0 (#2)
* Update package.json * Update path to Joi-Any type
1 parent 0558b55 commit 175dc64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const path = require('path');
2-
const Any = require(path.join(path.dirname(require.resolve('joi')), 'any.js'));
2+
const Any = require(path.join(path.dirname(require.resolve('joi')), 'types/any/index.js'));
33
const Language = require(path.join(path.dirname(require.resolve('joi')), 'language.js'));
44

55
const defaultOptions = {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "joi-password-complexity",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"description": "Joi validation for password complexity requirements.",
55
"main": "lib/index.js",
66
"scripts": {
@@ -11,7 +11,7 @@
1111
"url": "git+https://github.com/kamronbatman/joi-password-complexity.git"
1212
},
1313
"peerDependencies": {
14-
"joi": ">=9.0.0"
14+
"joi": ">=10.5.0"
1515
},
1616
"engines": {
1717
"node": ">=4.0.0"

0 commit comments

Comments
 (0)