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

@cloudflare/component-icon

Package Overview
Dependencies
Maintainers
26
Versions
626
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/component-icon - npm Package Compare versions

Comparing version 1.0.12 to 1.1.0

20

CHANGELOG.md

@@ -6,3 +6,19 @@ # Change Log

<a name="1.0.12"></a>
<a name="1.1.0"></a>
# [1.1.0](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-icon@1.0.11...@cloudflare/component-icon@1.1.0) (2018-06-12)
### Bug Fixes
* **component-icon:** WWW-15220: Fix default icon size ([f3df0df](http://stash.cfops.it:7999/fe/stratus/commits/f3df0df))
### Features
* **component-icon:** WWW-15220: Add icon size, site link in the header ([2c0ca69](http://stash.cfops.it:7999/fe/stratus/commits/2c0ca69))
<a name="1.0.12"></a>
## [1.0.12](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-icon@1.0.11...@cloudflare/component-icon@1.0.12) (2018-06-08)

@@ -15,3 +31,3 @@

<a name="1.0.11"></a>
<a name="1.0.11"></a>
## [1.0.11](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/component-icon@1.0.8...@cloudflare/component-icon@1.0.11) (2018-06-07)

@@ -18,0 +34,0 @@

5

es/Icon.js

@@ -21,2 +21,5 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

switch (size) {
case '0.8x':
height = 12;
break;
case '1.2x':

@@ -122,3 +125,3 @@ height = 18;

size: PropTypes.oneOf(['1.2x', '1.5x', '2x', '2.5x', '3x', '3.5x', '4x'])
size: PropTypes.oneOf(['0.8x', '1.2x', '1.5x', '2x', '2.5x', '3x', '3.5x', '4x'])
};

@@ -125,0 +128,0 @@

@@ -32,2 +32,5 @@ 'use strict';

switch (size) {
case '0.8x':
height = 12;
break;
case '1.2x':

@@ -112,3 +115,3 @@ height = 18;

size: _propTypes2.default.oneOf(['1.2x', '1.5x', '2x', '2.5x', '3x', '3.5x', '4x'])
size: _propTypes2.default.oneOf(['0.8x', '1.2x', '1.5x', '2x', '2.5x', '3x', '3.5x', '4x'])
};

@@ -115,0 +118,0 @@

{
"name": "@cloudflare/component-icon",
"description": "Cloudflare Icon Component",
"version": "1.0.12",
"version": "1.1.0",
"main": "lib/index.js",

@@ -15,3 +15,3 @@ "module": "es/index.js",

"dependencies": {
"@cloudflare/style-container": "^1.0.12",
"@cloudflare/style-container": "^1.1.0",
"prop-types": "^15.6.0"

@@ -18,0 +18,0 @@ },

@@ -13,2 +13,5 @@ import React from 'react';

switch (size) {
case '0.8x':
height = 12;
break;
case '1.2x':

@@ -102,3 +105,12 @@ height = 18;

size: PropTypes.oneOf(['1.2x', '1.5x', '2x', '2.5x', '3x', '3.5x', '4x'])
size: PropTypes.oneOf([
'0.8x',
'1.2x',
'1.5x',
'2x',
'2.5x',
'3x',
'3.5x',
'4x'
])
};

@@ -105,0 +117,0 @@

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