snow-flow 10.0.82 → 10.0.83
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
CHANGED
package/src/cli/cmd/tui/app.tsx
CHANGED
|
@@ -765,6 +765,14 @@ function App() {
|
|
|
765
765
|
})
|
|
766
766
|
})
|
|
767
767
|
|
|
768
|
+
sdk.event.on(Installation.Event.Updating.type, (evt) => {
|
|
769
|
+
toast.show({
|
|
770
|
+
variant: "info",
|
|
771
|
+
message: `Updating to v${evt.properties.version} in the background...`,
|
|
772
|
+
duration: 10000,
|
|
773
|
+
})
|
|
774
|
+
})
|
|
775
|
+
|
|
768
776
|
sdk.event.on(Installation.Event.Updated.type, (evt) => {
|
|
769
777
|
toast.show({
|
|
770
778
|
variant: "info",
|
package/src/cli/upgrade.ts
CHANGED
|
@@ -22,6 +22,7 @@ export async function upgrade() {
|
|
|
22
22
|
await Bus.publish(Installation.Event.UpdateAvailable, { version: latest })
|
|
23
23
|
return
|
|
24
24
|
}
|
|
25
|
+
await Bus.publish(Installation.Event.Updating, { version: latest })
|
|
25
26
|
await Installation.upgrade(method, latest)
|
|
26
27
|
.then(() => Bus.publish(Installation.Event.Updated, { version: latest }))
|
|
27
28
|
.catch(() => Bus.publish(Installation.Event.UpdateAvailable, { version: latest }))
|