@dxos/client-services 0.5.9-main.1ea2105 → 0.5.9-main.2ba0c7f
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-AHVKY45R.mjs → chunk-PWXD5WKD.mjs} +29 -16
- package/dist/lib/browser/chunk-PWXD5WKD.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-POJY42WS.cjs → chunk-XVII53G2.cjs} +32 -19
- package/dist/lib/node/chunk-XVII53G2.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/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/invitations/invitations-handler.ts +13 -5
- package/src/version.ts +1 -1
- package/dist/lib/browser/chunk-AHVKY45R.mjs.map +0 -7
- package/dist/lib/node/chunk-POJY42WS.cjs.map +0 -7
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
InvitationsManager,
|
|
8
8
|
ServiceContext,
|
|
9
9
|
SpaceInvitationProtocol
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-PWXD5WKD.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_XVII53G2_exports = {};
|
|
30
|
+
__export(chunk_XVII53G2_exports, {
|
|
31
31
|
ClientRpcServer: () => ClientRpcServer,
|
|
32
32
|
ClientServicesHost: () => ClientServicesHost,
|
|
33
33
|
ClientServicesProviderResource: () => ClientServicesProviderResource,
|
|
@@ -66,7 +66,7 @@ __export(chunk_POJY42WS_exports, {
|
|
|
66
66
|
subscribeToSpaces: () => subscribeToSpaces,
|
|
67
67
|
subscribeToSwarmInfo: () => subscribeToSwarmInfo
|
|
68
68
|
});
|
|
69
|
-
module.exports = __toCommonJS(
|
|
69
|
+
module.exports = __toCommonJS(chunk_XVII53G2_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.2ba0c7f";
|
|
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
|
});
|
|
@@ -6709,4 +6722,4 @@ ClientServicesHost = _ts_decorate8([
|
|
|
6709
6722
|
subscribeToSpaces,
|
|
6710
6723
|
subscribeToSwarmInfo
|
|
6711
6724
|
});
|
|
6712
|
-
//# sourceMappingURL=chunk-
|
|
6725
|
+
//# sourceMappingURL=chunk-XVII53G2.cjs.map
|