@dxos/client-services 0.3.11-main.e26c0a5 → 0.3.11-main.e28df4f
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-TB6BFBMH.mjs → chunk-BI62DBCY.mjs} +5 -5
- package/dist/lib/browser/{chunk-TB6BFBMH.mjs.map → chunk-BI62DBCY.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-NDK3LMHN.cjs → chunk-M43AOO5P.cjs} +7 -7
- package/dist/lib/node/{chunk-NDK3LMHN.cjs.map → chunk-M43AOO5P.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +37 -37
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +35 -35
- package/src/packlets/spaces/data-space.ts +3 -3
- package/src/version.ts +1 -1
|
@@ -31,7 +31,7 @@ __export(testing_exports, {
|
|
|
31
31
|
syncItemsLocal: () => syncItemsLocal
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(testing_exports);
|
|
34
|
-
var
|
|
34
|
+
var import_chunk_M43AOO5P = require("../../chunk-M43AOO5P.cjs");
|
|
35
35
|
var import_credentials = require("@dxos/credentials");
|
|
36
36
|
var import_keys = require("@dxos/keys");
|
|
37
37
|
var import_async = require("@dxos/async");
|
|
@@ -209,7 +209,7 @@ var createInvitation = (host, options) => {
|
|
|
209
209
|
authMethod: import_services.Invitation.AuthMethod.NONE,
|
|
210
210
|
...options ?? {}
|
|
211
211
|
};
|
|
212
|
-
if (host instanceof
|
|
212
|
+
if (host instanceof import_chunk_M43AOO5P.ServiceContext) {
|
|
213
213
|
const hostHandler = host.getInvitationHandler({
|
|
214
214
|
kind: import_services.Invitation.Kind.SPACE,
|
|
215
215
|
...options
|
|
@@ -220,7 +220,7 @@ var createInvitation = (host, options) => {
|
|
|
220
220
|
};
|
|
221
221
|
var acceptInvitation = (guest, invitation) => {
|
|
222
222
|
invitation = sanitizeInvitation(invitation);
|
|
223
|
-
if (guest instanceof
|
|
223
|
+
if (guest instanceof import_chunk_M43AOO5P.ServiceContext) {
|
|
224
224
|
const guestHandler = guest.getInvitationHandler({
|
|
225
225
|
kind: invitation.kind
|
|
226
226
|
});
|
|
@@ -229,7 +229,7 @@ var acceptInvitation = (guest, invitation) => {
|
|
|
229
229
|
return guest.join(invitation);
|
|
230
230
|
};
|
|
231
231
|
var createServiceHost = (config, signalManagerContext) => {
|
|
232
|
-
return new
|
|
232
|
+
return new import_chunk_M43AOO5P.ClientServicesHost({
|
|
233
233
|
config,
|
|
234
234
|
signalManager: new import_messaging.MemorySignalManager(signalManagerContext),
|
|
235
235
|
transportFactory: import_network_manager.MemoryTransportFactory
|
|
@@ -243,8 +243,8 @@ var createServiceContext = ({ signalContext = new import_messaging.MemorySignalM
|
|
|
243
243
|
signalManager,
|
|
244
244
|
transportFactory: import_network_manager.MemoryTransportFactory
|
|
245
245
|
});
|
|
246
|
-
const modelFactory = (0,
|
|
247
|
-
return new
|
|
246
|
+
const modelFactory = (0, import_chunk_M43AOO5P.createDefaultModelFactory)();
|
|
247
|
+
return new import_chunk_M43AOO5P.ServiceContext(storage, networkManager, signalManager, modelFactory);
|
|
248
248
|
};
|
|
249
249
|
var createPeers = async (numPeers) => {
|
|
250
250
|
const signalContext = new import_messaging.MemorySignalManagerContext();
|
|
@@ -328,7 +328,7 @@ var TestPeer = class {
|
|
|
328
328
|
feedStore: this.feedStore,
|
|
329
329
|
networkManager: this.networkManager,
|
|
330
330
|
metadataStore: this.metadataStore,
|
|
331
|
-
modelFactory: (0,
|
|
331
|
+
modelFactory: (0, import_chunk_M43AOO5P.createDefaultModelFactory)(),
|
|
332
332
|
snapshotStore: this.snapshotStore,
|
|
333
333
|
blobStore: this.blobStore
|
|
334
334
|
});
|
|
@@ -340,7 +340,7 @@ var TestPeer = class {
|
|
|
340
340
|
return this._props.automergeHost ??= new import_echo_pipeline.AutomergeHost(this.storage.createDirectory("automerge"));
|
|
341
341
|
}
|
|
342
342
|
get dataSpaceManager() {
|
|
343
|
-
return this._props.dataSpaceManager ??= new
|
|
343
|
+
return this._props.dataSpaceManager ??= new import_chunk_M43AOO5P.DataSpaceManager(this.spaceManager, this.metadataStore, new import_echo_pipeline.DataServiceSubscriptions(), this.keyring, this.identity, this.feedStore, this.automergeHost);
|
|
344
344
|
}
|
|
345
345
|
async createIdentity() {
|
|
346
346
|
this._props.signingContext ??= await createSigningContext(this.keyring);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const DXOS_VERSION = "0.3.11-main.
|
|
1
|
+
export declare const DXOS_VERSION = "0.3.11-main.e28df4f";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/client-services",
|
|
3
|
-
"version": "0.3.11-main.
|
|
3
|
+
"version": "0.3.11-main.e28df4f",
|
|
4
4
|
"description": "DXOS client services implementation",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -22,44 +22,44 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"platform": "^1.3.6",
|
|
25
|
-
"@dxos/async": "0.3.11-main.
|
|
26
|
-
"@dxos/client-protocol": "0.3.11-main.
|
|
27
|
-
"@dxos/codec-protobuf": "0.3.11-main.
|
|
28
|
-
"@dxos/config": "0.3.11-main.
|
|
29
|
-
"@dxos/
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/crypto": "0.3.11-main.
|
|
32
|
-
"@dxos/debug": "0.3.11-main.
|
|
33
|
-
"@dxos/document-model": "0.3.11-main.
|
|
34
|
-
"@dxos/echo-
|
|
35
|
-
"@dxos/echo-
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/node-std": "0.3.11-main.
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/rpc": "0.3.11-main.
|
|
50
|
-
"@dxos/teleport-extension-gossip": "0.3.11-main.
|
|
51
|
-
"@dxos/teleport": "0.3.11-main.
|
|
52
|
-
"@dxos/teleport-extension-object-sync": "0.3.11-main.
|
|
53
|
-
"@dxos/text-model": "0.3.11-main.
|
|
54
|
-
"@dxos/timeframe": "0.3.11-main.
|
|
55
|
-
"@dxos/util": "0.3.11-main.
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
25
|
+
"@dxos/async": "0.3.11-main.e28df4f",
|
|
26
|
+
"@dxos/client-protocol": "0.3.11-main.e28df4f",
|
|
27
|
+
"@dxos/codec-protobuf": "0.3.11-main.e28df4f",
|
|
28
|
+
"@dxos/config": "0.3.11-main.e28df4f",
|
|
29
|
+
"@dxos/context": "0.3.11-main.e28df4f",
|
|
30
|
+
"@dxos/credentials": "0.3.11-main.e28df4f",
|
|
31
|
+
"@dxos/crypto": "0.3.11-main.e28df4f",
|
|
32
|
+
"@dxos/debug": "0.3.11-main.e28df4f",
|
|
33
|
+
"@dxos/document-model": "0.3.11-main.e28df4f",
|
|
34
|
+
"@dxos/echo-pipeline": "0.3.11-main.e28df4f",
|
|
35
|
+
"@dxos/echo-db": "0.3.11-main.e28df4f",
|
|
36
|
+
"@dxos/feed-store": "0.3.11-main.e28df4f",
|
|
37
|
+
"@dxos/echo-schema": "0.3.11-main.e28df4f",
|
|
38
|
+
"@dxos/invariant": "0.3.11-main.e28df4f",
|
|
39
|
+
"@dxos/keys": "0.3.11-main.e28df4f",
|
|
40
|
+
"@dxos/lock-file": "0.3.11-main.e28df4f",
|
|
41
|
+
"@dxos/keyring": "0.3.11-main.e28df4f",
|
|
42
|
+
"@dxos/log": "0.3.11-main.e28df4f",
|
|
43
|
+
"@dxos/model-factory": "0.3.11-main.e28df4f",
|
|
44
|
+
"@dxos/messaging": "0.3.11-main.e28df4f",
|
|
45
|
+
"@dxos/network-manager": "0.3.11-main.e28df4f",
|
|
46
|
+
"@dxos/node-std": "0.3.11-main.e28df4f",
|
|
47
|
+
"@dxos/random-access-storage": "0.3.11-main.e28df4f",
|
|
48
|
+
"@dxos/protocols": "0.3.11-main.e28df4f",
|
|
49
|
+
"@dxos/rpc": "0.3.11-main.e28df4f",
|
|
50
|
+
"@dxos/teleport-extension-gossip": "0.3.11-main.e28df4f",
|
|
51
|
+
"@dxos/teleport": "0.3.11-main.e28df4f",
|
|
52
|
+
"@dxos/teleport-extension-object-sync": "0.3.11-main.e28df4f",
|
|
53
|
+
"@dxos/text-model": "0.3.11-main.e28df4f",
|
|
54
|
+
"@dxos/timeframe": "0.3.11-main.e28df4f",
|
|
55
|
+
"@dxos/util": "0.3.11-main.e28df4f",
|
|
56
|
+
"@dxos/tracing": "0.3.11-main.e28df4f",
|
|
57
|
+
"@dxos/websocket-rpc": "0.3.11-main.e28df4f"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/platform": "^1.3.4",
|
|
61
61
|
"@types/readable-stream": "^2.3.9",
|
|
62
|
-
"@dxos/signal": "0.3.11-main.
|
|
62
|
+
"@dxos/signal": "0.3.11-main.e28df4f"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { Event, scheduleTask, sleep, synchronized, trackLeaks } from '@dxos/async';
|
|
6
6
|
import { AUTH_TIMEOUT } from '@dxos/client-protocol';
|
|
7
|
-
import { cancelWithContext, Context } from '@dxos/context';
|
|
7
|
+
import { cancelWithContext, Context, ContextDisposedError } from '@dxos/context';
|
|
8
8
|
import { timed } from '@dxos/debug';
|
|
9
9
|
import {
|
|
10
10
|
type MetadataStore,
|
|
@@ -246,7 +246,7 @@ export class DataSpace {
|
|
|
246
246
|
this.metrics.pipelineInitBegin = new Date();
|
|
247
247
|
await this.initializeDataPipeline();
|
|
248
248
|
} catch (err) {
|
|
249
|
-
if (err instanceof CancelledError) {
|
|
249
|
+
if (err instanceof CancelledError || err instanceof ContextDisposedError) {
|
|
250
250
|
log('data pipeline initialization cancelled', err);
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
@@ -378,7 +378,7 @@ export class DataSpace {
|
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
private _onNewAutomergeRoot(rootUrl: string) {
|
|
381
|
-
log
|
|
381
|
+
log('loading automerge root doc for space', { space: this.key, rootUrl });
|
|
382
382
|
const handle = this._automergeHost.repo.find(rootUrl as any);
|
|
383
383
|
|
|
384
384
|
queueMicrotask(async () => {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const DXOS_VERSION = "0.3.11-main.
|
|
1
|
+
export const DXOS_VERSION = "0.3.11-main.e28df4f";
|