New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-notification

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-notification - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0-beta

examples/es2015/index.html

22

dist/notification.js

@@ -11,3 +11,3 @@ 'use strict';

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -23,2 +23,4 @@ var _react = require('react');

var Notification = (function (_Component) {
_inherits(Notification, _Component);
function Notification() {

@@ -118,11 +120,9 @@ var _this = this;

if (_this.props.onClick && typeof _this.props.onClick === 'function') {
_this.props.onClick();
} else {
return;
return _this.props.onClick(event);
}
return;
};
}
_inherits(Notification, _Component);
Notification.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {

@@ -134,2 +134,7 @@ if (nextProps.onDismiss && nextProps.isActive) {

/*
* @description Dynamically get the styles for the bar.
* @returns {object} result The style.
*/
Notification.prototype.render = function render() {

@@ -183,7 +188,2 @@ return _react2['default'].createElement(

/*
* @description Dynamically get the styles for the bar.
* @returns {object} result The style.
*/
/*
* @function getActionStyle

@@ -190,0 +190,0 @@ * @description Dynamically get the styles for the action text.

import React, { Component } from 'react';
import { render } from 'react-dom';
import Notification from 'notification';

@@ -108,2 +109,2 @@

React.render(<Example />, document.body);
render(<Example />, document.querySelector('#mount'));
{
"name": "react-notification",
"version": "2.1.0",
"version": "2.2.0-beta",
"description": "Snackbar style notification component for React.",

@@ -31,14 +31,16 @@ "main": "dist/notification.js",

"homepage": "https://github.com/pburtchaell/react-notification",
"peerDependencies": {
"react": "^0.14.0 || 0.14.0-beta1 || 0.14.0-beta2 || 0.14.0-beta3"
},
"dependencies": {
"object-assign": "^2.0.0",
"react": "^0.13.3"
"object-assign": "^3.0.0"
},
"devDependencies": {
"babel": "^5.5.8",
"babel-core": "^5.5.8",
"babel-eslint": "^3.1.23",
"babel-loader": "^5.1.4",
"eslint": "^0.24.0",
"eslint-config-airbnb": "0.0.6",
"eslint-plugin-react": "^2.6.4",
"babel": "^5.8.21",
"babel-core": "^5.8.22",
"babel-eslint": "^4.0.10",
"babel-loader": "^5.3.2",
"eslint": "^1.2.0",
"eslint-config-airbnb": "^0.0.7",
"eslint-plugin-react": "^3.2.3",
"expect": "^1.6.0",

@@ -50,6 +52,9 @@ "html-webpack-plugin": "^1.6.0",

"node-libs-browser": "^0.5.2",
"react-hot-loader": "^1.2.7",
"webpack": "^1.7.3",
"webpack-dev-server": "^1.9.0"
"react": "^0.14.0-beta1",
"react-addons-test-utils": "^0.14.0-beta3",
"react-dom": "^0.14.0-beta3",
"react-hot-loader": "^1.2.8",
"webpack": "^1.11.0",
"webpack-dev-server": "^1.10.1"
}
}

@@ -1,3 +0,3 @@

import React from 'react/addons';
import ExecutionEnvironment from 'react/lib/ExecutionEnvironment';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'mocha-jsdom';

@@ -7,4 +7,2 @@ import expect from 'expect';

let TestUtils = React.addons.TestUtils;
const MOCK = {

@@ -31,3 +29,2 @@ message: 'Test',

jsdom();
ExecutionEnvironment.canUseDOM = true;

@@ -34,0 +31,0 @@ it('should render message and action text', done => {

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