add: hooks component
add support for hooks within bruno-lang
fix: hooks is not getting save
hooks implemtation
add hooks component within folders, requests
add: quick js shims for hooks
fix: garbage collected hook managers
send logs to main
rm: hook manager store
feat: introduce HOOK_EVENTS constant for improved hook management
add folder start/end events
add folder run events
rm: folder run related events
add cli support for hooks
support script:hooks instead of hooks
move hooks to script tab
make outer scope available within callback in safemode
added runner, req apis as an abstraction over event based hooks
fix: crash while editing folder hooks
rm: unused files
fix: self review changes
refactor, request specific hook manager deleted once
add: cm
rm: spaces
add prompt var
rm: indent
fix: lint
refactor: shims handling for hooks
fix: enable async calling in dev mode for gui, cli
fix: support async callbacks within safe mode
rm: vm instance
fix: review comments
fix: review comments
add cli tests for hooks
rm: client certs
fix: add hooks to oc yaml
fix: rename uid ot path name for better clarity, app crash when saving folder hooks
rm: console
rm: vm2 runtime leftover
rm: check
add: handler cleanup function
add: playwright test case for hooks
rm: review fixes
fix: review comments
add fallback hook manager
add fallback hook manager
fix: show error from hooks scripts within response pane
change: collection events name
feat: add name spaced hooks
fix: review comments
add: hooks specific collection for testing
use hooks manager as a private field
fix: tests
use collection from bruno-test within playwright
rm: databuffer test
fix: playwright test
rm: unintended changes
rm: file
Add `isSafeMode()` to Bru API that returns `true` in
case the runtime is a sandbox.
This allows for scripts to test for and handle whether
running in sandbox or not:
```javascript
if (bru.isSafeMode()) {
throw new Error('This script requires Developer mode')
}
```
Co-authored-by: Anoop M D <anoop@usebruno.com>
* fix: enhance cleanJson to support serialization of typed arrays
* fix: correctness of inference based checks
* fix: remove duplicate Uint8Array reference
* fix: correct export syntax for mixinTypedArrays
Updated the export statement to use 'exports' instead of 'export' for proper module export functionality.
* chore: code cleanup
* test: add basics tests for cleanJson
* feat: enhance variable highlighting in CodeMirror and update interpolation method
* feat: add interpolate function to bru shim and corresponding tests
- Implemented the `interpolate` function in the bru shim to handle variable interpolation.
- Added a new test case for the `interpolate` function to verify its functionality with mock variables.
* feat: enhance interpolate function to support object interpolation
* feat: add translation support for pm.variables.replaceIn to bru.interpolate
* revert: eslint config changes
* revert: eslint config changes
* fix: update method call to use correct interpolation function in Bru class
* refactor: added jsdoc to codemirror highlighting code
* fix: higlighting for multiline editor
* Bugfix: Add cheerio and xml2js modules to post-response scripts
* chore: improved cheerio and xml2js test
---------
Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
fix#2005
- display post request variable evaluation errors in a toast, each individual variable error on a new line
- display the response body (was previously replaced by the an error "Error invoking remote method 'send-http-request': ..."