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

@lightspeed/cirrus-tokens

Package Overview
Dependencies
Maintainers
4
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightspeed/cirrus-tokens - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

11

CHANGELOG.md

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

<a name="2.3.0"></a>
# [2.3.0](https://github.com/lightspeedretail/cirrus/compare/@lightspeed/cirrus-tokens@2.2.1...@lightspeed/cirrus-tokens@2.3.0) (2017-12-12)
### Features
* **button:** Add positioning support for childrens ([#284](https://github.com/lightspeedretail/cirrus/issues/284)) ([20f40ed](https://github.com/lightspeedretail/cirrus/commit/20f40ed))
<a name="2.2.1"></a>

@@ -8,0 +19,0 @@ ## [2.2.1](https://github.com/lightspeedretail/cirrus/compare/@lightspeed/cirrus-tokens@2.2.0...@lightspeed/cirrus-tokens@2.2.1) (2017-11-24)

2

package.json
{
"name": "@lightspeed/cirrus-tokens",
"version": "2.2.1",
"version": "2.3.0",
"description": "Cirrus's Foundation",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,9 +17,9 @@ const { pxToRem } = require('./utils');

const fontSizesValues = [
{ name: 'xxl', value: 36 },
{ name: 'xl', value: 24 },
{ name: 'l', value: 18 },
{ name: '', value: 16 },
{ name: 's', value: 14 },
{ name: 'xs', value: 12 },
{ name: 'xxs', value: 8 },
{ name: 'xxl', alias: 'xxlarge', value: 36 },
{ name: 'xl', alias: 'xlarge', value: 24 },
{ name: 'l', alias: 'large', value: 18 },
{ name: '', alias: '', value: 16 },
{ name: 's', alias: 'small', value: 14 },
{ name: 'xs', alias: 'xsmall', value: 12 },
{ name: 'xxs', alias: 'xxsmall', value: 8 },
];

@@ -32,2 +32,8 @@ const fontSizes = fontSizesValues.reduce((obj, { name, value }) => {

const fontSizeAliases = fontSizesValues.reduce((obj, { alias, value }) => {
// eslint-disable-next-line no-param-reassign
obj[alias] = pxToRem(value);
return obj;
}, {});
const letterSpacingValues = [0.5, 1.0, 1.5];

@@ -45,3 +51,4 @@ const letterSpacings = letterSpacingValues.reduce((obj, value, index) => {

fontSizes,
fontSizeAliases,
letterSpacings,
};
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