@projectwallace/css-parser 0.8.8 → 0.8.9

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.
@@ -81,8 +81,6 @@ export declare class CSSNode {
81
81
  private source;
82
82
  private index;
83
83
  constructor(arena: CSSDataArena, source: string, index: number);
84
- /** Get the arena (for internal/advanced use only) */
85
- __get_arena(): CSSDataArena;
86
84
  /** Get node type as number (for performance) */
87
85
  get type(): CSSNodeType;
88
86
  /** Get node type as human-readable string */
package/dist/css-node.js CHANGED
@@ -49,7 +49,10 @@ class CSSNode {
49
49
  this.source = source;
50
50
  this.index = index;
51
51
  }
52
- /** Get the arena (for internal/advanced use only) */
52
+ /**
53
+ * @internal
54
+ * Get the arena (for internal/advanced use only)
55
+ */
53
56
  __get_arena() {
54
57
  return this.arena;
55
58
  }
@@ -222,6 +222,8 @@ class AtRulePreludeParser {
222
222
  let token_type = this.lexer.token_type;
223
223
  if (token_type === TOKEN_IDENT) {
224
224
  let layer = this.create_node(LAYER_NAME, this.lexer.token_start, this.lexer.token_end);
225
+ this.arena.set_value_start_delta(layer, 0);
226
+ this.arena.set_value_length(layer, this.lexer.token_end - this.lexer.token_start);
225
227
  nodes.push(layer);
226
228
  } else if (token_type === TOKEN_COMMA) {
227
229
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectwallace/css-parser",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "description": "High-performance CSS lexer and parser, optimized for CSS inspection and analysis",
5
5
  "author": "Bart Veneman <bart@projectwallace.com>",
6
6
  "license": "MIT",