restricted-input
Advanced tools
Comparing version 3.0.5 to 4.0.0
import { Pattern } from "./parse-pattern"; | ||
import type { Selection } from "../input-selection"; | ||
export declare type FormatMetadata = { | ||
export type FormatMetadata = { | ||
value: string; | ||
@@ -5,0 +5,0 @@ selection: Selection; |
@@ -1,2 +0,2 @@ | ||
export declare type Pattern = { | ||
export type Pattern = { | ||
value: RegExp | string; | ||
@@ -3,0 +3,0 @@ isPermaChar: boolean; |
import { Input } from "./strategies/strategy-interface"; | ||
export declare type Selection = { | ||
export type Selection = { | ||
start: number; | ||
@@ -4,0 +4,0 @@ end: number; |
@@ -1,6 +0,6 @@ | ||
export declare type Input = HTMLInputElement | HTMLTextAreaElement; | ||
export declare type OnPasteEventMethod = (options: { | ||
export type Input = HTMLInputElement | HTMLTextAreaElement; | ||
export type OnPasteEventMethod = (options: { | ||
unformattedInputValue: string; | ||
}) => void; | ||
export declare type StrategyOptions = { | ||
export type StrategyOptions = { | ||
element: Input; | ||
@@ -7,0 +7,0 @@ pattern: string; |
{ | ||
"name": "restricted-input", | ||
"version": "3.0.5", | ||
"version": "4.0.0", | ||
"description": "Restrict inputs to certain valid characters (e.g. formatting phone or card numbers)", | ||
@@ -48,30 +48,31 @@ "author": "Braintree <code@getbraintree.com> (https://www.braintreepayments.com/)", | ||
"dependencies": { | ||
"@braintree/browser-detection": "^1.12.1" | ||
"@braintree/browser-detection": "^1.17.2" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^27.4.0", | ||
"@typescript-eslint/eslint-plugin": "^5.9.0", | ||
"@wdio/browserstack-service": "^7.16.12", | ||
"@wdio/cli": "^7.16.12", | ||
"@wdio/local-runner": "^7.16.12", | ||
"@wdio/mocha-framework": "^7.16.11", | ||
"@wdio/spec-reporter": "^7.16.11", | ||
"@wdio/sync": "^7.16.12", | ||
"@types/jest": "^29.5.3", | ||
"@typescript-eslint/eslint-plugin": "^5.62.0", | ||
"@wdio/browserstack-service": "^7.32.4", | ||
"@wdio/cli": "^7.32.4", | ||
"@wdio/local-runner": "^7.32.4", | ||
"@wdio/mocha-framework": "^7.19.3", | ||
"@wdio/spec-reporter": "^7.31.1", | ||
"@wdio/sync": "^7.19.4", | ||
"browserify": "^17.0.0", | ||
"browserstack-local": "^1.4.8", | ||
"chai": "^4.3.4", | ||
"browserstack-local": "^1.5.4", | ||
"chai": "^4.3.7", | ||
"chokidar-cli": "^3.0.0", | ||
"dotenv": "^10.0.0", | ||
"eslint": "^8.6.0", | ||
"dotenv": "^16.3.1", | ||
"eslint": "^8.47.0", | ||
"eslint-config-braintree": "^6.0.0-typescript-prep-rc.2", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"express": "^4.17.2", | ||
"jest": "^27.4.5", | ||
"jsdoc": "^3.6.7", | ||
"prettier": "^2.5.1", | ||
"ts-jest": "^27.1.2", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"express": "^4.18.2", | ||
"jest": "^29.6.3", | ||
"jest-environment-jsdom": "^29.6.3", | ||
"jsdoc": "^4.0.2", | ||
"prettier": "^2.8.8", | ||
"ts-jest": "^29.1.1", | ||
"tsify": "^5.0.4", | ||
"typescript": "^4.5.4", | ||
"uuid": "^8.3.2", | ||
"webdriverio": "^7.16.3" | ||
"typescript": "^5.1.6", | ||
"uuid": "^9.0.0", | ||
"webdriverio": "^7.32.4" | ||
}, | ||
@@ -78,0 +79,0 @@ "jest": { |
55229
26