Socket
Socket
Sign inDemoInstall

react-redux-toastr

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-redux-toastr - npm Package Compare versions

Comparing version 7.4.7 to 7.4.8

8

lib/ReduxToastr.js

@@ -48,2 +48,4 @@ "use strict";

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

@@ -53,4 +55,2 @@

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -70,5 +70,5 @@

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toastrFired", {});
_defineProperty(_assertThisInitialized(_this), "toastrFired", {});
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toastrPositions", ['top-left', 'top-right', 'top-center', 'bottom-left', 'bottom-right', 'bottom-center']);
_defineProperty(_assertThisInitialized(_this), "toastrPositions", ['top-left', 'top-right', 'top-center', 'bottom-left', 'bottom-right', 'bottom-center']);

@@ -75,0 +75,0 @@ (0, _utils.updateConfig)(props);

@@ -38,2 +38,4 @@ "use strict";

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

@@ -43,4 +45,2 @@

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -60,3 +60,3 @@

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handlePressEnterOrSpaceKeyToastr", function (e) {
_defineProperty(_assertThisInitialized(_this), "handlePressEnterOrSpaceKeyToastr", function (e) {
if (e.key === ' ' || e.key === 'enter') {

@@ -67,3 +67,3 @@ _this.handleClickToastr(e);

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleClickToastr", function () {
_defineProperty(_assertThisInitialized(_this), "handleClickToastr", function () {
var _this$props$item$opti = _this.props.item.options,

@@ -85,3 +85,3 @@ onToastrClick = _this$props$item$opti.onToastrClick,

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleClickCloseButton", function (e) {
_defineProperty(_assertThisInitialized(_this), "handleClickCloseButton", function (e) {
var onCloseButtonClick = _this.props.item.options.onCloseButtonClick;

@@ -100,3 +100,3 @@ e.stopPropagation();

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mouseEnter", function () {
_defineProperty(_assertThisInitialized(_this), "mouseEnter", function () {
clearTimeout(_this.intervalId);

@@ -119,3 +119,3 @@

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mouseLeave", function () {
_defineProperty(_assertThisInitialized(_this), "mouseLeave", function () {
var _this$props$item$opti2 = _this.props.item.options,

@@ -158,3 +158,3 @@ removeOnHover = _this$props$item$opti2.removeOnHover,

};
(0, _utils._bind)(['renderSubComponent', 'renderIcon', 'renderToastr', 'renderCloseButton', 'renderMessage', '_onAnimationComplete', '_removeToastr', '_setTransition', '_clearTransition', '_setIntervalId', '_setIsHiding', '_setShouldClose'], _assertThisInitialized(_assertThisInitialized(_this)));
(0, _utils._bind)(['renderSubComponent', 'renderIcon', 'renderToastr', 'renderCloseButton', 'renderMessage', '_onAnimationComplete', '_removeToastr', '_setTransition', '_clearTransition', '_setIntervalId', '_setIsHiding', '_setShouldClose'], _assertThisInitialized(_this));
return _this;

@@ -161,0 +161,0 @@ }

@@ -30,2 +30,4 @@ "use strict";

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

@@ -35,4 +37,2 @@

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -68,3 +68,3 @@

_this.disableCancel = disableCancel || confirmOptions.disableCancel;
(0, _utils._bind)('setTransition removeConfirm handleOnKeyUp handleOnKeyDown', _assertThisInitialized(_assertThisInitialized(_this)));
(0, _utils._bind)('setTransition removeConfirm handleOnKeyUp handleOnKeyDown', _assertThisInitialized(_this));
_this.isKeyDown = false; // an identifier to facilitate aria labelling for a11y for multiple instances of the component family in the DOM

@@ -88,3 +88,3 @@

if (this.closeButton !== undefined) {
if (this.closeButton !== undefined && this.closeButton.focus !== undefined) {
this.closeButton.focus();

@@ -91,0 +91,0 @@ }

@@ -171,3 +171,3 @@ "use strict";

// If the toastr options implicitly specify not to prevent duplicates then skip
if (item.options.preventDuplicates === false) return; // Because the toastr has a unic id we will check by the title and message.
if (item.options && item.options.preventDuplicates === false) return; // Because the toastr has a unic id we will check by the title and message.

@@ -174,0 +174,0 @@ if (item.title === newObjec.title && item.message === newObjec.message && item.type === newObjec.type) {

{
"name": "react-redux-toastr",
"version": "7.4.7",
"version": "7.4.8",
"description": "react-redux-toastr is a React toastr message implemented with Redux",

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

@@ -56,3 +56,3 @@ import React from 'react';

// when toast loads the toast close button automatically focuses on the toast control
if (this.closeButton !== undefined) {
if (this.closeButton !== undefined && this.closeButton.focus !== undefined) {
this.closeButton.focus();

@@ -59,0 +59,0 @@ }

@@ -134,3 +134,3 @@ import config from './config';

// If the toastr options implicitly specify not to prevent duplicates then skip
if (item.options.preventDuplicates === false) return;
if (item.options && item.options.preventDuplicates === false) return;
// Because the toastr has a unic id we will check by the title and message.

@@ -137,0 +137,0 @@ if (item.title === newObjec.title && item.message === newObjec.message && item.type === newObjec.type) {

Sorry, the diff of this file is not supported yet

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