Socket
Socket
Sign inDemoInstall

styled-system

Package Overview
Dependencies
Maintainers
2
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 3.1.10 to 3.1.11

5

dist/index.cjs.js

@@ -51,3 +51,3 @@ "use strict";

return paths.join('.').split('.').reduce(function (a, b) {
return a && b in a ? a[b] : null;
return a && a[b] ? a[b] : null;
}, obj);

@@ -60,4 +60,3 @@ };

return function (props) {
var getVal = get(props.theme, paths);
return is(getVal) ? getVal : fallback;
return get(props.theme, paths) || fallback;
};

@@ -64,0 +63,0 @@ };

@@ -30,3 +30,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

return paths.join('.').split('.').reduce(function (a, b) {
return a && b in a ? a[b] : null;
return a && a[b] ? a[b] : null;
}, obj);

@@ -36,4 +36,3 @@ };

return function (props) {
var getVal = get(props.theme, paths);
return is(getVal) ? getVal : fallback;
return get(props.theme, paths) || fallback;
};

@@ -40,0 +39,0 @@ };

2

package.json
{
"name": "styled-system",
"version": "3.1.10",
"version": "3.1.11",
"description": "Responsive, theme-based style props for building design systems with React",

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

@@ -75,2 +75,3 @@

- [Emotion](https://codesandbox.io/s/github/jxnblk/styled-system/tree/master/examples/emotion)
- [Theme Aliases](https://codesandbox.io/s/github/jxnblk/styled-system/tree/master/examples/theme-aliases)

@@ -77,0 +78,0 @@ ### Table of Contents

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