hypha-rpc 0.21.36 → 0.21.38
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/coverage/html/index.html +1 -1
- package/dist/hypha-rpc-websocket.js +13 -4
- package/dist/hypha-rpc-websocket.js.map +1 -1
- package/dist/hypha-rpc-websocket.min.js +1 -1
- package/dist/hypha-rpc-websocket.min.js.map +1 -1
- package/dist/hypha-rpc-websocket.min.mjs +1 -1
- package/dist/hypha-rpc-websocket.min.mjs.map +1 -1
- package/dist/hypha-rpc-websocket.mjs +13 -4
- package/dist/hypha-rpc-websocket.mjs.map +1 -1
- package/hypha-rpc-0.21.15.tgz +0 -0
- package/package.json +1 -1
- package/src/rpc.js +13 -4
package/coverage/html/index.html
CHANGED
|
@@ -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-
|
|
89
|
+
at 2026-03-19T04:33:41.281Z
|
|
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
|
|
3471
|
-
//
|
|
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 =
|
|
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(",")
|