hypha-rpc 0.21.36 → 0.21.37

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.
@@ -86,7 +86,7 @@
86
86
  <div class='footer quiet pad2 space-top1 center small'>
87
87
  Code coverage generated by
88
88
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89
- at 2026-03-11T17:52:10.251Z
89
+ at 2026-03-19T04:11:10.099Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
@@ -3467,13 +3467,22 @@ __webpack_require__.r(__webpack_exports__);
3467
3467
  */
3468
3468
  function getParamNames(fn) {
3469
3469
  const src = fn.toString();
3470
- // Match: function(a, b), async function name(a, b), (a, b) =>, async (a, b) =>
3471
- // Also handles single param arrow without parens: a =>
3470
+ // Match these forms (with optional leading async):
3471
+ // function(a, b) – anonymous function
3472
+ // function name(a, b) – named function
3473
+ // (a, b) => – arrow function
3474
+ // a => – single-param arrow (no parens)
3475
+ // name(a, b) { – shorthand method (object literal / class)
3472
3476
  const match = src.match(
3473
- /^(?:async\s+)?(?:function\s*\w*)?\s*\(([^)]*)\)|^(?:async\s+)?(\w+)\s*=>/,
3477
+ /^(?:async\s+)?(?:function\s*\w*)?\s*\(([^)]*)\)|^(?:async\s+)?(\w+)\s*=>|^(?:async\s+)?\w+\s*\(([^)]*)\)/,
3474
3478
  );
3475
3479
  if (!match) return [];
3476
- const paramStr = match[1] !== undefined ? match[1] : match[2];
3480
+ const paramStr =
3481
+ match[1] !== undefined
3482
+ ? match[1]
3483
+ : match[2] !== undefined
3484
+ ? match[2]
3485
+ : match[3];
3477
3486
  if (!paramStr || !paramStr.trim()) return [];
3478
3487
  return paramStr
3479
3488
  .split(",")