braidfs 0.0.149 → 0.0.150
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 +5 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -861,6 +861,8 @@ function sync_url(url) {
|
|
|
861
861
|
// DEBUGGING HACK ID: L04LPFHQ1M -- INVESTIGATING DISCONNECTS
|
|
862
862
|
do_investigating_disconnects_log(url, 'after within_fiber')
|
|
863
863
|
|
|
864
|
+
var file_peer = Math.random().toString(36).slice(2)
|
|
865
|
+
|
|
864
866
|
await file_loop_pump()
|
|
865
867
|
async function file_loop_pump() {
|
|
866
868
|
if (self.ac.signal.aborted) return
|
|
@@ -927,7 +929,7 @@ function sync_url(url) {
|
|
|
927
929
|
|
|
928
930
|
add_to_version_cache(text, version)
|
|
929
931
|
|
|
930
|
-
await wait_on(braid_text.put(url, { version, parents, patches, merge_type: 'dt' }))
|
|
932
|
+
await wait_on(braid_text.put(url, { version, parents, patches, merge_type: 'dt', peer: file_peer }))
|
|
931
933
|
if (self.ac.signal.aborted) return
|
|
932
934
|
|
|
933
935
|
// DEBUGGING HACK ID: L04LPFHQ1M -- INVESTIGATING DISCONNECTS
|
|
@@ -1029,7 +1031,7 @@ function sync_url(url) {
|
|
|
1029
1031
|
// Subscribe to local changes to trigger file writes
|
|
1030
1032
|
braid_text.get(url, {
|
|
1031
1033
|
signal: ac.signal,
|
|
1032
|
-
peer:
|
|
1034
|
+
peer: file_peer,
|
|
1033
1035
|
merge_type: 'dt',
|
|
1034
1036
|
subscribe: () => {
|
|
1035
1037
|
if (self.ac.signal.aborted) return
|
|
@@ -1045,6 +1047,7 @@ function sync_url(url) {
|
|
|
1045
1047
|
|
|
1046
1048
|
fork_point_hint: old_meta_fork_point,
|
|
1047
1049
|
signal: ac.signal,
|
|
1050
|
+
peer: self.peer,
|
|
1048
1051
|
headers: {
|
|
1049
1052
|
'Content-Type': 'text/plain',
|
|
1050
1053
|
...(x => x && { Cookie: x })(config.cookies?.[new URL(url).hostname])
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "braidfs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.150",
|
|
4
4
|
"description": "braid technology synchronizing files and webpages",
|
|
5
5
|
"author": "Braid Working Group",
|
|
6
6
|
"repository": "braid-org/braidfs",
|
|
7
7
|
"homepage": "https://braid.org",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"braid-http": "~1.3.89",
|
|
10
|
-
"braid-text": "~0.2.
|
|
10
|
+
"braid-text": "~0.2.110",
|
|
11
11
|
"braid-blob": "~0.0.72",
|
|
12
12
|
"chokidar": "^4.0.3",
|
|
13
13
|
"undici": "^7.18.2"
|