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

rc-notification

Package Overview
Dependencies
Maintainers
2
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.6 to 1.4.0

16

lib/Notification.js

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

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
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; }

@@ -131,5 +133,13 @@

Notification.newInstance = function newNotificationInstance(properties) {
var props = properties || {};
var div = document.createElement('div');
document.body.appendChild(div);
var _ref = properties || {},
getContainer = _ref.getContainer,
props = _objectWithoutProperties(_ref, ['getContainer']);
var div = void 0;
if (getContainer) {
div = getContainer();
} else {
div = document.createElement('div');
document.body.appendChild(div);
}
var notification = _reactDom2["default"].render(_react2["default"].createElement(Notification, props), div);

@@ -136,0 +146,0 @@ return {

4

package.json
{
"name": "rc-notification",
"version": "1.3.6",
"version": "1.4.0",
"description": "notification ui component for react",

@@ -63,2 +63,2 @@ "keywords": [

]
}
}

@@ -88,2 +88,8 @@ # rc-notification

</tr>
<tr>
<td>getContainer</td>
<td>getContainer(): HTMLElement</td>
<td></td>
<td>function returning html node which will act as notification container</td>
</tr>
</tbody>

@@ -90,0 +96,0 @@ </table>

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