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

fela-beautifier

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-beautifier - npm Package Compare versions

Comparing version 5.0.14 to 5.0.15

4

es/index.js
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"
}
}
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