Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nexus

Package Overview
Dependencies
Maintainers
1
Versions
395
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nexus - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

8

lib/client/client.js

@@ -178,4 +178,10 @@ 'use strict';

var document = this.documents[id];
if (document) return document;
// If there's already a document open, return it. But make sure it wasn't in
// the process of closing, otherwise its future messages will be dropped.
if (document) {
document.closing = false;
return document;
}
var types = this.types;

@@ -182,0 +188,0 @@

22

lib/client/document.js

@@ -84,2 +84,3 @@ 'use strict';

_this.inflight = null;
_this.closing = false;
_this.closed = false;

@@ -107,11 +108,22 @@ _this.subscribed = false;

_context.next = 3;
return this.settle();
this.closing = true;
this.emit('closing');
case 3:
_context.next = 5;
return this.unsubscribe();
return this.settle();
case 5:
_context.next = 7;
return this.unsubscribe();
case 7:
if (this.closing) {
_context.next = 9;
break;
}
return _context.abrupt('return');
case 9:
this.client.removeListener('disconnect', this.onClientDisconnect);

@@ -121,3 +133,3 @@ this.closed = true;

case 8:
case 12:
case 'end':

@@ -124,0 +136,0 @@ return _context.stop();

{
"name": "nexus",
"version": "0.4.1",
"version": "0.4.2",
"main": "./lib/index.js",

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

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