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 4.2.1 to 4.2.2

7

CHANGELOG.md

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

## [4.2.2](https://github.com/enisdenjo/graphql-ws/compare/v4.2.1...v4.2.2) (2021-03-17)
### Bug Fixes
* **server:** `return` instead of `break` at switch case ends ([e9447e4](https://github.com/enisdenjo/graphql-ws/commit/e9447e45cfa572982e7fe0ffa32a113feac06b94)), closes [#140](https://github.com/enisdenjo/graphql-ws/issues/140)
## [4.2.1](https://github.com/enisdenjo/graphql-ws/compare/v4.2.0...v4.2.1) (2021-03-11)

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

7

lib/client.d.ts

@@ -56,5 +56,8 @@ /**

/**
* Should the connection be established immediately and persisted
* or after the first listener subscribed.
* Controls when should the connection be established.
*
* - `false`: Establish a connection immediately. Use `onNonLazyError` to handle errors.
* - `true`: Establish a connection on first subscribe and close on last unsubscribe. Use
* the subscription sink's `error` to handle errors.
*
* @default true

@@ -61,0 +64,0 @@ */

@@ -89,3 +89,3 @@ "use strict";

ctx.acknowledged = true;
break;
return;
}

@@ -234,3 +234,3 @@ case message_1.MessageType.Subscribe: {

delete ctx.subscriptions[id];
break;
return;
}

@@ -240,3 +240,3 @@ case message_1.MessageType.Complete: {

delete ctx.subscriptions[message.id]; // deleting the subscription means no further activity should take place
break;
return;
}

@@ -243,0 +243,0 @@ default:

{
"name": "graphql-ws",
"version": "4.2.1",
"version": "4.2.2",
"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