react-base16-styling
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -16,2 +16,6 @@ 'use strict'; | ||
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); | ||
var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); | ||
var _from = require('babel-runtime/core-js/array/from'); | ||
@@ -66,5 +70,5 @@ | ||
var styles = keys.map(function (key) { | ||
return customStyling[key] || defaultStyling[key]; | ||
}).filter(truthy); | ||
var styles = keys.reduce(function (s, key) { | ||
return [].concat((0, _toConsumableArray3.default)(s), [defaultStyling[key], customStyling[key]]); | ||
}, []).filter(truthy); | ||
@@ -71,0 +75,0 @@ return styles.reduce(function (obj, s) { |
{ | ||
"name": "react-base16-styling", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "React styling with base16 color scheme support", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -23,3 +23,3 @@ import curry from 'lodash.curry'; | ||
const styles = keys | ||
.map(key => customStyling[key] || defaultStyling[key]) | ||
.reduce((s, key) => [...s, defaultStyling[key], customStyling[key]], []) | ||
.filter(truthy); | ||
@@ -26,0 +26,0 @@ |
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
11093
157