Socket
Socket
Sign inDemoInstall

fela-plugin-fallback-value

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-plugin-fallback-value - npm Package Compare versions

Comparing version 5.0.14 to 5.0.15

5

es/index.js

@@ -0,5 +1,4 @@

import isPlainObject from 'lodash/isPlainObject';
import resolveArrayValue from 'css-in-js-utils/lib/resolveArrayValue';
import { isObject } from 'fela-utils';
function resolveFallbackValues(style) {

@@ -11,3 +10,3 @@ for (var property in style) {

style[property] = resolveArrayValue(property, value);
} else if (isObject(value) && property !== 'fontFace') {
} else if (isPlainObject(value) && property !== 'fontFace') {
style[property] = resolveFallbackValues(value);

@@ -14,0 +13,0 @@ }

8

lib/index.js

@@ -7,2 +7,6 @@ 'use strict';

var _isPlainObject = require('lodash/isPlainObject');
var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
var _resolveArrayValue = require('css-in-js-utils/lib/resolveArrayValue');

@@ -12,4 +16,2 @@

var _felaUtils = require('fela-utils');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -23,3 +25,3 @@

style[property] = (0, _resolveArrayValue2.default)(property, value);
} else if ((0, _felaUtils.isObject)(value) && property !== 'fontFace') {
} else if ((0, _isPlainObject2.default)(value) && property !== 'fontFace') {
style[property] = resolveFallbackValues(value);

@@ -26,0 +28,0 @@ }

{
"name": "fela-plugin-fallback-value",
"version": "5.0.14",
"version": "5.0.15",
"description": "Fela plugin to resolve fallback values",

@@ -25,4 +25,4 @@ "main": "lib/index.js",

"css-in-js-utils": "2.0.0",
"fela-utils": "^7.0.5"
"lodash": "^4.17.4"
}
}
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