@dxos/client-services 0.4.10-main.eedd150 → 0.4.10-main.ef6fbc2
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-I6GQX7F3.mjs → chunk-2B66DLAB.mjs} +21 -20
- package/dist/lib/browser/{chunk-I6GQX7F3.mjs.map → chunk-2B66DLAB.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-42TXJ32V.cjs → chunk-Y7UTCQRW.cjs} +23 -22
- package/dist/lib/node/{chunk-42TXJ32V.cjs.map → chunk-Y7UTCQRW.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +38 -38
- 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-context.d.ts +4 -4
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +34 -34
- package/src/packlets/services/service-context.ts +6 -4
- 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_Y7UTCQRW_exports = {};
|
|
30
|
+
__export(chunk_Y7UTCQRW_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
DataSpace: () => DataSpace,
|
|
@@ -61,7 +61,7 @@ __export(chunk_42TXJ32V_exports, {
|
|
|
61
61
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
62
62
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
63
63
|
});
|
|
64
|
-
module.exports = __toCommonJS(
|
|
64
|
+
module.exports = __toCommonJS(chunk_Y7UTCQRW_exports);
|
|
65
65
|
var import_async = require("@dxos/async");
|
|
66
66
|
var import_codec_protobuf = require("@dxos/codec-protobuf");
|
|
67
67
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -2891,7 +2891,7 @@ var getPlatform = () => {
|
|
|
2891
2891
|
};
|
|
2892
2892
|
}
|
|
2893
2893
|
};
|
|
2894
|
-
var DXOS_VERSION = "0.4.10-main.
|
|
2894
|
+
var DXOS_VERSION = "0.4.10-main.ef6fbc2";
|
|
2895
2895
|
var __dxlog_file10 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/diagnostics.ts";
|
|
2896
2896
|
var DEFAULT_TIMEOUT = 1e3;
|
|
2897
2897
|
var createDiagnostics = async (clientServices, serviceContext, config) => {
|
|
@@ -4521,8 +4521,9 @@ function _ts_decorate6(decorators, target, key, desc) {
|
|
|
4521
4521
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4522
4522
|
}
|
|
4523
4523
|
var __dxlog_file15 = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/services/service-context.ts";
|
|
4524
|
-
var ServiceContext = class {
|
|
4524
|
+
var ServiceContext = class extends import_context10.Resource {
|
|
4525
4525
|
constructor(storage, level, networkManager, signalManager, _runtimeParams) {
|
|
4526
|
+
super();
|
|
4526
4527
|
this.storage = storage;
|
|
4527
4528
|
this.level = level;
|
|
4528
4529
|
this.networkManager = networkManager;
|
|
@@ -4571,11 +4572,11 @@ var ServiceContext = class {
|
|
|
4571
4572
|
this.invitations = new InvitationsHandler(this.networkManager);
|
|
4572
4573
|
this._handlerFactories.set(import_services12.Invitation.Kind.DEVICE, () => new DeviceInvitationProtocol(this.keyring, () => this.identityManager.identity ?? (0, import_debug6.failUndefined)(), this._acceptIdentity.bind(this)));
|
|
4573
4574
|
}
|
|
4574
|
-
async
|
|
4575
|
+
async _open(ctx) {
|
|
4575
4576
|
await this._checkStorageVersion();
|
|
4576
4577
|
(0, import_log12.log)("opening...", void 0, {
|
|
4577
4578
|
F: __dxlog_file15,
|
|
4578
|
-
L:
|
|
4579
|
+
L: 156,
|
|
4579
4580
|
S: this,
|
|
4580
4581
|
C: (f, a) => f(...a)
|
|
4581
4582
|
});
|
|
@@ -4583,7 +4584,7 @@ var ServiceContext = class {
|
|
|
4583
4584
|
id: this._instanceId
|
|
4584
4585
|
}), {
|
|
4585
4586
|
F: __dxlog_file15,
|
|
4586
|
-
L:
|
|
4587
|
+
L: 157,
|
|
4587
4588
|
S: this,
|
|
4588
4589
|
C: (f, a) => f(...a)
|
|
4589
4590
|
});
|
|
@@ -4599,21 +4600,21 @@ var ServiceContext = class {
|
|
|
4599
4600
|
id: this._instanceId
|
|
4600
4601
|
}), {
|
|
4601
4602
|
F: __dxlog_file15,
|
|
4602
|
-
L:
|
|
4603
|
+
L: 167,
|
|
4603
4604
|
S: this,
|
|
4604
4605
|
C: (f, a) => f(...a)
|
|
4605
4606
|
});
|
|
4606
4607
|
(0, import_log12.log)("opened", void 0, {
|
|
4607
4608
|
F: __dxlog_file15,
|
|
4608
|
-
L:
|
|
4609
|
+
L: 168,
|
|
4609
4610
|
S: this,
|
|
4610
4611
|
C: (f, a) => f(...a)
|
|
4611
4612
|
});
|
|
4612
4613
|
}
|
|
4613
|
-
async
|
|
4614
|
+
async _close() {
|
|
4614
4615
|
(0, import_log12.log)("closing...", void 0, {
|
|
4615
4616
|
F: __dxlog_file15,
|
|
4616
|
-
L:
|
|
4617
|
+
L: 172,
|
|
4617
4618
|
S: this,
|
|
4618
4619
|
C: (f, a) => f(...a)
|
|
4619
4620
|
});
|
|
@@ -4631,7 +4632,7 @@ var ServiceContext = class {
|
|
|
4631
4632
|
await this.indexer.destroy();
|
|
4632
4633
|
(0, import_log12.log)("closed", void 0, {
|
|
4633
4634
|
F: __dxlog_file15,
|
|
4634
|
-
L:
|
|
4635
|
+
L: 185,
|
|
4635
4636
|
S: this,
|
|
4636
4637
|
C: (f, a) => f(...a)
|
|
4637
4638
|
});
|
|
@@ -4645,7 +4646,7 @@ var ServiceContext = class {
|
|
|
4645
4646
|
const factory = this._handlerFactories.get(invitation.kind);
|
|
4646
4647
|
(0, import_invariant14.invariant)(factory, `Unknown invitation kind: ${invitation.kind}`, {
|
|
4647
4648
|
F: __dxlog_file15,
|
|
4648
|
-
L:
|
|
4649
|
+
L: 196,
|
|
4649
4650
|
S: this,
|
|
4650
4651
|
A: [
|
|
4651
4652
|
"factory",
|
|
@@ -4677,7 +4678,7 @@ var ServiceContext = class {
|
|
|
4677
4678
|
async _initialize(ctx) {
|
|
4678
4679
|
(0, import_log12.log)("initializing spaces...", void 0, {
|
|
4679
4680
|
F: __dxlog_file15,
|
|
4680
|
-
L:
|
|
4681
|
+
L: 227,
|
|
4681
4682
|
S: this,
|
|
4682
4683
|
C: (f, a) => f(...a)
|
|
4683
4684
|
});
|
|
@@ -4700,7 +4701,7 @@ var ServiceContext = class {
|
|
|
4700
4701
|
this._handlerFactories.set(import_services12.Invitation.Kind.SPACE, (invitation) => {
|
|
4701
4702
|
(0, import_invariant14.invariant)(this.dataSpaceManager, "dataSpaceManager not initialized yet", {
|
|
4702
4703
|
F: __dxlog_file15,
|
|
4703
|
-
L:
|
|
4704
|
+
L: 251,
|
|
4704
4705
|
S: this,
|
|
4705
4706
|
A: [
|
|
4706
4707
|
"this.dataSpaceManager",
|
|
@@ -4724,7 +4725,7 @@ var ServiceContext = class {
|
|
|
4724
4725
|
details: assertion
|
|
4725
4726
|
}, {
|
|
4726
4727
|
F: __dxlog_file15,
|
|
4727
|
-
L:
|
|
4728
|
+
L: 267,
|
|
4728
4729
|
S: this,
|
|
4729
4730
|
C: (f, a) => f(...a)
|
|
4730
4731
|
});
|
|
@@ -4735,7 +4736,7 @@ var ServiceContext = class {
|
|
|
4735
4736
|
details: assertion
|
|
4736
4737
|
}, {
|
|
4737
4738
|
F: __dxlog_file15,
|
|
4738
|
-
L:
|
|
4739
|
+
L: 271,
|
|
4739
4740
|
S: this,
|
|
4740
4741
|
C: (f, a) => f(...a)
|
|
4741
4742
|
});
|
|
@@ -4746,7 +4747,7 @@ var ServiceContext = class {
|
|
|
4746
4747
|
details: assertion
|
|
4747
4748
|
}, {
|
|
4748
4749
|
F: __dxlog_file15,
|
|
4749
|
-
L:
|
|
4750
|
+
L: 276,
|
|
4750
4751
|
S: this,
|
|
4751
4752
|
C: (f, a) => f(...a)
|
|
4752
4753
|
});
|
|
@@ -4757,7 +4758,7 @@ var ServiceContext = class {
|
|
|
4757
4758
|
} catch (err) {
|
|
4758
4759
|
import_log12.log.catch(err, void 0, {
|
|
4759
4760
|
F: __dxlog_file15,
|
|
4760
|
-
L:
|
|
4761
|
+
L: 282,
|
|
4761
4762
|
S: this,
|
|
4762
4763
|
C: (f, a) => f(...a)
|
|
4763
4764
|
});
|
|
@@ -4769,7 +4770,7 @@ var ServiceContext = class {
|
|
|
4769
4770
|
};
|
|
4770
4771
|
_ts_decorate6([
|
|
4771
4772
|
import_tracing6.trace.span()
|
|
4772
|
-
], ServiceContext.prototype, "
|
|
4773
|
+
], ServiceContext.prototype, "_open", null);
|
|
4773
4774
|
_ts_decorate6([
|
|
4774
4775
|
import_tracing6.trace.span()
|
|
4775
4776
|
], ServiceContext.prototype, "_initialize", null);
|
|
@@ -5635,4 +5636,4 @@ ClientServicesHost = _ts_decorate8([
|
|
|
5635
5636
|
subscribeToSpaces,
|
|
5636
5637
|
subscribeToSwarmInfo
|
|
5637
5638
|
});
|
|
5638
|
-
//# sourceMappingURL=chunk-
|
|
5639
|
+
//# sourceMappingURL=chunk-Y7UTCQRW.cjs.map
|