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

manymerge

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

manymerge - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

dist/index.d.ts

@@ -14,3 +14,3 @@ /// <reference path="../@types/automerge/index.d.ts" />

store: AsyncDocStore;
sendMsg: (msg: Message, peerId: string) => void;
sendMsg: (peerId: string, msg: Message) => void;
});

@@ -17,0 +17,0 @@ addPeer(peerId: string): void;

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

this.updateOurClock(msg.docId, msg.clock);
this._sendMsg(msg, peerId);
this._sendMsg(peerId, msg);
}

@@ -79,0 +79,0 @@ updateOurClock(docId, clock) {

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

expect(calls.length).toBe(1);
const msg = calls[0][0];
const msg = calls[0][1];
// Appears to be a legit message

@@ -51,3 +51,3 @@ expect(Object.keys(msg)).toEqual(["docId", "clock", "changes"]);

expect(calls.length).toBe(1);
const msg = calls[0][0];
const msg = calls[0][1];
// We have some changes

@@ -54,0 +54,0 @@ expect(msg.changes).toBeTruthy();

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

conn.sendMsg(conn.createMsg(expectedDocId, immutable_1.fromJS(expectedClock)));
expect(sendMsg.mock.calls[0][0]).toEqual({
expect(sendMsg.mock.calls[0][1]).toEqual({
clock: expectedClock,

@@ -36,3 +36,3 @@ docId: expectedDocId

conn.createMsg(expectedDocId, immutable_1.fromJS(expectedClock), expectedChanges));
expect(sendMsg.mock.calls[1][0]).toEqual({
expect(sendMsg.mock.calls[1][1]).toEqual({
clock: expectedClock,

@@ -56,3 +56,3 @@ docId: expectedDocId,

conn.sendMsg(conn.createMsg(expectedDocId, immutable_1.fromJS(expectedClock)));
expect(sendMsg.mock.calls[0][0]).toEqual({
expect(sendMsg.mock.calls[0][1]).toEqual({
clock: expectedClock,

@@ -67,3 +67,3 @@ docId: expectedDocId

conn.createMsg(expectedDocId, immutable_1.fromJS(expectedClock), expectedChanges));
expect(sendMsg.mock.calls[1][0]).toEqual({
expect(sendMsg.mock.calls[1][1]).toEqual({
clock: expectedClock,

@@ -70,0 +70,0 @@ docId: expectedDocId,

{
"name": "manymerge",
"version": "1.0.0",
"version": "1.1.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "author": "Evan Conrad",

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