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

@trendmicro/react-buttons

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trendmicro/react-buttons - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

8

lib/index.js

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

/*! react-buttons v1.3.0 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-buttons */
/*! react-buttons v1.3.1 | (c) 2018 Trend Micro Inc. | MIT | https://github.com/trendmicro-frontend/react-buttons */
module.exports =

@@ -300,2 +300,6 @@ /******/ (function(modules) { // webpackBootstrap

var getComponentType = function getComponentType(Component) {
return Component ? _react2.default.createElement(Component, null).type : undefined;
};
var ButtonGroup = function ButtonGroup(_ref) {

@@ -320,3 +324,3 @@ var _classes;

_react2.default.Children.map(children, function (child) {
if (_react2.default.isValidElement(child) && child.type === _Button2.default) {
if (_react2.default.isValidElement(child) && child.type === getComponentType(_Button2.default)) {
var childProps = {};

@@ -323,0 +327,0 @@ if (_constants.btnSizes.indexOf(btnSize) >= 0) {

{
"name": "@trendmicro/react-buttons",
"version": "1.3.0",
"version": "1.3.1",
"description": "Trend Micro Components: React Buttons",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"scripts": {
"prepublish": "npm run lint && npm test && npm run clean && npm run bowersync && npm run build && npm run build-examples",
"prepublish": "npm run eslint && npm test && npm run clean && npm run bowersync && npm run build && npm run build-examples",
"bowersync": "./scripts/bowersync",

@@ -19,4 +19,4 @@ "build": "webpack && npm run cleancss",

"demo": "http-server -p 8000 docs/",
"lint": "eslint ./src",
"lint:fix": "eslint --fix ./src",
"eslint": "eslint ./src",
"eslint:fix": "eslint --fix ./src",
"test": "tap test/*.js --node-arg=--require --node-arg=babel-register --node-arg=--require --node-arg=babel-polyfill",

@@ -23,0 +23,0 @@ "coveralls": "tap test/*.js --coverage --coverage-report=text-lcov --nyc-arg=--require --nyc-arg=babel-register --nyc-arg=--require --nyc-arg=babel-polyfill | coveralls",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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