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

styled-system

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-system - npm Package Compare versions

Comparing version 1.0.0-8 to 1.0.0-9

2

dist/space.js

@@ -24,3 +24,3 @@ 'use strict';

return REG.test(key);
});
}).sort();
var bp = breaks(props);

@@ -27,0 +27,0 @@ var sc = idx(['theme', 'space'], props) || scale;

{
"name": "styled-system",
"version": "1.0.0-8",
"version": "1.0.0-9",
"description": "Design system utilities for styled-components, glamorous, and other css-in-js libraries",

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

@@ -17,3 +17,5 @@ const {

module.exports = props => {
const keys = Object.keys(props).filter(key => REG.test(key))
const keys = Object.keys(props)
.filter(key => REG.test(key))
.sort()
const bp = breaks(props)

@@ -20,0 +22,0 @@ const sc = idx([ 'theme', 'space' ], props) || scale

@@ -231,2 +231,15 @@ import test from 'ava'

test('space sorts responsive directional margins', t => {
const a = space({
mb: 2,
m: [0, 1]
})
const keys = Object.keys(a)
t.deepEqual(keys, [
'margin',
'@media screen and (min-width: 40em)',
'marginBottom'
])
})
test('space returns padding declarations', t => {

@@ -233,0 +246,0 @@ const dec = space({p: 1})

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