Comparing version 11.2.2 to 11.2.4
{ | ||
"name": "yjs", | ||
"version": "11.2.2", | ||
"version": "11.2.4", | ||
"homepage": "y-js.org", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "yjs", | ||
"version": "11.2.2", | ||
"version": "11.2.4", | ||
"description": "A framework for real-time p2p shared editing on arbitrary complex data types", | ||
@@ -5,0 +5,0 @@ "main": "./src/y.js", |
@@ -373,9 +373,8 @@ /* @flow */ | ||
if (!isGarbageCollected) { | ||
// TODO: reduce number of get / put calls for op .. | ||
yield* Y.Struct[op.struct].execute.call(this, op) | ||
yield* this.addOperation(op) | ||
yield* this.store.operationAdded(this, op) | ||
if (!Y.utils.compareIds(opid, op.id)) { | ||
// operationAdded changed op | ||
op = yield* this.getOperation(opid) | ||
} | ||
// operationAdded can change op.. | ||
op = yield* this.getOperation(opid) | ||
// if insertion, try to combine with left | ||
@@ -444,2 +443,3 @@ yield* this.tryCombineWithLeft(op) | ||
var startId = op.id // You must not use op.id in the following loop, because op will change when deleted | ||
// TODO: !! console.log('TODO: change this before commiting') | ||
for (let i = 0; i < len; i++) { | ||
@@ -446,0 +446,0 @@ var id = [startId[0], startId[1] + i] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
801723