New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dedupe.css

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dedupe.css - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

lib/build-data.js

@@ -39,3 +39,3 @@ import assert from 'assert';

assert.ok(
!n.reduce((acc, curr) => acc || curr.type === 'combinator', false),
n.filter((curr) => curr.type === 'combinator').length === 0,
'No combinators allowed in selectors'

@@ -42,0 +42,0 @@ );

@@ -8,16 +8,17 @@ import {createRequire} from 'module';

export const tokenize = (str) => {
return parsel.tokenize(str).reduce(
(acc, curr) => {
if (curr.type === 'comma') {
acc.push([]);
} else {
acc[acc.length - 1].push(curr);
}
let latest = [];
const acc = [latest];
return acc;
},
[[]]
);
for (const token of parsel.tokenize(str)) {
if (token.type === 'comma') {
latest = [];
acc.push(latest);
} else {
latest.push(token);
}
}
return acc;
};
export const specificity = parsel.specificity;
{
"name": "dedupe.css",
"version": "1.0.4",
"version": "1.0.5",
"description": "A CSS from JS tool.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/hyper-views/dedupe.css#readme",

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