New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eazy-auth

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eazy-auth - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

17

auth/hocs/withAuthLogin.js

@@ -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",

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