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

@graphql-tools/executor-legacy-ws

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/executor-legacy-ws - npm Package Compare versions

Comparing version 1.0.0-rc-20230519104353-b09f3180 to 1.0.0-rc-20230519104627-f6fea064

10

cjs/index.js

@@ -25,3 +25,3 @@ "use strict";

followRedirects: true,
headers: options === null || options === void 0 ? void 0 : options.headers,
headers: options?.headers,
rejectUnauthorized: false,

@@ -32,8 +32,8 @@ skipUTF8Validation: true,

let payload = {};
switch (typeof (options === null || options === void 0 ? void 0 : options.connectionParams)) {
switch (typeof options?.connectionParams) {
case 'function':
payload = options === null || options === void 0 ? void 0 : options.connectionParams();
payload = options?.connectionParams();
break;
case 'object':
payload = options === null || options === void 0 ? void 0 : options.connectionParams;
payload = options?.connectionParams;
break;

@@ -108,3 +108,3 @@ }

unsubscribe: () => {
websocket === null || websocket === void 0 ? void 0 : websocket.send(JSON.stringify({
websocket?.send(JSON.stringify({
type: LEGACY_WS.STOP,

@@ -111,0 +111,0 @@ id,

@@ -22,3 +22,3 @@ import { observableToAsyncIterable } from '@graphql-tools/utils';

followRedirects: true,
headers: options === null || options === void 0 ? void 0 : options.headers,
headers: options?.headers,
rejectUnauthorized: false,

@@ -29,8 +29,8 @@ skipUTF8Validation: true,

let payload = {};
switch (typeof (options === null || options === void 0 ? void 0 : options.connectionParams)) {
switch (typeof options?.connectionParams) {
case 'function':
payload = options === null || options === void 0 ? void 0 : options.connectionParams();
payload = options?.connectionParams();
break;
case 'object':
payload = options === null || options === void 0 ? void 0 : options.connectionParams;
payload = options?.connectionParams;
break;

@@ -105,3 +105,3 @@ }

unsubscribe: () => {
websocket === null || websocket === void 0 ? void 0 : websocket.send(JSON.stringify({
websocket?.send(JSON.stringify({
type: LEGACY_WS.STOP,

@@ -108,0 +108,0 @@ id,

{
"name": "@graphql-tools/executor-legacy-ws",
"version": "1.0.0-rc-20230519104353-b09f3180",
"version": "1.0.0-rc-20230519104627-f6fea064",
"description": "A set of utils for faster development of GraphQL tools",

@@ -11,3 +11,3 @@ "sideEffects": false,

"@types/ws": "^8.0.0",
"@graphql-tools/utils": "10.0.0-rc-20230519104353-b09f3180",
"@graphql-tools/utils": "10.0.0-rc-20230519104627-f6fea064",
"isomorphic-ws": "5.0.0",

@@ -14,0 +14,0 @@ "ws": "8.13.0",

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