Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

poly-js-utils

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poly-js-utils - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

package.json
{
"name": "poly-js-utils",
"version": "1.2.3",
"version": "1.2.4",
"description": "Common client-side tools used in HSS Sites themes and locators.",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -23,5 +23,5 @@ var viewHelpers = require('../src/view-helpers');

it("should correctly format 10-digit phone numbers for pretty formatting with prefix", function() {
it("should leave the format with 10-digit phone numbers with prefix", function() {
var phone = "+555-123-4567";
var expected = "+5551234567";
var expected = "+555-123-4567";
expect(viewHelpers.phoneFormat(phone, true)).toBe(expected);

@@ -36,5 +36,5 @@ });

it("should correctly format 11-digit phone numbers for pretty formatting with prefix", function() {
it("should leave format with 11-digit phone numbers with prefix", function() {
var phone = "+1-555-123-4567";
var expected = "+15551234567";
var expected = "+1-555-123-4567";
expect(viewHelpers.phoneFormat(phone, true)).toBe(expected);

@@ -41,0 +41,0 @@ });

@@ -72,3 +72,3 @@ /****************************/

else {
return prefix + digits + extension;
return phone + extension;
}

@@ -75,0 +75,0 @@ }

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