@supacloud/js 0.48.1 → 0.48.3
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/index.cjs +1 -6
- package/dist/index.mjs +1 -6
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -3531,7 +3531,6 @@ async function readErrorBody(response) {
|
|
|
3531
3531
|
return;
|
|
3532
3532
|
let reader;
|
|
3533
3533
|
let timer;
|
|
3534
|
-
let finished = false;
|
|
3535
3534
|
try {
|
|
3536
3535
|
reader = response.clone().body?.getReader();
|
|
3537
3536
|
if (!reader)
|
|
@@ -3541,10 +3540,8 @@ async function readErrorBody(response) {
|
|
|
3541
3540
|
const decoder = new TextDecoder("utf-8", { fatal: true });
|
|
3542
3541
|
let bytes = 0;
|
|
3543
3542
|
let text = "";
|
|
3544
|
-
while (
|
|
3543
|
+
while (true) {
|
|
3545
3544
|
const chunk = await current.read();
|
|
3546
|
-
if (finished)
|
|
3547
|
-
return;
|
|
3548
3545
|
if (chunk.done) {
|
|
3549
3546
|
const body = JSON.parse(text + decoder.decode());
|
|
3550
3547
|
return isRecord6(body) ? body : undefined;
|
|
@@ -3554,7 +3551,6 @@ async function readErrorBody(response) {
|
|
|
3554
3551
|
return;
|
|
3555
3552
|
text += decoder.decode(chunk.value, { stream: true });
|
|
3556
3553
|
}
|
|
3557
|
-
return;
|
|
3558
3554
|
};
|
|
3559
3555
|
return await Promise.race([
|
|
3560
3556
|
read(),
|
|
@@ -3565,7 +3561,6 @@ async function readErrorBody(response) {
|
|
|
3565
3561
|
} catch {
|
|
3566
3562
|
return;
|
|
3567
3563
|
} finally {
|
|
3568
|
-
finished = true;
|
|
3569
3564
|
clearTimeout(timer);
|
|
3570
3565
|
reader?.cancel().catch(() => {});
|
|
3571
3566
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3435,7 +3435,6 @@ async function readErrorBody(response) {
|
|
|
3435
3435
|
return;
|
|
3436
3436
|
let reader;
|
|
3437
3437
|
let timer;
|
|
3438
|
-
let finished = false;
|
|
3439
3438
|
try {
|
|
3440
3439
|
reader = response.clone().body?.getReader();
|
|
3441
3440
|
if (!reader)
|
|
@@ -3445,10 +3444,8 @@ async function readErrorBody(response) {
|
|
|
3445
3444
|
const decoder = new TextDecoder("utf-8", { fatal: true });
|
|
3446
3445
|
let bytes = 0;
|
|
3447
3446
|
let text = "";
|
|
3448
|
-
while (
|
|
3447
|
+
while (true) {
|
|
3449
3448
|
const chunk = await current.read();
|
|
3450
|
-
if (finished)
|
|
3451
|
-
return;
|
|
3452
3449
|
if (chunk.done) {
|
|
3453
3450
|
const body = JSON.parse(text + decoder.decode());
|
|
3454
3451
|
return isRecord6(body) ? body : undefined;
|
|
@@ -3458,7 +3455,6 @@ async function readErrorBody(response) {
|
|
|
3458
3455
|
return;
|
|
3459
3456
|
text += decoder.decode(chunk.value, { stream: true });
|
|
3460
3457
|
}
|
|
3461
|
-
return;
|
|
3462
3458
|
};
|
|
3463
3459
|
return await Promise.race([
|
|
3464
3460
|
read(),
|
|
@@ -3469,7 +3465,6 @@ async function readErrorBody(response) {
|
|
|
3469
3465
|
} catch {
|
|
3470
3466
|
return;
|
|
3471
3467
|
} finally {
|
|
3472
|
-
finished = true;
|
|
3473
3468
|
clearTimeout(timer);
|
|
3474
3469
|
reader?.cancel().catch(() => {});
|
|
3475
3470
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supacloud/js",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.3",
|
|
4
4
|
"description": "Platform SDK for SupaCloud, built on top of supabase-js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@supacloud/contracts": "0.16.
|
|
119
|
+
"@supacloud/contracts": "0.16.2",
|
|
120
120
|
"@supacloud/query": "0.6.0",
|
|
121
121
|
"rxjs": "7.8.2"
|
|
122
122
|
},
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
"@types/bun": "^1.4.4",
|
|
125
125
|
"@supabase/supabase-js": "^2.118.0",
|
|
126
126
|
"typescript": "7.1.0-beta",
|
|
127
|
-
"@tanstack/query-core": "5.
|
|
128
|
-
"@tanstack/svelte-query": "6.
|
|
129
|
-
"typebox": "1.4.
|
|
127
|
+
"@tanstack/query-core": "5.107.1",
|
|
128
|
+
"@tanstack/svelte-query": "6.4.1",
|
|
129
|
+
"typebox": "1.4.5",
|
|
130
130
|
"svelte": "5.57.3"
|
|
131
131
|
},
|
|
132
132
|
"engines": {
|