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