mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 12:45:38 +00:00
* fix(js): support response query filters in safe mode * feat: add tests and improve bruno-response shim for query argument handling - Introduced a new test suite for the bruno-response shim to validate query filtering and function callback behavior. - Refactored the `res` function to enhance argument handling, allowing for better marshalling of QuickJS function handles and other values. - Improved error handling within the response processing to ensure robust behavior during query execution. * fix: correct argument handling in bruno-response shim for function callbacks - Updated the `toHostQueryArg` function to use `vm.undefined` instead of `vm.global` when calling the provided function argument. This change ensures proper context handling during function execution, improving the reliability of query argument processing. * chore: clean up .gitignore and enhance error handling in bruno-response tests - Removed redundant entries from .gitignore to streamline ignored files. - Improved error handling in the `afterEach` and `afterAll` hooks of the bruno-response tests to ensure proper disposal of resources, preventing potential memory leaks. --------- Co-authored-by: cryst <230207759+cryst-hq@users.noreply.github.com>