From ebe59dc5ef6ab169ffe97bb945f1c752b974d04d Mon Sep 17 00:00:00 2001 From: Kravets <57632712+kravetsone@users.noreply.github.com> Date: Thu, 4 Jul 2024 00:04:53 +0300 Subject: [PATCH] fix: use .append instead of .set for FormData (https://github.com/oven-sh/bun/issues/12325) --- bun.lockb | Bin 8121 -> 8112 bytes package.json | 64 +++++++++++++++++++++++++-------------------------- src/utils.ts | 6 ++--- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/bun.lockb b/bun.lockb index 273ddc71a325c29f247a187ea1267af5d6da11e6..b06c8d0d7ba25a3be710e1e04c26b2309bc7a069 100644 GIT binary patch delta 784 zcmdmKzrlWjo}z?FsKV9N zftP`y!2n2e0qKIG)RL0S)FM?NpBu>cVq{?80n*Y?`7=O1Cy)=57hpo=1I=RK1In*v zW?+y7(i4C*P;Wy8kd^?_NkCc*NP7ZlNd^X?1|uLt94H_KRlqV?lJPyG`(#cgd%<3y zVKzWHRv-<+%##l?s!w9#V7xiGlgXY@aPmnY88(@d*`9IwWKSS@b#f<=l$?ALNCr>l zWU*&#pX>=FPfqS+v1dI2v?6kHFN-y+A`1gUD410SWch`2xR$! zS?ho-usWu{ted;oteG7CN!>f)y*NYG;Qg9Yi`RX97km0r|0_Z7z{cBG*nXz8wa&8) zRyKNgR?e5vMds0D>o&f{X|`++o~fS^TFtJfBvQDUl~b9G<0Q~q0zfZLzR2G*iHT+M z0e%jS1JE#?yinl6<^=+cto3FL45~ndpa_|$AJwb2)z*@OG0w<9&(K8A5*B55;tYZ| zY47X>${6bz>lraHz#?_NYJ-k;Yibfu##GM~Bmz*)PQ80$ZOg$p^(G8C56W29jQrd%tB65@;!lUGXkO#UY^pV4^pJV|Lb E00^PXSO5S3 delta 794 zcmY*XZAepL6n@|9HtwzF{D5t@QK7QRwA(f}#&UI|{gOUx(}F%+pAspNh~N*&O`+kW zjm<+Yg>v;zGqSc2DanNh6Z)7Ck%^K&g1+#FBpChZ?6Ql*<(}s`_c`ah_kEvtOq>uS zLdovA^4PkQE16ZNChKO}Ull)m+}-|C@5}G@EL7fanJ$mkI(#ldh?)?;191~#OKW3W z+qK440rSn6*HJ>YAR2P|2h2IlWu0gK&v6#XM?ING$Tq|QMC|oD;vekjWosDY;|^aOB>SlExloTw=gvo8ZFx~q?2=`sWvk#2=F#`D1Ci8Ky17#AUk zu@ur6&jF_pX#{F8&OuNiDl@pmX$UE*m3tI~oRpXkS*^t0B0C~69@lb9tO?mMiH#$Z z>KK(O(W|Ov4%w!!J6)qr_o;9oUG#A|aQO8V+nucuk&X6%!$rdaDGBU?W5}b;#(ithm*92^E`Q z%_=VJ&Dw4X^vwRM|JKY( for (let [key, value] of Object.entries(params)) { if (value instanceof Promise) value = await value; - if (value instanceof Blob) formData.set(key, value); + if (value instanceof Blob) formData.append(key, value); else if (typeof value === "object") - formData.set(key, JSON.stringify(value)); - else formData.set(key, String(value)); + formData.append(key, JSON.stringify(value)); + else formData.append(key, String(value)); } return formData;