fela-plugin-extend
Advanced tools
Comparing version 10.2.3 to 10.2.4
@@ -26,4 +26,5 @@ import objectEach from 'fast-loops/lib/objectEach'; | ||
// extend conditional style objects | ||
if (extension.hasOwnProperty('condition')) { | ||
if (extension && Object.prototype.hasOwnProperty.call(extension, 'condition')) { | ||
if (extension.condition) { | ||
// eslint-disable-next-line no-use-before-define | ||
assignStyle(style, extend(extension.style)); | ||
@@ -33,3 +34,3 @@ } | ||
// extend basic style objects | ||
assignStyle(style, removeUndefined(extension)); | ||
assignStyle(style, removeUndefined(extend(extension))); | ||
} | ||
@@ -36,0 +37,0 @@ } |
@@ -46,4 +46,5 @@ 'use strict'; | ||
// extend conditional style objects | ||
if (extension.hasOwnProperty('condition')) { | ||
if (extension && Object.prototype.hasOwnProperty.call(extension, 'condition')) { | ||
if (extension.condition) { | ||
// eslint-disable-next-line no-use-before-define | ||
(0, _assignStyle2.default)(style, extend(extension.style)); | ||
@@ -53,3 +54,3 @@ } | ||
// extend basic style objects | ||
(0, _assignStyle2.default)(style, removeUndefined(extension)); | ||
(0, _assignStyle2.default)(style, removeUndefined(extend(extension))); | ||
} | ||
@@ -56,0 +57,0 @@ } |
{ | ||
"name": "fela-plugin-extend", | ||
"version": "10.2.3", | ||
"version": "10.2.4", | ||
"description": "Fela plugin to extend style objects", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"fast-loops": "^1.0.0", | ||
"fela-utils": "^10.2.3", | ||
"fela-utils": "^10.2.4", | ||
"isobject": "^3.0.1" | ||
@@ -32,0 +32,0 @@ }, |
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
7728
105
Updatedfela-utils@^10.2.4