fela-plugin-fallback-value
Advanced tools
Comparing version 5.0.15 to 5.0.16
@@ -1,4 +0,9 @@ | ||
import isPlainObject from 'lodash/isPlainObject'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
import resolveArrayValue from 'css-in-js-utils/lib/resolveArrayValue'; | ||
function isPlainObject(obj) { | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); | ||
} | ||
function resolveFallbackValues(style) { | ||
@@ -5,0 +10,0 @@ for (var property in style) { |
@@ -7,6 +7,4 @@ 'use strict'; | ||
var _isPlainObject = require('lodash/isPlainObject'); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _isPlainObject2 = _interopRequireDefault(_isPlainObject); | ||
var _resolveArrayValue = require('css-in-js-utils/lib/resolveArrayValue'); | ||
@@ -18,2 +16,6 @@ | ||
function isPlainObject(obj) { | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); | ||
} | ||
function resolveFallbackValues(style) { | ||
@@ -25,3 +27,3 @@ for (var property in style) { | ||
style[property] = (0, _resolveArrayValue2.default)(property, value); | ||
} else if ((0, _isPlainObject2.default)(value) && property !== 'fontFace') { | ||
} else if (isPlainObject(value) && property !== 'fontFace') { | ||
style[property] = resolveFallbackValues(value); | ||
@@ -28,0 +30,0 @@ } |
{ | ||
"name": "fela-plugin-fallback-value", | ||
"version": "5.0.15", | ||
"version": "5.0.16", | ||
"description": "Fela plugin to resolve fallback values", | ||
@@ -24,5 +24,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"css-in-js-utils": "2.0.0", | ||
"lodash": "^4.17.4" | ||
"css-in-js-utils": "2.0.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
5195
1
42
- Removedlodash@^4.17.4
- Removedlodash@4.17.21(transitive)