Comparing version 2.0.4 to 2.1.0
@@ -27,2 +27,6 @@ "use strict"; | ||
ourDoc = automerge_1.applyChanges(doc, msg.changes); | ||
// We broadcast here for the other members of the hub | ||
this.broadcastMsg({ | ||
clock: automerge_clocks_1.getClock(ourDoc) | ||
}); | ||
} | ||
@@ -29,0 +33,0 @@ // 2. If we have any changes to let them know about, |
@@ -27,3 +27,4 @@ "use strict"; | ||
expect(hubSendMsg.mock.calls.length).toBe(0); | ||
expect(hubBroadcastMsg.mock.calls.length).toBe(0); | ||
// We should expect to broadcast our changes to other peers | ||
expect(hubBroadcastMsg.mock.calls.length).toBe(1); | ||
// We've stored this peer's current state | ||
@@ -30,0 +31,0 @@ expect(hub._theirClocks.get("my-peer")).toEqual(automerge_clocks_1.getClock(newDoc)); |
{ | ||
"name": "manymerge", | ||
"version": "2.0.4", | ||
"version": "2.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
17995
366