fela-utils
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -1,2 +0,2 @@ | ||
import reduce from 'lodash/reduce'; | ||
import arrayReduce from 'fast-loops/lib/arrayReduce'; | ||
@@ -6,3 +6,3 @@ export default function applyKeysInOrder(order) { | ||
return reduce(order, function (mediaMap, query) { | ||
return arrayReduce(order, function (mediaMap, query) { | ||
mediaMap[query] = initialValue; | ||
@@ -9,0 +9,0 @@ return mediaMap; |
@@ -5,3 +5,4 @@ var _handlers; | ||
import reduce from 'lodash/reduce'; | ||
import arrayReduce from 'fast-loops/lib/arrayReduce'; | ||
import objectReduce from 'fast-loops/lib/objectReduce'; | ||
@@ -76,3 +77,3 @@ import applyKeysInOrder from './applyKeysInOrder'; | ||
var supportMediaRules = reduce(mediaQueryOrder, function (supportRules, media) { | ||
var supportMediaRules = arrayReduce(mediaQueryOrder, function (supportRules, media) { | ||
supportRules[media] = applyKeysInOrder(supportQueryOrder); | ||
@@ -82,3 +83,3 @@ return supportRules; | ||
return reduce(cache, function (cluster, entry, key) { | ||
return objectReduce(cache, function (cluster, entry, key) { | ||
var handler = handlers[entry.type]; | ||
@@ -85,0 +86,0 @@ |
@@ -1,2 +0,2 @@ | ||
import reduce from 'lodash/reduce'; | ||
import objectReduce from 'fast-loops/lib/objectReduce'; | ||
@@ -6,3 +6,3 @@ import generateCSSSupportRule from './generateCSSSupportRule'; | ||
export default function cssifySupportRules(supportRules) { | ||
return reduce(supportRules, function (css, cssRules, support) { | ||
return objectReduce(supportRules, function (css, cssRules, support) { | ||
if (cssRules.length > 0) { | ||
@@ -9,0 +9,0 @@ css += generateCSSSupportRule(support, cssRules); |
@@ -1,2 +0,2 @@ | ||
import reduce from 'lodash/reduce'; | ||
import arrayReduce from 'fast-loops/lib/arrayReduce'; | ||
@@ -7,3 +7,3 @@ export default function processStyleWithPlugins(renderer, style, type) { | ||
if (renderer.plugins.length > 0) { | ||
return reduce(renderer.plugins, function (processedStyle, plugin) { | ||
return arrayReduce(renderer.plugins, function (processedStyle, plugin) { | ||
return plugin(processedStyle, type, renderer, props); | ||
@@ -10,0 +10,0 @@ }, style); |
@@ -8,5 +8,5 @@ 'use strict'; | ||
var _reduce = require('lodash/reduce'); | ||
var _arrayReduce = require('fast-loops/lib/arrayReduce'); | ||
var _reduce2 = _interopRequireDefault(_reduce); | ||
var _arrayReduce2 = _interopRequireDefault(_arrayReduce); | ||
@@ -18,3 +18,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
return (0, _reduce2.default)(order, function (mediaMap, query) { | ||
return (0, _arrayReduce2.default)(order, function (mediaMap, query) { | ||
mediaMap[query] = initialValue; | ||
@@ -21,0 +21,0 @@ return mediaMap; |
@@ -11,6 +11,10 @@ 'use strict'; | ||
var _reduce = require('lodash/reduce'); | ||
var _arrayReduce = require('fast-loops/lib/arrayReduce'); | ||
var _reduce2 = _interopRequireDefault(_reduce); | ||
var _arrayReduce2 = _interopRequireDefault(_arrayReduce); | ||
var _objectReduce = require('fast-loops/lib/objectReduce'); | ||
var _objectReduce2 = _interopRequireDefault(_objectReduce); | ||
var _applyKeysInOrder = require('./applyKeysInOrder'); | ||
@@ -93,3 +97,3 @@ | ||
var supportMediaRules = (0, _reduce2.default)(mediaQueryOrder, function (supportRules, media) { | ||
var supportMediaRules = (0, _arrayReduce2.default)(mediaQueryOrder, function (supportRules, media) { | ||
supportRules[media] = (0, _applyKeysInOrder2.default)(supportQueryOrder); | ||
@@ -99,3 +103,3 @@ return supportRules; | ||
return (0, _reduce2.default)(cache, function (cluster, entry, key) { | ||
return (0, _objectReduce2.default)(cache, function (cluster, entry, key) { | ||
var handler = handlers[entry.type]; | ||
@@ -102,0 +106,0 @@ |
@@ -8,5 +8,5 @@ 'use strict'; | ||
var _reduce = require('lodash/reduce'); | ||
var _objectReduce = require('fast-loops/lib/objectReduce'); | ||
var _reduce2 = _interopRequireDefault(_reduce); | ||
var _objectReduce2 = _interopRequireDefault(_objectReduce); | ||
@@ -20,3 +20,3 @@ var _generateCSSSupportRule = require('./generateCSSSupportRule'); | ||
function cssifySupportRules(supportRules) { | ||
return (0, _reduce2.default)(supportRules, function (css, cssRules, support) { | ||
return (0, _objectReduce2.default)(supportRules, function (css, cssRules, support) { | ||
if (cssRules.length > 0) { | ||
@@ -23,0 +23,0 @@ css += (0, _generateCSSSupportRule2.default)(support, cssRules); |
@@ -8,5 +8,5 @@ 'use strict'; | ||
var _reduce = require('lodash/reduce'); | ||
var _arrayReduce = require('fast-loops/lib/arrayReduce'); | ||
var _reduce2 = _interopRequireDefault(_reduce); | ||
var _arrayReduce2 = _interopRequireDefault(_arrayReduce); | ||
@@ -19,3 +19,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
if (renderer.plugins.length > 0) { | ||
return (0, _reduce2.default)(renderer.plugins, function (processedStyle, plugin) { | ||
return (0, _arrayReduce2.default)(renderer.plugins, function (processedStyle, plugin) { | ||
return plugin(processedStyle, type, renderer, props); | ||
@@ -22,0 +22,0 @@ }, style); |
{ | ||
"name": "fela-utils", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "Internal utilities for Fela", | ||
@@ -24,7 +24,7 @@ "main": "lib/index.js", | ||
"css-in-js-utils": "^2.0.0", | ||
"lodash": "^4.17.4" | ||
"fast-loops": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"fela": "^6.1.0" | ||
"fela": "^6.1.1" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21555
443
0
+ Addedfast-loops@^1.0.0
+ Addedfast-loops@1.1.4(transitive)
- Removedlodash@^4.17.4
- Removedlodash@4.17.21(transitive)