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

@graphql-tools/executor-graphql-ws

Package Overview
Dependencies
Maintainers
0
Versions
437
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.1.3-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2 to 1.2.0-rc-20240705094201-3bac867cbb5dc177281e14fbdbfa80f1f73301af

6

cjs/index.js

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

}
return function GraphQLWSExecutor(executionRequest) {
const executor = function GraphQLWSExecutor(executionRequest) {
const { document, variables, operationName, extensions, operationType = (0, utils_1.getOperationASTFromRequest)(executionRequest).operation, } = executionRequest;

@@ -54,3 +54,7 @@ // additional connection params can be supplied through the "connectionParams" field in extensions.

};
executor[Symbol.asyncDispose] = function disposeWS() {
return graphqlWSClient.dispose();
};
return executor;
}
exports.buildGraphQLWSExecutor = buildGraphQLWSExecutor;

@@ -30,3 +30,3 @@ import { print } from 'graphql';

}
return function GraphQLWSExecutor(executionRequest) {
const executor = function GraphQLWSExecutor(executionRequest) {
const { document, variables, operationName, extensions, operationType = getOperationASTFromRequest(executionRequest).operation, } = executionRequest;

@@ -50,2 +50,6 @@ // additional connection params can be supplied through the "connectionParams" field in extensions.

};
executor[Symbol.asyncDispose] = function disposeWS() {
return graphqlWSClient.dispose();
};
return executor;
}

6

package.json
{
"name": "@graphql-tools/executor-graphql-ws",
"version": "1.1.3-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2",
"version": "1.2.0-rc-20240705094201-3bac867cbb5dc177281e14fbdbfa80f1f73301af",
"description": "A set of utils for faster development of GraphQL tools",

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

"dependencies": {
"@graphql-tools/utils": "10.3.0-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2",
"@graphql-tools/utils": "10.3.0-rc-20240705094201-3bac867cbb5dc177281e14fbdbfa80f1f73301af",
"@types/ws": "^8.0.0",

@@ -16,3 +16,3 @@ "graphql-ws": "^5.14.0",

"tslib": "^2.4.0",
"ws": "^8.13.0"
"ws": "^8.17.1"
},

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

import { Client, ClientOptions } from 'graphql-ws';
import { Executor } from '@graphql-tools/utils';
import { DisposableExecutor } from '@graphql-tools/utils';
interface GraphQLWSExecutorOptions extends ClientOptions {
onClient?: (client: Client) => void;
}
export declare function buildGraphQLWSExecutor(clientOptionsOrClient: GraphQLWSExecutorOptions | Client): Executor;
export declare function buildGraphQLWSExecutor(clientOptionsOrClient: GraphQLWSExecutorOptions | Client): DisposableExecutor;
export {};

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