@narumitw/pi-analytics 0.49.4 → 0.49.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-analytics",
3
- "version": "0.49.4",
3
+ "version": "0.49.5",
4
4
  "description": "Local-first usage analytics for Pi models, skills, tools, and reliability.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -406,6 +406,16 @@ async function withDeadline<T>(
406
406
  );
407
407
  try {
408
408
  return await operation(controller.signal);
409
+ } catch (error) {
410
+ if (
411
+ controller.signal.aborted &&
412
+ error instanceof Error &&
413
+ error.name === "AbortError" &&
414
+ error.cause === controller.signal.reason
415
+ ) {
416
+ throw controller.signal.reason;
417
+ }
418
+ throw error;
409
419
  } finally {
410
420
  clearTimeout(timer);
411
421
  callerSignal?.removeEventListener("abort", callerAbort);