Socket
Socket
Sign inDemoInstall

graphql-ws

Package Overview
Dependencies
0
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.4.0 to 5.4.1

3

lib/client.d.ts

@@ -6,2 +6,3 @@ /**

*/
import { ExecutionResult } from 'graphql';
import { Sink, ID, Disposable, Message, ConnectionInitMessage, ConnectionAckMessage, PingMessage, PongMessage, SubscribePayload, JSONMessageReviver, JSONMessageReplacer } from './common';

@@ -331,3 +332,3 @@ /** This file is the entry point for browsers, re-export common elements. */

*/
subscribe<T = unknown>(payload: SubscribePayload, sink: Sink<T>): () => void;
subscribe<Data = Record<string, unknown>, Extensions = unknown>(payload: SubscribePayload, sink: Sink<ExecutionResult<Data, Extensions>>): () => void;
}

@@ -334,0 +335,0 @@ /**

@@ -6,3 +6,3 @@ /**

*/
import { OperationTypeNode, GraphQLSchema, ExecutionArgs, GraphQLError, SubscriptionArgs, ExecutionResult, DocumentNode, ValidationRule, TypeInfo } from 'graphql';
import { OperationTypeNode, GraphQLSchema, ExecutionArgs, validate as graphqlValidate, GraphQLError, SubscriptionArgs, ExecutionResult } from 'graphql';
import { ID, SubscribeMessage, NextMessage, ErrorMessage, CompleteMessage, JSONMessageReplacer, JSONMessageReviver, PingMessage, PongMessage } from './common';

@@ -86,5 +86,3 @@ /** @category Server */

*/
validate?: (schema: GraphQLSchema, documentAST: DocumentNode, rules?: ReadonlyArray<ValidationRule>, typeInfo?: TypeInfo, options?: {
maxErrors?: number;
}) => ReadonlyArray<GraphQLError>;
validate?: typeof graphqlValidate;
/**

@@ -91,0 +89,0 @@ * Is the `execute` function from GraphQL which is

{
"name": "graphql-ws",
"version": "5.4.0",
"version": "5.4.1",
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client",

@@ -79,3 +79,3 @@ "keywords": [

"peerDependencies": {
"graphql": ">=0.11 <=15"
"graphql": ">=0.11 <=16"
},

@@ -95,4 +95,4 @@ "devDependencies": {

"@types/ws": "^7.4.7",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"babel-jest": "^27.0.6",

@@ -105,9 +105,9 @@ "eslint": "^7.32.0",

"glob": "^7.1.7",
"graphql": "^15.5.1",
"graphql": "^16.0.0-rc.1",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"replacestream": "^4.0.3",
"rollup": "^2.56.2",
"rollup": "^2.56.3",
"rollup-plugin-terser": "^7.0.2",
"semantic-release": "^17.4.5",
"semantic-release": "^17.4.6",
"tslib": "^2.3.1",

@@ -114,0 +114,0 @@ "typedoc": "^0.21.6",

@@ -129,3 +129,3 @@ <div align="center">

const client = createClient({
url: 'ws://welcomer.com:4000/graphql',
url: 'ws://localhost:4000/graphql',
});

@@ -132,0 +132,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc