Socket
Socket
Sign inDemoInstall

graphql-ws

Package Overview
Dependencies
1
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.14.0 to 5.14.1

6

lib/server.js

@@ -76,2 +76,6 @@ "use strict";

return socket.close(common_1.CloseCode.Forbidden, 'Forbidden');
// we should acknowledge before send to avoid race conditions (like those exampled in https://github.com/enisdenjo/graphql-ws/issues/501)
// even if the send fails/throws, the connection should be closed because its malfunctioning
// @ts-expect-error: I can write
ctx.acknowledged = true;
await socket.send((0, common_1.stringifyMessage)((0, utils_1.isObject)(permittedOrPayload)

@@ -86,4 +90,2 @@ ? {

}, replacer));
// @ts-expect-error: I can write
ctx.acknowledged = true;
return;

@@ -90,0 +92,0 @@ }

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

@@ -5,0 +5,0 @@ "keywords": [

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

[![GraphQL Conf 2023](/GraphQLConf-2023-Banner.png)](https://graphql.org/conf/)
<div align="center">

@@ -2,0 +4,0 @@ <br />

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc