@eduzz/miau-client 1.0.4 → 1.0.5-rc.113
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/.turbo/turbo-build$colon$types.log +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/MiauClient.ts +5 -1
package/dist/index.js
CHANGED
|
@@ -11987,7 +11987,10 @@ var cacheableFetch = async (input, init) => {
|
|
|
11987
11987
|
}
|
|
11988
11988
|
requestsCache.delete(cacheKey);
|
|
11989
11989
|
}
|
|
11990
|
-
const newRequest = reusableFetch(input, init)
|
|
11990
|
+
const newRequest = reusableFetch(input, init).catch((err) => {
|
|
11991
|
+
requestsCache.delete(cacheKey);
|
|
11992
|
+
throw err;
|
|
11993
|
+
});
|
|
11991
11994
|
requestsCache.set(cacheKey, newRequest);
|
|
11992
11995
|
return (await newRequest).data;
|
|
11993
11996
|
};
|