Comparing version 6.0.3 to 6.0.4
import { arrayReduce } from 'fela-utils'; | ||
import assignStyle from 'css-in-js-utils/lib/assignStyle'; | ||
@@ -9,6 +10,8 @@ export default function combineRules() { | ||
return function (props, renderer) { | ||
var merge = renderer._mergeStyle || assignStyle; | ||
return arrayReduce(rules, function (style, rule) { | ||
return renderer._mergeStyle(style, rule(props, renderer)); | ||
return merge(style, rule(props, renderer)); | ||
}, {}); | ||
}; | ||
} |
@@ -10,2 +10,8 @@ 'use strict'; | ||
var _assignStyle = require('css-in-js-utils/lib/assignStyle'); | ||
var _assignStyle2 = _interopRequireDefault(_assignStyle); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function combineRules() { | ||
@@ -17,6 +23,8 @@ for (var _len = arguments.length, rules = Array(_len), _key = 0; _key < _len; _key++) { | ||
return function (props, renderer) { | ||
var merge = renderer._mergeStyle || _assignStyle2.default; | ||
return (0, _felaUtils.arrayReduce)(rules, function (style, rule) { | ||
return renderer._mergeStyle(style, rule(props, renderer)); | ||
return merge(style, rule(props, renderer)); | ||
}, {}); | ||
}; | ||
} |
{ | ||
"name": "fela", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"description": "Style as a Function of State", | ||
@@ -33,7 +33,7 @@ "typings": "index.d.ts", | ||
"css-in-js-utils": "2.0.0", | ||
"fela-utils": "^7.0.3" | ||
"fela-utils": "^7.0.4" | ||
}, | ||
"devDependencies": { | ||
"fela-tools": "^5.0.11" | ||
"fela-tools": "^5.0.12" | ||
} | ||
} |
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
91127
1085
Updatedfela-utils@^7.0.4