mol_plot_all 1.2.1214 → 1.2.1216
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/web.mjs
CHANGED
|
@@ -774,12 +774,13 @@ var $;
|
|
|
774
774
|
break;
|
|
775
775
|
}
|
|
776
776
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
777
|
+
handled.add(result);
|
|
777
778
|
const put = (res) => {
|
|
778
779
|
if (this.cache === result)
|
|
779
780
|
this.put(res);
|
|
780
781
|
return res;
|
|
781
782
|
};
|
|
782
|
-
result = result.then(put, put);
|
|
783
|
+
result = Object.assign(result.then(put, put), { destructor: result.destructor });
|
|
783
784
|
}
|
|
784
785
|
}
|
|
785
786
|
catch (error) {
|
|
@@ -790,10 +791,11 @@ var $;
|
|
|
790
791
|
result = new Error(String(error), { cause: error });
|
|
791
792
|
}
|
|
792
793
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
793
|
-
|
|
794
|
+
handled.add(result);
|
|
795
|
+
result = Object.assign(result.finally(() => {
|
|
794
796
|
if (this.cache === result)
|
|
795
797
|
this.absorb();
|
|
796
|
-
});
|
|
798
|
+
}), { destructor: result.destructor });
|
|
797
799
|
}
|
|
798
800
|
}
|
|
799
801
|
if ($mol_promise_like(result) && !handled.has(result)) {
|