mol_plot_all 1.2.1214 → 1.2.1215
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/node.deps.json +1 -1
- package/node.js +5 -3
- package/node.js.map +1 -1
- package/node.mjs +5 -3
- package/node.test.js +5 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +5 -3
- package/web.js.map +1 -1
- package/web.mjs +5 -3
package/node.js
CHANGED
|
@@ -789,12 +789,13 @@ var $;
|
|
|
789
789
|
break;
|
|
790
790
|
}
|
|
791
791
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
792
|
+
handled.add(result);
|
|
792
793
|
const put = (res) => {
|
|
793
794
|
if (this.cache === result)
|
|
794
795
|
this.put(res);
|
|
795
796
|
return res;
|
|
796
797
|
};
|
|
797
|
-
result = result.then(put, put);
|
|
798
|
+
result = Object.assign(result.then(put, put), { destructor: result.destructor });
|
|
798
799
|
}
|
|
799
800
|
}
|
|
800
801
|
catch (error) {
|
|
@@ -805,10 +806,11 @@ var $;
|
|
|
805
806
|
result = new Error(String(error), { cause: error });
|
|
806
807
|
}
|
|
807
808
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
808
|
-
|
|
809
|
+
handled.add(result);
|
|
810
|
+
result = Object.assign(result.finally(() => {
|
|
809
811
|
if (this.cache === result)
|
|
810
812
|
this.absorb();
|
|
811
|
-
});
|
|
813
|
+
}), { destructor: result.destructor });
|
|
812
814
|
}
|
|
813
815
|
}
|
|
814
816
|
if ($mol_promise_like(result) && !handled.has(result)) {
|