@sheepdog/vanilla
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -68,2 +68,5 @@ import { CancelationError, createTask, handlers } from '@sheepdog/core'; | ||
} | ||
if (![...instances.values()].some((instance) => instance.is_running)) { | ||
event_target.dispatchEvent(new SheepdogEvent('finish')); | ||
} | ||
event_target.dispatchEvent(new SheepdogEvent('instance-error')); | ||
@@ -89,2 +92,5 @@ event_target.dispatchEvent(new SheepdogEvent('instance-finish')); | ||
} | ||
if (![...instances.values()].some((instance) => instance.is_running)) { | ||
event_target.dispatchEvent(new SheepdogEvent('finish')); | ||
} | ||
event_target.dispatchEvent(new SheepdogEvent('instance-cancel')); | ||
@@ -148,3 +154,3 @@ event_target.dispatchEvent(new SheepdogEvent('instance-finish')); | ||
} | ||
if (instances.size === 1) { | ||
if (![...instances.values()].some((instance) => instance.is_running)) { | ||
event_target.dispatchEvent(new SheepdogEvent('finish')); | ||
@@ -151,0 +157,0 @@ } |
{ | ||
"name": "@sheepdog/vanilla", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
21444
498