fela-beautifier
Advanced tools
Comparing version 5.0.14 to 5.0.15
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; }; | ||
import cssbeautify from 'cssbeautify'; | ||
import forEach from 'lodash/forEach'; | ||
import objectEach from 'fast-loops/lib/objectEach'; | ||
function addBeautifier(renderer, options) { | ||
function beautify() { | ||
forEach(renderer.nodes, function (node, key) { | ||
objectEach(renderer.nodes, function (node, key) { | ||
var beautifiedContent = cssbeautify(node.textContent, options); | ||
@@ -10,0 +10,0 @@ |
@@ -15,5 +15,5 @@ 'use strict'; | ||
var _forEach = require('lodash/forEach'); | ||
var _objectEach = require('fast-loops/lib/objectEach'); | ||
var _forEach2 = _interopRequireDefault(_forEach); | ||
var _objectEach2 = _interopRequireDefault(_objectEach); | ||
@@ -24,3 +24,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function beautify() { | ||
(0, _forEach2.default)(renderer.nodes, function (node, key) { | ||
(0, _objectEach2.default)(renderer.nodes, function (node, key) { | ||
var beautifiedContent = (0, _cssbeautify2.default)(node.textContent, options); | ||
@@ -27,0 +27,0 @@ |
{ | ||
"name": "fela-beautifier", | ||
"version": "5.0.14", | ||
"version": "5.0.15", | ||
"description": "Fela enhancer to beautify CSS output", | ||
@@ -29,4 +29,4 @@ "main": "lib/index.js", | ||
"cssbeautify": "^0.3.1", | ||
"lodash": "^4.17.4" | ||
"fast-loops": "^1.0.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
5932
+ Addedfast-loops@^1.0.0
+ Addedfast-loops@1.1.4(transitive)
- Removedlodash@^4.17.4
- Removedlodash@4.17.21(transitive)