bt-core-app 1.4.279 → 1.4.280
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bt-core-app.js +4 -2
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -7765,13 +7765,15 @@ function fw(e) {
|
|
|
7765
7765
|
async function m(h) {
|
|
7766
7766
|
const g = h.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0;
|
|
7767
7767
|
let d = h.finalUrl, C = h.headers;
|
|
7768
|
-
if (d == null && (d = a(h)), h.overrideHeaders !== !0 && (
|
|
7768
|
+
if (d == null && (d = a(h)), h.overrideHeaders !== !0 && (C = t(h)), r != null && r.isDemoing.value)
|
|
7769
7769
|
return console.log(`DEMO: Uploading image to ${d}`), r.post(h);
|
|
7770
7770
|
console.log(`Upload image to ${d}`);
|
|
7771
7771
|
let S;
|
|
7772
7772
|
try {
|
|
7773
7773
|
const T = new FormData(), x = Jb(h.data);
|
|
7774
|
-
|
|
7774
|
+
T.append("file", x);
|
|
7775
|
+
const w = { ...C };
|
|
7776
|
+
if (delete w["Content-Type"], C = new Headers(w), S = await fetch(d, {
|
|
7775
7777
|
method: "POST",
|
|
7776
7778
|
mode: "cors",
|
|
7777
7779
|
cache: "no-cache",
|
package/package.json
CHANGED