Comparing version 6.1.4 to 6.1.5
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] : {}; |
@@ -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 @@ |
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
240
134770
4
42
1626
+ Addedisobject@^3.0.1
+ Addedisobject@3.0.1(transitive)
Updatedfela-utils@^8.0.5