Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sweng-group-15
yjs
Commits
8ab16f4a
Commit
8ab16f4a
authored
8 years ago
by
Kevin Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Release 12.1.0
parent
3fdcf82b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dist
+1
-1
1 addition, 1 deletion
dist
package.json
+1
-1
1 addition, 1 deletion
package.json
src/Connectors/Test.js
+3
-3
3 additions, 3 deletions
src/Connectors/Test.js
with
5 additions
and
5 deletions
dist
@
7744993d
Compare
cf3969df
...
7744993d
Subproject commit
cf3969dff6c352db0fc872e437e007a41d89421c
Subproject commit
7744993dde4e1be525cccc24fd47318bfe9892f8
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
8ab16f4a
{
"name"
:
"yjs"
,
"version"
:
"12.
0.4
"
,
"version"
:
"12.
1.0
"
,
"description"
:
"A framework for real-time p2p shared editing on any data"
,
"main"
:
"./src/y.js"
,
"scripts"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/Connectors/Test.js
+
3
−
3
View file @
8ab16f4a
...
...
@@ -25,7 +25,7 @@ module.exports = function (Y) {
},
whenTransactionsFinished
:
function
()
{
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.
// Wait for the checkAuth-function to resolve
// The test lib only has a simple checkAuth function: `() => Promise.resolve()`
...
...
@@ -65,7 +65,7 @@ module.exports = function (Y) {
}
var
user
=
globalRoom
.
users
[
userId
]
return
user
.
receiveMessage
(
m
[
0
],
m
[
1
]).
then
(
function
()
{
return
user
.
y
.
db
.
whenTransactionsFinished
()
return
user
.
y
.
db
.
whenTransactionsFinished
()
},
function
()
{})
}
else
{
return
false
...
...
@@ -83,7 +83,7 @@ module.exports = function (Y) {
}
globalRoom
.
whenTransactionsFinished
().
then
(
nextFlush
)
}
else
{
var
c
=
globalRoom
.
flushOne
()
c
=
globalRoom
.
flushOne
()
if
(
c
)
{
c
.
then
(
function
()
{
globalRoom
.
whenTransactionsFinished
().
then
(
nextFlush
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment