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

fela

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela - npm Package Compare versions

Comparing version 6.0.3 to 6.0.4

5

es/combineRules.js
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

lib/combineRules.js

@@ -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"
}
}
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