loom-browser 0.0.7 → 0.0.8

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.
@@ -10567,7 +10567,12 @@ workerSelf.onmessage = async (e) => {
10567
10567
  }
10568
10568
  catch (err) {
10569
10569
  const message = err instanceof Error ? err.message : String(err);
10570
- const isAbort = err instanceof DOMException && err.name === 'AbortError';
10570
+ // Detect abort errors robustly: DOMException with name 'AbortError',
10571
+ // or Error with name 'AbortError', or the browser's native abort
10572
+ // message ("signal is aborted without reason" / "The operation was aborted").
10573
+ const isAbort = (err instanceof DOMException && err.name === 'AbortError')
10574
+ || (err instanceof Error && err.name === 'AbortError')
10575
+ || message.includes('aborted');
10571
10576
  workerSelf.postMessage({
10572
10577
  type: 'fetchError',
10573
10578
  fetchId: msg.fetchId,