braid-http 1.1.0 → 1.1.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.
@@ -482,7 +482,7 @@ var subscription_parser = (cb) => ({
482
482
 
483
483
  Object.defineProperty(update, 'body_text', {
484
484
  get: function () {
485
- return new TextDecoder('utf-8').decode(this.body.buffer)
485
+ if (this.body != null) return new TextDecoder('utf-8').decode(this.body.buffer)
486
486
  }
487
487
  })
488
488
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"