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.
@@ -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
- values.push(...parsed);
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
- values.push(...parsed);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turbo-stream",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "A streaming data transport format that aims to support built-in features such as Promises, Dates, RegExps, Maps, Sets and more.",
5
5
  "files": [
6
6
  "dist",