@dxos/echo-pipeline 0.3.2-main.bc9cb77 → 0.3.2-main.d77d2bc
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-RLO353OB.mjs → chunk-65J7PLAQ.mjs} +68 -81
- package/dist/lib/browser/chunk-65J7PLAQ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +243 -1
- package/dist/lib/browser/testing/index.mjs.map +4 -4
- package/dist/lib/node/index.cjs +104 -117
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +350 -119
- package/dist/lib/node/testing/index.cjs.map +4 -4
- package/dist/types/src/db-host/snapshot-manager.d.ts.map +1 -1
- package/dist/types/src/pipeline/pipeline.d.ts.map +1 -1
- package/dist/types/src/space/control-pipeline.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/package.json +32 -32
- package/src/db-host/snapshot-manager.ts +0 -2
- package/src/pipeline/pipeline.ts +2 -2
- package/src/space/control-pipeline.ts +5 -4
- package/src/testing/index.ts +1 -0
- package/dist/lib/browser/chunk-RLO353OB.mjs.map +0 -7
|
@@ -218,23 +218,12 @@ var DatabaseHost = class {
|
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
// packages/core/echo/echo-pipeline/src/db-host/snapshot-manager.ts
|
|
221
|
-
import { trackLeaks } from "@dxos/async";
|
|
222
221
|
import { cancelWithContext } from "@dxos/context";
|
|
223
222
|
import { PublicKey } from "@dxos/keys";
|
|
224
223
|
import { schema as schema2 } from "@dxos/protocols";
|
|
225
224
|
import { BlobMeta } from "@dxos/protocols/proto/dxos/echo/blob";
|
|
226
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
227
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
228
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
229
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
230
|
-
else
|
|
231
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
232
|
-
if (d = decorators[i])
|
|
233
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
234
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
235
|
-
}
|
|
236
225
|
var SpaceSnapshot = schema2.getCodecForType("dxos.echo.snapshot.SpaceSnapshot");
|
|
237
|
-
var SnapshotManager = class
|
|
226
|
+
var SnapshotManager = class {
|
|
238
227
|
constructor(_snapshotStore, _blobStore, _blobSync) {
|
|
239
228
|
this._snapshotStore = _snapshotStore;
|
|
240
229
|
this._blobStore = _blobStore;
|
|
@@ -263,9 +252,6 @@ var SnapshotManager = class SnapshotManager2 {
|
|
|
263
252
|
return PublicKey.from(id).toHex();
|
|
264
253
|
}
|
|
265
254
|
};
|
|
266
|
-
SnapshotManager = _ts_decorate([
|
|
267
|
-
trackLeaks("open", "close")
|
|
268
|
-
], SnapshotManager);
|
|
269
255
|
|
|
270
256
|
// packages/core/echo/echo-pipeline/src/db-host/snapshot-store.ts
|
|
271
257
|
import { subtleCrypto } from "@dxos/crypto";
|
|
@@ -427,7 +413,7 @@ import { log as log3 } from "@dxos/log";
|
|
|
427
413
|
import { DataCorruptionError, STORAGE_VERSION, schema as schema4 } from "@dxos/protocols";
|
|
428
414
|
import { SpaceState } from "@dxos/protocols/proto/dxos/client/services";
|
|
429
415
|
import { ComplexMap as ComplexMap3, arrayToBuffer, forEachAsync, isNotNullOrUndefined } from "@dxos/util";
|
|
430
|
-
function
|
|
416
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
431
417
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
432
418
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
433
419
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -711,13 +697,13 @@ var MetadataStore = class {
|
|
|
711
697
|
await this.flush();
|
|
712
698
|
}
|
|
713
699
|
};
|
|
714
|
-
|
|
700
|
+
_ts_decorate([
|
|
715
701
|
synchronized
|
|
716
702
|
], MetadataStore.prototype, "load", null);
|
|
717
|
-
|
|
703
|
+
_ts_decorate([
|
|
718
704
|
synchronized
|
|
719
705
|
], MetadataStore.prototype, "_save", null);
|
|
720
|
-
|
|
706
|
+
_ts_decorate([
|
|
721
707
|
synchronized
|
|
722
708
|
], MetadataStore.prototype, "_saveSpaceLargeMetadata", null);
|
|
723
709
|
var fromBytesInt32 = (buf) => buf.readInt32LE(0);
|
|
@@ -727,7 +713,7 @@ import { Event as Event2 } from "@dxos/async";
|
|
|
727
713
|
import { timed } from "@dxos/debug";
|
|
728
714
|
import { log as log4 } from "@dxos/log";
|
|
729
715
|
import { Timeframe } from "@dxos/timeframe";
|
|
730
|
-
function
|
|
716
|
+
function _ts_decorate2(decorators, target, key, desc) {
|
|
731
717
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
732
718
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
733
719
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -815,12 +801,12 @@ var TimeframeClock = class {
|
|
|
815
801
|
});
|
|
816
802
|
}
|
|
817
803
|
};
|
|
818
|
-
|
|
804
|
+
_ts_decorate2([
|
|
819
805
|
timed(5e3)
|
|
820
806
|
], TimeframeClock.prototype, "waitUntilReached", null);
|
|
821
807
|
|
|
822
808
|
// packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts
|
|
823
|
-
import { Event as Event3,
|
|
809
|
+
import { Event as Event3, sleepWithContext, synchronized as synchronized2, Trigger } from "@dxos/async";
|
|
824
810
|
import { Context as Context2, rejectOnDispose } from "@dxos/context";
|
|
825
811
|
import { failUndefined } from "@dxos/debug";
|
|
826
812
|
import { FeedSetIterator } from "@dxos/feed-store";
|
|
@@ -861,7 +847,7 @@ var createMessageSelector = (timeframeClock) => {
|
|
|
861
847
|
};
|
|
862
848
|
|
|
863
849
|
// packages/core/echo/echo-pipeline/src/pipeline/pipeline.ts
|
|
864
|
-
function
|
|
850
|
+
function _ts_decorate3(decorators, target, key, desc) {
|
|
865
851
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
866
852
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
867
853
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -952,7 +938,7 @@ var PipelineState = class {
|
|
|
952
938
|
done = true;
|
|
953
939
|
this._reachedTarget = true;
|
|
954
940
|
}),
|
|
955
|
-
|
|
941
|
+
sleepWithContext(this._ctx, timeout).then(() => {
|
|
956
942
|
if (done) {
|
|
957
943
|
return;
|
|
958
944
|
}
|
|
@@ -1259,19 +1245,19 @@ var Pipeline = class {
|
|
|
1259
1245
|
}
|
|
1260
1246
|
}
|
|
1261
1247
|
};
|
|
1262
|
-
|
|
1248
|
+
_ts_decorate3([
|
|
1263
1249
|
synchronized2
|
|
1264
1250
|
], Pipeline.prototype, "start", null);
|
|
1265
|
-
|
|
1251
|
+
_ts_decorate3([
|
|
1266
1252
|
synchronized2
|
|
1267
1253
|
], Pipeline.prototype, "stop", null);
|
|
1268
|
-
|
|
1254
|
+
_ts_decorate3([
|
|
1269
1255
|
synchronized2
|
|
1270
1256
|
], Pipeline.prototype, "setCursor", null);
|
|
1271
|
-
|
|
1257
|
+
_ts_decorate3([
|
|
1272
1258
|
synchronized2
|
|
1273
1259
|
], Pipeline.prototype, "pause", null);
|
|
1274
|
-
|
|
1260
|
+
_ts_decorate3([
|
|
1275
1261
|
synchronized2
|
|
1276
1262
|
], Pipeline.prototype, "unpause", null);
|
|
1277
1263
|
|
|
@@ -1383,7 +1369,7 @@ var AuthExtension = class extends RpcExtension {
|
|
|
1383
1369
|
};
|
|
1384
1370
|
|
|
1385
1371
|
// packages/core/echo/echo-pipeline/src/space/data-pipeline.ts
|
|
1386
|
-
import { Event as Event4, scheduleTask as scheduleTask2, sleep
|
|
1372
|
+
import { Event as Event4, scheduleTask as scheduleTask2, sleep, synchronized as synchronized3, trackLeaks } from "@dxos/async";
|
|
1387
1373
|
import { Context as Context4 } from "@dxos/context";
|
|
1388
1374
|
import { checkCredentialType } from "@dxos/credentials";
|
|
1389
1375
|
import { getStateMachineFromItem, ItemManager, TYPE_PROPERTIES } from "@dxos/echo-db";
|
|
@@ -1393,7 +1379,7 @@ import { CancelledError } from "@dxos/protocols";
|
|
|
1393
1379
|
import { Timeframe as Timeframe3 } from "@dxos/timeframe";
|
|
1394
1380
|
import { TimeSeriesCounter, TimeUsageCounter, trace } from "@dxos/tracing";
|
|
1395
1381
|
import { tracer } from "@dxos/util";
|
|
1396
|
-
function
|
|
1382
|
+
function _ts_decorate4(decorators, target, key, desc) {
|
|
1397
1383
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1398
1384
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1399
1385
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1604,7 +1590,7 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1604
1590
|
span.end();
|
|
1605
1591
|
if (++messageCounter > 1e3) {
|
|
1606
1592
|
messageCounter = 0;
|
|
1607
|
-
await
|
|
1593
|
+
await sleep(1);
|
|
1608
1594
|
}
|
|
1609
1595
|
}
|
|
1610
1596
|
}
|
|
@@ -1798,26 +1784,26 @@ var DataPipeline = class DataPipeline2 {
|
|
|
1798
1784
|
await this._params.metadataStore.flush();
|
|
1799
1785
|
}
|
|
1800
1786
|
};
|
|
1801
|
-
|
|
1787
|
+
_ts_decorate4([
|
|
1802
1788
|
trace.metricsCounter()
|
|
1803
1789
|
], DataPipeline.prototype, "_usage", void 0);
|
|
1804
|
-
|
|
1790
|
+
_ts_decorate4([
|
|
1805
1791
|
trace.metricsCounter()
|
|
1806
1792
|
], DataPipeline.prototype, "_mutations", void 0);
|
|
1807
|
-
|
|
1793
|
+
_ts_decorate4([
|
|
1808
1794
|
synchronized3
|
|
1809
1795
|
], DataPipeline.prototype, "open", null);
|
|
1810
|
-
|
|
1796
|
+
_ts_decorate4([
|
|
1811
1797
|
synchronized3
|
|
1812
1798
|
], DataPipeline.prototype, "close", null);
|
|
1813
|
-
|
|
1799
|
+
_ts_decorate4([
|
|
1814
1800
|
synchronized3
|
|
1815
1801
|
], DataPipeline.prototype, "_processEpoch", null);
|
|
1816
|
-
|
|
1802
|
+
_ts_decorate4([
|
|
1817
1803
|
synchronized3
|
|
1818
1804
|
], DataPipeline.prototype, "createEpoch", null);
|
|
1819
|
-
DataPipeline =
|
|
1820
|
-
|
|
1805
|
+
DataPipeline = _ts_decorate4([
|
|
1806
|
+
trackLeaks("open", "close"),
|
|
1821
1807
|
trace.resource()
|
|
1822
1808
|
], DataPipeline);
|
|
1823
1809
|
|
|
@@ -1830,7 +1816,7 @@ import { trace as trace3 } from "@dxos/tracing";
|
|
|
1830
1816
|
import { Callback as Callback2 } from "@dxos/util";
|
|
1831
1817
|
|
|
1832
1818
|
// packages/core/echo/echo-pipeline/src/space/control-pipeline.ts
|
|
1833
|
-
import { DeferredTask,
|
|
1819
|
+
import { DeferredTask, sleepWithContext as sleepWithContext2, trackLeaks as trackLeaks2 } from "@dxos/async";
|
|
1834
1820
|
import { Context as Context5 } from "@dxos/context";
|
|
1835
1821
|
import { SpaceStateMachine } from "@dxos/credentials";
|
|
1836
1822
|
import { PublicKey as PublicKey5 } from "@dxos/keys";
|
|
@@ -1839,7 +1825,7 @@ import { AdmittedFeed } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
|
1839
1825
|
import { Timeframe as Timeframe4 } from "@dxos/timeframe";
|
|
1840
1826
|
import { TimeSeriesCounter as TimeSeriesCounter2, TimeUsageCounter as TimeUsageCounter2, trace as trace2 } from "@dxos/tracing";
|
|
1841
1827
|
import { Callback, tracer as tracer2 } from "@dxos/util";
|
|
1842
|
-
function
|
|
1828
|
+
function _ts_decorate5(decorators, target, key, desc) {
|
|
1843
1829
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1844
1830
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1845
1831
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1861,7 +1847,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1861
1847
|
this._usage = new TimeUsageCounter2();
|
|
1862
1848
|
this._mutations = new TimeSeriesCounter2();
|
|
1863
1849
|
this._snapshotTask = new DeferredTask(this._ctx, async () => {
|
|
1864
|
-
await
|
|
1850
|
+
await sleepWithContext2(this._ctx, CONTROL_PIPELINE_SNAPSHOT_DELAY);
|
|
1865
1851
|
await this._saveSnapshot();
|
|
1866
1852
|
});
|
|
1867
1853
|
this._spaceKey = spaceKey;
|
|
@@ -1874,7 +1860,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1874
1860
|
key: info.key
|
|
1875
1861
|
}, {
|
|
1876
1862
|
F: __dxlog_file10,
|
|
1877
|
-
L:
|
|
1863
|
+
L: 74,
|
|
1878
1864
|
S: this,
|
|
1879
1865
|
C: (f, a) => f(...a)
|
|
1880
1866
|
});
|
|
@@ -1886,7 +1872,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1886
1872
|
} catch (err) {
|
|
1887
1873
|
log9.catch(err, void 0, {
|
|
1888
1874
|
F: __dxlog_file10,
|
|
1889
|
-
L:
|
|
1875
|
+
L: 83,
|
|
1890
1876
|
S: this,
|
|
1891
1877
|
C: (f, a) => f(...a)
|
|
1892
1878
|
});
|
|
@@ -1915,16 +1901,16 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1915
1901
|
tf: snapshot?.timeframe
|
|
1916
1902
|
}, {
|
|
1917
1903
|
F: __dxlog_file10,
|
|
1918
|
-
L:
|
|
1904
|
+
L: 110,
|
|
1919
1905
|
S: this,
|
|
1920
1906
|
C: (f, a) => f(...a)
|
|
1921
1907
|
});
|
|
1922
1908
|
if (USE_SNAPSHOTS && snapshot) {
|
|
1923
1909
|
await this._processSnapshot(snapshot);
|
|
1924
1910
|
}
|
|
1925
|
-
log9("starting...", void 0, {
|
|
1911
|
+
log9.info("starting...", void 0, {
|
|
1926
1912
|
F: __dxlog_file10,
|
|
1927
|
-
L:
|
|
1913
|
+
L: 115,
|
|
1928
1914
|
S: this,
|
|
1929
1915
|
C: (f, a) => f(...a)
|
|
1930
1916
|
});
|
|
@@ -1934,7 +1920,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1934
1920
|
await this._pipeline.start();
|
|
1935
1921
|
log9("started", void 0, {
|
|
1936
1922
|
F: __dxlog_file10,
|
|
1937
|
-
L:
|
|
1923
|
+
L: 121,
|
|
1938
1924
|
S: this,
|
|
1939
1925
|
C: (f, a) => f(...a)
|
|
1940
1926
|
});
|
|
@@ -1951,7 +1937,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1951
1937
|
message
|
|
1952
1938
|
}, {
|
|
1953
1939
|
F: __dxlog_file10,
|
|
1954
|
-
L:
|
|
1940
|
+
L: 134,
|
|
1955
1941
|
S: this,
|
|
1956
1942
|
C: (f, a) => f(...a)
|
|
1957
1943
|
});
|
|
@@ -1973,7 +1959,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1973
1959
|
snapshot
|
|
1974
1960
|
}, {
|
|
1975
1961
|
F: __dxlog_file10,
|
|
1976
|
-
L:
|
|
1962
|
+
L: 150,
|
|
1977
1963
|
S: this,
|
|
1978
1964
|
C: (f, a) => f(...a)
|
|
1979
1965
|
});
|
|
@@ -1988,7 +1974,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
1988
1974
|
} catch (err) {
|
|
1989
1975
|
log9.catch(err, void 0, {
|
|
1990
1976
|
F: __dxlog_file10,
|
|
1991
|
-
L:
|
|
1977
|
+
L: 163,
|
|
1992
1978
|
S: this,
|
|
1993
1979
|
C: (f, a) => f(...a)
|
|
1994
1980
|
});
|
|
@@ -2002,7 +1988,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
2002
1988
|
seq: msg.seq
|
|
2003
1989
|
}, {
|
|
2004
1990
|
F: __dxlog_file10,
|
|
2005
|
-
L:
|
|
1991
|
+
L: 173,
|
|
2006
1992
|
S: this,
|
|
2007
1993
|
C: (f, a) => f(...a)
|
|
2008
1994
|
});
|
|
@@ -2017,7 +2003,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
2017
2003
|
msg
|
|
2018
2004
|
}, {
|
|
2019
2005
|
F: __dxlog_file10,
|
|
2020
|
-
L:
|
|
2006
|
+
L: 182,
|
|
2021
2007
|
S: this,
|
|
2022
2008
|
C: (f, a) => f(...a)
|
|
2023
2009
|
});
|
|
@@ -2034,9 +2020,9 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
2034
2020
|
}
|
|
2035
2021
|
}
|
|
2036
2022
|
async stop() {
|
|
2037
|
-
log9("stopping...", void 0, {
|
|
2023
|
+
log9.warn("stopping...", void 0, {
|
|
2038
2024
|
F: __dxlog_file10,
|
|
2039
|
-
L:
|
|
2025
|
+
L: 202,
|
|
2040
2026
|
S: this,
|
|
2041
2027
|
C: (f, a) => f(...a)
|
|
2042
2028
|
});
|
|
@@ -2045,7 +2031,7 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
2045
2031
|
await this._saveTargetTimeframe(this._pipeline.state.timeframe);
|
|
2046
2032
|
log9("stopped", void 0, {
|
|
2047
2033
|
F: __dxlog_file10,
|
|
2048
|
-
L:
|
|
2034
|
+
L: 206,
|
|
2049
2035
|
S: this,
|
|
2050
2036
|
C: (f, a) => f(...a)
|
|
2051
2037
|
});
|
|
@@ -2058,36 +2044,37 @@ var ControlPipeline = class ControlPipeline2 {
|
|
|
2058
2044
|
} catch (err) {
|
|
2059
2045
|
log9(err, void 0, {
|
|
2060
2046
|
F: __dxlog_file10,
|
|
2061
|
-
L:
|
|
2047
|
+
L: 215,
|
|
2062
2048
|
S: this,
|
|
2063
2049
|
C: (f, a) => f(...a)
|
|
2064
2050
|
});
|
|
2065
2051
|
}
|
|
2066
2052
|
}
|
|
2067
2053
|
};
|
|
2068
|
-
|
|
2054
|
+
_ts_decorate5([
|
|
2069
2055
|
trace2.metricsCounter()
|
|
2070
2056
|
], ControlPipeline.prototype, "_usage", void 0);
|
|
2071
|
-
|
|
2057
|
+
_ts_decorate5([
|
|
2072
2058
|
trace2.metricsCounter()
|
|
2073
2059
|
], ControlPipeline.prototype, "_mutations", void 0);
|
|
2074
|
-
|
|
2060
|
+
_ts_decorate5([
|
|
2075
2061
|
trace2.span({
|
|
2076
2062
|
showInBrowserTimeline: true
|
|
2077
2063
|
})
|
|
2078
2064
|
], ControlPipeline.prototype, "start", null);
|
|
2079
|
-
|
|
2065
|
+
_ts_decorate5([
|
|
2080
2066
|
trace2.span()
|
|
2081
2067
|
], ControlPipeline.prototype, "_consumePipeline", null);
|
|
2082
|
-
|
|
2068
|
+
_ts_decorate5([
|
|
2083
2069
|
trace2.span()
|
|
2084
2070
|
], ControlPipeline.prototype, "_processMessage", null);
|
|
2085
|
-
ControlPipeline =
|
|
2086
|
-
trace2.resource()
|
|
2071
|
+
ControlPipeline = _ts_decorate5([
|
|
2072
|
+
trace2.resource(),
|
|
2073
|
+
trackLeaks2("start", "stop")
|
|
2087
2074
|
], ControlPipeline);
|
|
2088
2075
|
|
|
2089
2076
|
// packages/core/echo/echo-pipeline/src/space/space.ts
|
|
2090
|
-
function
|
|
2077
|
+
function _ts_decorate6(decorators, target, key, desc) {
|
|
2091
2078
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2092
2079
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2093
2080
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2316,21 +2303,21 @@ var Space = class Space2 {
|
|
|
2316
2303
|
await this._dataPipeline.open();
|
|
2317
2304
|
}
|
|
2318
2305
|
};
|
|
2319
|
-
|
|
2306
|
+
_ts_decorate6([
|
|
2320
2307
|
logInfo,
|
|
2321
2308
|
trace3.info()
|
|
2322
2309
|
], Space.prototype, "key", null);
|
|
2323
|
-
|
|
2310
|
+
_ts_decorate6([
|
|
2324
2311
|
synchronized4,
|
|
2325
2312
|
trace3.span()
|
|
2326
2313
|
], Space.prototype, "open", null);
|
|
2327
|
-
|
|
2314
|
+
_ts_decorate6([
|
|
2328
2315
|
synchronized4
|
|
2329
2316
|
], Space.prototype, "close", null);
|
|
2330
|
-
|
|
2317
|
+
_ts_decorate6([
|
|
2331
2318
|
synchronized4
|
|
2332
2319
|
], Space.prototype, "initializeDataPipeline", null);
|
|
2333
|
-
Space =
|
|
2320
|
+
Space = _ts_decorate6([
|
|
2334
2321
|
trackLeaks3("open", "close"),
|
|
2335
2322
|
trace3.resource()
|
|
2336
2323
|
], Space);
|
|
@@ -2344,7 +2331,7 @@ import { Teleport } from "@dxos/teleport";
|
|
|
2344
2331
|
import { BlobSync } from "@dxos/teleport-extension-object-sync";
|
|
2345
2332
|
import { ReplicatorExtension } from "@dxos/teleport-extension-replicator";
|
|
2346
2333
|
import { ComplexMap as ComplexMap5 } from "@dxos/util";
|
|
2347
|
-
function
|
|
2334
|
+
function _ts_decorate7(decorators, target, key, desc) {
|
|
2348
2335
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2349
2336
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2350
2337
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2462,10 +2449,10 @@ var SpaceProtocol = class {
|
|
|
2462
2449
|
};
|
|
2463
2450
|
}
|
|
2464
2451
|
};
|
|
2465
|
-
|
|
2452
|
+
_ts_decorate7([
|
|
2466
2453
|
logInfo2
|
|
2467
2454
|
], SpaceProtocol.prototype, "_topic", void 0);
|
|
2468
|
-
|
|
2455
|
+
_ts_decorate7([
|
|
2469
2456
|
logInfo2
|
|
2470
2457
|
], SpaceProtocol.prototype, "_ownPeerKey", null);
|
|
2471
2458
|
var AuthStatus;
|
|
@@ -2534,10 +2521,10 @@ var SpaceProtocolSession = class {
|
|
|
2534
2521
|
await this._teleport.abort();
|
|
2535
2522
|
}
|
|
2536
2523
|
};
|
|
2537
|
-
|
|
2524
|
+
_ts_decorate7([
|
|
2538
2525
|
logInfo2
|
|
2539
2526
|
], SpaceProtocolSession.prototype, "_wireParams", void 0);
|
|
2540
|
-
|
|
2527
|
+
_ts_decorate7([
|
|
2541
2528
|
logInfo2
|
|
2542
2529
|
], SpaceProtocolSession.prototype, "authStatus", null);
|
|
2543
2530
|
|
|
@@ -2548,7 +2535,7 @@ import { PublicKey as PublicKey7 } from "@dxos/keys";
|
|
|
2548
2535
|
import { log as log12 } from "@dxos/log";
|
|
2549
2536
|
import { trace as trace4 } from "@dxos/protocols";
|
|
2550
2537
|
import { ComplexMap as ComplexMap6 } from "@dxos/util";
|
|
2551
|
-
function
|
|
2538
|
+
function _ts_decorate8(decorators, target, key, desc) {
|
|
2552
2539
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2553
2540
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2554
2541
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2631,13 +2618,13 @@ var SpaceManager = class SpaceManager2 {
|
|
|
2631
2618
|
return space;
|
|
2632
2619
|
}
|
|
2633
2620
|
};
|
|
2634
|
-
|
|
2621
|
+
_ts_decorate8([
|
|
2635
2622
|
synchronized5
|
|
2636
2623
|
], SpaceManager.prototype, "open", null);
|
|
2637
|
-
|
|
2624
|
+
_ts_decorate8([
|
|
2638
2625
|
synchronized5
|
|
2639
2626
|
], SpaceManager.prototype, "close", null);
|
|
2640
|
-
SpaceManager =
|
|
2627
|
+
SpaceManager = _ts_decorate8([
|
|
2641
2628
|
trackLeaks4("open", "close")
|
|
2642
2629
|
], SpaceManager);
|
|
2643
2630
|
|
|
@@ -2667,4 +2654,4 @@ export {
|
|
|
2667
2654
|
SpaceProtocolSession,
|
|
2668
2655
|
SpaceManager
|
|
2669
2656
|
};
|
|
2670
|
-
//# sourceMappingURL=chunk-
|
|
2657
|
+
//# sourceMappingURL=chunk-65J7PLAQ.mjs.map
|