Socket
Socket
Sign inDemoInstall

@graphql-tools/executor-graphql-ws

Package Overview
Dependencies
Maintainers
3
Versions
147
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.0 to 1.1.1-rc-20231027100848-22c58f5c

4

cjs/index.js

@@ -5,6 +5,6 @@ "use strict";

const tslib_1 = require("tslib");
const utils_1 = require("@graphql-tools/utils");
const graphql_1 = require("graphql");
const graphql_ws_1 = require("graphql-ws");
const isomorphic_ws_1 = tslib_1.__importDefault(require("isomorphic-ws"));
const utils_1 = require("@graphql-tools/utils");
function isClient(client) {

@@ -21,2 +21,3 @@ return 'subscribe' in client;

graphqlWSClient = (0, graphql_ws_1.createClient)({
...clientOptionsOrClient,
webSocketImpl: isomorphic_ws_1.default,

@@ -30,3 +31,2 @@ lazy: true,

},
...clientOptionsOrClient,
});

@@ -33,0 +33,0 @@ if (clientOptionsOrClient.onClient) {

@@ -1,5 +0,5 @@

import { getOperationASTFromRequest } from '@graphql-tools/utils';
import { print } from 'graphql';
import { createClient } from 'graphql-ws';
import WebSocket from 'isomorphic-ws';
import { getOperationASTFromRequest, } from '@graphql-tools/utils';
function isClient(client) {

@@ -16,2 +16,3 @@ return 'subscribe' in client;

graphqlWSClient = createClient({
...clientOptionsOrClient,
webSocketImpl: WebSocket,

@@ -25,3 +26,2 @@ lazy: true,

},
...clientOptionsOrClient,
});

@@ -28,0 +28,0 @@ if (clientOptionsOrClient.onClient) {

{
"name": "@graphql-tools/executor-graphql-ws",
"version": "1.1.0",
"version": "1.1.1-rc-20231027100848-22c58f5c",
"description": "A set of utils for faster development of GraphQL tools",

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

"dependencies": {
"@graphql-tools/utils": "^10.0.2",
"@types/ws": "^8.0.0",
"ws": "^8.13.0",
"graphql-ws": "^5.14.0",
"isomorphic-ws": "^5.0.0",
"@graphql-tools/utils": "^10.0.2",
"graphql-ws": "^5.14.0",
"tslib": "^2.4.0"
"tslib": "^2.4.0",
"ws": "^8.13.0"
},

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

@@ -0,3 +1,3 @@

import { Client, ClientOptions } from 'graphql-ws';
import { Executor } from '@graphql-tools/utils';
import { Client, ClientOptions } from 'graphql-ws';
interface GraphQLWSExecutorOptions extends ClientOptions {

@@ -4,0 +4,0 @@ onClient?: (client: Client) => void;

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