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

@maskito/kit

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maskito/kit - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

9

index.esm.js

@@ -1086,3 +1086,3 @@ import { MASKITO_DEFAULT_OPTIONS, maskitoTransform } from '@maskito/core';

const optionalMinus = isNegativeAllowed ? `[${CHAR_MINUS}${pseudoMinuses.map(x => `\\${x}`).join('')}]?` : '';
const integerPart = thousandSeparator ? `[${digit}${escapeRegExp(thousandSeparator)}]*` : `[${digit}]*`;
const integerPart = thousandSeparator ? `[${digit}${escapeRegExp(thousandSeparator).replace(/\s/g, '\\s')}]*` : `[${digit}]*`;
const decimalPart = precision > 0 ? `([${escapeRegExp(decimalSeparator)}${decimalPseudoSeparators.map(escapeRegExp).join('')}]${digit}{0,${Number.isFinite(precision) ? precision : ''}})?` : '';

@@ -1447,2 +1447,5 @@ const computedPostfix = computeAllOptionalCharsRegExp(postfix);

const postfixReg = new RegExp(`${escapeRegExp(postfix)}$`);
const isAllSpaces = (...chars) => chars.every(x => /\s/.test(x));
return ({

@@ -1462,4 +1465,4 @@ value,

if (char === thousandSeparator && isPositionForSeparator) {
return char + formattedValuePart;
if (isPositionForSeparator && (char === thousandSeparator || isAllSpaces(char, thousandSeparator))) {
return thousandSeparator + formattedValuePart;
}

@@ -1466,0 +1469,0 @@

{
"name": "@maskito/kit",
"version": "1.5.1",
"version": "1.6.0",
"description": "The optional framework-agnostic Maskito's package with ready-to-use masks",

@@ -33,3 +33,3 @@ "keywords": [

"peerDependencies": {
"@maskito/core": "^1.5.1"
"@maskito/core": "^1.6.0"
},

@@ -36,0 +36,0 @@ "main": "./index.umd.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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