@dxos/client-services 0.4.10-main.99ef736 → 0.4.10-main.ec8b427
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-Z5IWAFLC.mjs → chunk-4NKBBUMB.mjs} +21 -29
- package/dist/lib/browser/{chunk-Z5IWAFLC.mjs.map → chunk-4NKBBUMB.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +20 -48
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-IMCYLQK4.cjs → chunk-5YRLBMIC.cjs} +24 -32
- package/dist/lib/node/{chunk-IMCYLQK4.cjs.map → chunk-5YRLBMIC.cjs.map} +2 -2
- package/dist/lib/node/index.cjs +57 -85
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +6 -6
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/shared-worker-connection.d.ts +5 -5
- package/dist/types/src/packlets/vault/shared-worker-connection.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/worker-runtime.d.ts +0 -2
- package/dist/types/src/packlets/vault/worker-runtime.d.ts.map +1 -1
- package/dist/types/src/packlets/vault/worker-session.d.ts +0 -2
- package/dist/types/src/packlets/vault/worker-session.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +34 -34
- package/src/packlets/services/service-host.ts +0 -3
- package/src/packlets/vault/shared-worker-connection.ts +8 -3
- package/src/packlets/vault/worker-runtime.ts +2 -27
- package/src/packlets/vault/worker-session.ts +0 -6
- package/src/version.ts +1 -1
|
@@ -26,8 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_5YRLBMIC_exports = {};
|
|
30
|
+
__export(chunk_5YRLBMIC_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
DataSpace: () => DataSpace,
|
|
@@ -60,7 +60,7 @@ __export(chunk_IMCYLQK4_exports, {
|
|
|
60
60
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
61
61
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
62
62
|
});
|
|
63
|
-
module.exports = __toCommonJS(
|
|
63
|
+
module.exports = __toCommonJS(chunk_5YRLBMIC_exports);
|
|
64
64
|
var import_async = require("@dxos/async");
|
|
65
65
|
var import_codec_protobuf = require("@dxos/codec-protobuf");
|
|
66
66
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -2884,7 +2884,7 @@ var getPlatform = () => {
|
|
|
2884
2884
|
};
|
|
2885
2885
|
}
|
|
2886
2886
|
};
|
|
2887
|
-
var DXOS_VERSION = "0.4.10-main.
|
|
2887
|
+
var DXOS_VERSION = "0.4.10-main.ec8b427";
|
|
2888
2888
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
2889
2889
|
var DEFAULT_TIMEOUT = 1e3;
|
|
2890
2890
|
var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
@@ -5226,21 +5226,13 @@ var ClientServicesHost = class {
|
|
|
5226
5226
|
this._storage = createStorageObjects(config.get("runtime.client.storage", {})).storage;
|
|
5227
5227
|
}
|
|
5228
5228
|
}
|
|
5229
|
-
if (!options.signalManager) {
|
|
5230
|
-
import_log14.log.warn("running signaling without telemetry metadata.", void 0, {
|
|
5231
|
-
F: __dxlog_file18,
|
|
5232
|
-
L: 191,
|
|
5233
|
-
S: this,
|
|
5234
|
-
C: (f, a) => f(...a)
|
|
5235
|
-
});
|
|
5236
|
-
}
|
|
5237
5229
|
const { connectionLog = true, transportFactory = (0, import_network_manager2.createSimplePeerTransportFactory)({
|
|
5238
5230
|
iceServers: this._config?.get("runtime.services.ice")
|
|
5239
5231
|
}), signalManager = new import_messaging.WebsocketSignalManager(this._config?.get("runtime.services.signaling") ?? []) } = options;
|
|
5240
5232
|
this._signalManager = signalManager;
|
|
5241
5233
|
(0, import_invariant16.invariant)(!this._networkManager, "network manager already set", {
|
|
5242
5234
|
F: __dxlog_file18,
|
|
5243
|
-
L:
|
|
5235
|
+
L: 199,
|
|
5244
5236
|
S: this,
|
|
5245
5237
|
A: [
|
|
5246
5238
|
"!this._networkManager",
|
|
@@ -5254,7 +5246,7 @@ var ClientServicesHost = class {
|
|
|
5254
5246
|
});
|
|
5255
5247
|
(0, import_log14.log)("initialized", void 0, {
|
|
5256
5248
|
F: __dxlog_file18,
|
|
5257
|
-
L:
|
|
5249
|
+
L: 206,
|
|
5258
5250
|
S: this,
|
|
5259
5251
|
C: (f, a) => f(...a)
|
|
5260
5252
|
});
|
|
@@ -5268,13 +5260,13 @@ var ClientServicesHost = class {
|
|
|
5268
5260
|
id: traceId
|
|
5269
5261
|
}), {
|
|
5270
5262
|
F: __dxlog_file18,
|
|
5271
|
-
L:
|
|
5263
|
+
L: 217,
|
|
5272
5264
|
S: this,
|
|
5273
5265
|
C: (f, a) => f(...a)
|
|
5274
5266
|
});
|
|
5275
5267
|
(0, import_invariant16.invariant)(this._config, "config not set", {
|
|
5276
5268
|
F: __dxlog_file18,
|
|
5277
|
-
L:
|
|
5269
|
+
L: 219,
|
|
5278
5270
|
S: this,
|
|
5279
5271
|
A: [
|
|
5280
5272
|
"this._config",
|
|
@@ -5283,7 +5275,7 @@ var ClientServicesHost = class {
|
|
|
5283
5275
|
});
|
|
5284
5276
|
(0, import_invariant16.invariant)(this._storage, "storage not set", {
|
|
5285
5277
|
F: __dxlog_file18,
|
|
5286
|
-
L:
|
|
5278
|
+
L: 220,
|
|
5287
5279
|
S: this,
|
|
5288
5280
|
A: [
|
|
5289
5281
|
"this._storage",
|
|
@@ -5292,7 +5284,7 @@ var ClientServicesHost = class {
|
|
|
5292
5284
|
});
|
|
5293
5285
|
(0, import_invariant16.invariant)(this._signalManager, "signal manager not set", {
|
|
5294
5286
|
F: __dxlog_file18,
|
|
5295
|
-
L:
|
|
5287
|
+
L: 221,
|
|
5296
5288
|
S: this,
|
|
5297
5289
|
A: [
|
|
5298
5290
|
"this._signalManager",
|
|
@@ -5301,7 +5293,7 @@ var ClientServicesHost = class {
|
|
|
5301
5293
|
});
|
|
5302
5294
|
(0, import_invariant16.invariant)(this._networkManager, "network manager not set", {
|
|
5303
5295
|
F: __dxlog_file18,
|
|
5304
|
-
L:
|
|
5296
|
+
L: 222,
|
|
5305
5297
|
S: this,
|
|
5306
5298
|
A: [
|
|
5307
5299
|
"this._networkManager",
|
|
@@ -5313,7 +5305,7 @@ var ClientServicesHost = class {
|
|
|
5313
5305
|
lockKey: this._resourceLock?.lockKey
|
|
5314
5306
|
}, {
|
|
5315
5307
|
F: __dxlog_file18,
|
|
5316
|
-
L:
|
|
5308
|
+
L: 225,
|
|
5317
5309
|
S: this,
|
|
5318
5310
|
C: (f, a) => f(...a)
|
|
5319
5311
|
});
|
|
@@ -5347,7 +5339,7 @@ var ClientServicesHost = class {
|
|
|
5347
5339
|
await this._serviceContext.open(ctx);
|
|
5348
5340
|
(0, import_invariant16.invariant)(this.serviceRegistry.services.InvitationsService, void 0, {
|
|
5349
5341
|
F: __dxlog_file18,
|
|
5350
|
-
L:
|
|
5342
|
+
L: 286,
|
|
5351
5343
|
S: this,
|
|
5352
5344
|
A: [
|
|
5353
5345
|
"this.serviceRegistry.services.InvitationsService",
|
|
@@ -5359,7 +5351,7 @@ var ClientServicesHost = class {
|
|
|
5359
5351
|
count: loadedInvitations.invitations?.length
|
|
5360
5352
|
}, {
|
|
5361
5353
|
F: __dxlog_file18,
|
|
5362
|
-
L:
|
|
5354
|
+
L: 289,
|
|
5363
5355
|
S: this,
|
|
5364
5356
|
C: (f, a) => f(...a)
|
|
5365
5357
|
});
|
|
@@ -5381,7 +5373,7 @@ var ClientServicesHost = class {
|
|
|
5381
5373
|
deviceKey
|
|
5382
5374
|
}, {
|
|
5383
5375
|
F: __dxlog_file18,
|
|
5384
|
-
L:
|
|
5376
|
+
L: 306,
|
|
5385
5377
|
S: this,
|
|
5386
5378
|
C: (f, a) => f(...a)
|
|
5387
5379
|
});
|
|
@@ -5389,7 +5381,7 @@ var ClientServicesHost = class {
|
|
|
5389
5381
|
id: traceId
|
|
5390
5382
|
}), {
|
|
5391
5383
|
F: __dxlog_file18,
|
|
5392
|
-
L:
|
|
5384
|
+
L: 307,
|
|
5393
5385
|
S: this,
|
|
5394
5386
|
C: (f, a) => f(...a)
|
|
5395
5387
|
});
|
|
@@ -5403,7 +5395,7 @@ var ClientServicesHost = class {
|
|
|
5403
5395
|
deviceKey
|
|
5404
5396
|
}, {
|
|
5405
5397
|
F: __dxlog_file18,
|
|
5406
|
-
L:
|
|
5398
|
+
L: 318,
|
|
5407
5399
|
S: this,
|
|
5408
5400
|
C: (f, a) => f(...a)
|
|
5409
5401
|
});
|
|
@@ -5419,7 +5411,7 @@ var ClientServicesHost = class {
|
|
|
5419
5411
|
deviceKey
|
|
5420
5412
|
}, {
|
|
5421
5413
|
F: __dxlog_file18,
|
|
5422
|
-
L:
|
|
5414
|
+
L: 325,
|
|
5423
5415
|
S: this,
|
|
5424
5416
|
C: (f, a) => f(...a)
|
|
5425
5417
|
});
|
|
@@ -5430,13 +5422,13 @@ var ClientServicesHost = class {
|
|
|
5430
5422
|
id: traceId
|
|
5431
5423
|
}), {
|
|
5432
5424
|
F: __dxlog_file18,
|
|
5433
|
-
L:
|
|
5425
|
+
L: 330,
|
|
5434
5426
|
S: this,
|
|
5435
5427
|
C: (f, a) => f(...a)
|
|
5436
5428
|
});
|
|
5437
5429
|
(0, import_log14.log)("resetting...", void 0, {
|
|
5438
5430
|
F: __dxlog_file18,
|
|
5439
|
-
L:
|
|
5431
|
+
L: 332,
|
|
5440
5432
|
S: this,
|
|
5441
5433
|
C: (f, a) => f(...a)
|
|
5442
5434
|
});
|
|
@@ -5444,7 +5436,7 @@ var ClientServicesHost = class {
|
|
|
5444
5436
|
await this._storage.reset();
|
|
5445
5437
|
(0, import_log14.log)("reset", void 0, {
|
|
5446
5438
|
F: __dxlog_file18,
|
|
5447
|
-
L:
|
|
5439
|
+
L: 335,
|
|
5448
5440
|
S: this,
|
|
5449
5441
|
C: (f, a) => f(...a)
|
|
5450
5442
|
});
|
|
@@ -5452,7 +5444,7 @@ var ClientServicesHost = class {
|
|
|
5452
5444
|
id: traceId
|
|
5453
5445
|
}), {
|
|
5454
5446
|
F: __dxlog_file18,
|
|
5455
|
-
L:
|
|
5447
|
+
L: 336,
|
|
5456
5448
|
S: this,
|
|
5457
5449
|
C: (f, a) => f(...a)
|
|
5458
5450
|
});
|
|
@@ -5467,7 +5459,7 @@ var ClientServicesHost = class {
|
|
|
5467
5459
|
const automergeIndex = space.automergeSpaceState.rootUrl;
|
|
5468
5460
|
(0, import_invariant16.invariant)(automergeIndex, void 0, {
|
|
5469
5461
|
F: __dxlog_file18,
|
|
5470
|
-
L:
|
|
5462
|
+
L: 351,
|
|
5471
5463
|
S: this,
|
|
5472
5464
|
A: [
|
|
5473
5465
|
"automergeIndex",
|
|
@@ -5536,4 +5528,4 @@ ClientServicesHost = _ts_decorate8([
|
|
|
5536
5528
|
subscribeToSpaces,
|
|
5537
5529
|
subscribeToSwarmInfo
|
|
5538
5530
|
});
|
|
5539
|
-
//# sourceMappingURL=chunk-
|
|
5531
|
+
//# sourceMappingURL=chunk-5YRLBMIC.cjs.map
|