fela-plugin-remove-undefined
Advanced tools
Comparing version 5.0.14 to 5.0.15
@@ -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 { isUndefinedValue } from 'fela-utils'; | ||
function isPlainObject(obj) { | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); | ||
} | ||
function removeUndefined(style) { | ||
@@ -5,0 +10,0 @@ for (var property in style) { |
@@ -7,9 +7,9 @@ '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 _felaUtils = require('fela-utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function isPlainObject(obj) { | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); | ||
} | ||
@@ -20,3 +20,3 @@ function removeUndefined(style) { | ||
if ((0, _isPlainObject2.default)(value)) { | ||
if (isPlainObject(value)) { | ||
style[property] = removeUndefined(value); | ||
@@ -23,0 +23,0 @@ } else if (Array.isArray(value)) { |
{ | ||
"name": "fela-plugin-remove-undefined", | ||
"version": "5.0.14", | ||
"version": "5.0.15", | ||
"description": "Fela plugin to remove invalid undefined values", | ||
@@ -23,5 +23,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"fela-utils": "^8.0.0", | ||
"lodash": "^4.17.4" | ||
"fela-utils": "^8.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
5149
1
48
- Removedlodash@^4.17.4
- Removedlodash@4.17.21(transitive)
Updatedfela-utils@^8.0.1