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.2.1 to 0.2.2

38

lib/password/hocs/withPasswordRecover.js

@@ -49,12 +49,3 @@ 'use strict';

return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = BaseRecover.__proto__ || Object.getPrototypeOf(BaseRecover)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
recoverEmail: ''
}, _this.onRecoverEmailChange = function (e) {
_this.setState({
recoverEmail: e.target.value
});
}, _this.onSubmitRecoverPassword = function (e) {
e.preventDefault();
_this.props.recoverPassword(_this.state.recoverEmail);
}, _temp), _possibleConstructorReturn(_this, _ret);
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = BaseRecover.__proto__ || Object.getPrototypeOf(BaseRecover)).call.apply(_ref, [this].concat(args))), _this), _initialiseProps.call(_this), _temp), _possibleConstructorReturn(_this, _ret);
}

@@ -81,2 +72,29 @@

var _initialiseProps = function _initialiseProps() {
var _this2 = this;
this.state = {
recoverEmail: ''
};
this.onRecoverEmailChange = function (e) {
_this2.setState({
recoverEmail: e.target.value
});
};
this.onSubmitRecoverPassword = function (e) {
var _props;
for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
if (e && typeof e.preventDefault === 'function') {
e.preventDefault();
}
(_props = _this2.props).recoverPassword.apply(_props, [_this2.state.recoverEmail].concat(args));
};
};
var mapStateToProps = function mapStateToProps(state) {

@@ -83,0 +101,0 @@ return {

{
"name": "eazy-auth",
"version": "0.2.1",
"version": "0.2.2",
"description": "Easy auth stuff with redux",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -32,5 +32,7 @@ import { PureComponent, createElement } from 'react'

onSubmitRecoverPassword = e => {
e.preventDefault()
this.props.recoverPassword(this.state.recoverEmail)
onSubmitRecoverPassword = (e, ...args) => {
if (e && typeof e.preventDefault === 'function') {
e.preventDefault()
}
this.props.recoverPassword(this.state.recoverEmail, ...args)
}

@@ -37,0 +39,0 @@

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