@dxos/echo-pipeline 0.1.56-main.a25bb93 → 0.1.56-main.ad054df
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-7RPTJNLX.mjs → chunk-7S5RJM3K.mjs} +20 -17
- package/dist/lib/browser/{chunk-7RPTJNLX.mjs.map → chunk-7S5RJM3K.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 +3 -2
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/node/index.cjs +16 -13
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +18 -14
- package/dist/lib/node/testing/index.cjs.map +3 -3
- package/dist/types/src/space/space.d.ts +2 -1
- package/dist/types/src/space/space.d.ts.map +1 -1
- package/dist/types/src/testing/test-agent-builder.d.ts.map +1 -1
- package/package.json +32 -31
- package/src/space/space.test.ts +10 -9
- package/src/space/space.ts +5 -1
- package/src/testing/test-agent-builder.ts +2 -1
|
@@ -1692,6 +1692,7 @@ import { Event as Event5, synchronized as synchronized4, trackLeaks as trackLeak
|
|
|
1692
1692
|
import { invariant as invariant9 } from "@dxos/invariant";
|
|
1693
1693
|
import { log as log10, logInfo } from "@dxos/log";
|
|
1694
1694
|
import { AdmittedFeed as AdmittedFeed2 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
1695
|
+
import { trace } from "@dxos/tracing";
|
|
1695
1696
|
import { Callback as Callback2 } from "@dxos/util";
|
|
1696
1697
|
|
|
1697
1698
|
// packages/core/echo/echo-pipeline/src/space/control-pipeline.ts
|
|
@@ -1861,7 +1862,7 @@ var Space = class Space2 {
|
|
|
1861
1862
|
this._isOpen = false;
|
|
1862
1863
|
invariant9(params.spaceKey && params.feedProvider, void 0, {
|
|
1863
1864
|
F: __dxlog_file11,
|
|
1864
|
-
L:
|
|
1865
|
+
L: 73,
|
|
1865
1866
|
S: this,
|
|
1866
1867
|
A: [
|
|
1867
1868
|
"params.spaceKey && params.feedProvider",
|
|
@@ -1903,7 +1904,7 @@ var Space = class Space2 {
|
|
|
1903
1904
|
credential
|
|
1904
1905
|
}, {
|
|
1905
1906
|
F: __dxlog_file11,
|
|
1906
|
-
L:
|
|
1907
|
+
L: 109,
|
|
1907
1908
|
S: this,
|
|
1908
1909
|
C: (f, a) => f(...a)
|
|
1909
1910
|
});
|
|
@@ -1970,7 +1971,7 @@ var Space = class Space2 {
|
|
|
1970
1971
|
setControlFeed(feed) {
|
|
1971
1972
|
invariant9(!this._controlFeed, "Control feed already set.", {
|
|
1972
1973
|
F: __dxlog_file11,
|
|
1973
|
-
L:
|
|
1974
|
+
L: 183,
|
|
1974
1975
|
S: this,
|
|
1975
1976
|
A: [
|
|
1976
1977
|
"!this._controlFeed",
|
|
@@ -1985,7 +1986,7 @@ var Space = class Space2 {
|
|
|
1985
1986
|
var _a;
|
|
1986
1987
|
invariant9(!this._dataFeed, "Data feed already set.", {
|
|
1987
1988
|
F: __dxlog_file11,
|
|
1988
|
-
L:
|
|
1989
|
+
L: 190,
|
|
1989
1990
|
S: this,
|
|
1990
1991
|
A: [
|
|
1991
1992
|
"!this._dataFeed",
|
|
@@ -2008,10 +2009,10 @@ var Space = class Space2 {
|
|
|
2008
2009
|
// getDataFeeds(): FeedInfo[] {
|
|
2009
2010
|
// return this._dataPipeline?.getFeeds();
|
|
2010
2011
|
// }
|
|
2011
|
-
async open() {
|
|
2012
|
+
async open(ctx) {
|
|
2012
2013
|
log10("opening...", void 0, {
|
|
2013
2014
|
F: __dxlog_file11,
|
|
2014
|
-
L:
|
|
2015
|
+
L: 212,
|
|
2015
2016
|
S: this,
|
|
2016
2017
|
C: (f, a) => f(...a)
|
|
2017
2018
|
});
|
|
@@ -2024,7 +2025,7 @@ var Space = class Space2 {
|
|
|
2024
2025
|
this._isOpen = true;
|
|
2025
2026
|
log10("opened", void 0, {
|
|
2026
2027
|
F: __dxlog_file11,
|
|
2027
|
-
L:
|
|
2028
|
+
L: 223,
|
|
2028
2029
|
S: this,
|
|
2029
2030
|
C: (f, a) => f(...a)
|
|
2030
2031
|
});
|
|
@@ -2034,7 +2035,7 @@ var Space = class Space2 {
|
|
|
2034
2035
|
key: this._key
|
|
2035
2036
|
}, {
|
|
2036
2037
|
F: __dxlog_file11,
|
|
2037
|
-
L:
|
|
2038
|
+
L: 228,
|
|
2038
2039
|
S: this,
|
|
2039
2040
|
C: (f, a) => f(...a)
|
|
2040
2041
|
});
|
|
@@ -2048,7 +2049,7 @@ var Space = class Space2 {
|
|
|
2048
2049
|
this._isOpen = false;
|
|
2049
2050
|
log10("closed", void 0, {
|
|
2050
2051
|
F: __dxlog_file11,
|
|
2051
|
-
L:
|
|
2052
|
+
L: 241,
|
|
2052
2053
|
S: this,
|
|
2053
2054
|
C: (f, a) => f(...a)
|
|
2054
2055
|
});
|
|
@@ -2056,13 +2057,13 @@ var Space = class Space2 {
|
|
|
2056
2057
|
async initializeDataPipeline() {
|
|
2057
2058
|
log10("initializeDataPipeline", void 0, {
|
|
2058
2059
|
F: __dxlog_file11,
|
|
2059
|
-
L:
|
|
2060
|
+
L: 246,
|
|
2060
2061
|
S: this,
|
|
2061
2062
|
C: (f, a) => f(...a)
|
|
2062
2063
|
});
|
|
2063
2064
|
invariant9(this._isOpen, "Space must be open to initialize data pipeline.", {
|
|
2064
2065
|
F: __dxlog_file11,
|
|
2065
|
-
L:
|
|
2066
|
+
L: 247,
|
|
2066
2067
|
S: this,
|
|
2067
2068
|
A: [
|
|
2068
2069
|
"this._isOpen",
|
|
@@ -2076,7 +2077,8 @@ _ts_decorate6([
|
|
|
2076
2077
|
logInfo
|
|
2077
2078
|
], Space.prototype, "key", null);
|
|
2078
2079
|
_ts_decorate6([
|
|
2079
|
-
synchronized4
|
|
2080
|
+
synchronized4,
|
|
2081
|
+
trace.span()
|
|
2080
2082
|
], Space.prototype, "open", null);
|
|
2081
2083
|
_ts_decorate6([
|
|
2082
2084
|
synchronized4
|
|
@@ -2085,7 +2087,8 @@ _ts_decorate6([
|
|
|
2085
2087
|
synchronized4
|
|
2086
2088
|
], Space.prototype, "initializeDataPipeline", null);
|
|
2087
2089
|
Space = _ts_decorate6([
|
|
2088
|
-
trackLeaks3("open", "close")
|
|
2090
|
+
trackLeaks3("open", "close"),
|
|
2091
|
+
trace.resource()
|
|
2089
2092
|
], Space);
|
|
2090
2093
|
|
|
2091
2094
|
// packages/core/echo/echo-pipeline/src/space/space-protocol.ts
|
|
@@ -2291,7 +2294,7 @@ import { synchronized as synchronized5, trackLeaks as trackLeaks4 } from "@dxos/
|
|
|
2291
2294
|
import { failUndefined as failUndefined2 } from "@dxos/debug";
|
|
2292
2295
|
import { PublicKey as PublicKey6 } from "@dxos/keys";
|
|
2293
2296
|
import { log as log12 } from "@dxos/log";
|
|
2294
|
-
import { trace } from "@dxos/protocols";
|
|
2297
|
+
import { trace as trace2 } from "@dxos/protocols";
|
|
2295
2298
|
import { ComplexMap as ComplexMap5 } from "@dxos/util";
|
|
2296
2299
|
function _ts_decorate8(decorators, target, key, desc) {
|
|
2297
2300
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -2328,7 +2331,7 @@ var SpaceManager = class SpaceManager2 {
|
|
|
2328
2331
|
}
|
|
2329
2332
|
async constructSpace({ metadata, swarmIdentity, onNetworkConnection, onAuthFailure, memberKey }) {
|
|
2330
2333
|
var _a;
|
|
2331
|
-
log12.trace("dxos.echo.space-manager.construct-space",
|
|
2334
|
+
log12.trace("dxos.echo.space-manager.construct-space", trace2.begin({
|
|
2332
2335
|
id: this._instanceId
|
|
2333
2336
|
}), {
|
|
2334
2337
|
F: __dxlog_file13,
|
|
@@ -2366,7 +2369,7 @@ var SpaceManager = class SpaceManager2 {
|
|
|
2366
2369
|
memberKey
|
|
2367
2370
|
});
|
|
2368
2371
|
this._spaces.set(space.key, space);
|
|
2369
|
-
log12.trace("dxos.echo.space-manager.construct-space",
|
|
2372
|
+
log12.trace("dxos.echo.space-manager.construct-space", trace2.end({
|
|
2370
2373
|
id: this._instanceId
|
|
2371
2374
|
}), {
|
|
2372
2375
|
F: __dxlog_file13,
|
|
@@ -2413,4 +2416,4 @@ export {
|
|
|
2413
2416
|
SpaceProtocolSession,
|
|
2414
2417
|
SpaceManager
|
|
2415
2418
|
};
|
|
2416
|
-
//# sourceMappingURL=chunk-
|
|
2419
|
+
//# sourceMappingURL=chunk-7S5RJM3K.mjs.map
|