sugar-high 0.7.0 → 0.7.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.
Files changed (2) hide show
  1. package/lib/index.js +5 -0
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -435,6 +435,11 @@ function tokenize(code) {
435
435
  }
436
436
  // `=` in property=<value>
437
437
  if (next === '=' && !inStringContent()) {
438
+ // if current is not a space, ensure `prop` is a property
439
+ if (isSpaces(current)) {
440
+ append(T_SPACE, current)
441
+ current = ''
442
+ }
438
443
  const prop = current ? (current + curr) : curr
439
444
  if (isIdentifier(prop)) {
440
445
  current = prop
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sugar-high",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "types": "./lib/index.d.ts",
6
6
  "exports": {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "codice": "^0.2.0",
22
- "next": "14.2.3",
22
+ "next": "14.2.4",
23
23
  "react": "^18.3.1",
24
24
  "react-dom": "^18.3.1",
25
25
  "sugar-high": "link:./",