-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix fetch in node-appwrite not working using bun ON WINDOWS!
See also oven-sh/bun#12320 (comment)
- Loading branch information
1 parent
abfc9a7
commit 7be60b0
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/dist/client.mjs b/dist/client.mjs | ||
index 58389b528289a23839631b9fe7181df2fc2be8a0..3f95183213e66b4468fb14f925e57ac1b11b6b7b 100644 | ||
--- a/dist/client.mjs | ||
+++ b/dist/client.mjs | ||
@@ -1,5 +1,5 @@ | ||
-import { FormData, File, fetch } from 'node-fetch-native-with-agent'; | ||
-import { createAgent } from 'node-fetch-native-with-agent/agent'; | ||
+// import { FormData, File, fetch } from 'node-fetch-native-with-agent'; | ||
+// import { createAgent } from 'node-fetch-native-with-agent/agent'; | ||
export { Query } from './query.mjs'; | ||
|
||
// src/client.ts | ||
@@ -182,7 +182,7 @@ var _Client = class _Client { | ||
let options = { | ||
method, | ||
headers, | ||
- ...createAgent(this.config.endpoint, { rejectUnauthorized: !this.config.selfSigned }) | ||
+ // ...createAgent(this.config.endpoint, { rejectUnauthorized: !this.config.selfSigned }) | ||
}; | ||
if (method === "GET") { | ||
for (const [key, value] of Object.entries(_Client.flatten(params))) { |