@unrevealed/node
Advanced tools
Comparing version 0.3.1-rc.2 to 0.3.1-rc.3
@@ -191,3 +191,5 @@ "use strict"; | ||
eventSource.addEventListener('error', (event) => { | ||
let eventSourceErrorMessage = 'message' in event ? event.message : 'Event source error'; | ||
let eventSourceErrorMessage = 'message' in event && event.message | ||
? event.message | ||
: 'Unknown event source error'; | ||
const status = 'status' in event ? event.status : null; | ||
@@ -208,3 +210,3 @@ if (status) { | ||
this._logError(errorMessage); | ||
console.log({ event }); | ||
console.log(JSON.stringify({ event })); | ||
this._handleError(event); | ||
@@ -211,0 +213,0 @@ } |
{ | ||
"name": "@unrevealed/node", | ||
"version": "0.3.1-rc.2", | ||
"version": "0.3.1-rc.3", | ||
"description": "Unrevealed SDK for Node", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
25065
426