Skip to content

Instantly share code, notes, and snippets.

View AmazingTurtle's full-sized avatar
🐢
turtle on SPEED

Felix AmazingTurtle

🐢
turtle on SPEED
View GitHub Profile
@AmazingTurtle
AmazingTurtle / @hey-api+client+fetch+0.8.1.patch
Created March 2, 2025 18:55
Patch for @hey-api/client-fetch security schemes
diff --git a/node_modules/@hey-api/client-fetch/dist/index.cjs b/node_modules/@hey-api/client-fetch/dist/index.cjs
index 747c765..0dcebb4 100644
--- a/node_modules/@hey-api/client-fetch/dist/index.cjs
+++ b/node_modules/@hey-api/client-fetch/dist/index.cjs
@@ -1,2 +1,2 @@
-'use strict';var A=async(t,r)=>{let e=typeof r=="function"?await r(t):r;if(e)return t.scheme==="bearer"?`Bearer ${e}`:t.scheme==="basic"?`Basic ${btoa(e)}`:e},z=(t,r,e)=>{typeof e=="string"||e instanceof Blob?t.append(r,e):t.append(r,JSON.stringify(e));},j=(t,r,e)=>{typeof e=="string"?t.append(r,e):t.append(r,JSON.stringify(e));},$={bodySerializer:t=>{let r=new FormData;return Object.entries(t).forEach(([e,a])=>{a!=null&&(Array.isArray(a)?a.forEach(i=>z(r,e,i)):z(r,e,a));}),r}},b={bodySerializer:t=>JSON.stringify(t,(r,e)=>typeof e=="bigint"?e.toString():e)},k={bodySerializer:t=>{let r=new URLSearchParams;return Object.entries(t).forEach(([e,a])=>{a!=null&&(Array.isArray(a)?a.forEach(i=>j(r,e,i)):j(r,e,a));}),r.toString()}},U=t=>{switch(t){c