@dxos/echo-pipeline 0.3.11-main.604a65a → 0.3.11-main.61d1a76
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/{chunk-D7UMNYLJ.mjs → chunk-LWXIY6E6.mjs} +4 -4
- package/dist/lib/browser/{chunk-D7UMNYLJ.mjs.map → chunk-LWXIY6E6.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-GQW6RLGD.cjs → chunk-MKPXRFWE.cjs} +6 -6
- package/dist/lib/node/{chunk-GQW6RLGD.cjs.map → chunk-MKPXRFWE.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +26 -26
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +16 -16
- package/dist/types/src/space/space.d.ts +1 -1
- package/dist/types/src/space/space.d.ts.map +1 -1
- package/package.json +33 -33
- package/src/space/space.ts +3 -3
|
@@ -1925,7 +1925,7 @@ var idle = async (timeout) => {
|
|
|
1925
1925
|
};
|
|
1926
1926
|
|
|
1927
1927
|
// packages/core/echo/echo-pipeline/src/space/space.ts
|
|
1928
|
-
import { Event as Event5, synchronized as synchronized4, trackLeaks as trackLeaks3,
|
|
1928
|
+
import { Event as Event5, synchronized as synchronized4, trackLeaks as trackLeaks3, Lock } from "@dxos/async";
|
|
1929
1929
|
import { invariant as invariant9 } from "@dxos/invariant";
|
|
1930
1930
|
import { log as log10, logInfo } from "@dxos/log";
|
|
1931
1931
|
import { AdmittedFeed as AdmittedFeed2 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
@@ -2204,7 +2204,7 @@ function _ts_decorate6(decorators, target, key, desc) {
|
|
|
2204
2204
|
var __dxlog_file11 = "/home/runner/work/dxos/dxos/packages/core/echo/echo-pipeline/src/space/space.ts";
|
|
2205
2205
|
var Space = class {
|
|
2206
2206
|
constructor(params) {
|
|
2207
|
-
this.
|
|
2207
|
+
this._addFeedLock = new Lock();
|
|
2208
2208
|
this.onCredentialProcessed = new Callback2();
|
|
2209
2209
|
this.stateUpdate = new Event5();
|
|
2210
2210
|
this._isOpen = false;
|
|
@@ -2274,7 +2274,7 @@ var Space = class {
|
|
|
2274
2274
|
if (this._dataFeed) {
|
|
2275
2275
|
pipeline.setWriteFeed(this._dataFeed);
|
|
2276
2276
|
}
|
|
2277
|
-
await this.
|
|
2277
|
+
await this._addFeedLock.executeSynchronized(async () => {
|
|
2278
2278
|
for (const feed of this._controlPipeline.spaceState.feeds.values()) {
|
|
2279
2279
|
if (feed.assertion.designation === AdmittedFeed2.Designation.DATA && !pipeline.hasFeed(feed.key)) {
|
|
2280
2280
|
await pipeline.addFeed(await this._feedProvider(feed.key, {
|
|
@@ -3227,4 +3227,4 @@ export {
|
|
|
3227
3227
|
SpaceManager,
|
|
3228
3228
|
AutomergeHost
|
|
3229
3229
|
};
|
|
3230
|
-
//# sourceMappingURL=chunk-
|
|
3230
|
+
//# sourceMappingURL=chunk-LWXIY6E6.mjs.map
|