@le-space/ui 0.6.44 → 0.6.45
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 +20 -1
- package/shared/index.d.ts +1 -1
- package/shared/index.js +20 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.45",
|
|
4
4
|
"description": "Floating Aleph Relay Button UI components for Svelte and React.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"url": "https://github.com/NiKrause/relay-button/issues"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@le-space/browser": "0.6.
|
|
48
|
-
"@le-space/core": "0.6.
|
|
47
|
+
"@le-space/browser": "0.6.45",
|
|
48
|
+
"@le-space/core": "0.6.45",
|
|
49
49
|
"viem": "^2.53.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
package/react/index.js
CHANGED
|
@@ -43,7 +43,7 @@ var RECENT_INSTANCE_RUNTIME_GRACE_MS = 10 * 60 * 1e3;
|
|
|
43
43
|
var DEPLOYMENT_PENDING_WARNING_MS = 3 * 60 * 1e3;
|
|
44
44
|
|
|
45
45
|
// src/shared/package-version.ts
|
|
46
|
-
var UI_PACKAGE_VERSION = "0.6.
|
|
46
|
+
var UI_PACKAGE_VERSION = "0.6.45";
|
|
47
47
|
|
|
48
48
|
// src/shared/format.ts
|
|
49
49
|
function shortHash(value, head = 8, tail = 6) {
|
|
@@ -4460,10 +4460,29 @@ var SponsorRelayController = class {
|
|
|
4460
4460
|
detail: "The relay received a 2n6 hostname, but it is not active yet. Waiting before handing HTTPS config to the guest."
|
|
4461
4461
|
});
|
|
4462
4462
|
let latestRuntime = runtime;
|
|
4463
|
+
let activationAbsentStreak = 0;
|
|
4463
4464
|
for (let attempt = 0; attempt < UI_RUNTIME_WAIT_ATTEMPTS; attempt += 1) {
|
|
4464
4465
|
if (latestRuntime.webAccess?.active === true) {
|
|
4465
4466
|
break;
|
|
4466
4467
|
}
|
|
4468
|
+
if (attempt > 0 && attempt % 6 === 0) {
|
|
4469
|
+
const absent = await crnExecutionAbsent({
|
|
4470
|
+
crnUrl: args.crnUrl,
|
|
4471
|
+
itemHash: args.itemHash,
|
|
4472
|
+
fetch: asJsonFetch
|
|
4473
|
+
});
|
|
4474
|
+
activationAbsentStreak = absent ? activationAbsentStreak + 1 : 0;
|
|
4475
|
+
if (activationAbsentStreak >= 4) {
|
|
4476
|
+
this.trace("deploy:crn-execution-absent-abort", {
|
|
4477
|
+
itemHash: args.itemHash,
|
|
4478
|
+
crnUrl: args.crnUrl ?? null,
|
|
4479
|
+
phase: "https-activation"
|
|
4480
|
+
});
|
|
4481
|
+
throw new Error(
|
|
4482
|
+
"The CRN never scheduled the relay VM (execution absent while waiting for HTTPS activation)."
|
|
4483
|
+
);
|
|
4484
|
+
}
|
|
4485
|
+
}
|
|
4467
4486
|
await new Promise(
|
|
4468
4487
|
(resolve) => globalThis.setTimeout(resolve, UI_RUNTIME_WAIT_DELAY_MS)
|
|
4469
4488
|
);
|
package/shared/index.d.ts
CHANGED
|
@@ -341,7 +341,7 @@ declare const STALE_INSTANCE_ALLOCATION_COOLDOWN_MS: number;
|
|
|
341
341
|
declare const RECENT_INSTANCE_RUNTIME_GRACE_MS: number;
|
|
342
342
|
declare const DEPLOYMENT_PENDING_WARNING_MS: number;
|
|
343
343
|
|
|
344
|
-
declare const UI_PACKAGE_VERSION = "0.6.
|
|
344
|
+
declare const UI_PACKAGE_VERSION = "0.6.45";
|
|
345
345
|
|
|
346
346
|
interface RootfsRequiredPortForward {
|
|
347
347
|
port: number;
|
package/shared/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var RECENT_INSTANCE_RUNTIME_GRACE_MS = 10 * 60 * 1e3;
|
|
|
42
42
|
var DEPLOYMENT_PENDING_WARNING_MS = 3 * 60 * 1e3;
|
|
43
43
|
|
|
44
44
|
// src/shared/package-version.ts
|
|
45
|
-
var UI_PACKAGE_VERSION = "0.6.
|
|
45
|
+
var UI_PACKAGE_VERSION = "0.6.45";
|
|
46
46
|
|
|
47
47
|
// src/shared/format.ts
|
|
48
48
|
function shortHash(value, head = 8, tail = 6) {
|
|
@@ -4459,10 +4459,29 @@ var SponsorRelayController = class {
|
|
|
4459
4459
|
detail: "The relay received a 2n6 hostname, but it is not active yet. Waiting before handing HTTPS config to the guest."
|
|
4460
4460
|
});
|
|
4461
4461
|
let latestRuntime = runtime;
|
|
4462
|
+
let activationAbsentStreak = 0;
|
|
4462
4463
|
for (let attempt = 0; attempt < UI_RUNTIME_WAIT_ATTEMPTS; attempt += 1) {
|
|
4463
4464
|
if (latestRuntime.webAccess?.active === true) {
|
|
4464
4465
|
break;
|
|
4465
4466
|
}
|
|
4467
|
+
if (attempt > 0 && attempt % 6 === 0) {
|
|
4468
|
+
const absent = await crnExecutionAbsent({
|
|
4469
|
+
crnUrl: args.crnUrl,
|
|
4470
|
+
itemHash: args.itemHash,
|
|
4471
|
+
fetch: asJsonFetch
|
|
4472
|
+
});
|
|
4473
|
+
activationAbsentStreak = absent ? activationAbsentStreak + 1 : 0;
|
|
4474
|
+
if (activationAbsentStreak >= 4) {
|
|
4475
|
+
this.trace("deploy:crn-execution-absent-abort", {
|
|
4476
|
+
itemHash: args.itemHash,
|
|
4477
|
+
crnUrl: args.crnUrl ?? null,
|
|
4478
|
+
phase: "https-activation"
|
|
4479
|
+
});
|
|
4480
|
+
throw new Error(
|
|
4481
|
+
"The CRN never scheduled the relay VM (execution absent while waiting for HTTPS activation)."
|
|
4482
|
+
);
|
|
4483
|
+
}
|
|
4484
|
+
}
|
|
4466
4485
|
await new Promise(
|
|
4467
4486
|
(resolve) => globalThis.setTimeout(resolve, UI_RUNTIME_WAIT_DELAY_MS)
|
|
4468
4487
|
);
|