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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/task.js +3 -1
package/dist/index.cjs
CHANGED
@@ -5527,13 +5527,14 @@ var TaskContextProvider = function TaskContextProvider(props) {
|
|
5527
5527
|
var _temp = _forTo(taskIDs, function (i) {
|
5528
5528
|
var taskID = taskIDs[i];
|
5529
5529
|
return Promise.resolve(task(taskID)).then(function (tsk) {
|
5530
|
+
console.log("Task Listener", taskID, tsk.state, tsk.percentage, tsk.description);
|
5530
5531
|
if (!tsk) {
|
5531
5532
|
console.log("Task not found", taskID);
|
5532
5533
|
removeListener(taskID);
|
5533
5534
|
console.log("Listener removed", taskID);
|
5534
5535
|
return;
|
5535
5536
|
}
|
5536
|
-
if (tsk.state === "
|
5537
|
+
if (tsk.state === "FAULTED" || tsk.state === "CANCELED") {
|
5537
5538
|
console.log("Task finished", taskID, task.state);
|
5538
5539
|
removeListener(taskID);
|
5539
5540
|
console.log("Listener removed", taskID);
|