Open
Description
Describe the bug
I'm running the latest version of the library and isMobilePhone
is not defined. I imported the validator functions as so:
import isEmail from "validator/lib/isEmail.js";
import isMobilePhone from "validator/lib/isMobilePhone.js";
isEmail
works, but using isMobilePhone
returns an error. Is there something I'm not aware of? I searched node_modules/validator
and isMobilePhone
does not appear to be in either es/lib
or lib/util
.
Examples
...
phoneNumber: ValidatorError: isMobilePhone is not a function
...
Additional context
Validator.js version: 13.7.0
Node.js version: 16.14.2
OS platform: Windows