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

@lightspeed/cirrus-button

Package Overview
Dependencies
Maintainers
6
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightspeed/cirrus-button - npm Package Compare versions

Comparing version

to
5.1.2

16

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

<a name="5.1.2"></a>
## [5.1.2](https://github.com/lightspeedretail/cirrus/compare/@lightspeed/cirrus-button@5.1.0...@lightspeed/cirrus-button@5.1.2) (2018-01-08)
### Bug Fixes
* **button:** Fix unhandled error when children prop is null ([#313](https://github.com/lightspeedretail/cirrus/issues/313)) ([b43d637](https://github.com/lightspeedretail/cirrus/commit/b43d637)), closes [#298](https://github.com/lightspeedretail/cirrus/issues/298)
<a name="5.1.1"></a>

@@ -11,6 +22,9 @@ ## [5.1.1](https://github.com/lightspeedretail/cirrus/compare/@lightspeed/cirrus-button@5.1.0...@lightspeed/cirrus-button@5.1.1) (2018-01-08)

### Bug Fixes
* **button:** Fix unhandled error when children prop is null ([#313](https://github.com/lightspeedretail/cirrus/issues/313)) ([b43d637](https://github.com/lightspeedretail/cirrus/commit/b43d637)), closes [#298](https://github.com/lightspeedretail/cirrus/issues/298)
**Note:** Version bump only for package @lightspeed/cirrus-button
<a name="5.1.0"></a>

@@ -17,0 +31,0 @@ # [5.1.0](https://github.com/lightspeedretail/cirrus/compare/@lightspeed/cirrus-button@5.0.0...@lightspeed/cirrus-button@5.1.0) (2017-12-15)

2

index.js

@@ -10,3 +10,3 @@ import React from 'react';

const isIconChild = child => typeof child === 'object' && child.type.cirrusName === 'Icon';
const isIconChild = child => child && child.type && child.type.cirrusName === 'Icon';
const isIconOnly = children => React.Children.count(children) === 1 && isIconChild(children);

@@ -13,0 +13,0 @@

{
"name": "@lightspeed/cirrus-button",
"version": "5.1.1",
"version": "5.1.2",
"description": "Cirrus Button Component",

@@ -5,0 +5,0 @@ "author": "Lightspeed",