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.5 to 1.5.6

6

lib/alertContainer.js

@@ -7,4 +7,2 @@ 'use strict';

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
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; }; }();

@@ -73,5 +71,5 @@

if (!this.props.isVisible) return false;
return _react2.default.createElement(WrappedComponent, _extends({}, this.props, { close: function close() {
return _react2.default.createElement(WrappedComponent, { message: this.props.message, close: function close() {
return _this2.close();
} }));
} });
}

@@ -78,0 +76,0 @@ }]);

{
"name": "react-redux-alerts",
"version": "1.5.5",
"version": "1.5.6",
"description": "A lightweight library for creating keyed alerts in a Redux app",

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

@@ -29,3 +29,3 @@ import React, { Component } from 'react';

return (
<WrappedComponent {...this.props} close={() => this.close()} />
<WrappedComponent message={this.props.message} close={() => this.close()} />
);

@@ -32,0 +32,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