braid-http 0.3.17 → 0.3.18

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.
@@ -362,7 +362,7 @@ var subscription_parser = (cb) => ({
362
362
  read (input) {
363
363
 
364
364
  // Store the new input!
365
- this.state.input.push(...input)
365
+ for (let x of input) this.state.input.push(x)
366
366
 
367
367
  // Now loop through the input and parse until we hit a dead end
368
368
  while (this.state.input.length) {
@@ -123,7 +123,7 @@ function parse_update (req, cb) {
123
123
  req.on('data', function parse (chunk) {
124
124
 
125
125
  // Merge the latest chunk into our buffer
126
- buffer.push(...chunk)
126
+ for (let x of chunk) buffer.push(x)
127
127
 
128
128
  while (patches.length < num_patches) {
129
129
  let h = extractHeader(buffer)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"