@eduzz/miau-client 1.4.0-rc.150 → 1.4.0-rc.151
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/index.js +4 -10
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/functions.ts +4 -10
package/dist/index.js
CHANGED
|
@@ -11884,16 +11884,10 @@ 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
|
-
const headers = response.headers;
|
|
11892
|
-
resolve({ data, headers });
|
|
11893
|
-
} catch (error) {
|
|
11894
|
-
reject(error);
|
|
11895
|
-
}
|
|
11896
|
-
});
|
|
11887
|
+
const response = await fetch(input, init);
|
|
11888
|
+
const data = await response.json();
|
|
11889
|
+
const headers = response.headers;
|
|
11890
|
+
return { data, headers };
|
|
11897
11891
|
};
|
|
11898
11892
|
var cacheableFetch = async (input, init) => {
|
|
11899
11893
|
const cacheKeyData = JSON.stringify({ input, init });
|