turbo-stream 2.2.2 → 2.2.3
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.
- package/dist/turbo-stream.mjs +3 -1
- package/dist/unflatten.js +3 -1
- package/package.json +1 -1
package/dist/turbo-stream.mjs
CHANGED
|
@@ -206,7 +206,9 @@ function unflatten(parsed) {
|
|
|
206
206
|
if (!Array.isArray(parsed) || !parsed.length)
|
|
207
207
|
throw new SyntaxError();
|
|
208
208
|
const startIndex = values.length;
|
|
209
|
-
|
|
209
|
+
for (const value of parsed) {
|
|
210
|
+
values.push(value);
|
|
211
|
+
}
|
|
210
212
|
hydrated.length = values.length;
|
|
211
213
|
return hydrate.call(this, startIndex);
|
|
212
214
|
}
|
package/dist/unflatten.js
CHANGED
|
@@ -14,7 +14,9 @@ function unflatten(parsed) {
|
|
|
14
14
|
if (!Array.isArray(parsed) || !parsed.length)
|
|
15
15
|
throw new SyntaxError();
|
|
16
16
|
const startIndex = values.length;
|
|
17
|
-
|
|
17
|
+
for (const value of parsed) {
|
|
18
|
+
values.push(value);
|
|
19
|
+
}
|
|
18
20
|
hydrated.length = values.length;
|
|
19
21
|
return hydrate.call(this, startIndex);
|
|
20
22
|
}
|
package/package.json
CHANGED