styled-system
Advanced tools
Comparing version 4.2.0-0 to 4.2.0
@@ -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 @@ |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
123923
1
0
4126