htmv 0.0.39 → 0.0.40

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.
@@ -109,6 +109,10 @@ export function parse(tokens) {
109
109
  for (let i = 0; i < args.length; i++) {
110
110
  const letter = args[i];
111
111
  if (letter === "{") {
112
+ tokens.push({
113
+ type: "text",
114
+ text: textBuffer,
115
+ });
112
116
  clearBuffer();
113
117
  continue;
114
118
  }
@@ -124,10 +128,7 @@ export function parse(tokens) {
124
128
  clearBuffer();
125
129
  function clearBuffer() {
126
130
  if (textBuffer.length > 0) {
127
- tokens.push({
128
- type: "text",
129
- text: textBuffer,
130
- });
131
+ textBuffer = "";
131
132
  }
132
133
  }
133
134
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "htmv",
3
3
  "main": "dist/index.js",
4
4
  "type": "module",
5
- "version": "0.0.39",
5
+ "version": "0.0.40",
6
6
  "devDependencies": {
7
7
  "@biomejs/biome": "2.3.3",
8
8
  "@types/bun": "latest"