fela-plugin-extend
Advanced tools
Comparing version 6.0.0 to 6.0.1
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" | ||
} | ||
} |
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
5825
Updatedfela-utils@^7.0.5