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

@lezer/css

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lezer/css - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.1.7 (2024-01-08)
### Bug fixes
Correctly parse properties with a space before the colon.
## 1.1.6 (2024-01-01)

@@ -2,0 +8,0 @@

3

dist/index.js

@@ -46,3 +46,4 @@ import { ExternalTokenizer, LRParser, LocalTokenGroup } from '@lezer/lr';

if (isAlpha(next) || next == underscore || next == hash || next == period ||
next == bracketL || next == colon || next == dash || next == ampersand)
next == bracketL || next == colon && isAlpha(input.peek(1)) ||
next == dash || next == ampersand)
input.acceptToken(descendantOp);

@@ -49,0 +50,0 @@ }

{
"name": "@lezer/css",
"version": "1.1.6",
"version": "1.1.7",
"description": "lezer-based CSS grammar",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs",

@@ -39,3 +39,4 @@ /* Hand-written tokenizers for CSS tokens that can't be

if (isAlpha(next) || next == underscore || next == hash || next == period ||
next == bracketL || next == colon || next == dash || next == ampersand)
next == bracketL || next == colon && isAlpha(input.peek(1)) ||
next == dash || next == ampersand)
input.acceptToken(descendantOp)

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

@@ -145,1 +145,17 @@ # Function calls

Declaration(PropertyName,CallExpression(Callee,ArgList(VariableName))))))
# Space before colon
div {
color : red;
.x :active {
color : blue;
}
}
==>
StyleSheet(RuleSet(TagSelector(TagName),Block(
Declaration(PropertyName,ValueName),
RuleSet(DescendantSelector(ClassSelector(ClassName),PseudoClassSelector(PseudoClassName)),Block(
Declaration(PropertyName,ValueName))))))

Sorry, the diff of this file is not supported yet

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