@eduzz/miau-client 1.4.0-rc.151 → 1.4.0-rc.152
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/dist/functions.test.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/functions.test.ts +138 -0
- package/src/functions.ts +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -11885,6 +11885,9 @@ var import_node_crypto = __toESM(require("node:crypto"));
|
|
|
11885
11885
|
var requestsCache = /* @__PURE__ */ new Map();
|
|
11886
11886
|
var reusableFetch = async (input, init) => {
|
|
11887
11887
|
const response = await fetch(input, init);
|
|
11888
|
+
if (!response.ok) {
|
|
11889
|
+
throw new Error(`HTTP ${response.status} ${response.statusText}`);
|
|
11890
|
+
}
|
|
11888
11891
|
const data = await response.json();
|
|
11889
11892
|
const headers = response.headers;
|
|
11890
11893
|
return { data, headers };
|