summaryrefslogtreecommitdiff
path: root/node_modules/@csstools/postcss-scope-pseudo-class
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
commitf06956efd2dc4bf77244a9fcce2b883a00b925af (patch)
tree0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/@csstools/postcss-scope-pseudo-class
parent8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff)
updated node modules
Diffstat (limited to 'node_modules/@csstools/postcss-scope-pseudo-class')
-rw-r--r--node_modules/@csstools/postcss-scope-pseudo-class/CHANGELOG.md25
-rw-r--r--node_modules/@csstools/postcss-scope-pseudo-class/README.md4
-rw-r--r--node_modules/@csstools/postcss-scope-pseudo-class/dist/index.cjs2
-rw-r--r--node_modules/@csstools/postcss-scope-pseudo-class/dist/index.d.ts10
-rw-r--r--node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs2
-rw-r--r--node_modules/@csstools/postcss-scope-pseudo-class/package.json37
6 files changed, 30 insertions, 50 deletions
diff --git a/node_modules/@csstools/postcss-scope-pseudo-class/CHANGELOG.md b/node_modules/@csstools/postcss-scope-pseudo-class/CHANGELOG.md
index 18bfb712..68c46b9b 100644
--- a/node_modules/@csstools/postcss-scope-pseudo-class/CHANGELOG.md
+++ b/node_modules/@csstools/postcss-scope-pseudo-class/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changes to PostCSS Scope Pseudo Class
+### 3.0.1
+
+_December 15, 2023_
+
+- Fix type definitions
+
### 3.0.0
_July 3, 2023_
@@ -12,21 +18,4 @@ _February 9, 2023_
- Reduce the amount of duplicate fallback CSS.
-### 2.0.1
-
-_January 28, 2023_
-
-- Improve `types` declaration in `package.json`
-
-### 2.0.0
-
-_January 24, 2023_
-
-- Updated: Support for Node v14+ (major).
-- Fix: Do not throw when a selector is invalid, show a warning instead.
-
-### 1.0.0
-
-_November 4, 2022_
-
-- Initial version
+[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class/CHANGELOG.md)
diff --git a/node_modules/@csstools/postcss-scope-pseudo-class/README.md b/node_modules/@csstools/postcss-scope-pseudo-class/README.md
index eb1ff5ba..9a816556 100644
--- a/node_modules/@csstools/postcss-scope-pseudo-class/README.md
+++ b/node_modules/@csstools/postcss-scope-pseudo-class/README.md
@@ -2,6 +2,10 @@
[<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/postcss-scope-pseudo-class.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/scope-pseudo-class.svg" height="20">][css-url] [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] [<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]
+```bash
+npm install @csstools/postcss-scope-pseudo-class --save-dev
+```
+
[PostCSS Scope Pseudo Class] lets you use the `:scope` Pseudo-class following the [Selectors 4 specification].
```pcss
diff --git a/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.cjs b/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.cjs
index e4bc3bd9..ef6057c1 100644
--- a/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.cjs
+++ b/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.cjs
@@ -1 +1 @@
-"use strict";var e=require("postcss-selector-parser");const creator=s=>{const r=Object.assign({preserve:!1},s);return{postcssPlugin:"postcss-scope-pseudo-class",prepare(){const s=new WeakSet;return{Rule(t,{result:o}){if(!t.selector.toLowerCase().includes(":scope"))return;if(s.has(t))return;{let e=t.parent;for(;e;){if("atrule"===e.type&&"scope"===e.name.toLowerCase())return;e=e.parent}}let a=t.selector;try{const s=e().astSync(a);if(!s)return;s.walkPseudos((e=>{if(":has"===e.value.toLowerCase())return!1;":scope"===e.value.toLowerCase()&&(e.value=":root")})),a=s.toString()}catch(e){t.warn(o,`Failed to parse selector : "${t.selector}" with message: "${e.message}"`)}a!==t.selector&&(s.add(t),t.cloneBefore({selector:a}),r.preserve||t.remove())}}}}};creator.postcss=!0,module.exports=creator;
+"use strict";var e=require("postcss-selector-parser");const creator=s=>{const r=Object.assign({preserve:!1},s);return{postcssPlugin:"postcss-scope-pseudo-class",prepare(){const s=new WeakSet;return{Rule(t,{result:o}){if(!t.selector.toLowerCase().includes(":scope"))return;if(s.has(t))return;{let e=t.parent;for(;e;){if("atrule"===e.type&&"scope"===e.name.toLowerCase())return;e=e.parent}}let a=t.selector;try{const s=e().astSync(a);if(!s)return;s.walkPseudos((e=>{if(":has"===e.value.toLowerCase())return!1;":scope"===e.value.toLowerCase()&&(e.value=":root")})),a=s.toString()}catch(e){t.warn(o,`Failed to parse selector : "${t.selector}" with message: "${e instanceof Error?e.message:e}"`)}a!==t.selector&&(s.add(t),t.cloneBefore({selector:a}),r.preserve||t.remove())}}}}};creator.postcss=!0,module.exports=creator;
diff --git a/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.d.ts b/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.d.ts
index 77dc51e7..69020b0f 100644
--- a/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.d.ts
+++ b/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.d.ts
@@ -1,8 +1,12 @@
import type { PluginCreator } from 'postcss';
+
+declare const creator: PluginCreator<pluginOptions>;
+export default creator;
+
/** postcss-scope-pseudo-class plugin options */
-export type pluginOptions = {
+export declare type pluginOptions = {
/** Preserve the original notation. default: false */
preserve?: boolean;
};
-declare const creator: PluginCreator<pluginOptions>;
-export default creator;
+
+export { }
diff --git a/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs b/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs
index 76a5d07b..b814412b 100644
--- a/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs
+++ b/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs
@@ -1 +1 @@
-import e from"postcss-selector-parser";const creator=s=>{const r=Object.assign({preserve:!1},s);return{postcssPlugin:"postcss-scope-pseudo-class",prepare(){const s=new WeakSet;return{Rule(t,{result:o}){if(!t.selector.toLowerCase().includes(":scope"))return;if(s.has(t))return;{let e=t.parent;for(;e;){if("atrule"===e.type&&"scope"===e.name.toLowerCase())return;e=e.parent}}let a=t.selector;try{const s=e().astSync(a);if(!s)return;s.walkPseudos((e=>{if(":has"===e.value.toLowerCase())return!1;":scope"===e.value.toLowerCase()&&(e.value=":root")})),a=s.toString()}catch(e){t.warn(o,`Failed to parse selector : "${t.selector}" with message: "${e.message}"`)}a!==t.selector&&(s.add(t),t.cloneBefore({selector:a}),r.preserve||t.remove())}}}}};creator.postcss=!0;export{creator as default};
+import e from"postcss-selector-parser";const creator=s=>{const r=Object.assign({preserve:!1},s);return{postcssPlugin:"postcss-scope-pseudo-class",prepare(){const s=new WeakSet;return{Rule(t,{result:o}){if(!t.selector.toLowerCase().includes(":scope"))return;if(s.has(t))return;{let e=t.parent;for(;e;){if("atrule"===e.type&&"scope"===e.name.toLowerCase())return;e=e.parent}}let a=t.selector;try{const s=e().astSync(a);if(!s)return;s.walkPseudos((e=>{if(":has"===e.value.toLowerCase())return!1;":scope"===e.value.toLowerCase()&&(e.value=":root")})),a=s.toString()}catch(e){t.warn(o,`Failed to parse selector : "${t.selector}" with message: "${e instanceof Error?e.message:e}"`)}a!==t.selector&&(s.add(t),t.cloneBefore({selector:a}),r.preserve||t.remove())}}}}};creator.postcss=!0;export{creator as default};
diff --git a/node_modules/@csstools/postcss-scope-pseudo-class/package.json b/node_modules/@csstools/postcss-scope-pseudo-class/package.json
index 2e67a480..a5cd3572 100644
--- a/node_modules/@csstools/postcss-scope-pseudo-class/package.json
+++ b/node_modules/@csstools/postcss-scope-pseudo-class/package.json
@@ -1,7 +1,7 @@
{
"name": "@csstools/postcss-scope-pseudo-class",
"description": "The Reference Element Pseudo-class: :scope",
- "version": "3.0.0",
+ "version": "3.0.1",
"contributors": [
{
"name": "Antonio Laguna",
@@ -27,15 +27,18 @@
"engines": {
"node": "^14 || ^16 || >=18"
},
+ "type": "module",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
- "types": "dist/index.d.ts",
"exports": {
".": {
- "types": "./dist/index.d.ts",
- "import": "./dist/index.mjs",
- "require": "./dist/index.cjs",
- "default": "./dist/index.mjs"
+ "import": {
+ "types": "./dist/index.d.ts",
+ "default": "./dist/index.mjs"
+ },
+ "require": {
+ "default": "./dist/index.cjs"
+ }
}
},
"files": [
@@ -50,17 +53,6 @@
"peerDependencies": {
"postcss": "^8.4"
},
- "devDependencies": {
- "@csstools/postcss-tape": "*"
- },
- "scripts": {
- "build": "rollup -c ../../rollup/default.mjs",
- "docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs",
- "lint": "node ../../.github/bin/format-package-json.mjs",
- "prepublishOnly": "npm run build && npm run test",
- "test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs",
- "test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
- },
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-scope-pseudo-class#readme",
"repository": {
"type": "git",
@@ -73,14 +65,5 @@
"pseudo",
"scope",
"selector"
- ],
- "csstools": {
- "cssdbId": "scope-pseudo-class",
- "exportName": "postcssScopePseudoClass",
- "humanReadableName": "PostCSS Scope Pseudo Class",
- "specUrl": "https://www.w3.org/TR/selectors-4/#the-scope-pseudo"
- },
- "volta": {
- "extends": "../../package.json"
- }
+ ]
}