@le-space/ui 0.6.31 → 0.6.32
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 +7 -2
- package/shared/index.d.ts +1 -1
- package/shared/index.js +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.32",
|
|
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.32",
|
|
48
|
+
"@le-space/core": "0.6.32",
|
|
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.32";
|
|
47
47
|
|
|
48
48
|
// src/shared/format.ts
|
|
49
49
|
function shortHash(value, head = 8, tail = 6) {
|
|
@@ -5560,7 +5560,7 @@ var SponsorRelayController = class {
|
|
|
5560
5560
|
crnHash: candidateCrn.hash,
|
|
5561
5561
|
crnUrl: candidateCrn.address
|
|
5562
5562
|
});
|
|
5563
|
-
await notifyCrnAllocationWithRetry({
|
|
5563
|
+
const notifyResult = await notifyCrnAllocationWithRetry({
|
|
5564
5564
|
crnUrl: candidateCrn.address,
|
|
5565
5565
|
itemHash: result.itemHash,
|
|
5566
5566
|
fetch: (url, init) => fetch(url, init),
|
|
@@ -5568,6 +5568,11 @@ var SponsorRelayController = class {
|
|
|
5568
5568
|
this.emitProgress(event);
|
|
5569
5569
|
}
|
|
5570
5570
|
});
|
|
5571
|
+
if (notifyResult.status === "unconfirmed") {
|
|
5572
|
+
throw new Error(
|
|
5573
|
+
`CRN ${crnDisplayName} did not accept the allocation for ${result.itemHash}: ${notifyResult.reason ?? "allocation notify was not confirmed"}`
|
|
5574
|
+
);
|
|
5575
|
+
}
|
|
5571
5576
|
}
|
|
5572
5577
|
this.emitProgress({
|
|
5573
5578
|
stage: "deployment-confirmed",
|
package/shared/index.d.ts
CHANGED
|
@@ -332,7 +332,7 @@ declare const STALE_INSTANCE_ALLOCATION_COOLDOWN_MS: number;
|
|
|
332
332
|
declare const RECENT_INSTANCE_RUNTIME_GRACE_MS: number;
|
|
333
333
|
declare const DEPLOYMENT_PENDING_WARNING_MS: number;
|
|
334
334
|
|
|
335
|
-
declare const UI_PACKAGE_VERSION = "0.6.
|
|
335
|
+
declare const UI_PACKAGE_VERSION = "0.6.32";
|
|
336
336
|
|
|
337
337
|
interface RootfsRequiredPortForward {
|
|
338
338
|
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.32";
|
|
46
46
|
|
|
47
47
|
// src/shared/format.ts
|
|
48
48
|
function shortHash(value, head = 8, tail = 6) {
|
|
@@ -5559,7 +5559,7 @@ var SponsorRelayController = class {
|
|
|
5559
5559
|
crnHash: candidateCrn.hash,
|
|
5560
5560
|
crnUrl: candidateCrn.address
|
|
5561
5561
|
});
|
|
5562
|
-
await notifyCrnAllocationWithRetry({
|
|
5562
|
+
const notifyResult = await notifyCrnAllocationWithRetry({
|
|
5563
5563
|
crnUrl: candidateCrn.address,
|
|
5564
5564
|
itemHash: result.itemHash,
|
|
5565
5565
|
fetch: (url, init) => fetch(url, init),
|
|
@@ -5567,6 +5567,11 @@ var SponsorRelayController = class {
|
|
|
5567
5567
|
this.emitProgress(event);
|
|
5568
5568
|
}
|
|
5569
5569
|
});
|
|
5570
|
+
if (notifyResult.status === "unconfirmed") {
|
|
5571
|
+
throw new Error(
|
|
5572
|
+
`CRN ${crnDisplayName} did not accept the allocation for ${result.itemHash}: ${notifyResult.reason ?? "allocation notify was not confirmed"}`
|
|
5573
|
+
);
|
|
5574
|
+
}
|
|
5570
5575
|
}
|
|
5571
5576
|
this.emitProgress({
|
|
5572
5577
|
stage: "deployment-confirmed",
|