New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vivse/frontend-library

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vivse/frontend-library - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

24

apollo/create-connection-link.js

@@ -18,2 +18,15 @@ "use strict";

const createConnectionLink = ({ httpEndpoint, wsEndpoint, getAuthToken, }) => {
const getAuthHeaders = () => __awaiter(void 0, void 0, void 0, function* () {
const authToken = yield getAuthToken();
if (!authToken)
return {};
const { token, type } = authToken;
return {
[type === "bearer" ? "Authorization" : defs_1.VERIFY_TOKEN_HEADER]: token
? type === "bearer"
? `Bearer ${token}`
: token
: "",
};
});
const httpLink = (0, client_1.createHttpLink)({

@@ -28,2 +41,3 @@ uri: httpEndpoint,

url: wsEndpoint,
connectionParams: Object.assign({}, getAuthHeaders()),
}));

@@ -39,12 +53,4 @@ }

const authLink = (0, context_1.setContext)((_, { headers }) => __awaiter(void 0, void 0, void 0, function* () {
const authToken = yield getAuthToken();
if (!authToken)
return {};
const { token, type } = authToken;
return {
headers: Object.assign(Object.assign({}, headers), { [type === "bearer" ? "Authorization" : defs_1.VERIFY_TOKEN_HEADER]: token
? type === "bearer"
? `Bearer ${token}`
: token
: "" }),
headers: Object.assign(Object.assign({}, headers), (yield getAuthHeaders())),
};

@@ -51,0 +57,0 @@ }));

{
"name": "@vivse/frontend-library",
"version": "1.2.3",
"version": "1.2.4",
"description": "Library shared between react projects",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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