summaryrefslogtreecommitdiff
path: root/node_modules/postcss-attribute-case-insensitive
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-05-14 14:05:49 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-05-14 14:05:49 +0800
commit06823fbf1c2e763a5bf76c3990ca98fbbcd98691 (patch)
tree4280bece3888d12a022093bf1a9cd1b049393602 /node_modules/postcss-attribute-case-insensitive
parent1368909b3cd552dbb0d12d5863c597f5be46177d (diff)
updated node_modules
Diffstat (limited to 'node_modules/postcss-attribute-case-insensitive')
-rw-r--r--node_modules/postcss-attribute-case-insensitive/CHANGELOG.md35
-rw-r--r--node_modules/postcss-attribute-case-insensitive/LICENSE20
-rw-r--r--node_modules/postcss-attribute-case-insensitive/README.md6
-rw-r--r--node_modules/postcss-attribute-case-insensitive/dist/index.cjs2
-rw-r--r--node_modules/postcss-attribute-case-insensitive/dist/index.d.ts10
-rw-r--r--node_modules/postcss-attribute-case-insensitive/dist/index.mjs2
-rw-r--r--node_modules/postcss-attribute-case-insensitive/package.json57
7 files changed, 47 insertions, 85 deletions
diff --git a/node_modules/postcss-attribute-case-insensitive/CHANGELOG.md b/node_modules/postcss-attribute-case-insensitive/CHANGELOG.md
index 1ddcf776..054c6ad6 100644
--- a/node_modules/postcss-attribute-case-insensitive/CHANGELOG.md
+++ b/node_modules/postcss-attribute-case-insensitive/CHANGELOG.md
@@ -1,35 +1,22 @@
# Changes to PostCSS Attribute Case Insensitive
-### 6.0.2 (February 6, 2023)
+### 6.0.3
-- Reduce the amount of duplicate fallback CSS.
-
-### 6.0.1 (January 28, 2023)
-
-- Improve `types` declaration in `package.json`
-
-### 6.0.0 (January 24, 2023)
+_February 19, 2024_
-- Updated: Support for Node v14+ (major).
-- Fix: Do not throw when a selector is invalid, show a warning instead.
-- Added: `preserve` plugin option.
+- Fix type definitions
+- Fix an infinite loop when a pseudo selector function contains a case insensitive attribute selector
-### 5.0.2 (July 8, 2022)
+### 6.0.2
-- Fix incorrect selector AST updates
+_February 6, 2023_
-### 5.0.1 (June 3, 2022)
-
-- Prevent exponential backtracking when checking for selectors with case insensitive value matching.
-
-### 5.0.0 (September 15, 2020)
-
-- Postcss 8.x support
+- Reduce the amount of duplicate fallback CSS.
-### 4.0.1 (January 10, 2019)
+### 6.0.1
-### 2.0.0 (May 06, 2017)
+_January 28, 2023_
-### 1.0.1 (August 19, 2016)
+- Improve `types` declaration in `package.json`
-### 1.0.0 (August 10, 2016)
+[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-attribute-case-insensitive/CHANGELOG.md)
diff --git a/node_modules/postcss-attribute-case-insensitive/LICENSE b/node_modules/postcss-attribute-case-insensitive/LICENSE
deleted file mode 100644
index b701cfee..00000000
--- a/node_modules/postcss-attribute-case-insensitive/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-The MIT License (MIT)
-
-Copyright 2020 Dmitry Semigradsky <semigradskyd@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/postcss-attribute-case-insensitive/README.md b/node_modules/postcss-attribute-case-insensitive/README.md
index 60c9608b..12fb3f89 100644
--- a/node_modules/postcss-attribute-case-insensitive/README.md
+++ b/node_modules/postcss-attribute-case-insensitive/README.md
@@ -1,6 +1,10 @@
# PostCSS Attribute Case Insensitive [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]
-[<img alt="npm version" src="https://img.shields.io/npm/v/postcss-attribute-case-insensitive.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/case-insensitive-attributes.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]
+[<img alt="npm version" src="https://img.shields.io/npm/v/postcss-attribute-case-insensitive.svg" height="20">][npm-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]<br><br>[<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/case-insensitive-attributes.svg" height="20">][css-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/case-insensitive-attributes.svg" height="20">][css-url]
+
+```bash
+npm install postcss-attribute-case-insensitive --save-dev
+```
[PostCSS Attribute Case Insensitive] enables support for [Case Insensitive Attribute] matching in selectors.
diff --git a/node_modules/postcss-attribute-case-insensitive/dist/index.cjs b/node_modules/postcss-attribute-case-insensitive/dist/index.cjs
index 85dc2694..d48fa9e7 100644
--- a/node_modules/postcss-attribute-case-insensitive/dist/index.cjs
+++ b/node_modules/postcss-attribute-case-insensitive/dist/index.cjs
@@ -1 +1 @@
-"use strict";var e=require("postcss-selector-parser");function nodeIsInsensitiveAttribute(e){return"attribute"===e.type&&e.insensitive}function selectorHasInsensitiveAttribute(e){return e.some(nodeIsInsensitiveAttribute)}function transformString(e,t,r){const s=r.charAt(t);if(""===s)return e;let n=e.map((e=>e+s));const o=s.toLocaleUpperCase();return o!==s&&(n=n.concat(e.map((e=>e+o)))),transformString(n,t+1,r)}function createNewSelectors(t){let r=[e.selector({value:"",nodes:[]})];return t.walk((e=>{if(!nodeIsInsensitiveAttribute(e))return void r.forEach((t=>{t.append(e.clone())}));const t=transformString([""],0,(s=e).value).map((e=>{const t=s.clone({spaces:{after:s.spaces.after,before:s.spaces.before},insensitive:!1});return t.setValue(e),t}));var s;const n=[];t.forEach((e=>{r.forEach((t=>{const r=t.clone({});r.append(e),n.push(r)}))})),r=n})),r}function transform(e){let t=[];e.each((e=>{selectorHasInsensitiveAttribute(e)&&(t=t.concat(createNewSelectors(e)),e.remove())})),t.length&&t.forEach((t=>e.append(t)))}const creator=t=>{const r=Object.assign({preserve:!1},t);return{postcssPlugin:"postcss-attribute-case-insensitive",prepare(){const t=new WeakSet;return{Rule(s,{result:n}){if(t.has(s))return;if(!/i\s*]/gim.test(s.selector))return;let o=s.selector;try{o=e(transform).processSync(s.selector)}catch(e){return void s.warn(n,`Failed to parse selector : "${s.selector}" with message: "${e.message}"`)}o!==s.selector&&(t.add(s),s.cloneBefore({selector:o}),r.preserve||s.remove())}}}}};creator.postcss=!0,module.exports=creator;
+"use strict";var e=require("postcss-selector-parser");function nodeIsInsensitiveAttribute(e){return"attribute"===e.type&&(e.insensitive??!1)}function selectorHasInsensitiveAttribute(e){return e.some(nodeIsInsensitiveAttribute)}function transformString(e,t,r){const s=r.charAt(t);if(""===s)return e;let n=e.map((e=>e+s));const o=s.toLocaleUpperCase();return o!==s&&(n=n.concat(e.map((e=>e+o)))),transformString(n,t+1,r)}function createNewSelectors(t){let r=[e.selector({value:"",nodes:[]})];return t.each((e=>{if(!nodeIsInsensitiveAttribute(e))return void r.forEach((t=>{t.append(e.clone())}));const t=transformString([""],0,(s=e).value??"").map((e=>{const t=s.clone({spaces:{after:s.spaces.after,before:s.spaces.before},insensitive:!1});return t.setValue(e),t}));var s;const n=[];t.forEach((e=>{r.forEach((t=>{const r=t.clone({});r.append(e),n.push(r)}))})),r=n})),r}const creator=t=>{const r=Object.assign({preserve:!1},t);return{postcssPlugin:"postcss-attribute-case-insensitive",prepare(){const t=new WeakSet;return{Rule(s,{result:n}){if(t.has(s))return;if(!/i\s*]/gim.test(s.selector))return;let o;try{o=e((e=>{let t=[];e.each((e=>{selectorHasInsensitiveAttribute(e)&&(t=t.concat(createNewSelectors(e)),e.remove())})),t.length&&t.forEach((t=>e.append(t)))})).processSync(s.selector)}catch(e){return void s.warn(n,`Failed to parse selector : "${s.selector}" with message: "${e instanceof Error?e.message:e}"`)}o!==s.selector&&(t.add(s),s.cloneBefore({selector:o}),r.preserve||s.remove())}}}}};creator.postcss=!0,module.exports=creator;
diff --git a/node_modules/postcss-attribute-case-insensitive/dist/index.d.ts b/node_modules/postcss-attribute-case-insensitive/dist/index.d.ts
index c3aecebb..ba9565d2 100644
--- a/node_modules/postcss-attribute-case-insensitive/dist/index.d.ts
+++ b/node_modules/postcss-attribute-case-insensitive/dist/index.d.ts
@@ -1,8 +1,12 @@
import type { PluginCreator } from 'postcss';
+
+declare const creator: PluginCreator<pluginOptions>;
+export default creator;
+
/** postcss-prefers-color-scheme 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/postcss-attribute-case-insensitive/dist/index.mjs b/node_modules/postcss-attribute-case-insensitive/dist/index.mjs
index 43611995..9b40c56c 100644
--- a/node_modules/postcss-attribute-case-insensitive/dist/index.mjs
+++ b/node_modules/postcss-attribute-case-insensitive/dist/index.mjs
@@ -1 +1 @@
-import e from"postcss-selector-parser";function nodeIsInsensitiveAttribute(e){return"attribute"===e.type&&e.insensitive}function selectorHasInsensitiveAttribute(e){return e.some(nodeIsInsensitiveAttribute)}function transformString(e,t,r){const s=r.charAt(t);if(""===s)return e;let n=e.map((e=>e+s));const o=s.toLocaleUpperCase();return o!==s&&(n=n.concat(e.map((e=>e+o)))),transformString(n,t+1,r)}function createNewSelectors(t){let r=[e.selector({value:"",nodes:[]})];return t.walk((e=>{if(!nodeIsInsensitiveAttribute(e))return void r.forEach((t=>{t.append(e.clone())}));const t=transformString([""],0,(s=e).value).map((e=>{const t=s.clone({spaces:{after:s.spaces.after,before:s.spaces.before},insensitive:!1});return t.setValue(e),t}));var s;const n=[];t.forEach((e=>{r.forEach((t=>{const r=t.clone({});r.append(e),n.push(r)}))})),r=n})),r}function transform(e){let t=[];e.each((e=>{selectorHasInsensitiveAttribute(e)&&(t=t.concat(createNewSelectors(e)),e.remove())})),t.length&&t.forEach((t=>e.append(t)))}const creator=t=>{const r=Object.assign({preserve:!1},t);return{postcssPlugin:"postcss-attribute-case-insensitive",prepare(){const t=new WeakSet;return{Rule(s,{result:n}){if(t.has(s))return;if(!/i\s*]/gim.test(s.selector))return;let o=s.selector;try{o=e(transform).processSync(s.selector)}catch(e){return void s.warn(n,`Failed to parse selector : "${s.selector}" with message: "${e.message}"`)}o!==s.selector&&(t.add(s),s.cloneBefore({selector:o}),r.preserve||s.remove())}}}}};creator.postcss=!0;export{creator as default};
+import e from"postcss-selector-parser";function nodeIsInsensitiveAttribute(e){return"attribute"===e.type&&(e.insensitive??!1)}function selectorHasInsensitiveAttribute(e){return e.some(nodeIsInsensitiveAttribute)}function transformString(e,t,r){const s=r.charAt(t);if(""===s)return e;let n=e.map((e=>e+s));const o=s.toLocaleUpperCase();return o!==s&&(n=n.concat(e.map((e=>e+o)))),transformString(n,t+1,r)}function createNewSelectors(t){let r=[e.selector({value:"",nodes:[]})];return t.each((e=>{if(!nodeIsInsensitiveAttribute(e))return void r.forEach((t=>{t.append(e.clone())}));const t=transformString([""],0,(s=e).value??"").map((e=>{const t=s.clone({spaces:{after:s.spaces.after,before:s.spaces.before},insensitive:!1});return t.setValue(e),t}));var s;const n=[];t.forEach((e=>{r.forEach((t=>{const r=t.clone({});r.append(e),n.push(r)}))})),r=n})),r}const creator=t=>{const r=Object.assign({preserve:!1},t);return{postcssPlugin:"postcss-attribute-case-insensitive",prepare(){const t=new WeakSet;return{Rule(s,{result:n}){if(t.has(s))return;if(!/i\s*]/gim.test(s.selector))return;let o;try{o=e((e=>{let t=[];e.each((e=>{selectorHasInsensitiveAttribute(e)&&(t=t.concat(createNewSelectors(e)),e.remove())})),t.length&&t.forEach((t=>e.append(t)))})).processSync(s.selector)}catch(e){return void s.warn(n,`Failed to parse selector : "${s.selector}" with message: "${e instanceof Error?e.message:e}"`)}o!==s.selector&&(t.add(s),s.cloneBefore({selector:o}),r.preserve||s.remove())}}}}};creator.postcss=!0;export{creator as default};
diff --git a/node_modules/postcss-attribute-case-insensitive/package.json b/node_modules/postcss-attribute-case-insensitive/package.json
index ccebaa56..715de473 100644
--- a/node_modules/postcss-attribute-case-insensitive/package.json
+++ b/node_modules/postcss-attribute-case-insensitive/package.json
@@ -1,7 +1,7 @@
{
"name": "postcss-attribute-case-insensitive",
"description": "Enable support for case insensitive attribute matching in selectors",
- "version": "6.0.2",
+ "version": "6.0.3",
"contributors": [
{
"name": "Antonio Laguna",
@@ -17,49 +17,45 @@
}
],
"license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/csstools"
- },
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
"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": [
"CHANGELOG.md",
- "LICENSE",
+ "LICENSE.md",
"README.md",
"dist"
],
"dependencies": {
- "postcss-selector-parser": "^6.0.10"
+ "postcss-selector-parser": "^6.0.13"
},
"peerDependencies": {
"postcss": "^8.4"
},
- "scripts": {
- "prebuild": "npm run clean",
- "build": "rollup -c ../../rollup/default.mjs",
- "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"",
- "docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs",
- "lint": "npm run lint:eslint && npm run lint:package-json",
- "lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
- "lint:package-json": "node ../../.github/bin/format-package-json.mjs",
- "prepublishOnly": "npm run clean && npm run build && npm run test",
- "test": "node .tape.mjs && npm run test:exports",
- "test:exports": "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-attribute-case-insensitive#readme",
"repository": {
"type": "git",
@@ -75,14 +71,5 @@
"postcss",
"postcss-plugin",
"sensitive"
- ],
- "csstools": {
- "cssdbId": "case-insensitive-attributes",
- "exportName": "postcssAttributeCaseInsensitive",
- "humanReadableName": "PostCSS Attribute Case Insensitive",
- "specUrl": "https://www.w3.org/TR/selectors4/#attribute-case"
- },
- "volta": {
- "extends": "../../package.json"
- }
+ ]
}