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

react-alerts

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-alerts - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

dist/react-alerts.js

@@ -92,5 +92,5 @@ (function (global, factory) {

ReactAlerts.version = '0.1.0';
ReactAlerts.version = '0.1.3';
exports.default = ReactAlerts;
});

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactAlerts=t(require("react")):e.ReactAlerts=t(e.React)}(this,function(e){return function(e){function t(s){if(r[s])return r[s].exports;var a=r[s]={exports:{},id:s,loaded:!1};return e[s].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var r={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r}var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),l=s(o),i=l["default"].createClass({displayName:"ReactAlerts",propTypes:{alertStyle:l["default"].PropTypes.oneOf(["info","success","warning","danger"]),className:l["default"].PropTypes.string,dismissable:l["default"].PropTypes.bool,onDismiss:l["default"].PropTypes.func},getDefaultProps:function(){return{alertStyle:"info",className:"",dismissable:!0,onDismiss:function(){}}},render:function(){var e=this.props,t=e.className,r=e.alertStyle,s=e.children,o=e.dismissable,i=e.onDismiss,c=a(e,["className","alertStyle","children","dismissable","onDismiss"]);return t+=" react-alerts react-alerts-"+r,o&&(t+=" react-alerts-dismissable"),l["default"].createElement("div",n({},c,{className:t}),o&&l["default"].createElement("button",{type:"button",className:"close",onClick:i},"×"),s)}});i.version="0.1.0",t["default"]=i,e.exports=t["default"]},function(t,r){t.exports=e}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactAlerts=t(require("react")):e.ReactAlerts=t(e.React)}(this,function(e){return function(e){function t(s){if(r[s])return r[s].exports;var a=r[s]={exports:{},id:s,loaded:!1};return e[s].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var r={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r}var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),l=s(o),i=l["default"].createClass({displayName:"ReactAlerts",propTypes:{alertStyle:l["default"].PropTypes.oneOf(["info","success","warning","danger"]),className:l["default"].PropTypes.string,dismissable:l["default"].PropTypes.bool,onDismiss:l["default"].PropTypes.func},getDefaultProps:function(){return{alertStyle:"info",className:"",dismissable:!0,onDismiss:function(){}}},render:function(){var e=this.props,t=e.className,r=e.alertStyle,s=e.children,o=e.dismissable,i=e.onDismiss,c=a(e,["className","alertStyle","children","dismissable","onDismiss"]);return t+=" react-alerts react-alerts-"+r,o&&(t+=" react-alerts-dismissable"),l["default"].createElement("div",n({},c,{className:t}),o&&l["default"].createElement("button",{type:"button",className:"close",onClick:i},"×"),s)}});i.version="0.1.3",t["default"]=i,e.exports=t["default"]},function(t,r){t.exports=e}])});
{
"name": "react-alerts",
"version": "0.1.2",
"version": "0.1.3",
"description": "A simple react component for displaying Alert banners.",

@@ -5,0 +5,0 @@ "main": "dist/react-alerts.js",

@@ -69,4 +69,4 @@ import React from 'react';

ReactAlerts.version = '0.1.0';
ReactAlerts.version = '0.1.3';
export default ReactAlerts;
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