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.0 to 7.0.2

22

es/index.js

@@ -0,1 +1,3 @@

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); } }
import extend from 'fela-plugin-extend';

@@ -8,2 +10,20 @@ import embedded from 'fela-plugin-embedded';

export default [extend(), embedded(), prefixer(), fallbackValue(), LVHA(), unit()];
export var createWebPreset = function createWebPreset() {
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;
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))];
};
export default createWebPreset();

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

});
exports.createWebPreset = undefined;

@@ -34,2 +35,22 @@ var _felaPluginExtend = require('fela-plugin-extend');

exports.default = [(0, _felaPluginExtend2.default)(), (0, _felaPluginEmbedded2.default)(), (0, _felaPluginPrefixer2.default)(), (0, _felaPluginFallbackValue2.default)(), (0, _felaPluginLvha2.default)(), (0, _felaPluginUnit2.default)()];
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 createWebPreset = exports.createWebPreset = function createWebPreset() {
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;
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))];
};
exports.default = createWebPreset();

17

package.json
{
"name": "fela-preset-web",
"version": "7.0.0",
"version": "7.0.2",
"description": "Fela plugin preset for web applications",

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

"dependencies": {
"fela-plugin-embedded": "^5.1.7",
"fela-plugin-extend": "^5.0.12",
"fela-plugin-fallback-value": "^5.0.13",
"fela-plugin-lvha": "^5.0.12",
"fela-plugin-prefixer": "^5.0.13",
"fela-plugin-unit": "^5.0.12"
"fela-plugin-embedded": "^5.2.0",
"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"
},
"devDependencies": {
"fela-combine-arrays": "^1.0.4"
}
}

@@ -37,2 +37,21 @@ # fela-preset-web

You can also pass options to the plugins:
```javascript
import { createRenderer } from 'fela'
import {createWebPreset} from 'fela-preset-web'
const renderer = createRenderer({
plugins: [
...createWebPreset({
'fela-plugin-unit': [
'em',
{
margin: '%'
}
]
})
]
})
```
## License

@@ -39,0 +58,0 @@ Fela is licensed under the [MIT License](http://opensource.org/licenses/MIT).<br>

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