@eduzz/miau-client 1.4.0-rc.150 → 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 +7 -10
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/functions.test.ts +138 -0
- package/src/functions.ts +9 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -11884,16 +11884,13 @@ var import_jwks_rsa = __toESM(require_src2());
|
|
|
11884
11884
|
var import_node_crypto = __toESM(require("node:crypto"));
|
|
11885
11885
|
var requestsCache = /* @__PURE__ */ new Map();
|
|
11886
11886
|
var reusableFetch = async (input, init) => {
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
reject(error);
|
|
11895
|
-
}
|
|
11896
|
-
});
|
|
11887
|
+
const response = await fetch(input, init);
|
|
11888
|
+
if (!response.ok) {
|
|
11889
|
+
throw new Error(`HTTP ${response.status} ${response.statusText}`);
|
|
11890
|
+
}
|
|
11891
|
+
const data = await response.json();
|
|
11892
|
+
const headers = response.headers;
|
|
11893
|
+
return { data, headers };
|
|
11897
11894
|
};
|
|
11898
11895
|
var cacheableFetch = async (input, init) => {
|
|
11899
11896
|
const cacheKeyData = JSON.stringify({ input, init });
|