@dxos/client-services 0.1.51-main.b442c99 → 0.1.51-main.b7fee56
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-YPN5TDAA.mjs → chunk-5W2L64HI.mjs} +8 -17
- package/dist/lib/browser/{chunk-YPN5TDAA.mjs.map → chunk-5W2L64HI.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/index.cjs +7 -16
- 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 +7 -16
- package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
- package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/packlets/identity/identity.test.ts +3 -9
- package/src/packlets/spaces/data-space-manager.test.ts +1 -64
- package/src/packlets/spaces/data-space.ts +2 -4
- package/src/packlets/spaces/spaces-service.ts +0 -4
|
@@ -2198,7 +2198,6 @@ import { PublicKey as PublicKey7 } from "@dxos/keys";
|
|
|
2198
2198
|
import { log as log10 } from "@dxos/log";
|
|
2199
2199
|
import { SpaceState } from "@dxos/protocols/proto/dxos/client/services";
|
|
2200
2200
|
import { AdmittedFeed as AdmittedFeed3 } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
2201
|
-
import { Timeframe } from "@dxos/timeframe";
|
|
2202
2201
|
import { ComplexSet as ComplexSet2 } from "@dxos/util";
|
|
2203
2202
|
|
|
2204
2203
|
// packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts
|
|
@@ -2541,7 +2540,7 @@ var DataSpace = class DataSpace2 {
|
|
|
2541
2540
|
if (err instanceof CancelledError) {
|
|
2542
2541
|
log10("Data pipeline initialization cancelled", err, {
|
|
2543
2542
|
file: "data-space.ts",
|
|
2544
|
-
line:
|
|
2543
|
+
line: 172,
|
|
2545
2544
|
scope: this,
|
|
2546
2545
|
callSite: (f, a) => f(...a)
|
|
2547
2546
|
});
|
|
@@ -2549,7 +2548,7 @@ var DataSpace = class DataSpace2 {
|
|
|
2549
2548
|
}
|
|
2550
2549
|
log10.error("Error initializing data pipeline", err, {
|
|
2551
2550
|
file: "data-space.ts",
|
|
2552
|
-
line:
|
|
2551
|
+
line: 176,
|
|
2553
2552
|
scope: this,
|
|
2554
2553
|
callSite: (f, a) => f(...a)
|
|
2555
2554
|
});
|
|
@@ -2656,7 +2655,7 @@ var DataSpace = class DataSpace2 {
|
|
|
2656
2655
|
async createEpoch() {
|
|
2657
2656
|
var _a, _b;
|
|
2658
2657
|
const epoch = await this.dataPipeline.createEpoch();
|
|
2659
|
-
|
|
2658
|
+
await this.inner.controlPipeline.writer.write({
|
|
2660
2659
|
credential: {
|
|
2661
2660
|
credential: await this._signingContext.credentialSigner.createCredential({
|
|
2662
2661
|
subject: this.key,
|
|
@@ -2667,12 +2666,6 @@ var DataSpace = class DataSpace2 {
|
|
|
2667
2666
|
})
|
|
2668
2667
|
}
|
|
2669
2668
|
});
|
|
2670
|
-
await this.inner.controlPipeline.state.waitUntilTimeframe(new Timeframe([
|
|
2671
|
-
[
|
|
2672
|
-
receipt.feedKey,
|
|
2673
|
-
receipt.seq
|
|
2674
|
-
]
|
|
2675
|
-
]));
|
|
2676
2669
|
for (const feed of (_b = (_a = this.inner.dataPipeline.pipelineState) == null ? void 0 : _a.feeds) != null ? _b : []) {
|
|
2677
2670
|
const indexBeforeEpoch = epoch.timeframe.get(feed.key);
|
|
2678
2671
|
if (indexBeforeEpoch) {
|
|
@@ -2704,7 +2697,7 @@ import { ComplexMap as ComplexMap3, deferFunction as deferFunction2 } from "@dxo
|
|
|
2704
2697
|
import { createCredential } from "@dxos/credentials";
|
|
2705
2698
|
import { failUndefined as failUndefined2 } from "@dxos/debug";
|
|
2706
2699
|
import { AdmittedFeed as AdmittedFeed4, SpaceMember } from "@dxos/protocols/proto/dxos/halo/credentials";
|
|
2707
|
-
import { Timeframe
|
|
2700
|
+
import { Timeframe } from "@dxos/timeframe";
|
|
2708
2701
|
var spaceGenesis = async (keyring, signingContext, space) => {
|
|
2709
2702
|
var _a, _b, _c, _d;
|
|
2710
2703
|
const credentials = [
|
|
@@ -2755,7 +2748,7 @@ var spaceGenesis = async (keyring, signingContext, space) => {
|
|
|
2755
2748
|
"@type": "dxos.halo.credentials.Epoch",
|
|
2756
2749
|
number: 0,
|
|
2757
2750
|
previousId: void 0,
|
|
2758
|
-
timeframe: new
|
|
2751
|
+
timeframe: new Timeframe(),
|
|
2759
2752
|
snapshotCid: void 0
|
|
2760
2753
|
}
|
|
2761
2754
|
})
|
|
@@ -3089,7 +3082,7 @@ var SpacesServiceImpl = class {
|
|
|
3089
3082
|
spaces
|
|
3090
3083
|
}, {
|
|
3091
3084
|
file: "spaces-service.ts",
|
|
3092
|
-
line:
|
|
3085
|
+
line: 59,
|
|
3093
3086
|
scope: this,
|
|
3094
3087
|
callSite: (f, a) => f(...a)
|
|
3095
3088
|
});
|
|
@@ -3176,13 +3169,12 @@ var SpacesServiceImpl = class {
|
|
|
3176
3169
|
await space.createEpoch();
|
|
3177
3170
|
}
|
|
3178
3171
|
_transformSpace(space) {
|
|
3179
|
-
var _a, _b, _c, _d, _e
|
|
3172
|
+
var _a, _b, _c, _d, _e;
|
|
3180
3173
|
return {
|
|
3181
3174
|
spaceKey: space.key,
|
|
3182
3175
|
state: space.state,
|
|
3183
3176
|
error: space.error ? encodeError(space.error) : void 0,
|
|
3184
3177
|
pipeline: {
|
|
3185
|
-
currentEpoch: space.dataPipeline.currentEpoch,
|
|
3186
3178
|
controlFeeds: space.inner.controlPipeline.state.feeds.map((feed) => feed.key),
|
|
3187
3179
|
currentControlTimeframe: space.inner.controlPipeline.state.timeframe,
|
|
3188
3180
|
targetControlTimeframe: space.inner.controlPipeline.state.targetTimeframe,
|
|
@@ -3204,7 +3196,6 @@ var SpacesServiceImpl = class {
|
|
|
3204
3196
|
presence: ((_c2 = this._identityManager.identity) == null ? void 0 : _c2.identityKey.equals(member.key)) || space.presence.getPeersOnline().filter(({ identityKey }) => identityKey.equals(member.key)).length > 0 ? SpaceMember2.PresenceState.ONLINE : SpaceMember2.PresenceState.OFFLINE
|
|
3205
3197
|
};
|
|
3206
3198
|
}),
|
|
3207
|
-
creator: (_f = space.inner.spaceState.creator) == null ? void 0 : _f.key,
|
|
3208
3199
|
cache: space.cache,
|
|
3209
3200
|
metrics: space.metrics
|
|
3210
3201
|
};
|
|
@@ -3964,4 +3955,4 @@ export {
|
|
|
3964
3955
|
ClientServicesHost,
|
|
3965
3956
|
LocalClientServices
|
|
3966
3957
|
};
|
|
3967
|
-
//# sourceMappingURL=chunk-
|
|
3958
|
+
//# sourceMappingURL=chunk-5W2L64HI.mjs.map
|