@dxos/client-services 0.5.8-main.e343621 → 0.5.8-main.f69e6e4
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-NS2LCDCC.mjs → chunk-BHK4D7JV.mjs} +22 -22
- package/dist/lib/browser/{chunk-NS2LCDCC.mjs.map → chunk-BHK4D7JV.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-PE33O7RL.cjs → chunk-PIZD2NZ4.cjs} +24 -24
- package/dist/lib/node/{chunk-PE33O7RL.cjs.map → chunk-PIZD2NZ4.cjs.map} +3 -3
- package/dist/lib/node/index.cjs +44 -44
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/spaces/data-space.ts +6 -1
- package/src/version.ts +1 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
InvitationsManager,
|
|
8
8
|
ServiceContext,
|
|
9
9
|
SpaceInvitationProtocol
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-BHK4D7JV.mjs";
|
|
11
11
|
|
|
12
12
|
// packages/sdk/client-services/src/packlets/testing/credential-utils.ts
|
|
13
13
|
import { createCredential } from "@dxos/credentials";
|
|
@@ -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_PIZD2NZ4_exports = {};
|
|
30
|
+
__export(chunk_PIZD2NZ4_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
ClientServicesProviderResource: () => ClientServicesProviderResource,
|
|
@@ -67,7 +67,7 @@ __export(chunk_PE33O7RL_exports, {
|
|
|
67
67
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
68
68
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
69
69
|
});
|
|
70
|
-
module.exports = __toCommonJS(
|
|
70
|
+
module.exports = __toCommonJS(chunk_PIZD2NZ4_exports);
|
|
71
71
|
var import_async = require("@dxos/async");
|
|
72
72
|
var import_codec_protobuf = require("@dxos/codec-protobuf");
|
|
73
73
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -3776,7 +3776,7 @@ var DataSpace = class {
|
|
|
3776
3776
|
state: import_services9.SpaceState[this._state]
|
|
3777
3777
|
}, {
|
|
3778
3778
|
F: __dxlog_file13,
|
|
3779
|
-
L:
|
|
3779
|
+
L: 142,
|
|
3780
3780
|
S: this,
|
|
3781
3781
|
C: (f, a) => f(...a)
|
|
3782
3782
|
});
|
|
@@ -3829,7 +3829,7 @@ var DataSpace = class {
|
|
|
3829
3829
|
state: import_services9.SpaceState[this._state]
|
|
3830
3830
|
}, {
|
|
3831
3831
|
F: __dxlog_file13,
|
|
3832
|
-
L:
|
|
3832
|
+
L: 205,
|
|
3833
3833
|
S: this,
|
|
3834
3834
|
C: (f, a) => f(...a)
|
|
3835
3835
|
});
|
|
@@ -3847,7 +3847,7 @@ var DataSpace = class {
|
|
|
3847
3847
|
state: import_services9.SpaceState[this._state]
|
|
3848
3848
|
}, {
|
|
3849
3849
|
F: __dxlog_file13,
|
|
3850
|
-
L:
|
|
3850
|
+
L: 219,
|
|
3851
3851
|
S: this,
|
|
3852
3852
|
C: (f, a) => f(...a)
|
|
3853
3853
|
});
|
|
@@ -3879,7 +3879,7 @@ var DataSpace = class {
|
|
|
3879
3879
|
if (err instanceof import_protocols8.CancelledError || err instanceof import_context9.ContextDisposedError) {
|
|
3880
3880
|
(0, import_log10.log)("data pipeline initialization cancelled", err, {
|
|
3881
3881
|
F: __dxlog_file13,
|
|
3882
|
-
L:
|
|
3882
|
+
L: 252,
|
|
3883
3883
|
S: this,
|
|
3884
3884
|
C: (f, a) => f(...a)
|
|
3885
3885
|
});
|
|
@@ -3887,7 +3887,7 @@ var DataSpace = class {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
import_log10.log.error("Error initializing data pipeline", err, {
|
|
3889
3889
|
F: __dxlog_file13,
|
|
3890
|
-
L:
|
|
3890
|
+
L: 256,
|
|
3891
3891
|
S: this,
|
|
3892
3892
|
C: (f, a) => f(...a)
|
|
3893
3893
|
});
|
|
@@ -3896,7 +3896,7 @@ var DataSpace = class {
|
|
|
3896
3896
|
state: import_services9.SpaceState[this._state]
|
|
3897
3897
|
}, {
|
|
3898
3898
|
F: __dxlog_file13,
|
|
3899
|
-
L:
|
|
3899
|
+
L: 258,
|
|
3900
3900
|
S: this,
|
|
3901
3901
|
C: (f, a) => f(...a)
|
|
3902
3902
|
});
|
|
@@ -3916,7 +3916,7 @@ var DataSpace = class {
|
|
|
3916
3916
|
state: import_services9.SpaceState[this._state]
|
|
3917
3917
|
}, {
|
|
3918
3918
|
F: __dxlog_file13,
|
|
3919
|
-
L:
|
|
3919
|
+
L: 274,
|
|
3920
3920
|
S: this,
|
|
3921
3921
|
C: (f, a) => f(...a)
|
|
3922
3922
|
});
|
|
@@ -3926,7 +3926,7 @@ var DataSpace = class {
|
|
|
3926
3926
|
await (0, import_context9.cancelWithContext)(this._ctx, this.automergeSpaceState.ensureEpochInitialized());
|
|
3927
3927
|
(0, import_log10.log)("data pipeline ready", void 0, {
|
|
3928
3928
|
F: __dxlog_file13,
|
|
3929
|
-
L:
|
|
3929
|
+
L: 286,
|
|
3930
3930
|
S: this,
|
|
3931
3931
|
C: (f, a) => f(...a)
|
|
3932
3932
|
});
|
|
@@ -3936,7 +3936,7 @@ var DataSpace = class {
|
|
|
3936
3936
|
state: import_services9.SpaceState[this._state]
|
|
3937
3937
|
}, {
|
|
3938
3938
|
F: __dxlog_file13,
|
|
3939
|
-
L:
|
|
3939
|
+
L: 290,
|
|
3940
3940
|
S: this,
|
|
3941
3941
|
C: (f, a) => f(...a)
|
|
3942
3942
|
});
|
|
@@ -3952,7 +3952,7 @@ var DataSpace = class {
|
|
|
3952
3952
|
await this._createWritableFeeds();
|
|
3953
3953
|
(0, import_log10.log)("writable feeds created", void 0, {
|
|
3954
3954
|
F: __dxlog_file13,
|
|
3955
|
-
L:
|
|
3955
|
+
L: 306,
|
|
3956
3956
|
S: this,
|
|
3957
3957
|
C: (f, a) => f(...a)
|
|
3958
3958
|
});
|
|
@@ -4015,7 +4015,7 @@ var DataSpace = class {
|
|
|
4015
4015
|
rootUrl
|
|
4016
4016
|
}, {
|
|
4017
4017
|
F: __dxlog_file13,
|
|
4018
|
-
L:
|
|
4018
|
+
L: 372,
|
|
4019
4019
|
S: this,
|
|
4020
4020
|
C: (f, a) => f(...a)
|
|
4021
4021
|
});
|
|
@@ -4045,7 +4045,7 @@ var DataSpace = class {
|
|
|
4045
4045
|
rootUrl
|
|
4046
4046
|
}, {
|
|
4047
4047
|
F: __dxlog_file13,
|
|
4048
|
-
L:
|
|
4048
|
+
L: 399,
|
|
4049
4049
|
S: this,
|
|
4050
4050
|
C: (f, a) => f(...a)
|
|
4051
4051
|
});
|
|
@@ -4060,7 +4060,7 @@ var DataSpace = class {
|
|
|
4060
4060
|
err
|
|
4061
4061
|
}, {
|
|
4062
4062
|
F: __dxlog_file13,
|
|
4063
|
-
L:
|
|
4063
|
+
L: 405,
|
|
4064
4064
|
S: this,
|
|
4065
4065
|
C: (f, a) => f(...a)
|
|
4066
4066
|
});
|
|
@@ -4115,7 +4115,7 @@ var DataSpace = class {
|
|
|
4115
4115
|
const newRoot = this._echoHost.automergeRepo.create(rootHandle.docSync());
|
|
4116
4116
|
(0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4117
4117
|
F: __dxlog_file13,
|
|
4118
|
-
L:
|
|
4118
|
+
L: 455,
|
|
4119
4119
|
S: this,
|
|
4120
4120
|
A: [
|
|
4121
4121
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
@@ -4134,7 +4134,7 @@ var DataSpace = class {
|
|
|
4134
4134
|
{
|
|
4135
4135
|
import_log10.log.info("Fragmenting", void 0, {
|
|
4136
4136
|
F: __dxlog_file13,
|
|
4137
|
-
L:
|
|
4137
|
+
L: 467,
|
|
4138
4138
|
S: this,
|
|
4139
4139
|
C: (f, a) => f(...a)
|
|
4140
4140
|
});
|
|
@@ -4146,7 +4146,7 @@ var DataSpace = class {
|
|
|
4146
4146
|
const otherObjects = objects.filter(([key]) => key !== properties?.[0]);
|
|
4147
4147
|
(0, import_invariant11.invariant)(properties, "Properties not found", {
|
|
4148
4148
|
F: __dxlog_file13,
|
|
4149
|
-
L:
|
|
4149
|
+
L: 477,
|
|
4150
4150
|
S: this,
|
|
4151
4151
|
A: [
|
|
4152
4152
|
"properties",
|
|
@@ -4162,14 +4162,14 @@ var DataSpace = class {
|
|
|
4162
4162
|
const newRoot = this._echoHost.automergeRepo.create(newSpaceDoc);
|
|
4163
4163
|
(0, import_invariant11.invariant)(typeof newRoot.url === "string" && newRoot.url.length > 0, void 0, {
|
|
4164
4164
|
F: __dxlog_file13,
|
|
4165
|
-
L:
|
|
4165
|
+
L: 482,
|
|
4166
4166
|
S: this,
|
|
4167
4167
|
A: [
|
|
4168
4168
|
"typeof newRoot.url === 'string' && newRoot.url.length > 0",
|
|
4169
4169
|
""
|
|
4170
4170
|
]
|
|
4171
4171
|
});
|
|
4172
|
-
const docLoader = new import_echo_pipeline2.AutomergeDocumentLoaderImpl(this.key, this._echoHost.automergeRepo);
|
|
4172
|
+
const docLoader = new import_echo_pipeline2.AutomergeDocumentLoaderImpl(await (0, import_echo_pipeline2.createIdFromSpaceKey)(this.key), this._echoHost.automergeRepo, this.key);
|
|
4173
4173
|
await docLoader.loadSpaceRootDocHandle(this._ctx, {
|
|
4174
4174
|
rootUrl: newRoot.url
|
|
4175
4175
|
});
|
|
@@ -4231,7 +4231,7 @@ var DataSpace = class {
|
|
|
4231
4231
|
state: import_services9.SpaceState[this._state]
|
|
4232
4232
|
}, {
|
|
4233
4233
|
F: __dxlog_file13,
|
|
4234
|
-
L:
|
|
4234
|
+
L: 552,
|
|
4235
4235
|
S: this,
|
|
4236
4236
|
C: (f, a) => f(...a)
|
|
4237
4237
|
});
|
|
@@ -5369,7 +5369,7 @@ var ServiceRegistry = class {
|
|
|
5369
5369
|
delete this._handlers[name];
|
|
5370
5370
|
}
|
|
5371
5371
|
};
|
|
5372
|
-
var DXOS_VERSION = "0.5.8-main.
|
|
5372
|
+
var DXOS_VERSION = "0.5.8-main.f69e6e4";
|
|
5373
5373
|
var getPlatform = () => {
|
|
5374
5374
|
if (process.browser) {
|
|
5375
5375
|
if (typeof window !== "undefined") {
|
|
@@ -6390,4 +6390,4 @@ var findConfigs = () => {
|
|
|
6390
6390
|
subscribeToSpaces,
|
|
6391
6391
|
subscribeToSwarmInfo
|
|
6392
6392
|
});
|
|
6393
|
-
//# sourceMappingURL=chunk-
|
|
6393
|
+
//# sourceMappingURL=chunk-PIZD2NZ4.cjs.map
|