Socket
Socket
Sign inDemoInstall

graphql-ws

Package Overview
Dependencies
Maintainers
1
Versions
103
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 5.1.0 to 5.1.1

7

CHANGELOG.md

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

## [5.1.1](https://github.com/enisdenjo/graphql-ws/compare/v5.1.0...v5.1.1) (2021-06-09)
### Bug Fixes
* **server:** Return ping's payload through the response pong ([47730a9](https://github.com/enisdenjo/graphql-ws/commit/47730a9cc735b8e309656a3fb8b9e5b0e05a304a)), closes [#117](https://github.com/enisdenjo/graphql-ws/issues/117)
# [5.1.0](https://github.com/enisdenjo/graphql-ws/compare/v5.0.0...v5.1.0) (2021-06-09)

@@ -2,0 +9,0 @@

7

lib/server.js

@@ -90,3 +90,8 @@ "use strict";

case common_1.MessageType.Ping: {
await socket.send(common_1.stringifyMessage({ type: common_1.MessageType.Pong }));
await socket.send(common_1.stringifyMessage(message.payload
? { type: common_1.MessageType.Pong, payload: message.payload }
: {
type: common_1.MessageType.Pong,
// payload is completely absent if not provided
}));
return;

@@ -93,0 +98,0 @@ }

2

package.json
{
"name": "graphql-ws",
"version": "5.1.0",
"version": "5.1.1",
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client",

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

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