react-base16-styling
Advanced tools
+7
-3
@@ -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) { |
+1
-1
| { | ||
| "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", |
+1
-1
@@ -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 @@ |
11093
2.09%157
1.29%