Skip to content

Commit 54f1fed

Browse files
committed
fix(klesia): try overriding fetch for the default one
1 parent 95b38e9 commit 54f1fed

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

bun.lockb

-32 Bytes
Binary file not shown.

packages/connect/happy-dom.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { GlobalRegistrator } from "@happy-dom/global-registrator";
2-
import { BrowserNavigationCrossOriginPolicyEnum } from "happy-dom";
32

4-
GlobalRegistrator.register({
5-
settings: {
6-
navigation: {
7-
crossOriginPolicy: BrowserNavigationCrossOriginPolicyEnum.anyOrigin,
8-
},
9-
},
10-
});
3+
const bunFetch = fetch;
4+
GlobalRegistrator.register();
5+
window.fetch = bunFetch;

packages/connect/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
"zod": "3.23.8"
3030
},
3131
"devDependencies": {
32-
"@happy-dom/global-registrator": "15.7.4",
33-
"happy-dom": "^15.7.4"
32+
"@happy-dom/global-registrator": "15.7.4"
3433
},
3534
"peerDependencies": {
3635
"typescript": "^5.0.0"

0 commit comments

Comments
 (0)