Socket
Socket
Sign inDemoInstall

react-input-mask

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-input-mask - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

build/InputElement.js

8

InputElement.js

@@ -232,3 +232,5 @@ // https://github.com/sanniassin/react-input-mask

onKeyDown: function(event) {
var hasHandler = typeof this.props.onKeyPress === "function";
if (event.ctrlKey || event.metaKey) {
this.props.onKeyDown(event);
return;

@@ -267,3 +269,3 @@ }

if (typeof this.props.onKeyDown === "function") {
if (hasHandler) {
this.props.onKeyDown(event);

@@ -289,3 +291,7 @@ }

var key = event.key;
var hasHandler = typeof this.props.onKeyPress === "function";
if (key === "Enter" || event.ctrlKey || event.metaKey) {
if (hasHandler) {
this.props.onKeyPress(event);
}
return;

@@ -292,0 +298,0 @@ }

6

package.json
{
"name": "react-input-mask",
"description": "Masked input component for React",
"version": "0.0.4",
"version": "0.0.5",
"homepage": "https://github.com/sanniassin/react-input-mask",

@@ -19,4 +19,6 @@ "license": "MIT",

},
"main": "build/InputElement.js",
"scripts": {
"build": "babel InputElement.js -d build"
"build": "babel InputElement.js -d build",
"prepublish": "npm run build"
},

@@ -23,0 +25,0 @@ "repository": {

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