fela-plugin-fallback-value
Advanced tools
Comparing version 5.0.14 to 5.0.15
@@ -0,5 +1,4 @@ | ||
import isPlainObject from 'lodash/isPlainObject'; | ||
import resolveArrayValue from 'css-in-js-utils/lib/resolveArrayValue'; | ||
import { isObject } from 'fela-utils'; | ||
function resolveFallbackValues(style) { | ||
@@ -11,3 +10,3 @@ for (var property in style) { | ||
style[property] = resolveArrayValue(property, value); | ||
} else if (isObject(value) && property !== 'fontFace') { | ||
} else if (isPlainObject(value) && property !== 'fontFace') { | ||
style[property] = resolveFallbackValues(value); | ||
@@ -14,0 +13,0 @@ } |
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _isPlainObject = require('lodash/isPlainObject'); | ||
var _isPlainObject2 = _interopRequireDefault(_isPlainObject); | ||
var _resolveArrayValue = require('css-in-js-utils/lib/resolveArrayValue'); | ||
@@ -12,4 +16,2 @@ | ||
var _felaUtils = require('fela-utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -23,3 +25,3 @@ | ||
style[property] = (0, _resolveArrayValue2.default)(property, value); | ||
} else if ((0, _felaUtils.isObject)(value) && property !== 'fontFace') { | ||
} else if ((0, _isPlainObject2.default)(value) && property !== 'fontFace') { | ||
style[property] = resolveFallbackValues(value); | ||
@@ -26,0 +28,0 @@ } |
{ | ||
"name": "fela-plugin-fallback-value", | ||
"version": "5.0.14", | ||
"version": "5.0.15", | ||
"description": "Fela plugin to resolve fallback values", | ||
@@ -25,4 +25,4 @@ "main": "lib/index.js", | ||
"css-in-js-utils": "2.0.0", | ||
"fela-utils": "^7.0.5" | ||
"lodash": "^4.17.4" | ||
} | ||
} |
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
4587
37
+ Addedlodash@^4.17.4
+ Addedlodash@4.17.21(transitive)
- Removedfela-utils@^7.0.5
- Removedfela-utils@7.0.5(transitive)