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

rc-notification

Package Overview
Dependencies
Maintainers
1
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 1.3.3 to 1.3.4

13

lib/Notice.js

@@ -23,5 +23,5 @@ 'use strict';

propTypes: {
duration: _react2["default"].PropTypes.number,
onClose: _react2["default"].PropTypes.func,
children: _react2["default"].PropTypes.any
duration: _react.PropTypes.number,
onClose: _react.PropTypes.func,
children: _react.PropTypes.any
},

@@ -32,2 +32,3 @@

onEnd: function onEnd() {},
onClose: function onClose() {},

@@ -43,3 +44,2 @@ duration: 1.5,

this.clearCloseTimer();
if (this.props.duration) {

@@ -51,5 +51,2 @@ this.closeTimer = setTimeout(function () {

},
componentDidUpdate: function componentDidUpdate() {
this.componentDidMount();
},
componentWillUnmount: function componentWillUnmount() {

@@ -80,3 +77,3 @@ this.clearCloseTimer();

{ className: componentClass + '-content' },
this.props.children
props.children
),

@@ -83,0 +80,0 @@ props.closable ? _react2["default"].createElement(

@@ -44,2 +44,10 @@ 'use strict';

displayName: 'Notification',
propTypes: {
prefixCls: _react.PropTypes.string,
transitionName: _react.PropTypes.string,
animation: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.object]),
style: _react.PropTypes.object
},
getDefaultProps: function getDefaultProps() {

@@ -46,0 +54,0 @@ return {

{
"name": "rc-notification",
"version": "1.3.3",
"version": "1.3.4",
"description": "notification ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

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