From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- node_modules/postcss-discard-empty/LICENSE-MIT | 22 --------- node_modules/postcss-discard-empty/README.md | 49 ------------------- node_modules/postcss-discard-empty/package.json | 41 ---------------- node_modules/postcss-discard-empty/src/index.js | 57 ---------------------- .../postcss-discard-empty/types/index.d.ts | 10 ---- .../postcss-discard-empty/types/index.d.ts.map | 1 - 6 files changed, 180 deletions(-) delete mode 100644 node_modules/postcss-discard-empty/LICENSE-MIT delete mode 100644 node_modules/postcss-discard-empty/README.md delete mode 100644 node_modules/postcss-discard-empty/package.json delete mode 100644 node_modules/postcss-discard-empty/src/index.js delete mode 100644 node_modules/postcss-discard-empty/types/index.d.ts delete mode 100644 node_modules/postcss-discard-empty/types/index.d.ts.map (limited to 'node_modules/postcss-discard-empty') diff --git a/node_modules/postcss-discard-empty/LICENSE-MIT b/node_modules/postcss-discard-empty/LICENSE-MIT deleted file mode 100644 index fd0e863a..00000000 --- a/node_modules/postcss-discard-empty/LICENSE-MIT +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) Ben Briggs (http://beneb.info) - -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-discard-empty/README.md b/node_modules/postcss-discard-empty/README.md deleted file mode 100644 index c481a780..00000000 --- a/node_modules/postcss-discard-empty/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# [postcss][postcss]-discard-empty - -> Discard empty rules and values with PostCSS. - -## Install - -With [npm](https://npmjs.org/package/postcss-discard-empty) do: - -``` -npm install postcss-discard-empty --save -``` - -## Example - -For more examples see the [tests](src/__tests__/index.js). - -### Input - -```css -@font-face; -h1 {} -{color:blue} -h2 {color:} -h3 {color:red} -``` - -### Output - -```css -h3 {color:red} -``` - -## Usage - -See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for -examples for your environment. - - -## Contributors - -See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md). - - -## License - -MIT © [Ben Briggs](http://beneb.info) - - -[postcss]: https://github.com/postcss/postcss diff --git a/node_modules/postcss-discard-empty/package.json b/node_modules/postcss-discard-empty/package.json deleted file mode 100644 index 28a9589f..00000000 --- a/node_modules/postcss-discard-empty/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "postcss-discard-empty", - "version": "6.0.3", - "description": "Discard empty rules and values with PostCSS.", - "main": "src/index.js", - "types": "types/index.d.ts", - "files": [ - "src", - "LICENSE-MIT", - "types" - ], - "keywords": [ - "compress", - "css", - "empty", - "minify", - "optimisation", - "postcss", - "postcss-plugin" - ], - "license": "MIT", - "homepage": "https://github.com/cssnano/cssnano", - "author": { - "name": "Ben Briggs", - "email": "beneb.info@gmail.com", - "url": "http://beneb.info" - }, - "repository": "cssnano/cssnano", - "bugs": { - "url": "https://github.com/cssnano/cssnano/issues" - }, - "engines": { - "node": "^14 || ^16 || >=18.0" - }, - "devDependencies": { - "postcss": "^8.4.35" - }, - "peerDependencies": { - "postcss": "^8.4.31" - } -} \ No newline at end of file diff --git a/node_modules/postcss-discard-empty/src/index.js b/node_modules/postcss-discard-empty/src/index.js deleted file mode 100644 index b35df106..00000000 --- a/node_modules/postcss-discard-empty/src/index.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict'; -const plugin = 'postcss-discard-empty'; -/** - * @param {import('postcss').Root} css - * @param {import('postcss').Result} result - * @return {void} - */ -function discardAndReport(css, result) { - /** - * @param {import('postcss').AnyNode} node - * @return {void} - */ - function discardEmpty(node) { - const { type } = node; - /** @type {(import('postcss').ChildNode | import('postcss').ChildProps)[] | undefined} */ - const sub = /** @type {any} */ (node).nodes; - if (sub) { - /** @type {import('postcss').Container} */ (node).each(discardEmpty); - } - - if ( - (type === 'decl' && !node.value && !node.prop.startsWith('--')) || - (type === 'rule' && !node.selector) || - (sub && !sub.length && !(type === 'atrule' && node.name === 'layer')) || - (type === 'atrule' && - ((!sub && !node.params) || - (!node.params && - !(/** @type {import('postcss').ChildNode[]}*/ (sub).length)))) - ) { - node.remove(); - - result.messages.push({ - type: 'removal', - plugin, - node, - }); - } - } - - css.each(discardEmpty); -} - -/** - * @type {import('postcss').PluginCreator} - * @return {import('postcss').Plugin} - */ -function pluginCreator() { - return { - postcssPlugin: plugin, - OnceExit(css, { result }) { - discardAndReport(css, result); - }, - }; -} - -pluginCreator.postcss = true; -module.exports = pluginCreator; diff --git a/node_modules/postcss-discard-empty/types/index.d.ts b/node_modules/postcss-discard-empty/types/index.d.ts deleted file mode 100644 index e449e8b4..00000000 --- a/node_modules/postcss-discard-empty/types/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export = pluginCreator; -/** - * @type {import('postcss').PluginCreator} - * @return {import('postcss').Plugin} - */ -declare function pluginCreator(): import('postcss').Plugin; -declare namespace pluginCreator { - let postcss: true; -} -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/postcss-discard-empty/types/index.d.ts.map b/node_modules/postcss-discard-empty/types/index.d.ts.map deleted file mode 100644 index b77fcf6d..00000000 --- a/node_modules/postcss-discard-empty/types/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AA0CA;;;GAGG;AACH,kCAFY,OAAO,SAAS,EAAE,MAAM,CASnC"} \ No newline at end of file -- cgit v1.2.3