Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@accounts/graphql-client

Package Overview
Dependencies
Maintainers
5
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/graphql-client - npm Package Compare versions

Comparing version 0.22.0 to 0.23.0

20

lib/graphql-client.js

@@ -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 @@ })];

12

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc