hypha-debugger 0.1.6 → 0.1.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.
- package/dist/hypha-debugger.js +39 -3
- package/dist/hypha-debugger.js.map +1 -1
- package/dist/hypha-debugger.min.js +2 -2
- package/dist/hypha-debugger.min.js.map +1 -1
- package/dist/hypha-debugger.mjs +39 -3
- package/dist/hypha-debugger.mjs.map +1 -1
- package/dist/utils/wrap-fn.d.ts +4 -0
- package/package.json +1 -1
package/dist/utils/wrap-fn.d.ts
CHANGED
|
@@ -9,5 +9,9 @@
|
|
|
9
9
|
* This helper uses new Function() to create a wrapper whose parameter names
|
|
10
10
|
* are taken from the function's __schema__ property, so hypha-rpc always sees
|
|
11
11
|
* the real parameter names regardless of minification.
|
|
12
|
+
*
|
|
13
|
+
* Additionally, it handles the case where hypha-rpc passes kwargs as a single
|
|
14
|
+
* object argument (e.g. `fn({url: "..."})` instead of `fn("...")`). The
|
|
15
|
+
* wrapper detects this and destructures the kwargs object automatically.
|
|
12
16
|
*/
|
|
13
17
|
export declare function wrapFn(fn: any): any;
|