Release 12.1.0
This commit is contained in:
+1
-1
Submodule dist updated: cf3969dff6...7744993dde
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yjs",
|
"name": "yjs",
|
||||||
"version": "12.0.4",
|
"version": "12.1.0",
|
||||||
"description": "A framework for real-time p2p shared editing on any data",
|
"description": "A framework for real-time p2p shared editing on any data",
|
||||||
"main": "./src/y.js",
|
"main": "./src/y.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ module.exports = function (Y) {
|
|||||||
},
|
},
|
||||||
whenTransactionsFinished: function () {
|
whenTransactionsFinished: function () {
|
||||||
var self = this
|
var self = this
|
||||||
return new Promise (function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
// The connector first has to send the messages to the db.
|
// The connector first has to send the messages to the db.
|
||||||
// Wait for the checkAuth-function to resolve
|
// Wait for the checkAuth-function to resolve
|
||||||
// The test lib only has a simple checkAuth function: `() => Promise.resolve()`
|
// The test lib only has a simple checkAuth function: `() => Promise.resolve()`
|
||||||
@@ -83,7 +83,7 @@ module.exports = function (Y) {
|
|||||||
}
|
}
|
||||||
globalRoom.whenTransactionsFinished().then(nextFlush)
|
globalRoom.whenTransactionsFinished().then(nextFlush)
|
||||||
} else {
|
} else {
|
||||||
var c = globalRoom.flushOne()
|
c = globalRoom.flushOne()
|
||||||
if (c) {
|
if (c) {
|
||||||
c.then(function () {
|
c.then(function () {
|
||||||
globalRoom.whenTransactionsFinished().then(nextFlush)
|
globalRoom.whenTransactionsFinished().then(nextFlush)
|
||||||
|
|||||||
Reference in New Issue
Block a user