| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 | 'use strict'// This file is deprecated.// It's the same as `index.cjs`, just with an added `.js` file extension.// It only exists for compatibility with the software that doesn't like `*.cjs` file extension.// https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/61#note_950728292var metadata = require('../metadata.max.json')var core = require('../core/index.cjs')function call(func, _arguments) {	var args = Array.prototype.slice.call(_arguments)	args.push(metadata)	return func.apply(this, args)}function parsePhoneNumberFromString() {	return call(core.parsePhoneNumberFromString, arguments)}// ES5 `require()` "default" "interoperability" hack.// https://github.com/babel/babel/issues/2212#issuecomment-131827986// An alternative approach:// https://www.npmjs.com/package/babel-plugin-add-module-exportsexports = module.exports = parsePhoneNumberFromStringexports['default'] = parsePhoneNumberFromStringexports.ParseError = core.ParseErrorfunction parsePhoneNumberWithError() {	return call(core.parsePhoneNumberWithError, arguments)}// `parsePhoneNumber()` named export has been renamed to `parsePhoneNumberWithError()`.exports.parsePhoneNumber = parsePhoneNumberWithErrorexports.parsePhoneNumberWithError = parsePhoneNumberWithError// `parsePhoneNumberFromString()` named export is now considered legacy:// it has been promoted to a default export due to being too verbose.exports.parsePhoneNumberFromString = parsePhoneNumberFromStringexports.isValidPhoneNumber = function isValidPhoneNumber() {	return call(core.isValidPhoneNumber, arguments)}exports.isPossiblePhoneNumber = function isPossiblePhoneNumber() {	return call(core.isPossiblePhoneNumber, arguments)}exports.validatePhoneNumberLength = function validatePhoneNumberLength() {	return call(core.validatePhoneNumberLength, arguments)}exports.findNumbers = function findNumbers() {	return call(core.findNumbers, arguments)}exports.searchNumbers = function searchNumbers() {	return call(core.searchNumbers, arguments)}exports.findPhoneNumbersInText = function findPhoneNumbersInText() {	return call(core.findPhoneNumbersInText, arguments)}exports.searchPhoneNumbersInText = function searchPhoneNumbersInText() {	return call(core.searchPhoneNumbersInText, arguments)}exports.PhoneNumberMatcher = function PhoneNumberMatcher(text, options) {	return core.PhoneNumberMatcher.call(this, text, options, metadata)}exports.PhoneNumberMatcher.prototype = Object.create(core.PhoneNumberMatcher.prototype, {})exports.PhoneNumberMatcher.prototype.constructor = exports.PhoneNumberMatcherexports.AsYouType = function AsYouType(country) {	return core.AsYouType.call(this, country, metadata)}exports.AsYouType.prototype = Object.create(core.AsYouType.prototype, {})exports.AsYouType.prototype.constructor = exports.AsYouTypeexports.isSupportedCountry = function isSupportedCountry(country) {	return call(core.isSupportedCountry, arguments)}exports.getCountries = function getCountries() {	return call(core.getCountries, arguments)}exports.getCountryCallingCode = function getCountryCallingCode() {	return call(core.getCountryCallingCode, arguments)}exports.getExtPrefix = function getExtPrefix(country) {	return call(core.getExtPrefix, arguments)}exports.getExampleNumber = function getExampleNumber() {	return call(core.getExampleNumber, arguments)}exports.formatIncompletePhoneNumber = function formatIncompletePhoneNumber() {	return call(core.formatIncompletePhoneNumber, arguments)}exports.parseIncompletePhoneNumber = core.parseIncompletePhoneNumberexports.parsePhoneNumberCharacter = core.parsePhoneNumberCharacterexports.parseDigits = core.parseDigitsexports.DIGIT_PLACEHOLDER = core.DIGIT_PLACEHOLDERexports.parseRFC3966 = core.parseRFC3966exports.formatRFC3966 = core.formatRFC3966
 |