mol_wire_lib 1.0.1227 → 1.0.1228
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 +3 -5
- package/node.js.map +1 -1
- package/node.mjs +3 -5
- package/node.test.js +3 -5
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +3 -5
- package/web.js.map +1 -1
- package/web.mjs +3 -5
package/node.mjs
CHANGED
|
@@ -754,13 +754,12 @@ var $;
|
|
|
754
754
|
break;
|
|
755
755
|
}
|
|
756
756
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
757
|
-
handled.add(result);
|
|
758
757
|
const put = (res) => {
|
|
759
758
|
if (this.cache === result)
|
|
760
759
|
this.put(res);
|
|
761
760
|
return res;
|
|
762
761
|
};
|
|
763
|
-
result =
|
|
762
|
+
result = result.then(put, put);
|
|
764
763
|
}
|
|
765
764
|
}
|
|
766
765
|
catch (error) {
|
|
@@ -771,11 +770,10 @@ var $;
|
|
|
771
770
|
result = new Error(String(error), { cause: error });
|
|
772
771
|
}
|
|
773
772
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
774
|
-
|
|
775
|
-
result = Object.assign(result.finally(() => {
|
|
773
|
+
result = result.finally(() => {
|
|
776
774
|
if (this.cache === result)
|
|
777
775
|
this.absorb();
|
|
778
|
-
})
|
|
776
|
+
});
|
|
779
777
|
}
|
|
780
778
|
}
|
|
781
779
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
package/node.test.js
CHANGED
|
@@ -745,13 +745,12 @@ var $;
|
|
|
745
745
|
break;
|
|
746
746
|
}
|
|
747
747
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
748
|
-
handled.add(result);
|
|
749
748
|
const put = (res) => {
|
|
750
749
|
if (this.cache === result)
|
|
751
750
|
this.put(res);
|
|
752
751
|
return res;
|
|
753
752
|
};
|
|
754
|
-
result =
|
|
753
|
+
result = result.then(put, put);
|
|
755
754
|
}
|
|
756
755
|
}
|
|
757
756
|
catch (error) {
|
|
@@ -762,11 +761,10 @@ var $;
|
|
|
762
761
|
result = new Error(String(error), { cause: error });
|
|
763
762
|
}
|
|
764
763
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
765
|
-
|
|
766
|
-
result = Object.assign(result.finally(() => {
|
|
764
|
+
result = result.finally(() => {
|
|
767
765
|
if (this.cache === result)
|
|
768
766
|
this.absorb();
|
|
769
|
-
})
|
|
767
|
+
});
|
|
770
768
|
}
|
|
771
769
|
}
|
|
772
770
|
if ($mol_promise_like(result) && !handled.has(result)) {
|