@le-space/ui 0.3.3 → 0.3.6
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/package.json +3 -3
- package/react/index.js +17 -2
- package/shared/index.js +17 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Floating Aleph sponsor relay UI components for Svelte and React.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@le-space/browser": "0.3.
|
|
40
|
-
"@le-space/core": "0.3.
|
|
39
|
+
"@le-space/browser": "0.3.6",
|
|
40
|
+
"@le-space/core": "0.3.6",
|
|
41
41
|
"viem": "^2.38.5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
package/react/index.js
CHANGED
|
@@ -2619,6 +2619,11 @@ function createDeploymentProgressEmitter() {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
2621
2621
|
// src/shared/controller.ts
|
|
2622
|
+
function isConfirmedRelaySetupResult(value) {
|
|
2623
|
+
return Boolean(
|
|
2624
|
+
value && typeof value === "object" && "status" in value && value.status === "configured"
|
|
2625
|
+
);
|
|
2626
|
+
}
|
|
2622
2627
|
function defaultState(props = {}) {
|
|
2623
2628
|
return {
|
|
2624
2629
|
ready: false,
|
|
@@ -3091,7 +3096,7 @@ var SponsorRelayController = class {
|
|
|
3091
3096
|
if (!tcpPort || !wsPort) {
|
|
3092
3097
|
throw new Error("OrbitDB relay runtime is missing required mapped TCP/WS ports.");
|
|
3093
3098
|
}
|
|
3094
|
-
await configureOrbitdbRelaySetup2({
|
|
3099
|
+
const configureResult = await configureOrbitdbRelaySetup2({
|
|
3095
3100
|
hostIpv4: args.runtime.hostIpv4,
|
|
3096
3101
|
publicIpv6: args.runtime.ipv6,
|
|
3097
3102
|
setupPort,
|
|
@@ -3105,8 +3110,13 @@ var SponsorRelayController = class {
|
|
|
3105
3110
|
fetch: (url, init) => fetch(url, init),
|
|
3106
3111
|
timeoutMs: 18e4
|
|
3107
3112
|
});
|
|
3113
|
+
if (!isConfirmedRelaySetupResult(configureResult)) {
|
|
3114
|
+
throw new Error(
|
|
3115
|
+
`Relay guest configuration could not be confirmed at http://${args.runtime.hostIpv4}:${setupPort}/configure.`
|
|
3116
|
+
);
|
|
3117
|
+
}
|
|
3108
3118
|
} else {
|
|
3109
|
-
await configureUcGoPeer({
|
|
3119
|
+
const configureResult = await configureUcGoPeer({
|
|
3110
3120
|
hostIpv4: args.runtime.hostIpv4,
|
|
3111
3121
|
publicIpv6: args.runtime.ipv6,
|
|
3112
3122
|
setupPort,
|
|
@@ -3119,6 +3129,11 @@ var SponsorRelayController = class {
|
|
|
3119
3129
|
fetch: (url, init) => fetch(url, init),
|
|
3120
3130
|
timeoutMs: 18e4
|
|
3121
3131
|
});
|
|
3132
|
+
if (!isConfirmedRelaySetupResult(configureResult)) {
|
|
3133
|
+
throw new Error(
|
|
3134
|
+
`Relay guest configuration could not be confirmed at http://${args.runtime.hostIpv4}:${setupPort}/configure.`
|
|
3135
|
+
);
|
|
3136
|
+
}
|
|
3122
3137
|
}
|
|
3123
3138
|
this.emitProgress({
|
|
3124
3139
|
stage: "publishing-bootstrap",
|
package/shared/index.js
CHANGED
|
@@ -2618,6 +2618,11 @@ function createDeploymentProgressEmitter() {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
|
|
2620
2620
|
// src/shared/controller.ts
|
|
2621
|
+
function isConfirmedRelaySetupResult(value) {
|
|
2622
|
+
return Boolean(
|
|
2623
|
+
value && typeof value === "object" && "status" in value && value.status === "configured"
|
|
2624
|
+
);
|
|
2625
|
+
}
|
|
2621
2626
|
function defaultState(props = {}) {
|
|
2622
2627
|
return {
|
|
2623
2628
|
ready: false,
|
|
@@ -3090,7 +3095,7 @@ var SponsorRelayController = class {
|
|
|
3090
3095
|
if (!tcpPort || !wsPort) {
|
|
3091
3096
|
throw new Error("OrbitDB relay runtime is missing required mapped TCP/WS ports.");
|
|
3092
3097
|
}
|
|
3093
|
-
await configureOrbitdbRelaySetup2({
|
|
3098
|
+
const configureResult = await configureOrbitdbRelaySetup2({
|
|
3094
3099
|
hostIpv4: args.runtime.hostIpv4,
|
|
3095
3100
|
publicIpv6: args.runtime.ipv6,
|
|
3096
3101
|
setupPort,
|
|
@@ -3104,8 +3109,13 @@ var SponsorRelayController = class {
|
|
|
3104
3109
|
fetch: (url, init) => fetch(url, init),
|
|
3105
3110
|
timeoutMs: 18e4
|
|
3106
3111
|
});
|
|
3112
|
+
if (!isConfirmedRelaySetupResult(configureResult)) {
|
|
3113
|
+
throw new Error(
|
|
3114
|
+
`Relay guest configuration could not be confirmed at http://${args.runtime.hostIpv4}:${setupPort}/configure.`
|
|
3115
|
+
);
|
|
3116
|
+
}
|
|
3107
3117
|
} else {
|
|
3108
|
-
await configureUcGoPeer({
|
|
3118
|
+
const configureResult = await configureUcGoPeer({
|
|
3109
3119
|
hostIpv4: args.runtime.hostIpv4,
|
|
3110
3120
|
publicIpv6: args.runtime.ipv6,
|
|
3111
3121
|
setupPort,
|
|
@@ -3118,6 +3128,11 @@ var SponsorRelayController = class {
|
|
|
3118
3128
|
fetch: (url, init) => fetch(url, init),
|
|
3119
3129
|
timeoutMs: 18e4
|
|
3120
3130
|
});
|
|
3131
|
+
if (!isConfirmedRelaySetupResult(configureResult)) {
|
|
3132
|
+
throw new Error(
|
|
3133
|
+
`Relay guest configuration could not be confirmed at http://${args.runtime.hostIpv4}:${setupPort}/configure.`
|
|
3134
|
+
);
|
|
3135
|
+
}
|
|
3121
3136
|
}
|
|
3122
3137
|
this.emitProgress({
|
|
3123
3138
|
stage: "publishing-bootstrap",
|