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.1.1 to 1.2.0

8

index.esm.js

@@ -488,6 +488,6 @@ import { MASKITO_DEFAULT_OPTIONS, maskitoTransform } from '@maskito/core';

const end = element.selectionEnd || 0;
const [from, to] = guard(element.value);
const [fromLimit, toLimit] = guard(element.value, [start, end]);
if (from > start || to < end) {
element.setSelectionRange(Math.max(from, start), Math.min(to, end));
if (fromLimit > start || toLimit < end) {
element.setSelectionRange(clamp(start, fromLimit, toLimit), clamp(end, fromLimit, toLimit));
}

@@ -1074,3 +1074,3 @@ };

if (parsedNumber !== clampedNumber) {
if (!Number.isNaN(parsedNumber) && parsedNumber !== clampedNumber) {
element.value = maskitoTransform(stringifyNumberWithoutExp(clampedNumber), options);

@@ -1077,0 +1077,0 @@ element.dispatchEvent(new Event('input'));

import { MaskitoPlugin } from '@maskito/core';
export declare function maskitoCaretGuard(guard: (value: string) => [from: number, to: number]): MaskitoPlugin;
export declare function maskitoCaretGuard(guard: (value: string, selection: readonly [from: number, to: number]) => [from: number, to: number]): MaskitoPlugin;
//# sourceMappingURL=caret-guard.d.ts.map
{
"name": "@maskito/kit",
"version": "1.1.1",
"version": "1.2.0",
"description": "The optional framework-agnostic Maskito's package with ready-to-use masks",

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

"peerDependencies": {
"@maskito/core": "^1.1.1"
"@maskito/core": "^1.2.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