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

coc-class-css

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coc-class-css - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "coc-class-css",
"version": "1.0.2",
"version": "1.0.3",
"description": "CSS class completions in html markup everywhere",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -263,9 +263,14 @@ import fs from 'node:fs/promises';

n.selectors
.filter((s) => s[0] === '.')
.map((s) => {
const idx = s.indexOf('.');
return idx !== -1 ? s.substring(idx + 1) : undefined;
})
.forEach((s) => {
const idx = s.indexOf(' ');
if (idx !== -1) {
selectors.add({ token: s.substring(1, idx), pathRelative, source: lines.join('\n') });
} else {
selectors.add({ token: s.substring(1), pathRelative, source: lines.join('\n') });
if (s) {
const idx = s.indexOf(' ');
selectors.add({
token: idx == -1 ? s : s.substring(0, idx),
pathRelative,
source: lines.join('\n'),
});
}

@@ -272,0 +277,0 @@ });

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

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