@multiplayer-app/ai-agent-react 0.1.0-beta.81 → 0.1.0-beta.83
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.
|
@@ -35034,6 +35034,7 @@ const q3 = (e) => {
|
|
|
35034
35034
|
async function V_e(e, t, n, r) {
|
|
35035
35035
|
const a = await fetch(r.presignedUrlEndpoint, {
|
|
35036
35036
|
method: "POST",
|
|
35037
|
+
credentials: "include",
|
|
35037
35038
|
headers: {
|
|
35038
35039
|
"Content-Type": "application/json",
|
|
35039
35040
|
...r.getAuthHeaders?.() || {}
|
|
@@ -35079,12 +35080,7 @@ async function G_e(e, t, n) {
|
|
|
35079
35080
|
};
|
|
35080
35081
|
try {
|
|
35081
35082
|
n.onProgress?.({ ...a, status: "uploading", progress: 0 });
|
|
35082
|
-
const { url: i, key: o } = await V_e(
|
|
35083
|
-
e,
|
|
35084
|
-
n.chatId,
|
|
35085
|
-
n.userId,
|
|
35086
|
-
t
|
|
35087
|
-
);
|
|
35083
|
+
const { url: i, key: o } = await V_e(e, n.chatId, n.userId, t);
|
|
35088
35084
|
return await j_e(e, i, (s) => {
|
|
35089
35085
|
n.onProgress?.({
|
|
35090
35086
|
...a,
|
|
@@ -35116,13 +35112,9 @@ async function G_e(e, t, n) {
|
|
|
35116
35112
|
}
|
|
35117
35113
|
}
|
|
35118
35114
|
async function W_e(e, t, n) {
|
|
35119
|
-
const r = await Promise.allSettled(
|
|
35120
|
-
e.map((o) => G_e(o, t, n))
|
|
35121
|
-
), a = [], i = [];
|
|
35115
|
+
const r = await Promise.allSettled(e.map((o) => G_e(o, t, n))), a = [], i = [];
|
|
35122
35116
|
if (r.forEach((o, s) => {
|
|
35123
|
-
o.status === "fulfilled" ? a.push(o.value) : i.push(
|
|
35124
|
-
new Error(`Failed to process ${e[s].name}: ${o.reason}`)
|
|
35125
|
-
);
|
|
35117
|
+
o.status === "fulfilled" ? a.push(o.value) : i.push(new Error(`Failed to process ${e[s].name}: ${o.reason}`));
|
|
35126
35118
|
}), i.length > 0 && a.length === 0)
|
|
35127
35119
|
throw i[0];
|
|
35128
35120
|
return i.length > 0 && console.warn("Some files failed to upload:", i), a;
|