A small FYI.
There was a bug in libphonenumber-js introduced in version 1.0.9 and fixed in version 1.0.13 which prevented some of the countries from their phone numbers being parsed correctly.
E.g. parse("+212659777777") would return {} instead of { country: 'MA', phone: '659777777' }.
The buggy versions have been deleted from NPM registry but still anyone who installed libphonenumber-js in those 5 days is affected by the bug.
A small FYI. There was a bug in
libphonenumber-js
introduced in version1.0.9
and fixed in version1.0.13
which prevented some of the countries from their phone numbers being parsed correctly. E.g.parse("+212659777777")
would return{}
instead of{ country: 'MA', phone: '659777777' }
. The buggy versions have been deleted from NPM registry but still anyone who installedlibphonenumber-js
in those 5 days is affected by the bug.