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 @@ | ||
![Apollo upload logo](https://cdn.rawgit.com/jaydenseric/apollo-upload-client/v6.0.2/apollo-upload-logo.svg) | ||
![Apollo upload logo](https://cdn.rawgit.com/jaydenseric/apollo-upload-client/v6.0.3/apollo-upload-logo.svg) | ||
@@ -3,0 +3,0 @@ # apollo-upload-client |
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
21828
197