mol_dump_lib 0.0.535 → 0.0.536
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.d.ts +1 -1
- 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.d.ts +1 -1
- package/web.deps.json +1 -1
- package/web.js +4 -7
- package/web.js.map +1 -1
- package/web.mjs +4 -7
package/web.mjs
CHANGED
|
@@ -774,13 +774,12 @@ var $;
|
|
|
774
774
|
break;
|
|
775
775
|
}
|
|
776
776
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
777
|
-
handled.add(result);
|
|
778
777
|
const put = (res) => {
|
|
779
778
|
if (this.cache === result)
|
|
780
779
|
this.put(res);
|
|
781
780
|
return res;
|
|
782
781
|
};
|
|
783
|
-
result =
|
|
782
|
+
result = result.then(put, put);
|
|
784
783
|
}
|
|
785
784
|
}
|
|
786
785
|
catch (error) {
|
|
@@ -791,11 +790,10 @@ var $;
|
|
|
791
790
|
result = new Error(String(error), { cause: error });
|
|
792
791
|
}
|
|
793
792
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
794
|
-
|
|
795
|
-
result = Object.assign(result.finally(() => {
|
|
793
|
+
result = result.finally(() => {
|
|
796
794
|
if (this.cache === result)
|
|
797
795
|
this.absorb();
|
|
798
|
-
})
|
|
796
|
+
});
|
|
799
797
|
}
|
|
800
798
|
}
|
|
801
799
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
@@ -4976,10 +4974,9 @@ var $;
|
|
|
4976
4974
|
$.$mol_fetch_response = $mol_fetch_response;
|
|
4977
4975
|
class $mol_fetch extends $mol_object2 {
|
|
4978
4976
|
static request(input, init = {}) {
|
|
4979
|
-
const native = globalThis.fetch ?? $node['undici'].fetch;
|
|
4980
4977
|
const controller = new AbortController();
|
|
4981
4978
|
let done = false;
|
|
4982
|
-
const promise =
|
|
4979
|
+
const promise = globalThis.fetch(input, {
|
|
4983
4980
|
...init,
|
|
4984
4981
|
signal: controller.signal,
|
|
4985
4982
|
}).finally(() => {
|