apollo-upload-client
Advanced tools
Comparing version 6.0.2 to 6.0.3
# apollo-upload-client changelog | ||
## 6.0.3 | ||
* Response is set on the context, via [#40](https://github.com/jaydenseric/apollo-upload-client/pull/40). | ||
* Configured `lint-staged` for `.mjs`. | ||
## 6.0.2 | ||
@@ -20,3 +25,3 @@ | ||
* Readme API documentation fixes: | ||
* Corrected React Native example code import via [#39](https://github.com/jaydenseric/apollo-upload-client/pull/39). | ||
* Corrected React Native example code import, via [#39](https://github.com/jaydenseric/apollo-upload-client/pull/39). | ||
* Updated `createUploadLink` options. | ||
@@ -23,0 +28,0 @@ |
@@ -40,3 +40,4 @@ 'use strict' | ||
extensions = _ref2.extensions, | ||
getContext = _ref2.getContext | ||
getContext = _ref2.getContext, | ||
setContext = _ref2.setContext | ||
return new _apolloLink.Observable(function(observer) { | ||
@@ -96,2 +97,5 @@ var requestOperation = { | ||
.then(function(response) { | ||
setContext({ | ||
response: response | ||
}) | ||
if (!response.ok) | ||
@@ -98,0 +102,0 @@ throw new Error( |
{ | ||
"name": "apollo-upload-client", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "Enhances Apollo Client for intuitive file uploads via GraphQL mutations.", | ||
@@ -66,3 +66,3 @@ "license": "MIT", | ||
"lint-staged": { | ||
"*.js": "eslint" | ||
"*.mjs": "eslint" | ||
}, | ||
@@ -69,0 +69,0 @@ "eslintIgnore": [ |
@@ -1,2 +0,2 @@ | ||
 | ||
 | ||
@@ -3,0 +3,0 @@ # apollo-upload-client |
Sorry, the diff of this file is not supported yet
21828
197