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

@daaku/kombat

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daaku/kombat - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

11

lib/index.js

@@ -9,9 +9,2 @@ "use strict";

const kClock = 'clock';
class DuplicateNodeError extends Error {
constructor(nodeID) {
super();
this.type = 'DuplicateNodeError';
this.message = `duplicate node identifier: ${nodeID}`;
}
}
class ClockDriftError extends Error {

@@ -194,6 +187,2 @@ constructor(context) {

const now = Date.now();
// prevent accidental usage where we recv our own timestamp.
if (ts.nodeID === this.timestamp.nodeID) {
throw new DuplicateNodeError(ts.nodeID);
}
// TODO: again, why is clock drift an issue? why can't we accept this?

@@ -200,0 +189,0 @@ if (ts.millis - now > this.maxDriftMS) {

2

package.json
{
"name": "@daaku/kombat",
"author": "Naitik Shah <n@daaku.org>",
"version": "0.1.3",
"version": "0.1.4",
"description": "Infrastructure for CRDT powered applications.",

@@ -6,0 +6,0 @@ "repository": "git@github.com:daaku/kombat",

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