@hyperfixi/core 2.2.0 → 2.2.1

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.
@@ -455,7 +455,8 @@ function tokenize(input) {
455
455
  prevToken.value === '{' ||
456
456
  prevToken.value === ',' ||
457
457
  prevToken.value === ';';
458
- if (isCSSSelectorContext && isAlpha(peek(tokenizer))) {
458
+ const isAdjacentToPrev = prevToken && prevToken.end === tokenizer.position;
459
+ if (isCSSSelectorContext && !isAdjacentToPrev && isAlpha(peek(tokenizer))) {
459
460
  tokenizeCSSSelector(tokenizer);
460
461
  continue;
461
462
  }
@@ -453,7 +453,8 @@ function tokenize(input) {
453
453
  prevToken.value === '{' ||
454
454
  prevToken.value === ',' ||
455
455
  prevToken.value === ';';
456
- if (isCSSSelectorContext && isAlpha(peek(tokenizer))) {
456
+ const isAdjacentToPrev = prevToken && prevToken.end === tokenizer.position;
457
+ if (isCSSSelectorContext && !isAdjacentToPrev && isAlpha(peek(tokenizer))) {
457
458
  tokenizeCSSSelector(tokenizer);
458
459
  continue;
459
460
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperfixi/core",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Multilingual, tree-shakeable hyperscript",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -236,7 +236,7 @@
236
236
  "@vitest/coverage-v8": "^4.0.17",
237
237
  "@vitest/ui": "^4.0.17",
238
238
  "better-sqlite3": "^12.6.2",
239
- "esbuild": "0.27.3",
239
+ "esbuild": "0.27.4",
240
240
  "eslint": "^8.57.1",
241
241
  "eslint-config-prettier": "^9.0.0",
242
242
  "eslint-plugin-prettier": "^5.0.0",