apollo-upload-client
Advanced tools
Comparing version 6.0.0-beta.2 to 6.0.0-beta.3
# apollo-upload-client change log | ||
## 6.0.0-beta.3 | ||
* Corrected network error handling, fixing | ||
[#38](https://github.com/jaydenseric/apollo-upload-client/issues/38). | ||
## 6.0.0-beta.2 | ||
@@ -4,0 +9,0 @@ |
@@ -92,9 +92,5 @@ 'use strict' | ||
.then(function(response) { | ||
return response.json().then(function(result) { | ||
if (!response.ok) | ||
throw new Error( | ||
'Error ' + response.status + ': ' + response.statusText + '.' | ||
) | ||
return result | ||
}) | ||
if (!response.ok) | ||
throw new Error(response.status + ' (' + response.statusText + ')') | ||
return response.json() | ||
}) | ||
@@ -105,3 +101,5 @@ .then(function(result) { | ||
}) | ||
.catch(observer.error) | ||
.catch(function(error) { | ||
return observer.error(error) | ||
}) | ||
}) | ||
@@ -108,0 +106,0 @@ }) |
{ | ||
"name": "apollo-upload-client", | ||
"version": "6.0.0-beta.2", | ||
"version": "6.0.0-beta.3", | ||
"description": "Enhances Apollo Client for intuitive file uploads via GraphQL mutations.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22729
249