fela-plugin-fallback-value
Advanced tools
Comparing version 5.0.16 to 5.0.17
@@ -1,9 +0,4 @@ | ||
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'; | ||
import isPlainObject from 'isobject'; | ||
function isPlainObject(obj) { | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); | ||
} | ||
function resolveFallbackValues(style) { | ||
@@ -10,0 +5,0 @@ for (var property in style) { |
@@ -7,4 +7,2 @@ 'use strict'; | ||
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 _resolveArrayValue = require('css-in-js-utils/lib/resolveArrayValue'); | ||
@@ -14,8 +12,8 @@ | ||
var _isobject = require('isobject'); | ||
var _isobject2 = _interopRequireDefault(_isobject); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function isPlainObject(obj) { | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); | ||
} | ||
function resolveFallbackValues(style) { | ||
@@ -27,3 +25,3 @@ for (var property in style) { | ||
style[property] = (0, _resolveArrayValue2.default)(property, value); | ||
} else if (isPlainObject(value) && property !== 'fontFace') { | ||
} else if ((0, _isobject2.default)(value) && property !== 'fontFace') { | ||
style[property] = resolveFallbackValues(value); | ||
@@ -30,0 +28,0 @@ } |
{ | ||
"name": "fela-plugin-fallback-value", | ||
"version": "5.0.16", | ||
"version": "5.0.17", | ||
"description": "Fela plugin to resolve fallback values", | ||
@@ -24,4 +24,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"css-in-js-utils": "2.0.0" | ||
"css-in-js-utils": "2.0.0", | ||
"isobject": "^3.0.1" | ||
} | ||
} |
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
4544
2
37
+ Addedisobject@^3.0.1
+ Addedisobject@3.0.1(transitive)