Socket
Socket
Sign inDemoInstall

@csstools/selector-resolve-nested

Package Overview
Dependencies
3
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

6

CHANGELOG.md
# Changes to Selector Resolve Nested
## 1.1.0
_February 1, 2024_
- Add `flattenNestedSelector` function to support more kinds of static analysis for nested selectors.
## 1.0.3

@@ -4,0 +10,0 @@

@@ -25,2 +25,16 @@ /**

/**
* Flatten a nested selector against a given parent selector.
*
* ⚠️ This is not a method to generate the equivalent un-nested selector.
* It is purely a method to construct a single selector AST that contains the parts of both the current and parent selector.
* It will not have the correct specificity and it will not match the right elements when used as a selector.
* It will not always serialize to a valid selector.
*
* @param selector - The selector to resolve.
* @param parentSelector - The parent selector to resolve against.
* @returns The resolved selector.
*/
export declare function flattenNestedSelector(selector: Root, parentSelector: Root): Root;
/**
* Resolve a nested selector against a given parent selector.

@@ -27,0 +41,0 @@ *

2

package.json
{
"name": "@csstools/selector-resolve-nested",
"description": "Resolve nested CSS selectors",
"version": "1.0.3",
"version": "1.1.0",
"contributors": [

@@ -6,0 +6,0 @@ {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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