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

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 4.2.0-0 to 4.2.0

22

CHANGELOG.md

@@ -5,2 +5,24 @@ # Changelog

## v4.2.0 2019-05-04
- Merge returned styles into a single object #473
## v4.1.0 2019-03-28
- #440
- #442
- #439
- #438
## v4.0.8 2019-03-23
- Fix `.npmignore`
## v4.0.7 2019-03-23
- #434
- #435
- #433
- #431
## v4.0.6 2019-03-21

@@ -7,0 +29,0 @@

29

dist/index.cjs.js

@@ -95,12 +95,15 @@ "use strict";

var result = {};
Object.keys(a).forEach(function (key) {
for (var key in a) {
result[key] = a[key];
});
Object.keys(b).forEach(function (key) {
if (!a[key]) {
result[key] = b[key];
}
for (var _key2 in b) {
if (!a[_key2]) {
result[_key2] = b[_key2];
} else {
result[key] = merge(a[key], b[key]);
result[_key2] = merge(a[_key2], b[_key2]);
}
});
}
return result;

@@ -112,9 +115,9 @@ };

var mergeAll = function mergeAll() {
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
var result = {};
for (var i = 0; i < arguments.length; i++) {
result = merge(result, i < 0 || arguments.length <= i ? undefined : arguments[i]);
}
return args.reduce(function (acc, arg) {
return merge(acc, arg);
}, {});
return result;
};

@@ -206,3 +209,3 @@

var compose = function compose() {
for (var _len3 = arguments.length, funcs = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) {
for (var _len2 = arguments.length, funcs = new Array(_len2), _key4 = 0; _key4 < _len2; _key4++) {
funcs[_key4] = arguments[_key4];

@@ -209,0 +212,0 @@ }

@@ -58,12 +58,15 @@ import _extends from "@babel/runtime/helpers/esm/extends";

var result = {};
Object.keys(a).forEach(function (key) {
for (var key in a) {
result[key] = a[key];
});
Object.keys(b).forEach(function (key) {
if (!a[key]) {
result[key] = b[key];
}
for (var _key2 in b) {
if (!a[_key2]) {
result[_key2] = b[_key2];
} else {
result[key] = merge(a[key], b[key]);
result[_key2] = merge(a[_key2], b[_key2]);
}
});
}
return result;

@@ -73,9 +76,9 @@ };

var mergeAll = function mergeAll() {
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
var result = {};
for (var i = 0; i < arguments.length; i++) {
result = merge(result, i < 0 || arguments.length <= i ? undefined : arguments[i]);
}
return args.reduce(function (acc, arg) {
return merge(acc, arg);
}, {});
return result;
};

@@ -164,3 +167,3 @@

export var compose = function compose() {
for (var _len3 = arguments.length, funcs = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) {
for (var _len2 = arguments.length, funcs = new Array(_len2), _key4 = 0; _key4 < _len2; _key4++) {
funcs[_key4] = arguments[_key4];

@@ -167,0 +170,0 @@ }

{
"name": "styled-system",
"version": "4.2.0-0",
"version": "4.2.0",
"description": "Responsive, theme-based style props for building design systems with React",

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

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