Skip to content

Commit

Permalink
fix fetch in node-appwrite not working using bun ON WINDOWS!
Browse files Browse the repository at this point in the history
  • Loading branch information
liudonghua123 committed Jul 10, 2024
1 parent abfc9a7 commit 7be60b0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions patches/[email protected]
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))) {

0 comments on commit 7be60b0

Please sign in to comment.