From 7a77afc64ab5bb580a68bb5a8293a08970f2dacd Mon Sep 17 00:00:00 2001 From: lohxt1 Date: Tue, 8 Oct 2024 10:20:54 +0530 Subject: [PATCH] feat: updates --- packages/bruno-app/src/components/CodeEditor/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/CodeEditor/index.js b/packages/bruno-app/src/components/CodeEditor/index.js index 5998cf10a..364f399c5 100644 --- a/packages/bruno-app/src/components/CodeEditor/index.js +++ b/packages/bruno-app/src/components/CodeEditor/index.js @@ -72,7 +72,9 @@ if (!SERVER_RENDERED) { 'bru.setNextRequest(requestName)', 'req.disableParsingResponseJson()', 'bru.getRequestVar(key)', - 'bru.sleep(ms)' + 'bru.sleep(ms)', + 'bru.getGlobalEnvVar(key)', + 'bru.setGlobalEnvVar(key, value)' ]; CodeMirror.registerHelper('hint', 'brunoJS', (editor, options) => { const cursor = editor.getCursor();