@codecraftkit/apollo
Advanced tools
Comparing version 1.1.21 to 1.1.22
@@ -30,2 +30,4 @@ "use strict"; | ||
var _cookiesNext = require("cookies-next"); | ||
var defaultLink = new _client.HttpLink({ | ||
@@ -42,3 +44,3 @@ uri: process.env.NEXT_PUBLIC_GRAPHQL_GATEWAY_URL | ||
var headers = _ref.headers; | ||
var token = Cookies.get(process.env.NEXT_PUBLIC_TOKEN_KEY); | ||
var token = (0, _cookiesNext.getCookie)(process.env.NEXT_PUBLIC_TOKEN_KEY); | ||
@@ -193,3 +195,3 @@ if ((0, _isElectron["default"])()) { | ||
default: | ||
token = Cookies.get(config.tokenKey); | ||
token = (0, _cookiesNext.getCookie)(config.tokenKey); | ||
break; | ||
@@ -196,0 +198,0 @@ } |
@@ -10,2 +10,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
import { createClient } from 'graphql-ws'; | ||
import { getCookie } from 'cookies-next'; | ||
var defaultLink = new HttpLink({ | ||
@@ -24,3 +25,3 @@ uri: process.env.NEXT_PUBLIC_GRAPHQL_GATEWAY_URL | ||
} = _ref; | ||
var token = Cookies.get(process.env.NEXT_PUBLIC_TOKEN_KEY); | ||
var token = getCookie(process.env.NEXT_PUBLIC_TOKEN_KEY); | ||
@@ -173,3 +174,3 @@ if (isElectron()) { | ||
default: | ||
token = Cookies.get(config.tokenKey); | ||
token = getCookie(config.tokenKey); | ||
break; | ||
@@ -176,0 +177,0 @@ } |
{ | ||
"name": "@codecraftkit/apollo", | ||
"version": "1.1.21", | ||
"version": "1.1.22", | ||
"description": "Made with create-react-library", | ||
@@ -40,3 +40,3 @@ "author": "cc-dev-leader", | ||
], | ||
"gitHead": "9dcb5a2c86b30435e04f1bfa21a4d444eeb51d6c" | ||
"gitHead": "f5ccf371388de37ae801bcce05beacd47cb7f133" | ||
} |
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
64892
596