radashi 13.0.2 → 13.0.4

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/radashi.cjs CHANGED
@@ -518,6 +518,7 @@ async function retry(options, func) {
518
518
  const signal = options?.signal;
519
519
  let i = 0;
520
520
  while (true) {
521
+ signal?.throwIfAborted();
521
522
  const [err, result] = await tryit(func)((err2) => {
522
523
  throw { _exited: err2 };
523
524
  });
@@ -525,7 +526,7 @@ async function retry(options, func) {
525
526
  if (!err) {
526
527
  return result;
527
528
  }
528
- if (err._exited) {
529
+ if (Object.prototype.hasOwnProperty.call(err, "_exited")) {
529
530
  throw err._exited;
530
531
  }
531
532
  if (++i >= times) {
package/dist/radashi.js CHANGED
@@ -516,6 +516,7 @@ async function retry(options, func) {
516
516
  const signal = options?.signal;
517
517
  let i = 0;
518
518
  while (true) {
519
+ signal?.throwIfAborted();
519
520
  const [err, result] = await tryit(func)((err2) => {
520
521
  throw { _exited: err2 };
521
522
  });
@@ -523,7 +524,7 @@ async function retry(options, func) {
523
524
  if (!err) {
524
525
  return result;
525
526
  }
526
- if (err._exited) {
527
+ if (Object.prototype.hasOwnProperty.call(err, "_exited")) {
527
528
  throw err._exited;
528
529
  }
529
530
  if (++i >= times) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "radashi",
3
- "version": "13.0.2",
3
+ "version": "13.0.4",
4
4
  "type": "module",
5
5
  "description": "The modern, community-first TypeScript toolkit with all of the fast, readable, and minimal utility functions you need. Type-safe, dependency-free, tree-shakeable, fully tested.",
6
6
  "repository": {