mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-29 07:34:07 +00:00
* chore: update package-lock.json to include yaml dependency * feat: add script-aware stack traces and source context for script/test failures * chore: sync package-lock.json with yaml dependency in bruno-js * fix: handle null check in getErrorTypeName and align JSDoc style * refactor: derive script path from request.pathname and use SCRIPT_TYPES constant * fix: avoid showing source context for collection/folder script errors * feat: map collection/folder script errors to source file and line * fix: update error formatting and avoid undefined message * fix: resolve script block location in collection/folder yml files * refactor: use script wrapper utils and rename wrapper offsets * refactor: move script wrapper to utils, add wrapScriptInClosure fn
17 lines
522 B
JavaScript
17 lines
522 B
JavaScript
const ScriptRuntime = require('./runtime/script-runtime');
|
|
const TestRuntime = require('./runtime/test-runtime');
|
|
const VarsRuntime = require('./runtime/vars-runtime');
|
|
const AssertRuntime = require('./runtime/assert-runtime');
|
|
const { runScriptInNodeVm } = require('./sandbox/node-vm');
|
|
const { formatErrorWithContext, SCRIPT_TYPES } = require('./utils/error-formatter');
|
|
|
|
module.exports = {
|
|
ScriptRuntime,
|
|
TestRuntime,
|
|
VarsRuntime,
|
|
AssertRuntime,
|
|
runScriptInNodeVm,
|
|
formatErrorWithContext,
|
|
SCRIPT_TYPES
|
|
};
|