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
0
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.7-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2 to 1.1.0-alpha-20240705095940-3ce4d8846c1d2640ad958b9619c1a6912f2e6f10

4

cjs/index.js

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

};
return function legacyExecutor(request) {
const executor = function legacyExecutor(request) {
// additional connection params can be supplied through the "connectionParams" field in extensions.

@@ -150,3 +150,5 @@ // TODO: connection params only from the FIRST operation in lazy mode will be used (detect connectionParams changes and reconnect, too implicit?)

};
executor[Symbol.dispose] = cleanupWebsocket;
return executor;
}
exports.buildWSLegacyExecutor = buildWSLegacyExecutor;
import { print } from 'graphql';
import WebSocket from 'isomorphic-ws';
import { observableToAsyncIterable } from '@graphql-tools/utils';
import { observableToAsyncIterable, } from '@graphql-tools/utils';
export var LEGACY_WS;

@@ -65,3 +65,3 @@ (function (LEGACY_WS) {

};
return function legacyExecutor(request) {
const executor = function legacyExecutor(request) {
// additional connection params can be supplied through the "connectionParams" field in extensions.

@@ -146,2 +146,4 @@ // TODO: connection params only from the FIRST operation in lazy mode will be used (detect connectionParams changes and reconnect, too implicit?)

};
executor[Symbol.dispose] = cleanupWebsocket;
return executor;
}
{
"name": "@graphql-tools/executor-legacy-ws",
"version": "1.0.7-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2",
"version": "1.1.0-alpha-20240705095940-3ce4d8846c1d2640ad958b9619c1a6912f2e6f10",
"description": "A set of utils for faster development of GraphQL tools",

@@ -10,7 +10,7 @@ "sideEffects": false,

"dependencies": {
"@graphql-tools/utils": "10.3.0-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2",
"@graphql-tools/utils": "10.3.0-alpha-20240705095940-3ce4d8846c1d2640ad958b9619c1a6912f2e6f10",
"@types/ws": "^8.0.0",
"isomorphic-ws": "^5.0.0",
"tslib": "^2.4.0",
"ws": "^8.15.0"
"ws": "^8.17.1"
},

@@ -17,0 +17,0 @@ "repository": {

/// <reference types="ws" />
import WebSocket from 'isomorphic-ws';
import { Executor } from '@graphql-tools/utils';
import { DisposableExecutor } from '@graphql-tools/utils';
export declare enum LEGACY_WS {

@@ -20,2 +20,2 @@ CONNECTION_INIT = "connection_init",

}
export declare function buildWSLegacyExecutor(subscriptionsEndpoint: string, WebSocketImpl: typeof WebSocket, options?: LegacyWSExecutorOpts): Executor;
export declare function buildWSLegacyExecutor(subscriptionsEndpoint: string, WebSocketImpl: typeof WebSocket, options?: LegacyWSExecutorOpts): DisposableExecutor;

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