Socket
Socket
Sign inDemoInstall

fela-plugin-remove-undefined

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-plugin-remove-undefined - npm Package Compare versions

Comparing version 5.0.18 to 5.0.19

7

es/index.js

@@ -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) {

12

lib/index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc