@dxos/client-services 0.5.9-main.af4882d → 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-6347C7P7.mjs → chunk-2JCI5YEM.mjs} +31 -19
- 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-YO26HDFH.cjs → chunk-HRQTR7UW.cjs} +34 -22
- 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/data-space.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 +1 -3
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-6347C7P7.mjs.map +0 -7
- package/dist/lib/node/chunk-YO26HDFH.cjs.map +0 -7
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
InvitationsManager,
|
|
8
8
|
ServiceContext,
|
|
9
9
|
SpaceInvitationProtocol
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-2JCI5YEM.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_HRQTR7UW_exports = {};
|
|
30
|
+
__export(chunk_HRQTR7UW_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
ClientServicesProviderResource: () => ClientServicesProviderResource,
|
|
@@ -66,7 +66,7 @@ __export(chunk_YO26HDFH_exports, {
|
|
|
66
66
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
67
67
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
68
68
|
});
|
|
69
|
-
module.exports = __toCommonJS(
|
|
69
|
+
module.exports = __toCommonJS(chunk_HRQTR7UW_exports);
|
|
70
70
|
var import_async = require("@dxos/async");
|
|
71
71
|
var import_codec_protobuf = require("@dxos/codec-protobuf");
|
|
72
72
|
var import_feed_store = require("@dxos/feed-store");
|
|
@@ -631,7 +631,7 @@ var DevtoolsServiceImpl = class {
|
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
|
-
var DXOS_VERSION = "0.5.9-main.
|
|
634
|
+
var DXOS_VERSION = "0.5.9-main.b06c86b";
|
|
635
635
|
var getPlatform = () => {
|
|
636
636
|
if (process.browser) {
|
|
637
637
|
if (typeof window !== "undefined") {
|
|
@@ -2934,16 +2934,29 @@ var InvitationsHandler = class {
|
|
|
2934
2934
|
};
|
|
2935
2935
|
}
|
|
2936
2936
|
_logStateUpdate(invitation, actor, newState) {
|
|
2937
|
-
(
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2937
|
+
if (this._isNotTerminal(newState)) {
|
|
2938
|
+
(0, import_log6.log)("invitation state update", {
|
|
2939
|
+
actor: actor?.constructor.name,
|
|
2940
|
+
newState: stateToString(newState),
|
|
2941
|
+
oldState: stateToString(invitation.state)
|
|
2942
|
+
}, {
|
|
2943
|
+
F: __dxlog_file11,
|
|
2944
|
+
L: 439,
|
|
2945
|
+
S: this,
|
|
2946
|
+
C: (f, a) => f(...a)
|
|
2947
|
+
});
|
|
2948
|
+
} else {
|
|
2949
|
+
import_log6.log.info("invitation state update", {
|
|
2950
|
+
actor: actor?.constructor.name,
|
|
2951
|
+
newState: stateToString(newState),
|
|
2952
|
+
oldState: stateToString(invitation.state)
|
|
2953
|
+
}, {
|
|
2954
|
+
F: __dxlog_file11,
|
|
2955
|
+
L: 445,
|
|
2956
|
+
S: this,
|
|
2957
|
+
C: (f, a) => f(...a)
|
|
2958
|
+
});
|
|
2959
|
+
}
|
|
2947
2960
|
}
|
|
2948
2961
|
_isNotTerminal(currentState) {
|
|
2949
2962
|
return ![
|
|
@@ -2958,7 +2971,7 @@ var InvitationsHandler = class {
|
|
|
2958
2971
|
for (let attempt = 1; attempt <= MAX_OTP_ATTEMPTS; attempt++) {
|
|
2959
2972
|
(0, import_log6.log)("guest waiting for authentication code...", void 0, {
|
|
2960
2973
|
F: __dxlog_file11,
|
|
2961
|
-
L:
|
|
2974
|
+
L: 470,
|
|
2962
2975
|
S: this,
|
|
2963
2976
|
C: (f, a) => f(...a)
|
|
2964
2977
|
});
|
|
@@ -2966,7 +2979,7 @@ var InvitationsHandler = class {
|
|
|
2966
2979
|
const authCode = await authenticated.wait(options);
|
|
2967
2980
|
(0, import_log6.log)("sending authentication request", void 0, {
|
|
2968
2981
|
F: __dxlog_file11,
|
|
2969
|
-
L:
|
|
2982
|
+
L: 474,
|
|
2970
2983
|
S: this,
|
|
2971
2984
|
C: (f, a) => f(...a)
|
|
2972
2985
|
});
|
|
@@ -2985,7 +2998,7 @@ var InvitationsHandler = class {
|
|
|
2985
2998
|
attempt
|
|
2986
2999
|
}, {
|
|
2987
3000
|
F: __dxlog_file11,
|
|
2988
|
-
L:
|
|
3001
|
+
L: 485,
|
|
2989
3002
|
S: this,
|
|
2990
3003
|
C: (f, a) => f(...a)
|
|
2991
3004
|
});
|
|
@@ -3003,7 +3016,7 @@ var InvitationsHandler = class {
|
|
|
3003
3016
|
}
|
|
3004
3017
|
(0, import_log6.log)("sending authentication request", void 0, {
|
|
3005
3018
|
F: __dxlog_file11,
|
|
3006
|
-
L:
|
|
3019
|
+
L: 504,
|
|
3007
3020
|
S: this,
|
|
3008
3021
|
C: (f, a) => f(...a)
|
|
3009
3022
|
});
|
|
@@ -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 {
|
|
@@ -4596,7 +4608,7 @@ var DataSpace = class {
|
|
|
4596
4608
|
err
|
|
4597
4609
|
}, {
|
|
4598
4610
|
F: __dxlog_file16,
|
|
4599
|
-
L:
|
|
4611
|
+
L: 431,
|
|
4600
4612
|
S: this,
|
|
4601
4613
|
C: (f, a) => f(...a)
|
|
4602
4614
|
});
|
|
@@ -4682,7 +4694,7 @@ var DataSpace = class {
|
|
|
4682
4694
|
state: import_services12.SpaceState[this._state]
|
|
4683
4695
|
}, {
|
|
4684
4696
|
F: __dxlog_file16,
|
|
4685
|
-
L:
|
|
4697
|
+
L: 512,
|
|
4686
4698
|
S: this,
|
|
4687
4699
|
C: (f, a) => f(...a)
|
|
4688
4700
|
});
|
|
@@ -6710,4 +6722,4 @@ ClientServicesHost = _ts_decorate8([
|
|
|
6710
6722
|
subscribeToSpaces,
|
|
6711
6723
|
subscribeToSwarmInfo
|
|
6712
6724
|
});
|
|
6713
|
-
//# sourceMappingURL=chunk-
|
|
6725
|
+
//# sourceMappingURL=chunk-HRQTR7UW.cjs.map
|