New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 7.0.2 to 8.0.0

18

es/index.js

@@ -12,18 +12,10 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
_ref$felaPluginExte = _ref['fela-plugin-extend'],
extendConf = _ref$felaPluginExte === undefined ? [] : _ref$felaPluginExte,
_ref$felaPluginEmbe = _ref['fela-plugin-embedded'],
embeddedConf = _ref$felaPluginEmbe === undefined ? [] : _ref$felaPluginEmbe,
_ref$felaPluginPref = _ref['fela-plugin-prefixer'],
prefixerConf = _ref$felaPluginPref === undefined ? [] : _ref$felaPluginPref,
_ref$felaPluginFall = _ref['fela-plugin-fallback-value'],
fallbackValueConf = _ref$felaPluginFall === undefined ? [] : _ref$felaPluginFall,
_ref$felaPluginLvha = _ref['fela-plugin-lvha'],
lvhaConf = _ref$felaPluginLvha === undefined ? [] : _ref$felaPluginLvha,
_ref$felaPluginUnit = _ref['fela-plugin-unit'],
unitConf = _ref$felaPluginUnit === undefined ? [] : _ref$felaPluginUnit;
_ref$extend = _ref.extend,
extendConfig = _ref$extend === undefined ? [] : _ref$extend,
_ref$unit = _ref.unit,
unitConfig = _ref$unit === undefined ? [] : _ref$unit;
return [extend.apply(undefined, _toConsumableArray(extendConf)), embedded.apply(undefined, _toConsumableArray(embeddedConf)), prefixer.apply(undefined, _toConsumableArray(prefixerConf)), fallbackValue.apply(undefined, _toConsumableArray(fallbackValueConf)), LVHA.apply(undefined, _toConsumableArray(lvhaConf)), unit.apply(undefined, _toConsumableArray(unitConf))];
return [extend.apply(undefined, _toConsumableArray(extendConfig)), embedded(), prefixer(), fallbackValue(), LVHA(), unit.apply(undefined, _toConsumableArray(unitConfig))];
};
export default createWebPreset();

@@ -38,18 +38,10 @@ 'use strict';

var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
_ref$felaPluginExte = _ref['fela-plugin-extend'],
extendConf = _ref$felaPluginExte === undefined ? [] : _ref$felaPluginExte,
_ref$felaPluginEmbe = _ref['fela-plugin-embedded'],
embeddedConf = _ref$felaPluginEmbe === undefined ? [] : _ref$felaPluginEmbe,
_ref$felaPluginPref = _ref['fela-plugin-prefixer'],
prefixerConf = _ref$felaPluginPref === undefined ? [] : _ref$felaPluginPref,
_ref$felaPluginFall = _ref['fela-plugin-fallback-value'],
fallbackValueConf = _ref$felaPluginFall === undefined ? [] : _ref$felaPluginFall,
_ref$felaPluginLvha = _ref['fela-plugin-lvha'],
lvhaConf = _ref$felaPluginLvha === undefined ? [] : _ref$felaPluginLvha,
_ref$felaPluginUnit = _ref['fela-plugin-unit'],
unitConf = _ref$felaPluginUnit === undefined ? [] : _ref$felaPluginUnit;
_ref$extend = _ref.extend,
extendConfig = _ref$extend === undefined ? [] : _ref$extend,
_ref$unit = _ref.unit,
unitConfig = _ref$unit === undefined ? [] : _ref$unit;
return [_felaPluginExtend2.default.apply(undefined, _toConsumableArray(extendConf)), _felaPluginEmbedded2.default.apply(undefined, _toConsumableArray(embeddedConf)), _felaPluginPrefixer2.default.apply(undefined, _toConsumableArray(prefixerConf)), _felaPluginFallbackValue2.default.apply(undefined, _toConsumableArray(fallbackValueConf)), _felaPluginLvha2.default.apply(undefined, _toConsumableArray(lvhaConf)), _felaPluginUnit2.default.apply(undefined, _toConsumableArray(unitConf))];
return [_felaPluginExtend2.default.apply(undefined, _toConsumableArray(extendConfig)), (0, _felaPluginEmbedded2.default)(), (0, _felaPluginPrefixer2.default)(), (0, _felaPluginFallbackValue2.default)(), (0, _felaPluginLvha2.default)(), _felaPluginUnit2.default.apply(undefined, _toConsumableArray(unitConfig))];
};
exports.default = createWebPreset();
{
"name": "fela-preset-web",
"version": "7.0.2",
"version": "8.0.0",
"description": "Fela plugin preset for web applications",

@@ -23,12 +23,12 @@ "main": "lib/index.js",

"dependencies": {
"fela-plugin-embedded": "^5.2.0",
"fela-plugin-embedded": "^5.2.1",
"fela-plugin-extend": "^5.0.11",
"fela-plugin-fallback-value": "^5.0.14",
"fela-plugin-lvha": "^5.0.13",
"fela-plugin-prefixer": "^5.0.14",
"fela-plugin-unit": "^5.0.13"
"fela-plugin-fallback-value": "^5.0.15",
"fela-plugin-lvha": "^5.0.14",
"fela-plugin-prefixer": "^5.0.15",
"fela-plugin-unit": "^5.0.14"
},
"devDependencies": {
"fela-combine-arrays": "^1.0.4"
"fela-combine-arrays": "^1.0.5"
}
}
# fela-preset-web
<img alt="npm version" src="https://badge.fury.io/js/fela-preset-web.svg"> <img alt="npm downloads" src="https://img.shields.io/npm/dm/fela-preset-web.svg">
A Fela plugin preset for web applications.<br>

@@ -37,6 +39,9 @@ It contains everything you need to start building cross-browser compatible apps.

You can also pass options to the plugins:
#### Configuration
Some plugins also accept some configuration options.
We can use the `createWebPreset` factory and pass the options using the plugin name as a key.
```javascript
import { createRenderer } from 'fela'
import {createWebPreset} from 'fela-preset-web'
import { createWebPreset } from 'fela-preset-web'

@@ -46,9 +51,9 @@ const renderer = createRenderer({

...createWebPreset({
'fela-plugin-unit': [
'em',
{
margin: '%'
}
]
})
'unit': [
'em',
{
margin: '%'
}
]
})
]

@@ -55,0 +60,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