fela-plugin-remove-undefined
Advanced tools
Comparing version 5.0.13 to 5.0.14
@@ -1,2 +0,3 @@ | ||
import { isUndefinedValue, isObject } from 'fela-utils'; | ||
import isPlainObject from 'lodash/isPlainObject'; | ||
import { isUndefinedValue } from 'fela-utils'; | ||
@@ -7,3 +8,3 @@ function removeUndefined(style) { | ||
if (isObject(value)) { | ||
if (isPlainObject(value)) { | ||
style[property] = removeUndefined(value); | ||
@@ -10,0 +11,0 @@ } else if (Array.isArray(value)) { |
@@ -7,4 +7,10 @@ 'use strict'; | ||
var _isPlainObject = require('lodash/isPlainObject'); | ||
var _isPlainObject2 = _interopRequireDefault(_isPlainObject); | ||
var _felaUtils = require('fela-utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function removeUndefined(style) { | ||
@@ -14,3 +20,3 @@ for (var property in style) { | ||
if ((0, _felaUtils.isObject)(value)) { | ||
if ((0, _isPlainObject2.default)(value)) { | ||
style[property] = removeUndefined(value); | ||
@@ -17,0 +23,0 @@ } else if (Array.isArray(value)) { |
{ | ||
"name": "fela-plugin-remove-undefined", | ||
"version": "5.0.13", | ||
"version": "5.0.14", | ||
"description": "Fela plugin to remove invalid undefined values", | ||
@@ -23,4 +23,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"fela-utils": "^7.0.5" | ||
"fela-utils": "^8.0.0", | ||
"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
4638
44
2
+ Addedlodash@^4.17.4
+ Addedcss-in-js-utils@3.1.0(transitive)
+ Addedfast-loops@1.1.4(transitive)
+ Addedfela-utils@8.1.3(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedstring-hash@1.1.3(transitive)
- Removedcss-in-js-utils@2.0.0(transitive)
- Removedfela-utils@7.0.5(transitive)
Updatedfela-utils@^8.0.0