New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.1 to 1.1.2

2

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

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

@@ -40,2 +40,7 @@ var viewHelpers = require('../src/view-helpers');

});
it("should return undefined if the phone is null or undefined", function() {
var phone;
expect(viewHelpers.phoneFormat(phone)).toBe(undefined);
});
});

@@ -42,0 +47,0 @@

@@ -52,2 +52,5 @@ /****************************/

var phoneFormat = function(phone, pretty) {
if(!phone) {
return;
}
var digits = utils.stripNonDigits(phone);

@@ -54,0 +57,0 @@ if (!pretty) {

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