Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-notification

Package Overview
Dependencies
Maintainers
8
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-notification - npm Package Compare versions

Comparing version 5.2.0-2 to 5.2.0-3

45

es/NoticeList.js
import _extends from "@babel/runtime/helpers/esm/extends";
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _regeneratorRuntime from "@babel/runtime/regenerator";
import React, { useContext, useEffect, useRef, useState } from 'react';

@@ -75,31 +73,18 @@ import clsx from 'classnames';

},
onAppearPrepare: /*#__PURE__*/function () {
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(element) {
return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (element.parentNode.lastElementChild === element) {
setLatestNotice(element);
}
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
return function (_x) {
return _ref2.apply(this, arguments);
};
}()
}), function (_ref3, nodeRef) {
var config = _ref3.config,
motionClassName = _ref3.className,
motionStyle = _ref3.style,
motionIndex = _ref3.index;
onAppearPrepare: function onAppearPrepare(element) {
if (element.parentNode.lastElementChild === element) {
setLatestNotice(element);
}
}
}), function (_ref2, nodeRef) {
var config = _ref2.config,
motionClassName = _ref2.className,
motionStyle = _ref2.style,
motionIndex = _ref2.index;
var _ref3 = config,
key = _ref3.key,
times = _ref3.times;
var _ref4 = config,
key = _ref4.key,
times = _ref4.times;
var _ref5 = config,
configClassName = _ref5.className,
configStyle = _ref5.style;
configClassName = _ref4.className,
configStyle = _ref4.style;
var dataIndex = keys.findIndex(function (item) {

@@ -106,0 +91,0 @@ return item.key === key;

@@ -9,7 +9,5 @@ "use strict";

exports.default = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

@@ -86,31 +84,18 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

},
onAppearPrepare: /*#__PURE__*/function () {
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(element) {
return _regenerator.default.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
if (element.parentNode.lastElementChild === element) {
setLatestNotice(element);
}
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
return function (_x) {
return _ref2.apply(this, arguments);
};
}()
}), function (_ref3, nodeRef) {
var config = _ref3.config,
motionClassName = _ref3.className,
motionStyle = _ref3.style,
motionIndex = _ref3.index;
onAppearPrepare: function onAppearPrepare(element) {
if (element.parentNode.lastElementChild === element) {
setLatestNotice(element);
}
}
}), function (_ref2, nodeRef) {
var config = _ref2.config,
motionClassName = _ref2.className,
motionStyle = _ref2.style,
motionIndex = _ref2.index;
var _ref3 = config,
key = _ref3.key,
times = _ref3.times;
var _ref4 = config,
key = _ref4.key,
times = _ref4.times;
var _ref5 = config,
configClassName = _ref5.className,
configStyle = _ref5.style;
configClassName = _ref4.className,
configStyle = _ref4.style;
var dataIndex = keys.findIndex(function (item) {

@@ -117,0 +102,0 @@ return item.key === key;

{
"name": "rc-notification",
"version": "5.2.0-2",
"version": "5.2.0-3",
"description": "notification ui component for react",

@@ -5,0 +5,0 @@ "engines": {

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