braid-text 0.2.40 → 0.2.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +2 -2
- package/simpleton-client.js +2 -2
package/index.js
CHANGED
|
@@ -180,8 +180,8 @@ braid_text.serve = async (req, res, options = {}) => {
|
|
|
180
180
|
// approximation of memory usage for this update
|
|
181
181
|
body ? body.length :
|
|
182
182
|
patches.reduce((a, b) => a + b.range.length + b.content.length, 0),
|
|
183
|
-
options.
|
|
184
|
-
options.
|
|
183
|
+
options.recv_buffer_max_time,
|
|
184
|
+
options.recv_buffer_max_space)
|
|
185
185
|
|
|
186
186
|
// make sure we have the necessary parents now
|
|
187
187
|
var unknowns = []
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "braid-text",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.42",
|
|
4
4
|
"description": "Library for collaborative text over http using braid.",
|
|
5
5
|
"author": "Braid Working Group",
|
|
6
6
|
"repository": "braid-org/braid-text",
|
|
7
7
|
"homepage": "https://braid.org",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@braid.org/diamond-types-node": "^2.0.0",
|
|
10
|
-
"braid-http": "
|
|
10
|
+
"braid-http": "~1.3.77"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/simpleton-client.js
CHANGED
|
@@ -30,7 +30,7 @@ function simpleton_client(url, { apply_remote_update, generate_local_diff_update
|
|
|
30
30
|
headers: { "Merge-Type": "simpleton",
|
|
31
31
|
...(content_type ? {Accept: content_type} : {}) },
|
|
32
32
|
subscribe: true,
|
|
33
|
-
retry: true,
|
|
33
|
+
retry: () => true,
|
|
34
34
|
parents: () => current_version.length ? current_version : null,
|
|
35
35
|
peer,
|
|
36
36
|
signal: ac.signal
|
|
@@ -120,7 +120,7 @@ function simpleton_client(url, { apply_remote_update, generate_local_diff_update
|
|
|
120
120
|
headers: { "Merge-Type": "simpleton",
|
|
121
121
|
...(content_type ? {"Content-Type": content_type} : {}) },
|
|
122
122
|
method: "PUT",
|
|
123
|
-
retry: true,
|
|
123
|
+
retry: () => true,
|
|
124
124
|
version, parents, patches,
|
|
125
125
|
peer
|
|
126
126
|
})
|