Socket
Socket
Sign inDemoInstall

@csstools/selector-specificity

Package Overview
Dependencies
7
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.1.0

8

CHANGELOG.md
# Changes to Selector Specificity
### 2.0.2 (June 8, 2022)
### 2.1.0 (January 19, 2023)
- Add support for `::slotted`
- Add support for `:host`
- Add support for `:host-context`
### 2.0.2 (July 8, 2022)
- Fix case insensitive matching.

@@ -6,0 +12,0 @@

2

dist/index.d.ts
import type { Node } from 'postcss-selector-parser';
export declare type Specificity = {
export type Specificity = {
a: number;

@@ -4,0 +4,0 @@ b: number;

{
"name": "@csstools/selector-specificity",
"description": "Determine selector specificity with postcss-selector-parser",
"version": "2.0.2",
"version": "2.1.0",
"contributors": [

@@ -22,3 +22,3 @@ {

"engines": {
"node": "^12 || ^14 || >=16"
"node": "^14 || ^16 || >=18"
},

@@ -42,3 +42,3 @@ "main": "dist/index.cjs",

"peerDependencies": {
"postcss": "^8.2",
"postcss": "^8.4",
"postcss-selector-parser": "^6.0.10"

@@ -50,4 +50,5 @@ },

"scripts": {
"build": "rollup -c ../../rollup/default.js",
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
"prebuild": "npm run clean",
"build": "rollup -c ../../rollup/default.mjs",
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"",
"lint": "npm run lint:eslint && npm run lint:package-json",

@@ -54,0 +55,0 @@ "lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",

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