mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-01 16:44:16 +00:00
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>
bruno-js
Provides the script, test, vars and assert runtimes.
Publish to Npm Registry
npm publish --access=public