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
163
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-68721ae2fd92e635f29413f1b2e9a6c7c67df1d8 to 6.0.0-alpha-68a86924da7a4cbfa4b7c0fef8c158a6a46f57d2

dist/server-BN3ZJY-a.js

2

dist/index.d.ts
export { Client, ClientOptions, Event, EventClosed, EventClosedListener, EventConnected, EventConnectedListener, EventConnecting, EventConnectingListener, EventError, EventErrorListener, EventListener, EventMessage, EventMessageListener, EventOpened, EventOpenedListener, EventPing, EventPingListener, EventPong, EventPongListener, TerminatedCloseEvent, createClient } from './client.js';
export { C as Context, G as GraphQLExecutionContextValue, O as OperationResult, a as Server, S as ServerOptions, W as WebSocket, b as areGraphQLErrors, h as handleProtocols, m as makeServer } from './server-Bi7EJiHd.js';
export { C as Context, G as GraphQLExecutionContextValue, O as OperationResult, a as Server, S as ServerOptions, W as WebSocket, b as areGraphQLErrors, h as handleProtocols, m as makeServer } from './server-CK311QSe.js';
export { C as CloseCode, j as CompleteMessage, c as ConnectionAckMessage, b as ConnectionInitMessage, D as DEPRECATED_GRAPHQL_WS_PROTOCOL, a as Disposable, i as ErrorMessage, g as ExecutionPatchResult, E as ExecutionResult, h as FormattedExecutionPatchResult, F as FormattedExecutionResult, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, I as ID, l as JSONMessageReplacer, J as JSONMessageReviver, k as Message, M as MessageType, N as NextMessage, P as PingMessage, d as PongMessage, S as Sink, e as SubscribeMessage, f as SubscribePayload, p as parseMessage, s as stringifyMessage, v as validateMessage } from './common-Uq_q7l8w.js';
import 'graphql';
export { TerminatedCloseEvent, createClient } from './client.js';
export { a as areGraphQLErrors, h as handleProtocols, m as makeServer } from './server-Cbqz0xD0.js';
export { a as areGraphQLErrors, h as handleProtocols, m as makeServer } from './server-BN3ZJY-a.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-CGW11Fyb.js';
import 'graphql';
import { WebSocket, WebsocketHandler } from '@fastify/websocket';
import { FastifyRequest } from 'fastify';
import { b as ConnectionInitMessage } from '../../common-Uq_q7l8w.js';
import { S as ServerOptions } from '../../server-Bi7EJiHd.js';
import { S as ServerOptions } from '../../server-CK311QSe.js';
import 'graphql';

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

import { C as CloseCode, l as limitCloseReason, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../../common-CGW11Fyb.js';
import { h as handleProtocols, m as makeServer } from '../../server-Cbqz0xD0.js';
import { h as handleProtocols, m as makeServer } from '../../server-BN3ZJY-a.js';
import 'graphql';

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

import { ServerWebSocket, WebSocketHandler } from 'bun';
import { b as ConnectionInitMessage } from '../common-Uq_q7l8w.js';
import { S as ServerOptions } from '../server-Bi7EJiHd.js';
export { h as handleProtocols } from '../server-Bi7EJiHd.js';
import { S as ServerOptions } from '../server-CK311QSe.js';
export { h as handleProtocols } from '../server-CK311QSe.js';
import 'graphql';

@@ -29,3 +29,3 @@

* ```ts
* import { makeHandler, handleProtocols } from 'graphql-ws/lib/use/lib/bun';
* import { makeHandler, handleProtocols } from 'graphql-ws/use/bun';
* import { schema } from './my-schema';

@@ -32,0 +32,0 @@ *

import { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-CGW11Fyb.js';
import { m as makeServer } from '../server-Cbqz0xD0.js';
export { h as handleProtocols } from '../server-Cbqz0xD0.js';
import { m as makeServer } from '../server-BN3ZJY-a.js';
export { h as handleProtocols } from '../server-BN3ZJY-a.js';
import 'graphql';

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

import { b as ConnectionInitMessage } from '../common-Uq_q7l8w.js';
export { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-Uq_q7l8w.js';
import { S as ServerOptions } from '../server-Bi7EJiHd.js';
import { S as ServerOptions } from '../server-CK311QSe.js';
import 'graphql';

@@ -31,3 +31,3 @@

* GRAPHQL_TRANSPORT_WS_PROTOCOL,
* } from 'https://esm.sh/graphql-ws/lib/use/deno';
* } from 'https://esm.sh/graphql-ws/use/deno';
* import { schema } from './my-schema.ts';

@@ -34,0 +34,0 @@ *

import { C as CloseCode, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../common-CGW11Fyb.js';
export { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-CGW11Fyb.js';
import { m as makeServer } from '../server-Cbqz0xD0.js';
import { m as makeServer } from '../server-BN3ZJY-a.js';
import 'graphql';

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

import http__default from 'http';
import * as uWS from 'uWebSockets.js';
import { b as ConnectionInitMessage } from '../common-Uq_q7l8w.js';
import { S as ServerOptions } from '../server-Bi7EJiHd.js';
import { S as ServerOptions } from '../server-CK311QSe.js';
import 'graphql';

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

import { C as CloseCode, l as limitCloseReason } from '../common-CGW11Fyb.js';
import { h as handleProtocols, m as makeServer } from '../server-Cbqz0xD0.js';
import { h as handleProtocols, m as makeServer } from '../server-BN3ZJY-a.js';
import 'graphql';

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

@@ -5,3 +5,3 @@ import * as http from 'http';

import { b as ConnectionInitMessage, a as Disposable } from '../common-Uq_q7l8w.js';
import { S as ServerOptions } from '../server-Bi7EJiHd.js';
import { S as ServerOptions } from '../server-CK311QSe.js';
import 'graphql';

@@ -8,0 +8,0 @@

import { C as CloseCode, l as limitCloseReason, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../common-CGW11Fyb.js';
import { h as handleProtocols, m as makeServer } from '../server-Cbqz0xD0.js';
import { h as handleProtocols, m as makeServer } from '../server-BN3ZJY-a.js';
import 'graphql';

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

{
"name": "graphql-ws",
"version": "6.0.0-alpha-68721ae2fd92e635f29413f1b2e9a6c7c67df1d8",
"version": "6.0.0-alpha-68a86924da7a4cbfa4b7c0fef8c158a6a46f57d2",
"type": "module",
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client",
"type": "module",
"repository": {

@@ -60,5 +60,2 @@ "type": "git",

"types": "./dist/index.d.ts",
"sideEffects": [
"umd/*"
],
"files": [

@@ -87,14 +84,28 @@ "LICENSE.md",

"scripts": {
"build": "pkgroll --clean-dist && rollup -c rollup.config.js && gzip umd/graphql-ws.min.js -c > umd/graphql-ws.min.js.gz",
"changeset": "changeset",
"check:format": "prettier --check .",
"check:types": "tsc --noEmit",
"format": "yarn check:format --write",
"check:types": "tsc --noEmit",
"test": "vitest",
"build": "pkgroll --clean-dist && rollup -c rollup.config.js && gzip umd/graphql-ws.min.js -c > umd/graphql-ws.min.js.gz",
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.js",
"prepack": "yarn build",
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.js"
"test": "vitest"
},
"peerDependencies": {
"graphql": "^15.10.1 || ^16.10.0"
"@fastify/websocket": "^10 || ^11",
"graphql": "^15.10.1 || ^16",
"uWebSockets.js": "^20",
"ws": "^8"
},
"peerDependenciesMeta": {
"@fastify/websocket": {
"optional": true
},
"uWebSockets.js": {
"optional": true
},
"ws": {
"optional": true
}
},
"devDependencies": {

@@ -116,2 +127,3 @@ "@changesets/changelog-github": "^0.5.0",

"prettier": "^3.4.2",
"prettier-plugin-pkg": "^0.18.1",
"prettier-plugin-sh": "^0.14.0",

@@ -122,6 +134,9 @@ "rollup": "^4.30.1",

"typescript": "^5.7.3",
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.51.0",
"uWebSockets.js": "uNetworking/uWebSockets.js#semver:^20.51.0",
"vitest": "^2.1.8",
"ws": "^8.18.0"
}
},
"sideEffects": [
"umd/*"
]
}

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

[![CI](https://github.com/enisdenjo/graphql-ws/workflows/CI/badge.svg)](https://github.com/enisdenjo/graphql-ws/actions?query=workflow%3A%22CI%22) [![graphql-ws](https://img.shields.io/npm/v/graphql-ws.svg?label=graphql-ws&logo=npm)](https://www.npmjs.com/package/graphql-ws)
[![graphql-ws](https://img.shields.io/npm/v/graphql-ws.svg?label=graphql-ws&logo=npm)](https://www.npmjs.com/package/graphql-ws)

@@ -11,0 +11,0 @@ <i>Use [Server-Sent Events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) instead? Check out <b>[graphql-sse](https://github.com/enisdenjo/graphql-sse)</b>!</i>

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