Socket
Socket
Sign inDemoInstall

analyze-css

Package Overview
Dependencies
76
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.7 to 2.2.8

eslint.config.js

3

bin/analyze-css.js

@@ -66,4 +66,3 @@ #!/usr/bin/env node

console.log(program.helpInformation());
process.exitCode = analyzer.EXIT_NEED_OPTIONS;
return;
process.exit(analyzer.EXIT_NEED_OPTIONS);
}

@@ -70,0 +69,0 @@

@@ -196,3 +196,3 @@ const analyze = require("."),

// convert object with keys to array with numeric index
let expressions = [];
const expressions = [];

@@ -199,0 +199,0 @@ for (let i = 0, len = parsedSelector[0].length; i < len; i++) {

@@ -63,3 +63,3 @@ /**

// return the results
let result = {
const result = {
generator: "analyze-css v" + VERSION,

@@ -66,0 +66,0 @@ metrics: instance.metrics,

@@ -40,3 +40,2 @@ /**

// eslint-disable-next-line node/no-unsupported-features/es-syntax
const fetch = (await import("node-fetch")).default;

@@ -43,0 +42,0 @@

{
"name": "analyze-css",
"version": "2.2.7",
"version": "2.2.8",
"author": "Maciej Brencz <maciej.brencz@gmail.com> (https://github.com/macbre)",

@@ -38,2 +38,3 @@ "description": "CSS selectors complexity and performance analyzer",

"devDependencies": {
"@eslint/js": "^9.1.1",
"@types/css": "0.0.37",

@@ -43,5 +44,6 @@ "autoprefixer": "^10.2.4",

"check-dts": "^0.7.0",
"eslint": "^8.0.0",
"eslint": "^9.1.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-node": "^11.1.0",
"globals": "^15.0.0",
"jest": "^29.0.0",

@@ -59,2 +61,3 @@ "postcss": "^8.3.6",

"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prettier": "npx prettier --write .",

@@ -61,0 +64,0 @@ "prefixes": "npx browserslist@latest --update-db; DEBUG=* node data/prefixes.js",

@@ -13,3 +13,3 @@ "use strict";

analyzer.on("selector", function (rule, selector, expressions) {
let filteredExpr = expressions.filter((item) => {
const filteredExpr = expressions.filter((item) => {
return ![

@@ -16,0 +16,0 @@ "adjacent",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc