ywana-core8 0.1.4 → 0.1.5

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/dist/index.umd.js CHANGED
@@ -5520,13 +5520,14 @@
5520
5520
  var _temp = _forTo(taskIDs, function (i) {
5521
5521
  var taskID = taskIDs[i];
5522
5522
  return Promise.resolve(task(taskID)).then(function (tsk) {
5523
+ console.log("Task Listener", taskID, tsk.state, tsk.percentage, tsk.description);
5523
5524
  if (!tsk) {
5524
5525
  console.log("Task not found", taskID);
5525
5526
  removeListener(taskID);
5526
5527
  console.log("Listener removed", taskID);
5527
5528
  return;
5528
5529
  }
5529
- if (tsk.state === "COMPLETED" || tsk.state === "FAULTED" || tsk.state === "CANCELED") {
5530
+ if (tsk.state === "FAULTED" || tsk.state === "CANCELED") {
5530
5531
  console.log("Task finished", taskID, task.state);
5531
5532
  removeListener(taskID);
5532
5533
  console.log("Listener removed", taskID);