@dxos/echo-pipeline 0.7.3-staging.cc8dd3e → 0.7.3
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/dist/lib/browser/index.mjs +16 -3
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +16 -3
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +16 -3
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/package.json +35 -34
- package/src/edge/echo-edge-replicator.test.ts +74 -31
- package/src/edge/echo-edge-replicator.ts +14 -3
|
@@ -3393,7 +3393,20 @@ var EdgeReplicatorConnection = class extends Resource10 {
|
|
|
3393
3393
|
}
|
|
3394
3394
|
const spaceId = await this._context.getContainingSpaceIdForDocument(params.documentId);
|
|
3395
3395
|
if (!spaceId) {
|
|
3396
|
-
|
|
3396
|
+
const remoteDocumentExists = await this._context.isDocumentInRemoteCollection({
|
|
3397
|
+
documentId: params.documentId,
|
|
3398
|
+
peerId: this._remotePeerId
|
|
3399
|
+
});
|
|
3400
|
+
log11.info("document not found locally for share policy check, accepting the remote document", {
|
|
3401
|
+
documentId: params.documentId,
|
|
3402
|
+
remoteDocumentExists
|
|
3403
|
+
}, {
|
|
3404
|
+
F: __dxlog_file16,
|
|
3405
|
+
L: 275,
|
|
3406
|
+
S: this,
|
|
3407
|
+
C: (f, a) => f(...a)
|
|
3408
|
+
});
|
|
3409
|
+
return remoteDocumentExists;
|
|
3397
3410
|
}
|
|
3398
3411
|
return spaceId === this._spaceId;
|
|
3399
3412
|
}
|
|
@@ -3418,7 +3431,7 @@ var EdgeReplicatorConnection = class extends Resource10 {
|
|
|
3418
3431
|
};
|
|
3419
3432
|
}, {
|
|
3420
3433
|
F: __dxlog_file16,
|
|
3421
|
-
L:
|
|
3434
|
+
L: 302,
|
|
3422
3435
|
S: this,
|
|
3423
3436
|
C: (f, a) => f(...a)
|
|
3424
3437
|
});
|
|
@@ -3441,7 +3454,7 @@ var EdgeReplicatorConnection = class extends Resource10 {
|
|
|
3441
3454
|
documentId: message.documentId
|
|
3442
3455
|
}, {
|
|
3443
3456
|
F: __dxlog_file16,
|
|
3444
|
-
L:
|
|
3457
|
+
L: 332,
|
|
3445
3458
|
S: this,
|
|
3446
3459
|
C: (f, a) => f(...a)
|
|
3447
3460
|
});
|