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

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.6.3 to 0.6.4

tests_prerender/prerender.js

12

build/InputElement.js

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

lastCaretPos: null,
isAndroidBrowser: (function () {
isAndroidBrowser: function () {
var windows = new RegExp("windows", "i");

@@ -26,4 +26,4 @@ var firefox = new RegExp("firefox", "i");

return !windows.test(ua) && !firefox.test(ua) && android.test(ua);
})(),
isWindowsPhoneBrowser: (function () {
},
isWindowsPhoneBrowser: function () {
var windows = new RegExp("windows", "i");

@@ -33,3 +33,3 @@ var phone = new RegExp("phone", "i");

return windows.test(ua) && phone.test(ua);
})(),
},
isDOMElement: function (element) {

@@ -673,2 +673,6 @@ return typeof HTMLElement === "object" ? element instanceof HTMLElement // DOM2

},
componentDidMount: function () {
this.isAndroidBrowser = this.isAndroidBrowser();
this.isWindowsPhoneBrowser = this.isWindowsPhoneBrowser();
},
render: function () {

@@ -675,0 +679,0 @@ var _this5 = this;

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

lastCaretPos: null,
isAndroidBrowser: (function() {
isAndroidBrowser: function() {
var windows = new RegExp("windows", "i");

@@ -24,4 +24,4 @@ var firefox = new RegExp("firefox", "i");

android.test(ua);
})(),
isWindowsPhoneBrowser: (function () {
},
isWindowsPhoneBrowser: function() {
var windows = new RegExp("windows", "i");

@@ -31,3 +31,3 @@ var phone = new RegExp("phone", "i");

return windows.test(ua) && phone.test(ua);
})(),
},
isDOMElement: function(element) {

@@ -669,2 +669,6 @@ return typeof HTMLElement === "object"

},
componentDidMount: function() {
this.isAndroidBrowser = this.isAndroidBrowser();
this.isWindowsPhoneBrowser = this.isWindowsPhoneBrowser();
},
render: function() {

@@ -671,0 +675,0 @@ var ourProps = {};

{
"name": "react-input-mask",
"description": "Masked input component for React",
"version": "0.6.3",
"version": "0.6.4",
"homepage": "https://github.com/sanniassin/react-input-mask",

@@ -19,2 +19,3 @@ "license": "MIT",

"devDependencies": {
"assert": "^1.3.0",
"babel": "^5.8.34",

@@ -29,2 +30,3 @@ "babelify": "^6.4.0",

"karma-phantomjs-launcher": "^0.2.1",
"mocha": "^2.4.5",
"phantomjs": "^1.9.18",

@@ -39,3 +41,5 @@ "react": "^0.14.3",

"prepublish": "npm test && npm run build",
"test": "karma start"
"test": "npm run test:karma && npm run test:mocha",
"test:karma": "karma start",
"test:mocha": "mocha ./tests_prerender"
},

@@ -42,0 +46,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