New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@omnicar/sam-format

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@omnicar/sam-format - npm Package Compare versions

Comparing version 0.0.49 to 0.0.50

6

dist/formatString/formatString.js

@@ -61,3 +61,5 @@ "use strict";

var isInternationalFormat = (countryCode || init_1.defaults.countryCode) === 'International';
var useIsoCountry = !countryCode ? init_1.defaults.countryCode : countryCode; // Note: If no countryCode given, then use the "global" countryCode that is currently set.
var useIsoCountry = !countryCode
? init_1.defaults.countryCode || 'International'
: countryCode; // Note: If no countryCode given, then use the "global" countryCode that is currently set.
if (isInternationalFormat) {

@@ -73,3 +75,3 @@ var normalizedPhone = phone.replace(/[ \-\.,()]/g, ''); // Note: WITHOUT the '+' char.

if (!formats) {
throw Error("You requested countryCode \"" + (!countryCode ? init_1.defaults.language : countryCode) + "\", but there are no phone formats for that countryCode");
throw Error("You requested countryCode \"" + (!countryCode ? init_1.defaults.countryCode : countryCode) + "\", but there are no phone formats for that countryCode");
}

@@ -76,0 +78,0 @@ // Add space between area code and main number for spaced numbers.

@@ -51,3 +51,3 @@ {

},
"version": "0.0.49"
"version": "0.0.50"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc