@dxos/client-services 0.5.9-main.a50ff17 → 0.5.9-main.b06c86b
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-K6NPH6LF.mjs → chunk-2JCI5YEM.mjs} +45 -23
- package/dist/lib/browser/chunk-2JCI5YEM.mjs.map +7 -0
- 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-E6AQJD5I.cjs → chunk-HRQTR7UW.cjs} +48 -26
- package/dist/lib/node/chunk-HRQTR7UW.cjs.map +7 -0
- package/dist/lib/node/index.cjs +41 -41
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/invitations/invitations-handler.ts +13 -5
- package/src/packlets/spaces/data-space.ts +5 -5
- package/src/packlets/spaces/spaces-service.ts +12 -2
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-K6NPH6LF.mjs.map +0 -7
- package/dist/lib/node/chunk-E6AQJD5I.cjs.map +0 -7
|
@@ -355,7 +355,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
|
|
|
355
355
|
import { TRACE_PROCESSOR } from "@dxos/tracing";
|
|
356
356
|
|
|
357
357
|
// packages/sdk/client-services/src/version.ts
|
|
358
|
-
var DXOS_VERSION = "0.5.9-main.
|
|
358
|
+
var DXOS_VERSION = "0.5.9-main.b06c86b";
|
|
359
359
|
|
|
360
360
|
// packages/sdk/client-services/src/packlets/services/platform.ts
|
|
361
361
|
import { Platform } from "@dxos/protocols/proto/dxos/client/services";
|
|
@@ -2859,16 +2859,29 @@ var InvitationsHandler = class {
|
|
|
2859
2859
|
};
|
|
2860
2860
|
}
|
|
2861
2861
|
_logStateUpdate(invitation, actor, newState) {
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2862
|
+
if (this._isNotTerminal(newState)) {
|
|
2863
|
+
log10("invitation state update", {
|
|
2864
|
+
actor: actor?.constructor.name,
|
|
2865
|
+
newState: stateToString(newState),
|
|
2866
|
+
oldState: stateToString(invitation.state)
|
|
2867
|
+
}, {
|
|
2868
|
+
F: __dxlog_file12,
|
|
2869
|
+
L: 439,
|
|
2870
|
+
S: this,
|
|
2871
|
+
C: (f, a) => f(...a)
|
|
2872
|
+
});
|
|
2873
|
+
} else {
|
|
2874
|
+
log10.info("invitation state update", {
|
|
2875
|
+
actor: actor?.constructor.name,
|
|
2876
|
+
newState: stateToString(newState),
|
|
2877
|
+
oldState: stateToString(invitation.state)
|
|
2878
|
+
}, {
|
|
2879
|
+
F: __dxlog_file12,
|
|
2880
|
+
L: 445,
|
|
2881
|
+
S: this,
|
|
2882
|
+
C: (f, a) => f(...a)
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2872
2885
|
}
|
|
2873
2886
|
_isNotTerminal(currentState) {
|
|
2874
2887
|
return ![
|
|
@@ -2883,7 +2896,7 @@ var InvitationsHandler = class {
|
|
|
2883
2896
|
for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
|
|
2884
2897
|
log10("guest waiting for authentication code...", void 0, {
|
|
2885
2898
|
F: __dxlog_file12,
|
|
2886
|
-
L:
|
|
2899
|
+
L: 470,
|
|
2887
2900
|
S: this,
|
|
2888
2901
|
C: (f, a) => f(...a)
|
|
2889
2902
|
});
|
|
@@ -2891,7 +2904,7 @@ var InvitationsHandler = class {
|
|
|
2891
2904
|
const authCode = await authenticated.wait(options);
|
|
2892
2905
|
log10("sending authentication request", void 0, {
|
|
2893
2906
|
F: __dxlog_file12,
|
|
2894
|
-
L:
|
|
2907
|
+
L: 474,
|
|
2895
2908
|
S: this,
|
|
2896
2909
|
C: (f, a) => f(...a)
|
|
2897
2910
|
});
|
|
@@ -2910,7 +2923,7 @@ var InvitationsHandler = class {
|
|
|
2910
2923
|
attempt
|
|
2911
2924
|
}, {
|
|
2912
2925
|
F: __dxlog_file12,
|
|
2913
|
-
L:
|
|
2926
|
+
L: 485,
|
|
2914
2927
|
S: this,
|
|
2915
2928
|
C: (f, a) => f(...a)
|
|
2916
2929
|
});
|
|
@@ -2928,7 +2941,7 @@ var InvitationsHandler = class {
|
|
|
2928
2941
|
}
|
|
2929
2942
|
log10("sending authentication request", void 0, {
|
|
2930
2943
|
F: __dxlog_file12,
|
|
2931
|
-
L:
|
|
2944
|
+
L: 504,
|
|
2932
2945
|
S: this,
|
|
2933
2946
|
C: (f, a) => f(...a)
|
|
2934
2947
|
});
|
|
@@ -4545,7 +4558,6 @@ var DataSpace = class {
|
|
|
4545
4558
|
S: this,
|
|
4546
4559
|
C: (f, a) => f(...a)
|
|
4547
4560
|
});
|
|
4548
|
-
this._echoHost.replicateDocument(rootUrl);
|
|
4549
4561
|
const handle = this._echoHost.automergeRepo.find(rootUrl);
|
|
4550
4562
|
queueMicrotask(async () => {
|
|
4551
4563
|
try {
|
|
@@ -4572,8 +4584,10 @@ var DataSpace = class {
|
|
|
4572
4584
|
const root = await this._echoHost.openSpaceRoot(handle.url);
|
|
4573
4585
|
this._databaseRoot = root;
|
|
4574
4586
|
if (root.getVersion() !== SpaceDocVersion.CURRENT) {
|
|
4575
|
-
this._state
|
|
4576
|
-
|
|
4587
|
+
if (this._state !== SpaceState2.REQUIRES_MIGRATION) {
|
|
4588
|
+
this._state = SpaceState2.REQUIRES_MIGRATION;
|
|
4589
|
+
this.stateUpdate.emit();
|
|
4590
|
+
}
|
|
4577
4591
|
} else {
|
|
4578
4592
|
if (this._state !== SpaceState2.READY) {
|
|
4579
4593
|
await this._enterReadyState();
|
|
@@ -5446,7 +5460,15 @@ var SpacesServiceImpl = class {
|
|
|
5446
5460
|
const subscribeSpaces = () => {
|
|
5447
5461
|
subscriptions.clear();
|
|
5448
5462
|
for (const space of dataSpaceManager.spaces.values()) {
|
|
5449
|
-
|
|
5463
|
+
let lastState;
|
|
5464
|
+
subscriptions.add(space.stateUpdate.on(ctx, () => {
|
|
5465
|
+
if (space.state !== lastState) {
|
|
5466
|
+
scheduler.forceTrigger();
|
|
5467
|
+
} else {
|
|
5468
|
+
scheduler.trigger();
|
|
5469
|
+
}
|
|
5470
|
+
lastState = space.state;
|
|
5471
|
+
}));
|
|
5450
5472
|
subscriptions.add(space.presence.updated.on(ctx, () => scheduler.trigger()));
|
|
5451
5473
|
subscriptions.add(space.automergeSpaceState.onNewEpoch.on(ctx, () => scheduler.trigger()));
|
|
5452
5474
|
subscriptions.add(space.inner.controlPipeline.state.timeframeUpdate.on(ctx, () => scheduler.trigger()));
|
|
@@ -5512,7 +5534,7 @@ var SpacesServiceImpl = class {
|
|
|
5512
5534
|
} else {
|
|
5513
5535
|
invariant15(!credential.id, "Id on unsigned credentials is not allowed", {
|
|
5514
5536
|
F: __dxlog_file19,
|
|
5515
|
-
L:
|
|
5537
|
+
L: 209,
|
|
5516
5538
|
S: this,
|
|
5517
5539
|
A: [
|
|
5518
5540
|
"!credential.id",
|
|
@@ -5521,7 +5543,7 @@ var SpacesServiceImpl = class {
|
|
|
5521
5543
|
});
|
|
5522
5544
|
invariant15(this._identityManager.identity, "Identity is not available", {
|
|
5523
5545
|
F: __dxlog_file19,
|
|
5524
|
-
L:
|
|
5546
|
+
L: 210,
|
|
5525
5547
|
S: this,
|
|
5526
5548
|
A: [
|
|
5527
5549
|
"this._identityManager.identity",
|
|
@@ -5531,7 +5553,7 @@ var SpacesServiceImpl = class {
|
|
|
5531
5553
|
const signer = this._identityManager.identity.getIdentityCredentialSigner();
|
|
5532
5554
|
invariant15(credential.issuer.equals(signer.getIssuer()), void 0, {
|
|
5533
5555
|
F: __dxlog_file19,
|
|
5534
|
-
L:
|
|
5556
|
+
L: 212,
|
|
5535
5557
|
S: this,
|
|
5536
5558
|
A: [
|
|
5537
5559
|
"credential.issuer.equals(signer.getIssuer())",
|
|
@@ -6897,4 +6919,4 @@ export {
|
|
|
6897
6919
|
ClientServicesProviderResource,
|
|
6898
6920
|
DiagnosticsCollector
|
|
6899
6921
|
};
|
|
6900
|
-
//# sourceMappingURL=chunk-
|
|
6922
|
+
//# sourceMappingURL=chunk-2JCI5YEM.mjs.map
|