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

fela-plugin-extend

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-plugin-extend - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

6

es/index.js
import { isObject, arrayEach, objectEach } from 'fela-utils';
function extendStyle(style, extension, extendPlugin, renderer) {
function extendStyle(style, extension, extendPlugin, type, renderer) {
// extend conditional style objects
if (extension.hasOwnProperty('condition')) {
if (extension.condition) {
renderer._mergeStyle(style, extendPlugin(extension.style));
renderer._mergeStyle(style, extendPlugin(extension.style, type, renderer));
}

@@ -21,3 +21,3 @@ } else {

arrayEach(extensions, function (extension) {
return extendStyle(style, extension, extend, renderer);
return extendStyle(style, extension, extend, type, renderer);
});

@@ -24,0 +24,0 @@ delete style[property];

@@ -9,7 +9,7 @@ 'use strict';

function extendStyle(style, extension, extendPlugin, renderer) {
function extendStyle(style, extension, extendPlugin, type, renderer) {
// extend conditional style objects
if (extension.hasOwnProperty('condition')) {
if (extension.condition) {
renderer._mergeStyle(style, extendPlugin(extension.style));
renderer._mergeStyle(style, extendPlugin(extension.style, type, renderer));
}

@@ -29,3 +29,3 @@ } else {

(0, _felaUtils.arrayEach)(extensions, function (extension) {
return extendStyle(style, extension, extend, renderer);
return extendStyle(style, extension, extend, type, renderer);
});

@@ -32,0 +32,0 @@ delete style[property];

{
"name": "fela-plugin-extend",
"version": "6.0.0",
"version": "6.0.1",
"description": "Fela plugin to extend style objects",

@@ -27,4 +27,4 @@ "main": "lib/index.js",

"css-in-js-utils": "2.0.0",
"fela-utils": "^7.0.4"
"fela-utils": "^7.0.5"
}
}
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