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.8.1 to 1.8.2

10

index.esm.js

@@ -444,9 +444,7 @@ import { MASKITO_DEFAULT_OPTIONS, maskitoTransform } from '@maskito/core';

const [from, to] = selection;
const requiredPrefix = Array.from(prefix).reduce((computedPrefix, char, i) => {
const newValue = computedPrefix + value;
return newValue[i] === char ? computedPrefix : computedPrefix + char;
}, '');
const prefixedValue = Array.from(prefix).reduce((modifiedValue, char, i) => modifiedValue[i] === char ? modifiedValue : modifiedValue.slice(0, i) + char + modifiedValue.slice(i), value);
const addedCharsCount = prefixedValue.length - value.length;
return {
selection: [from + requiredPrefix.length, to + requiredPrefix.length],
value: requiredPrefix + value
selection: [from + addedCharsCount, to + addedCharsCount],
value: prefixedValue
};

@@ -453,0 +451,0 @@ } : identity;

4

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

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

"peerDependencies": {
"@maskito/core": "^1.8.1"
"@maskito/core": "^1.8.2"
},

@@ -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