Socket
Socket
Sign inDemoInstall

@altiore/form

Package Overview
Dependencies
6
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.6 to 4.2.7

3

dist/@common/get-country-code.js
var AllowedCountries = new Map([
['en', '+1'],
['ru', '+7 '],

@@ -6,3 +7,3 @@ ['uk', '+38 '],

export var getCountryCode = function () {
if (navigator && navigator.language) {
if (typeof navigator !== 'undefined' && navigator && navigator.language) {
if (AllowedCountries.has(navigator.language)) {

@@ -9,0 +10,0 @@ return AllowedCountries.get(navigator.language);

@@ -114,2 +114,5 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {

}
else {
res += ')';
}
if (match[4]) {

@@ -137,3 +140,3 @@ res =

}
return null;
return formatPhone(phoneNumberString.replace(/[()\s\-+a-zа-я]/gi, ''));
};

@@ -140,0 +143,0 @@ export var formatValueByType = new Map([[FieldType.PHONE, formatPhone]]);

{
"name": "@altiore/form",
"version": "4.2.6",
"version": "4.2.7",
"description": "Form helper for building powerful forms",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc