From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../cascade-layer-name-parser/CHANGELOG.md | 24 -------- .../@csstools/cascade-layer-name-parser/LICENSE.md | 20 ------- .../@csstools/cascade-layer-name-parser/README.md | 32 ----------- .../cascade-layer-name-parser/dist/index.cjs | 1 - .../cascade-layer-name-parser/dist/index.d.ts | 35 ----------- .../cascade-layer-name-parser/dist/index.mjs | 1 - .../cascade-layer-name-parser/package.json | 67 ---------------------- 7 files changed, 180 deletions(-) delete mode 100644 node_modules/@csstools/cascade-layer-name-parser/CHANGELOG.md delete mode 100644 node_modules/@csstools/cascade-layer-name-parser/LICENSE.md delete mode 100644 node_modules/@csstools/cascade-layer-name-parser/README.md delete mode 100644 node_modules/@csstools/cascade-layer-name-parser/dist/index.cjs delete mode 100644 node_modules/@csstools/cascade-layer-name-parser/dist/index.d.ts delete mode 100644 node_modules/@csstools/cascade-layer-name-parser/dist/index.mjs delete mode 100644 node_modules/@csstools/cascade-layer-name-parser/package.json (limited to 'node_modules/@csstools/cascade-layer-name-parser') diff --git a/node_modules/@csstools/cascade-layer-name-parser/CHANGELOG.md b/node_modules/@csstools/cascade-layer-name-parser/CHANGELOG.md deleted file mode 100644 index 5a01af6f..00000000 --- a/node_modules/@csstools/cascade-layer-name-parser/CHANGELOG.md +++ /dev/null @@ -1,24 +0,0 @@ -# Changes to Cascade Layer Name Parser - -### 1.0.13 - -_July 6, 2024_ - -- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.4.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#241) (patch) -- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.7.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#271) (patch) - -### 1.0.12 - -_June 29, 2024_ - -- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#232) (patch) -- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.7.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#270) (minor) - -### 1.0.11 - -_May 4, 2024_ - -- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.3.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#231) (patch) -- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.6.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#263) (patch) - -[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/cascade-layer-name-parser/CHANGELOG.md) diff --git a/node_modules/@csstools/cascade-layer-name-parser/LICENSE.md b/node_modules/@csstools/cascade-layer-name-parser/LICENSE.md deleted file mode 100644 index af5411fa..00000000 --- a/node_modules/@csstools/cascade-layer-name-parser/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright 2022 Romain Menke, Antonio Laguna - -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/@csstools/cascade-layer-name-parser/README.md b/node_modules/@csstools/cascade-layer-name-parser/README.md deleted file mode 100644 index 44e2111e..00000000 --- a/node_modules/@csstools/cascade-layer-name-parser/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# Cascade Layer Name Parser - -[npm version][npm-url] -[Build Status][cli-url] -[Discord][discord] - -## Usage - -Add [Cascade Layer Name Parser] to your project: - -```bash -npm install @csstools/cascade-layer-name-parser @csstools/css-parser-algorithms @csstools/css-tokenizer --save-dev -``` - -[Cascade Layer Name Parser] depends on our CSS tokenizer and parser algorithms. -It must be used together with `@csstools/css-tokenizer` and `@csstools/css-parser-algorithms`. - -```ts -import { parse } from '@csstools/cascade-layer-name-parser'; - -const layerNames = parse('layer-name, foo.bar'); -layerNames.forEach((layerName) => { - console.log(layerName.name()) // "foo.bar" - console.log(layerName.segments()) // ["foo", "bar"] -}); -``` - -[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test -[discord]: https://discord.gg/bUadyRwkJS -[npm-url]: https://www.npmjs.com/package/@csstools/cascade-layer-name-parser - -[Cascade Layer Name Parser]: https://github.com/csstools/postcss-plugins/tree/main/packages/cascade-layer-name-parser diff --git a/node_modules/@csstools/cascade-layer-name-parser/dist/index.cjs b/node_modules/@csstools/cascade-layer-name-parser/dist/index.cjs deleted file mode 100644 index d22aa23e..00000000 --- a/node_modules/@csstools/cascade-layer-name-parser/dist/index.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";var e=require("@csstools/css-tokenizer"),r=require("@csstools/css-parser-algorithms");class LayerName{parts;constructor(e){this.parts=e}tokens(){return[...this.parts]}slice(r,n){const t=[];for(let r=0;re.isTokenIdent(r)||e.isTokenDelim(r))),n,...r.parts.filter((r=>e.isTokenIdent(r)||e.isTokenDelim(r)))])}segments(){return this.parts.filter((r=>e.isTokenIdent(r))).map((e=>e[4].value))}name(){return this.parts.filter((r=>e.isTokenIdent(r)||e.isTokenDelim(r))).map((e=>e[1])).join("")}equal(e){const r=this.segments(),n=e.segments();if(r.length!==n.length)return!1;for(let e=0;e{}),o=["6.4.2. Layer Naming and Nesting","Layer name syntax"," = [ '.' ]*"],i=n[0][2],l=n[n.length-1][3],m=[];for(let n=0;ne.tokens()));let d=!1,p=!1,u=null;for(let r=0;r{const n=r.segments();e:for(let t=0;t=o&&(a=r,o=t)}-1===a?e.push(n):e.splice(a+1,0,n)}}))},exports.parse=function parse(r,n){const t=e.tokenizer({css:r},{onParseError:n?.onParseError}),s=[];for(;!t.endOfFile();)s.push(t.nextToken());return s.push(t.nextToken()),parseFromTokens(s,n)},exports.parseFromTokens=parseFromTokens; diff --git a/node_modules/@csstools/cascade-layer-name-parser/dist/index.d.ts b/node_modules/@csstools/cascade-layer-name-parser/dist/index.d.ts deleted file mode 100644 index df9eef3f..00000000 --- a/node_modules/@csstools/cascade-layer-name-parser/dist/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { CSSToken } from '@csstools/css-tokenizer'; -import { ParseError } from '@csstools/css-tokenizer'; - -export declare function addLayerToModel(layers: Array, currentLayerNames: Array): void; - -export declare class LayerName { - parts: Array; - constructor(parts: Array); - tokens(): Array; - slice(start: number, end: number): LayerName; - concat(other: LayerName): LayerName; - segments(): Array; - name(): string; - equal(other: LayerName): boolean; - toString(): string; - /** - * @internal - * - * A debug helper to convert the current object to a JSON representation. - */ - toJSON(): Record; -} - -export declare function parse(source: string, options?: { - onParseError?: (error: ParseError) => void; -}): Array; - -/** - * Parses an array of {@link https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/docs/css-tokenizer.csstoken.md | CSSTokens} into a list of cascade layer names. - */ -export declare function parseFromTokens(tokens: Array, options?: { - onParseError?: (error: ParseError) => void; -}): Array; - -export { } diff --git a/node_modules/@csstools/cascade-layer-name-parser/dist/index.mjs b/node_modules/@csstools/cascade-layer-name-parser/dist/index.mjs deleted file mode 100644 index 2b03390e..00000000 --- a/node_modules/@csstools/cascade-layer-name-parser/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -import{isTokenIdent as e,TokenType as t,isTokenDelim as n,stringify as r,ParseError as a,isTokenWhiteSpaceOrComment as s,tokenizer as o,isTokenWhitespace as l,isTokenComment as i}from"@csstools/css-tokenizer";import{parseCommaSeparatedListOfComponentValues as c,isTokenNode as m,isCommentNode as u,isWhitespaceNode as p}from"@csstools/css-parser-algorithms";class LayerName{parts;constructor(e){this.parts=e}tokens(){return[...this.parts]}slice(t,n){const r=[];for(let t=0;te(t)||n(t))),a,...r.parts.filter((t=>e(t)||n(t)))])}segments(){return this.parts.filter((t=>e(t))).map((e=>e[4].value))}name(){return this.parts.filter((t=>e(t)||n(t))).map((e=>e[1])).join("")}equal(e){const t=this.segments(),n=e.segments();if(t.length!==n.length)return!1;for(let e=0;e{const n=t.segments();e:for(let r=0;r=o&&(s=t,o=r)}-1===s?e.push(n):e.splice(s+1,0,n)}}))}function parseFromTokens(t,r){const o=c(t,{onParseError:r?.onParseError}),f=r?.onParseError??(()=>{}),h=["6.4.2. Layer Naming and Nesting","Layer name syntax"," = [ '.' ]*"],d=t[0][2],y=t[t.length-1][3],g=[];for(let t=0;te.tokens()));let w=!1,v=!1,L=null;for(let t=0;t=18" - }, - "type": "module", - "main": "dist/index.cjs", - "module": "dist/index.mjs", - "exports": { - ".": { - "import": { - "types": "./dist/index.d.ts", - "default": "./dist/index.mjs" - }, - "require": { - "default": "./dist/index.cjs" - } - } - }, - "files": [ - "CHANGELOG.md", - "LICENSE.md", - "README.md", - "dist" - ], - "peerDependencies": { - "@csstools/css-parser-algorithms": "^2.7.1", - "@csstools/css-tokenizer": "^2.4.1" - }, - "scripts": {}, - "homepage": "https://github.com/csstools/postcss-plugins/tree/main/packages/cascade-layer-name-parser#readme", - "repository": { - "type": "git", - "url": "git+https://github.com/csstools/postcss-plugins.git", - "directory": "packages/cascade-layer-name-parser" - }, - "bugs": "https://github.com/csstools/postcss-plugins/issues", - "keywords": [ - "cascade-layer", - "css", - "parser" - ] -} -- cgit v1.2.3