joi-phone-number
Advanced tools
Comparing version 1.0.4 to 1.0.5
'use strict'; | ||
const Joi = require('joi'); | ||
const PhoneUtil = require('google-libphonenumber').PhoneNumberUtil.getInstance(); | ||
@@ -9,4 +8,4 @@ | ||
*/ | ||
module.exports = { | ||
base: Joi.string(), | ||
module.exports = joi => ({ | ||
base: joi.string(), | ||
name: 'string', | ||
@@ -35,2 +34,2 @@ language: { | ||
}] | ||
}; | ||
}); |
{ | ||
"name": "joi-phone-number", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Phone number validation rule for Joi", | ||
@@ -60,6 +60,3 @@ "homepage": "https://github.com/Salesflare/joi-phone-number", | ||
"nsp": "^2.8.0" | ||
}, | ||
"peerDependencies": { | ||
"joi": "^11.0.0" | ||
} | ||
} |
1
4847
63