Comparing version 1.0.0 to 1.1.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package