Comparing version 1.0.0 to 1.0.1
@@ -45,2 +45,3 @@ /** | ||
var edit = new Edit(ottype) | ||
edit.id = randString() | ||
return edit | ||
@@ -54,2 +55,3 @@ } | ||
var edit = new Edit(ottype) | ||
edit.id = randString() | ||
edit.changeset = cs | ||
@@ -121,3 +123,3 @@ return edit | ||
var str = '' | ||
while (str.length < 10) { | ||
while (str.length < 20) { | ||
str += (Math.random()*1E7<<0x5).toString(36) | ||
@@ -124,0 +126,0 @@ } |
@@ -31,4 +31,3 @@ /** | ||
History.prototype.createDocument = function(snapshot, cb) { | ||
snapshot.id = ++this.idCounter | ||
snapshot.edit.id = snapshot.id | ||
snapshot.id = snapshot.edit.id | ||
snapshot.edit = snapshot.edit.pack() | ||
@@ -63,8 +62,2 @@ this.document.adapter.createDocument(snapshot, function(er) { | ||
History.prototype.storeSnapshot = function(snapshot, cb) { | ||
// Only Master Document may set ids | ||
if(!snapshot.edit.id) { | ||
snapshot.id = ++this.idCounter | ||
snapshot.edit.id = snapshot.id | ||
} | ||
this.latest(function(er, latest) { | ||
@@ -71,0 +64,0 @@ if(er) cb && cb(er) |
{ | ||
"name": "gulf", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "transport-agnostic operational transformation control layer", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
73394
924