react-input-mask
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70947
10
1756
15