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

rc-notification

Package Overview
Dependencies
Maintainers
7
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.0.1 to 5.0.2

5

es/Notice.d.ts

@@ -13,3 +13,2 @@ import * as React from 'react';

onClick?: React.MouseEventHandler<HTMLDivElement>;
times: number;
}

@@ -24,3 +23,5 @@ export interface NoticeProps extends Omit<NoticeConfig, 'onClose'> {

}
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & React.RefAttributes<HTMLDivElement>>;
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & {
times?: number;
} & React.RefAttributes<HTMLDivElement>>;
export default Notify;

1

es/Notifications.d.ts

@@ -9,3 +9,2 @@ import * as React from 'react';

duration?: number | null;
times: number;
}

@@ -12,0 +11,0 @@ export interface NotificationsProps {

@@ -48,8 +48,10 @@ import _extends from "@babel/runtime/helpers/esm/extends";

});
var innerConfig = _objectSpread({}, config);
if (index >= 0) {
config.times = (config.times || 0) + 1;
clone[index] = config;
var _list$index;
innerConfig.times = (((_list$index = list[index]) === null || _list$index === void 0 ? void 0 : _list$index.times) || 0) + 1;
clone[index] = innerConfig;
} else {
config.times = 0;
clone.push(config);
innerConfig.times = 0;
clone.push(innerConfig);
}

@@ -56,0 +58,0 @@ if (maxCount > 0 && clone.length > maxCount) {

@@ -13,3 +13,2 @@ import * as React from 'react';

onClick?: React.MouseEventHandler<HTMLDivElement>;
times: number;
}

@@ -24,3 +23,5 @@ export interface NoticeProps extends Omit<NoticeConfig, 'onClose'> {

}
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & React.RefAttributes<HTMLDivElement>>;
declare const Notify: React.ForwardRefExoticComponent<NoticeProps & {
times?: number;
} & React.RefAttributes<HTMLDivElement>>;
export default Notify;

@@ -9,3 +9,2 @@ import * as React from 'react';

duration?: number | null;
times: number;
}

@@ -12,0 +11,0 @@ export interface NotificationsProps {

@@ -58,8 +58,10 @@ "use strict";

});
var innerConfig = (0, _objectSpread2.default)({}, config);
if (index >= 0) {
config.times = (config.times || 0) + 1;
clone[index] = config;
var _list$index;
innerConfig.times = (((_list$index = list[index]) === null || _list$index === void 0 ? void 0 : _list$index.times) || 0) + 1;
clone[index] = innerConfig;
} else {
config.times = 0;
clone.push(config);
innerConfig.times = 0;
clone.push(innerConfig);
}

@@ -66,0 +68,0 @@ if (maxCount > 0 && clone.length > maxCount) {

{
"name": "rc-notification",
"version": "5.0.1",
"version": "5.0.2",
"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