From 175dc644ecef5c32d1fefd11cef49cf139d36504 Mon Sep 17 00:00:00 2001 From: Jeffrey Layanto Date: Wed, 31 May 2017 15:48:54 +1000 Subject: [PATCH] Fix error on Joi >= 10.5.0 (#2) * Update package.json * Update path to Joi-Any type --- lib/index.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 8b886b6..6e49453 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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 = { diff --git a/package.json b/package.json index ad19df3..4243316 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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"