Socket
Socket
Sign inDemoInstall

react-redux-alerts

Package Overview
Dependencies
2
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.1 to 1.5.2

5

lib/alertContainer.js

@@ -77,4 +77,5 @@ 'use strict';

function mapStateToProps(state) {
var visbility = state.alerts ? state.alerts[alertName].isVisible : false;
var message = state.alerts ? state.alerts[alertName].message : '';
var alert = state[alertName];
var visbility = alert ? alert.isVisible : false;
var message = alert ? alert.message : '';
return { isVisible: visbility, message: message };

@@ -81,0 +82,0 @@ };

2

package.json
{
"name": "react-redux-alerts",
"version": "1.5.1",
"version": "1.5.2",
"description": "A lightweight library for creating keyed alerts in a Redux app",

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

@@ -30,4 +30,5 @@ import React, { Component } from 'react';

function mapStateToProps (state) {
const visbility = state.alerts ? state.alerts[alertName].isVisible : false;
const message = state.alerts ? state.alerts[alertName].message : '';
const alert = state[alertName];
const visbility = alert ? alert.isVisible : false;
const message = alert ? alert.message : '';
return { isVisible: visbility, message};

@@ -34,0 +35,0 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc