fetch-multipart-graphql
Advanced tools
@@ -55,3 +55,3 @@ 'use strict'; | ||
} | ||
}); | ||
}).catch(onError); | ||
} |
@@ -41,2 +41,7 @@ 'use strict'; | ||
function onReadyStateChange() { | ||
// The request failed, do nothing and let the error event fire | ||
if (this.readyState === this.DONE && this.status === 0) { | ||
return; | ||
} | ||
if (this.readyState === this.HEADERS_RECEIVED) { | ||
@@ -43,0 +48,0 @@ var contentType = xhr.getResponseHeader('Content-Type'); |
{ | ||
"name": "fetch-multipart-graphql", | ||
"version": "1.0.11", | ||
"version": "1.1.0", | ||
"description": "Cross browser function to fetch and parse streaming multipart graphql responses.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -41,3 +41,3 @@ import { PatchResolver } from './PatchResolver'; | ||
} | ||
}); | ||
}).catch(onError); | ||
} |
@@ -22,2 +22,7 @@ import { PatchResolver } from './PatchResolver'; | ||
function onReadyStateChange() { | ||
// The request failed, do nothing and let the error event fire | ||
if (this.readyState === this.DONE && this.status === 0) { | ||
return; | ||
} | ||
if (this.readyState === this.HEADERS_RECEIVED) { | ||
@@ -24,0 +29,0 @@ const contentType = xhr.getResponseHeader('Content-Type'); |
170571
0.21%691
1.17%