@accounts/graphql-client
Advanced tools
Comparing version 0.22.0 to 0.23.0
@@ -192,3 +192,3 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var tokens, _a, _b, data, errors; | ||
var tokens, _a, headers, _b, data, errors; | ||
return tslib_1.__generator(this, function (_c) { | ||
@@ -208,2 +208,6 @@ switch (_c.label) { | ||
tokens = _a; | ||
headers = {}; | ||
if (tokens) { | ||
headers.Authorization = "Bearer " + tokens.accessToken; | ||
} | ||
return [4 /*yield*/, this.options.graphQLClient.mutate({ | ||
@@ -213,5 +217,3 @@ mutation: mutation, | ||
context: { | ||
headers: { | ||
Authorization: tokens ? 'Bearer ' + tokens.accessToken : '', | ||
}, | ||
headers: headers, | ||
}, | ||
@@ -232,3 +234,3 @@ })]; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var tokens, _a, data, errors; | ||
var tokens, headers, _a, data, errors; | ||
return tslib_1.__generator(this, function (_b) { | ||
@@ -239,2 +241,6 @@ switch (_b.label) { | ||
tokens = _b.sent(); | ||
headers = {}; | ||
if (tokens) { | ||
headers.Authorization = "Bearer " + tokens.accessToken; | ||
} | ||
return [4 /*yield*/, this.options.graphQLClient.query({ | ||
@@ -245,5 +251,3 @@ query: query, | ||
context: { | ||
headers: { | ||
Authorization: tokens ? 'Bearer ' + tokens.accessToken : '', | ||
}, | ||
headers: headers, | ||
}, | ||
@@ -250,0 +254,0 @@ })]; |
{ | ||
"name": "@accounts/graphql-client", | ||
"version": "0.22.0", | ||
"version": "0.23.0", | ||
"description": "GraphQL client transport for accounts", | ||
@@ -28,13 +28,13 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@types/jest": "24.0.25", | ||
"jest": "24.9.0", | ||
"@types/jest": "25.1.2", | ||
"jest": "25.1.0", | ||
"lodash": "4.17.15" | ||
}, | ||
"dependencies": { | ||
"@accounts/client": "^0.22.0", | ||
"@accounts/types": "^0.22.0", | ||
"@accounts/client": "^0.23.0", | ||
"@accounts/types": "^0.23.0", | ||
"graphql-tag": "^2.10.0", | ||
"tslib": "1.10.0" | ||
}, | ||
"gitHead": "e07d869d68a7b7e29e35f76b026ea9ca96dea5a1" | ||
"gitHead": "1f9ea351eb63e6be17081feaf68cc03a3cf4ff74" | ||
} |
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
39110
498
+ Added@accounts/client@0.23.0(transitive)
+ Added@accounts/types@0.23.0(transitive)
- Removed@accounts/client@0.22.0(transitive)
- Removed@accounts/types@0.22.0(transitive)
Updated@accounts/client@^0.23.0
Updated@accounts/types@^0.23.0