automerge-clocks
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -49,2 +49,8 @@ "use strict"; | ||
function recentChanges(doc, theirClock) { | ||
// This is a really common bug that happens when people incorrectly | ||
// assume that something they got from the network is already converted | ||
// into an immutable obj. | ||
if (!immutable_1.isImmutable(theirClock)) { | ||
throw new Error("theirClock is not an Immutable.js object, but it should be. You may be passing in a JSON map instead."); | ||
} | ||
const state = automerge_1.Frontend.getBackendState(doc); | ||
@@ -51,0 +57,0 @@ // @ts-ignore because automerge has bad typings |
{ | ||
"name": "automerge-clocks", | ||
"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
12419
272