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

graphql-ws

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-ws - npm Package Compare versions

Comparing version 6.0.0-alpha-83f7b9e8a300edebea45c3ec6d5272e766cf2829 to 6.0.0-alpha-848715bb93370be156ebb71af2d3ca6c215a8eae

dist/common-C12RQca2.js

7

dist/client.js

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

import { G as GRAPHQL_TRANSPORT_WS_PROTOCOL, s as stringifyMessage, M as MessageType, C as CloseCode, l as limitCloseReason, p as parseMessage, a as isObject } from './common-C3FuvWlV.js';
export { D as DEPRECATED_GRAPHQL_WS_PROTOCOL, i as isMessage, v as validateMessage } from './common-C3FuvWlV.js';
import { G as GRAPHQL_TRANSPORT_WS_PROTOCOL, s as stringifyMessage, M as MessageType, C as CloseCode, l as limitCloseReason, p as parseMessage, i as isObject } from './common-C12RQca2.js';
export { D as DEPRECATED_GRAPHQL_WS_PROTOCOL, v as validateMessage } from './common-C12RQca2.js';
import 'graphql';

@@ -29,3 +30,2 @@ function createClient(options) {

shouldRetry = isLikeCloseEvent,
isFatalConnectionProblem,
on,

@@ -304,3 +304,2 @@ webSocketImpl,

if (!shouldRetry(errOrCloseEvent)) throw errOrCloseEvent;
if (isFatalConnectionProblem?.(errOrCloseEvent)) throw errOrCloseEvent;
return retrying = true;

@@ -307,0 +306,0 @@ }

import { ExecutionResult } from 'graphql';
import { C as ConnectionAckMessage, P as PingMessage, a as PongMessage, M as Message, b as ConnectionInitMessage, S as SubscribePayload, I as ID, J as JSONMessageReviver, c as JSONMessageReplacer, D as Disposable, d as Sink } from './server-CgaLfd0V.js';
export { f as CloseCode, k as CompleteMessage, q as Context, e as DEPRECATED_GRAPHQL_WS_PROTOCOL, j as ErrorMessage, i as ExecutionPatchResult, E as ExecutionResult, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, m as GraphQLExecutionContextValue, g as MessageType, N as NextMessage, O as OperationResult, o as Server, n as ServerOptions, h as SubscribeMessage, W as WebSocket, t as handleProtocols, l as isMessage, r as makeServer, p as parseMessage, s as stringifyMessage, v as validateMessage } from './server-CgaLfd0V.js';
import { C as ConnectionAckMessage, P as PingMessage, a as PongMessage, M as Message, b as ConnectionInitMessage, S as SubscribePayload, I as ID, J as JSONMessageReviver, c as JSONMessageReplacer, D as Disposable, d as Sink } from './server-C-BMQSCs.js';
export { f as CloseCode, k as CompleteMessage, o as Context, e as DEPRECATED_GRAPHQL_WS_PROTOCOL, j as ErrorMessage, i as ExecutionPatchResult, E as ExecutionResult, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, l as GraphQLExecutionContextValue, g as MessageType, N as NextMessage, O as OperationResult, n as Server, m as ServerOptions, h as SubscribeMessage, W as WebSocket, r as handleProtocols, q as makeServer, p as parseMessage, s as stringifyMessage, v as validateMessage } from './server-C-BMQSCs.js';

@@ -300,20 +300,2 @@ /**

/**
* @deprecated Use `shouldRetry` instead.
*
* Check if the close event or connection error is fatal. If you return `true`,
* the client will fail immediately without additional retries; however, if you
* return `false`, the client will keep retrying until the `retryAttempts` have
* been exceeded.
*
* The argument is either a WebSocket `CloseEvent` or an error thrown during
* the connection phase.
*
* Beware, the library classifies a few close events as fatal regardless of
* what is returned. They are listed in the documentation of the `retryAttempts`
* option.
*
* @default 'Any non-`CloseEvent`'
*/
isFatalConnectionProblem?: (errOrCloseEvent: unknown) => boolean;
/**
* Register listeners before initialising the client. This way

@@ -320,0 +302,0 @@ * you can ensure to catch all client relevant emitted events.

export { TerminatedCloseEvent, createClient } from './client.js';
export { h as handleProtocols, m as makeServer } from './server-C2VkalQ-.js';
export { C as CloseCode, D as DEPRECATED_GRAPHQL_WS_PROTOCOL, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, M as MessageType, i as isMessage, p as parseMessage, s as stringifyMessage, v as validateMessage } from './common-C3FuvWlV.js';
export { h as handleProtocols, m as makeServer } from './server-B1h4gMsT.js';
export { C as CloseCode, D as DEPRECATED_GRAPHQL_WS_PROTOCOL, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, M as MessageType, p as parseMessage, s as stringifyMessage, v as validateMessage } from './common-C12RQca2.js';
import 'graphql';
import { WebSocket, WebsocketHandler } from '@fastify/websocket';
import { FastifyRequest } from 'fastify';
import { b as ConnectionInitMessage, n as ServerOptions } from '../../server-CgaLfd0V.js';
import { b as ConnectionInitMessage, m as ServerOptions } from '../../server-C-BMQSCs.js';
import 'graphql';

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

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

import { C as CloseCode, l as limitCloseReason, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../../common-C3FuvWlV.js';
import { h as handleProtocols, m as makeServer } from '../../server-C2VkalQ-.js';
import { C as CloseCode, l as limitCloseReason, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../../common-C12RQca2.js';
import { h as handleProtocols, m as makeServer } from '../../server-B1h4gMsT.js';
import 'graphql';

@@ -4,0 +4,0 @@

import { ServerWebSocket, WebSocketHandler } from 'bun';
import { b as ConnectionInitMessage, n as ServerOptions } from '../server-CgaLfd0V.js';
export { t as handleProtocols } from '../server-CgaLfd0V.js';
import { b as ConnectionInitMessage, m as ServerOptions } from '../server-C-BMQSCs.js';
export { r as handleProtocols } from '../server-C-BMQSCs.js';
import 'graphql';

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

@@ -1,4 +0,4 @@

import { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-C3FuvWlV.js';
import { m as makeServer } from '../server-C2VkalQ-.js';
export { h as handleProtocols } from '../server-C2VkalQ-.js';
import { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-C12RQca2.js';
import { m as makeServer } from '../server-B1h4gMsT.js';
export { h as handleProtocols } from '../server-B1h4gMsT.js';
import 'graphql';

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

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

import { b as ConnectionInitMessage, n as ServerOptions } from '../server-CgaLfd0V.js';
export { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../server-CgaLfd0V.js';
import { b as ConnectionInitMessage, m as ServerOptions } from '../server-C-BMQSCs.js';
export { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../server-C-BMQSCs.js';
import 'graphql';

@@ -4,0 +4,0 @@

@@ -1,4 +0,4 @@

import { C as CloseCode, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../common-C3FuvWlV.js';
export { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-C3FuvWlV.js';
import { m as makeServer } from '../server-C2VkalQ-.js';
import { C as CloseCode, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../common-C12RQca2.js';
export { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-C12RQca2.js';
import { m as makeServer } from '../server-B1h4gMsT.js';
import 'graphql';

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

import http__default from 'http';
import * as uWS from 'uWebSockets.js';
import { b as ConnectionInitMessage, n as ServerOptions } from '../server-CgaLfd0V.js';
import { b as ConnectionInitMessage, m as ServerOptions } from '../server-C-BMQSCs.js';
import 'graphql';

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

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

import { C as CloseCode, l as limitCloseReason } from '../common-C3FuvWlV.js';
import { h as handleProtocols, m as makeServer } from '../server-C2VkalQ-.js';
import { C as CloseCode, l as limitCloseReason } from '../common-C12RQca2.js';
import { h as handleProtocols, m as makeServer } from '../server-B1h4gMsT.js';
import 'graphql';

@@ -4,0 +4,0 @@

import * as http from 'http';
import WebSocket from 'ws';
export { default as WebSocket } from 'ws';
import { b as ConnectionInitMessage, n as ServerOptions, D as Disposable } from '../server-CgaLfd0V.js';
import { b as ConnectionInitMessage, m as ServerOptions, D as Disposable } from '../server-C-BMQSCs.js';
import 'graphql';

@@ -6,0 +6,0 @@

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

import { C as CloseCode, l as limitCloseReason, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../common-C3FuvWlV.js';
import { h as handleProtocols, m as makeServer } from '../server-C2VkalQ-.js';
import { C as CloseCode, l as limitCloseReason, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../common-C12RQca2.js';
import { h as handleProtocols, m as makeServer } from '../server-B1h4gMsT.js';
import 'graphql';

@@ -4,0 +4,0 @@

{
"name": "graphql-ws",
"version": "6.0.0-alpha-83f7b9e8a300edebea45c3ec6d5272e766cf2829",
"version": "6.0.0-alpha-848715bb93370be156ebb71af2d3ca6c215a8eae",
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client",

@@ -80,15 +80,13 @@ "type": "module",

"scripts": {
"build": "pkgroll --clean-dist",
"build:umd": "rollup --bundleConfigAsCjs --config rollup.config.ts --configPlugin typescript && gzip umd/graphql-ws.min.js -c > umd/graphql-ws.min.js.gz",
"prepack": "yarn build",
"changeset": "changeset",
"check:format": "prettier --check .",
"format": "yarn check:format --write",
"check:types": "tsc --noEmit",
"format": "yarn check:format --write",
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.js",
"postbuild": "node scripts/fix-declaration-directives.js",
"test": "vitest"
"test": "vitest",
"build": "pkgroll --clean-dist && rollup -c rollup.config.js && gzip umd/graphql-ws.min.js -c > umd/graphql-ws.min.js.gz",
"prepack": "yarn build",
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.js"
},
"peerDependencies": {
"graphql": "^15.9.0 || ^16.9.0"
"graphql": "^15.10.1 || ^16.10.0"
},

@@ -101,11 +99,9 @@ "devDependencies": {

"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@tsconfig/node20": "^20.1.4",
"@tsconfig/strictest": "^2.0.5",
"@types/glob": "^8.1.0",
"@types/ws": "^8.5.10",
"@types/ws": "^8.5.13",
"bun-types": "^1.1.4",
"fastify": "^5.2.1",
"glob": "^10.3.12",
"graphql": "^16.9.0",
"graphql": "^16.10.0",
"jsdom": "^25.0.1",

@@ -115,13 +111,10 @@ "pkgroll": "patch:pkgroll@npm%3A2.6.1#~/.yarn/patches/pkgroll-npm-2.6.1-193e78e84e.patch",

"prettier-plugin-sh": "^0.14.0",
"replacestream": "^4.0.3",
"rollup": "^4.14.3",
"subscriptions-transport-ws": "^0.11.0",
"tslib": "^2.6.2",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "^5.4.5",
"rollup": "^4.30.1",
"typedoc": "^0.27.6",
"typedoc-plugin-markdown": "^4.4.1",
"typescript": "^5.7.3",
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.51.0",
"vitest": "^2.1.8",
"ws": "8.12.0"
"ws": "^8.18.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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