datocms-listen
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -158,11 +158,4 @@ "use strict"; | ||
} | ||
if (e_1 instanceof Response500Error) { | ||
// retry the connection | ||
return [2 /*return*/, waitAndReconnect()]; | ||
} | ||
if (e_1.message.includes("fetch")) { | ||
// probably a CORS error due to network issues, retry the connection | ||
return [2 /*return*/, waitAndReconnect()]; | ||
} | ||
throw e_1; | ||
console.info('Failed to get a channelUrl, retrying...', e_1); | ||
return [2 /*return*/, waitAndReconnect()]; | ||
case 5: return [2 /*return*/, new Promise(function (resolve) { | ||
@@ -169,0 +162,0 @@ var eventSource = new EventSourceClass(channelUrl); |
{ | ||
"name": "datocms-listen", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"types": "dist/index.d.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,2 +7,10 @@ # datocms-listen | ||
<br /><br /> | ||
<a href="https://www.datocms.com/"> | ||
<img src="https://www.datocms.com/images/full_logo.svg" height="60"> | ||
</a> | ||
<br /><br /> | ||
## Installation | ||
@@ -9,0 +17,0 @@ |
Sorry, the diff of this file is not supported yet
116
41438
15
481