@projectwallace/css-parser 0.16.1 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -197,6 +197,7 @@ var CSSNode = class CSSNode {
197
197
  } else if (text.startsWith("\"") || text.startsWith("'")) return text;
198
198
  }
199
199
  if (type === 16 || type === 37) return this.get_content();
200
+ if (type !== 4 && type !== 15 && type !== 24 && type !== 36 && type !== 41) return;
200
201
  let start = this.arena.get_value_start(this.index);
201
202
  let length = this.arena.get_value_length(this.index);
202
203
  if (length === 0) return null;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { C as TOKEN_RIGHT_BRACKET, D as TOKEN_UNICODE_RANGE, E as TOKEN_STRING, O as TOKEN_URL, S as TOKEN_RIGHT_BRACE, T as TOKEN_SEMICOLON, _ as TOKEN_LEFT_BRACE, a as TOKEN_BAD_URL, b as TOKEN_NUMBER, c as TOKEN_COLON, d as TOKEN_DELIM, f as TOKEN_DIMENSION, g as TOKEN_IDENT, h as TOKEN_HASH, i as TOKEN_BAD_STRING, k as TOKEN_WHITESPACE, l as TOKEN_COMMA, m as TOKEN_FUNCTION, n as tokenize, o as TOKEN_CDC, p as TOKEN_EOF, r as TOKEN_AT_KEYWORD, s as TOKEN_CDO, u as TOKEN_COMMENT, v as TOKEN_LEFT_BRACKET, w as TOKEN_RIGHT_PAREN, x as TOKEN_PERCENTAGE, y as TOKEN_LEFT_PAREN } from "./tokenize-BiRLfVbm.js";
2
2
  import { A as PSEUDO_CLASS_SELECTOR, B as TYPE_SELECTOR, C as NESTING_SELECTOR, D as OPERATOR, E as NUMBER, F as STRING, H as UNIVERSAL_SELECTOR, I as STYLESHEET, L as STYLE_RULE, M as RAW, N as SELECTOR, O as PARENTHESIS, P as SELECTOR_LIST, R as SUPPORTS_DECLARATION, S as MEDIA_TYPE, T as NTH_SELECTOR, U as URL, V as UNICODE_RANGE, W as VALUE, _ as ID_SELECTOR, a as CLASS_SELECTOR, b as MEDIA_FEATURE, c as CONTAINER_QUERY, d as DIMENSION, f as FEATURE_RANGE, g as IDENTIFIER, h as HASH, i as BLOCK, j as PSEUDO_ELEMENT_SELECTOR, k as PRELUDE_OPERATOR, m as FUNCTION, n as AT_RULE, o as COMBINATOR, p as FLAG_IMPORTANT, r as AT_RULE_PRELUDE, s as COMMENT, t as ATTRIBUTE_SELECTOR, u as DECLARATION, v as LANG_SELECTOR, w as NTH_OF_SELECTOR, x as MEDIA_QUERY, y as LAYER_NAME, z as SUPPORTS_QUERY } from "./arena-CCye9VYE.js";
3
3
  import { c as str_starts_with, i as is_vendor_prefixed, o as str_equals, r as is_custom, s as str_index_of, t as parse_dimension } from "./parse-dimension-B0AZRxxt.js";
4
- import { n as TYPE_NAMES } from "./css-node-CuLhABl8.js";
4
+ import { n as TYPE_NAMES } from "./css-node-TR2T5Q7D.js";
5
5
  import { parse_selector, parse_selector_list } from "./parse-selector.js";
6
6
  import { parse_atrule_prelude } from "./parse-atrule-prelude.js";
7
7
  import { parse_value } from "./parse-value.js";
@@ -1,7 +1,7 @@
1
1
  import { t as Lexer } from "./tokenize-BiRLfVbm.js";
2
2
  import { l as CSSDataArena } from "./arena-CCye9VYE.js";
3
3
  import { o as str_equals, s as str_index_of } from "./parse-dimension-B0AZRxxt.js";
4
- import { t as CSSNode } from "./css-node-CuLhABl8.js";
4
+ import { t as CSSNode } from "./css-node-TR2T5Q7D.js";
5
5
  //#region src/parse-anplusb.ts
6
6
  /** @internal */
7
7
  var ANplusBParser = class {
@@ -1,7 +1,7 @@
1
1
  import { t as Lexer } from "./tokenize-BiRLfVbm.js";
2
2
  import { l as CSSDataArena } from "./arena-CCye9VYE.js";
3
3
  import { a as is_whitespace, l as strip_vendor_prefix, o as str_equals } from "./parse-dimension-B0AZRxxt.js";
4
- import { t as CSSNode } from "./css-node-CuLhABl8.js";
4
+ import { t as CSSNode } from "./css-node-TR2T5Q7D.js";
5
5
  import { i as trim_boundaries, n as skip_whitespace_and_comments_forward } from "./parse-utils-BmXnziOy.js";
6
6
  //#region src/parse-atrule-prelude.ts
7
7
  /** @internal */
@@ -1,7 +1,7 @@
1
1
  import { t as Lexer } from "./tokenize-BiRLfVbm.js";
2
2
  import { l as CSSDataArena } from "./arena-CCye9VYE.js";
3
3
  import { i as is_vendor_prefixed } from "./parse-dimension-B0AZRxxt.js";
4
- import { t as CSSNode } from "./css-node-CuLhABl8.js";
4
+ import { t as CSSNode } from "./css-node-TR2T5Q7D.js";
5
5
  import { i as trim_boundaries } from "./parse-utils-BmXnziOy.js";
6
6
  import { ValueParser } from "./parse-value.js";
7
7
  //#region src/parse-declaration.ts
@@ -1,7 +1,7 @@
1
1
  import { t as Lexer } from "./tokenize-BiRLfVbm.js";
2
2
  import { l as CSSDataArena } from "./arena-CCye9VYE.js";
3
3
  import { a as is_whitespace, n as is_combinator, o as str_equals } from "./parse-dimension-B0AZRxxt.js";
4
- import { t as CSSNode } from "./css-node-CuLhABl8.js";
4
+ import { t as CSSNode } from "./css-node-TR2T5Q7D.js";
5
5
  import { n as skip_whitespace_and_comments_forward, r as skip_whitespace_forward, t as skip_whitespace_and_comments_backward } from "./parse-utils-BmXnziOy.js";
6
6
  import { ANplusBParser } from "./parse-anplusb.js";
7
7
  //#region src/parse-selector.ts
@@ -1,7 +1,7 @@
1
1
  import { t as Lexer } from "./tokenize-BiRLfVbm.js";
2
2
  import { l as CSSDataArena } from "./arena-CCye9VYE.js";
3
3
  import { a as is_whitespace, o as str_equals } from "./parse-dimension-B0AZRxxt.js";
4
- import { t as CSSNode } from "./css-node-CuLhABl8.js";
4
+ import { t as CSSNode } from "./css-node-TR2T5Q7D.js";
5
5
  //#region src/parse-value.ts
6
6
  /** @internal */
7
7
  var ValueParser = class {
package/dist/parse.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as Lexer } from "./tokenize-BiRLfVbm.js";
2
2
  import { l as CSSDataArena } from "./arena-CCye9VYE.js";
3
- import { t as CSSNode } from "./css-node-CuLhABl8.js";
3
+ import { t as CSSNode } from "./css-node-TR2T5Q7D.js";
4
4
  import { i as trim_boundaries } from "./parse-utils-BmXnziOy.js";
5
5
  import { SelectorParser } from "./parse-selector.js";
6
6
  import { AtRulePreludeParser } from "./parse-atrule-prelude.js";
package/dist/walk.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./arena-CCye9VYE.js";
2
- import { t as CSSNode } from "./css-node-CuLhABl8.js";
2
+ import { t as CSSNode } from "./css-node-TR2T5Q7D.js";
3
3
  import "./constants.js";
4
4
  //#region src/walk.ts
5
5
  const SKIP = Symbol("SKIP");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectwallace/css-parser",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "High-performance CSS lexer and parser, optimized for CSS inspection and analysis",
5
5
  "keywords": [
6
6
  "ast",