Comparing version 0.3.5 to 0.3.6
@@ -7,2 +7,4 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -41,2 +43,3 @@ | ||
credentials: ['email', 'password'], | ||
native: false, | ||
shouldClearErrorOnChange: true | ||
@@ -68,3 +71,3 @@ }, c); | ||
var value = e; | ||
if (e && e.target instanceof Element) { | ||
if (e && typeof window !== 'undefined' && typeof window.Element !== 'undefined' && e.target instanceof window.Element) { | ||
value = e.target.value; | ||
@@ -82,3 +85,5 @@ } | ||
}, _this.handleLoginSubmit = function (e) { | ||
e.preventDefault(); | ||
if (e && (typeof e === 'undefined' ? 'undefined' : _typeof(e)) === 'object' && typeof e.preventDefault === 'function') { | ||
e.preventDefault(); | ||
} | ||
var credentials = _this.state.credentials; | ||
@@ -95,6 +100,6 @@ | ||
return config.credentials.reduce(function (r, c) { | ||
return _extends({}, r, _defineProperty({}, c, { | ||
value: _this.state.credentials[c], | ||
onChange: _this.makeOnCredentialChange(c) | ||
})); | ||
var onChangeKey = config.native ? 'onChangeText' : 'onChange'; | ||
return _extends({}, r, _defineProperty({}, c, _defineProperty({ | ||
value: _this.state.credentials[c] | ||
}, onChangeKey, _this.makeOnCredentialChange(c)))); | ||
}, {}); | ||
@@ -101,0 +106,0 @@ }, _temp), _possibleConstructorReturn(_this, _ret); |
{ | ||
"name": "eazy-auth", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Easy auth stuff with redux", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
98117
2232
0