Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fela

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela - npm Package Compare versions

Comparing version 6.1.4 to 6.1.5

7

es/createRenderer.js
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
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; };
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }

@@ -10,2 +8,3 @@

import arrayEach from 'fast-loops/lib/arrayEach';
import isPlainObject from 'isobject';

@@ -27,6 +26,2 @@ import { generateCombinedMediaQuery, generateCSSRule, generateCSSSelector, isMediaQuery, isNestedSelector, isUndefinedValue, isSupport, normalizeNestedProperty, processStyleWithPlugins, STATIC_TYPE, RULE_TYPE, KEYFRAME_TYPE, FONT_TYPE, CLEAR_TYPE } from 'fela-utils';

function isPlainObject(obj) {
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj);
}
export default function createRenderer() {

@@ -33,0 +28,0 @@ var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

12

lib/createRenderer.js

@@ -9,4 +9,2 @@ '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; };
exports.default = createRenderer;

@@ -26,2 +24,6 @@

var _isobject = require('isobject');
var _isobject2 = _interopRequireDefault(_isobject);
var _felaUtils = require('fela-utils');

@@ -81,6 +83,2 @@

function isPlainObject(obj) {
return (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && !Array.isArray(obj);
}
function createRenderer() {

@@ -231,3 +229,3 @@ var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

if (isPlainObject(value)) {
if ((0, _isobject2.default)(value)) {
if ((0, _felaUtils.isNestedSelector)(property)) {

@@ -234,0 +232,0 @@ classNames += renderer._renderStyleToClassNames(value, pseudo + (0, _felaUtils.normalizeNestedProperty)(property), media, support);

{
"name": "fela",
"version": "6.1.4",
"version": "6.1.5",
"description": "State-Driven Styling in JavaScript",

@@ -36,7 +36,8 @@ "typings": "index.d.ts",

"fast-loops": "^1.0.0",
"fela-utils": "^8.0.4"
"fela-utils": "^8.0.5",
"isobject": "^3.0.1"
},
"devDependencies": {
"fela-tools": "^5.1.3"
"fela-tools": "^5.1.4"
}
}

@@ -219,6 +219,9 @@ <h1><img alt="Fela" src="docs/res/logo.png" width="203"/></h1>

- [N26](https://n26.com)
- [Net-A-Porter](https://www.net-a-porter.com/gb/en/porter)
- [NinjaConcept](https://www.ninjaconcept.com)
- [Optisure](https://www.optisure.de)
- [Rocket Station](http://rstation.io)
- [Space Between](https://www.spacebetween.co.uk/)
- [V2](https://www.v2.com)
- [Zendesk](https://www.zendesk.com)

@@ -225,0 +228,0 @@

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