@powersync/common 0.0.0-dev-20250828085411 → 0.0.0-dev-20250828091657
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.
|
@@ -382,6 +382,9 @@ export class AbstractRemote {
|
|
|
382
382
|
* Aborting the active fetch request while it is being consumed seems to throw
|
|
383
383
|
* an unhandled exception on the window level.
|
|
384
384
|
*/
|
|
385
|
+
if (abortSignal?.aborted) {
|
|
386
|
+
throw new AbortOperation('Abort request received before making postStreamRaw request');
|
|
387
|
+
}
|
|
385
388
|
const controller = new AbortController();
|
|
386
389
|
let requestResolved = false;
|
|
387
390
|
abortSignal?.addEventListener('abort', () => {
|
|
@@ -694,7 +694,7 @@ The next upload iteration will be delayed.`);
|
|
|
694
694
|
let receivingLines = null;
|
|
695
695
|
let hadSyncLine = false;
|
|
696
696
|
if (signal.aborted) {
|
|
697
|
-
|
|
697
|
+
throw new AbortOperation('Connection request has been aborted');
|
|
698
698
|
}
|
|
699
699
|
const abortController = new AbortController();
|
|
700
700
|
signal.addEventListener('abort', () => abortController.abort());
|