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

fela-preset-web

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-preset-web - npm Package Compare versions

Comparing version 4.1.2 to 4.2.0

25

dist/fela-preset-web.js

@@ -833,2 +833,3 @@ (function (global, factory) {

/* weak */
/* eslint-disable import/no-mutable-exports */
var warning = function warning() {

@@ -908,3 +909,4 @@ return true;

function sortPseudoClasses(left, right) {
var precedenceLeft = precedence[left]; // eslint-disable-line
var precedenceLeft = precedence[left];
// eslint-disable-line
var precedenceRight = precedence[right];

@@ -1004,7 +1006,7 @@ // Only sort if both properties are listed

var valueType = typeof value === 'undefined' ? 'undefined' : babelHelpers.typeof(value);
/* eslint-disable eqeqeq */
if (valueType === 'number' || valueType === 'string' && value == parseFloat(value)) {
// eslint-disable-line
value += unit;
}
/* eslint-enable */
return value;

@@ -1017,13 +1019,12 @@ }

(function () {
var value = style[property];
var cssValue = style[property];
var propertyUnit = propertyMap[property] || unit;
if (Array.isArray(value)) {
style[property] = value.map(function (value) {
return addUnitIfNeeded(property, value, propertyUnit);
if (Array.isArray(cssValue)) {
style[property] = cssValue.map(function (val) {
return addUnitIfNeeded(property, val, propertyUnit);
});
} else if (value instanceof Object) {
style[property] = addUnit(value, unit, propertyMap);
} else if (cssValue instanceof Object) {
style[property] = addUnit(cssValue, unit, propertyMap);
} else {
style[property] = addUnitIfNeeded(property, value, propertyUnit);
style[property] = addUnitIfNeeded(property, cssValue, propertyUnit);
}

@@ -1045,3 +1046,3 @@ })();

warning$1(unit.match(/ch|em|ex|rem|vh|vw|vmin|vmax|px|cm|mm|in|pc|pt|mozmm|%/) !== null, 'You are using an invalid unit `' + unit + '`. Consider using one of the following ch, em, ex, rem, vh, vw, vmin, vmax, px, cm, mm, in, pc, pt, mozmm or %.');
warning$1(unit.match(/ch|em|ex|rem|vh|vw|vmin|vmax|px|cm|mm|in|pc|pt|mozmm|%/) !== null, 'You are using an invalid unit `' + unit + '`.\n Consider using one of the following ch, em, ex, rem, vh, vw, vmin, vmax, px, cm, mm, in, pc, pt, mozmm or %.');

@@ -1048,0 +1049,0 @@ return function (style) {

{
"name": "fela-preset-web",
"version": "4.1.2",
"version": "4.2.0",
"description": "Fela plugin preset for web applications",

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

"peerDependencies": {
"fela": "4.1.2"
"fela": "4.2.0"
}
}

@@ -22,5 +22,5 @@ # fela-preset-web

<!-- Fela (Development): Unminified version including all warnings -->
<script src="https://unpkg.com/fela-preset-web@4.1.2/dist/fela-preset-web.js"></script>
<script src="https://unpkg.com/fela-preset-web@4.2.0/dist/fela-preset-web.js"></script>
<!-- Fela (Production): Minified version -->
<script src="https://unpkg.com/fela-preset-web@4.1.2/dist/fela-preset-web.min.js"></script>
<script src="https://unpkg.com/fela-preset-web@4.2.0/dist/fela-preset-web.min.js"></script>
```

@@ -27,0 +27,0 @@

Sorry, the diff of this file is not supported yet

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