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

@crypticat/core

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crypticat/core - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

1

lib/client.d.ts

@@ -25,3 +25,2 @@ /// <reference types="node" />

private linkState;
private linkedNextYet;
private nick;

@@ -28,0 +27,0 @@ private ws?;

8

lib/client.js

@@ -29,3 +29,2 @@ "use strict";

};
this.linkedNextYet = false;
this.nick = null;

@@ -76,4 +75,3 @@ }

const dir = action === 'PREV_LINK' ? 'prev' : 'next';
if (action === 'NEXT_LINK' && !this.linkedNextYet) {
this.linkedNextYet = true;
if (action === 'NEXT_LINK' && !this.linkState.next) {
this.emit('connect', payload.uid, (_a = payload.nick) !== null && _a !== void 0 ? _a : null);

@@ -85,4 +83,3 @@ this.sendEncrypted('prev', {

}
else if (this.linkedNextYet) {
console.log('DISCONNECTED', dir);
else if (this.linkState.next) {
lib_1.assertDefined(this.linkState[dir]);

@@ -173,3 +170,2 @@ this.emit('disconnect', (_b = this.linkState[dir]) === null || _b === void 0 ? void 0 : _b.uid, (_d = (_c = this.linkState[dir]) === null || _c === void 0 ? void 0 : _c.nick) !== null && _d !== void 0 ? _d : null);

this.linkState.prev = null;
this.linkedNextYet = false;
yield lib_1.waitFor(this.ws, 'ROOM_READY');

@@ -176,0 +172,0 @@ });

{
"name": "@crypticat/core",
"version": "0.2.5",
"version": "0.2.6",
"description": "Crypticat's core client and server implementation",

@@ -5,0 +5,0 @@ "author": "Kognise <felix.mattick@gmail.com>",

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