fela-plugin-remove-undefined
Advanced tools
Comparing version 5.0.18 to 5.0.19
@@ -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 { isUndefinedValue } from 'fela-utils'; | ||
import isPlainObject from 'isobject'; | ||
function isPlainObject(obj) { | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); | ||
} | ||
function removeUndefined(style) { | ||
@@ -10,0 +5,0 @@ for (var property in style) { |
@@ -7,10 +7,10 @@ '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 _felaUtils = require('fela-utils'); | ||
function isPlainObject(obj) { | ||
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj); | ||
} | ||
var _isobject = require('isobject'); | ||
var _isobject2 = _interopRequireDefault(_isobject); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function removeUndefined(style) { | ||
@@ -20,3 +20,3 @@ for (var property in style) { | ||
if (isPlainObject(value)) { | ||
if ((0, _isobject2.default)(value)) { | ||
style[property] = removeUndefined(value); | ||
@@ -23,0 +23,0 @@ } else if (Array.isArray(value)) { |
{ | ||
"name": "fela-plugin-remove-undefined", | ||
"version": "5.0.18", | ||
"version": "5.0.19", | ||
"description": "Fela plugin to remove invalid undefined values", | ||
@@ -23,4 +23,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"fela-utils": "^8.0.4" | ||
"fela-utils": "^8.0.5", | ||
"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
4595
2
44
+ Addedisobject@^3.0.1
+ Addedisobject@3.0.1(transitive)
Updatedfela-utils@^8.0.5