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

@maskito/phone

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maskito/phone - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

5

index.cjs.js

@@ -99,2 +99,3 @@ 'use strict';

return ({ elementState, data }) => {
var _a;
const { selection, value } = elementState;

@@ -108,3 +109,3 @@ const [from] = selection;

formatter.input(value);
const numberValue = formatter.getNumberValue() || '';
const numberValue = (_a = formatter.getNumberValue()) !== null && _a !== void 0 ? _a : '';
formatter.reset();

@@ -132,3 +133,3 @@ return { elementState: { value: formatter.input(numberValue), selection } };

}
catch (_a) {
catch (_b) {
return { elementState };

@@ -135,0 +136,0 @@ }

@@ -97,2 +97,3 @@ import { MASKITO_DEFAULT_OPTIONS } from '@maskito/core';

return ({ elementState, data }) => {
var _a;
const { selection, value } = elementState;

@@ -106,3 +107,3 @@ const [from] = selection;

formatter.input(value);
const numberValue = formatter.getNumberValue() || '';
const numberValue = (_a = formatter.getNumberValue()) !== null && _a !== void 0 ? _a : '';
formatter.reset();

@@ -130,3 +131,3 @@ return { elementState: { value: formatter.input(numberValue), selection } };

}
catch (_a) {
catch (_b) {
return { elementState };

@@ -133,0 +134,0 @@ }

8

package.json
{
"name": "@maskito/phone",
"version": "3.0.1",
"version": "3.0.2",
"description": "The optional framework-agnostic Maskito's package with phone masks",

@@ -32,7 +32,7 @@ "keywords": [

"devDependencies": {
"libphonenumber-js": "1.11.7"
"libphonenumber-js": "1.11.8"
},
"peerDependencies": {
"@maskito/core": "^3.0.1",
"@maskito/kit": "^3.0.1",
"@maskito/core": "^3.0.2",
"@maskito/kit": "^3.0.2",
"libphonenumber-js": ">=1.0.0"

@@ -39,0 +39,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