We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b830fea commit 01679e3Copy full SHA for 01679e3
jsr.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@mycore-test/js-common",
3
- "version": "0.1.8",
+ "version": "0.1.9",
4
"exports": {
5
"./i18n": "./src/i18n/index.ts",
6
"./access-key": "./src/access-key/index.ts",
src/utils/http/custom-fetch.ts
@@ -51,7 +51,7 @@ export interface CustomFetchOptions {
51
*/
52
export const createCustomFetch = (
53
options?: CustomFetchOptions
54
-): typeof fetch => {
+): typeof globalThis.fetch => {
55
return async (
56
_input: RequestInfo | URL,
57
_init?: RequestInit
@@ -79,6 +79,6 @@ export const createCustomFetch = (
79
headers: headers,
80
signal: signal,
81
});
82
- return await fetch(request, _init);
+ return await globalThis.fetch(request, _init);
83
};
84
0 commit comments