From 9132755d49268b7947f8eff9dc231ab4990c7edb Mon Sep 17 00:00:00 2001 From: naman-bruno Date: Fri, 16 May 2025 20:52:15 +0530 Subject: [PATCH 1/2] add: noproxy in options --- packages/bruno-cli/src/commands/run.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/bruno-cli/src/commands/run.js b/packages/bruno-cli/src/commands/run.js index 2cd896441..14a058f8d 100644 --- a/packages/bruno-cli/src/commands/run.js +++ b/packages/bruno-cli/src/commands/run.js @@ -345,6 +345,9 @@ const handler = async function (argv) { if (disableCookies) { options['disableCookies'] = true; } + if (noproxy) { + options['noproxy'] = true; + } if (cacert && cacert.length) { if (insecure) { console.error(chalk.red(`Ignoring the cacert option since insecure connections are enabled`)); @@ -457,8 +460,7 @@ const handler = async function (argv) { collectionRoot, runtime, collection, - runSingleRequestByPathname, - noproxy + runSingleRequestByPathname ); resolve(res?.response); } @@ -483,8 +485,7 @@ const handler = async function (argv) { collectionRoot, runtime, collection, - runSingleRequestByPathname, - noproxy + runSingleRequestByPathname ); const isLastRun = currentRequestIndex === requestItems.length - 1; From 3c0090d86f6e398ecf05c0eb427b9c3ff99538da Mon Sep 17 00:00:00 2001 From: naman-bruno Date: Fri, 16 May 2025 21:02:24 +0530 Subject: [PATCH 2/2] fix: runSingleRequest function --- packages/bruno-cli/src/runner/run-single-request.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-cli/src/runner/run-single-request.js b/packages/bruno-cli/src/runner/run-single-request.js index 3c5cc9f42..e03eef094 100644 --- a/packages/bruno-cli/src/runner/run-single-request.js +++ b/packages/bruno-cli/src/runner/run-single-request.js @@ -41,8 +41,7 @@ const runSingleRequest = async function ( collectionRoot, runtime, collection, - runSingleRequestByPathname, - noproxy + runSingleRequestByPathname ) { const { pathname: itemPathname } = item; const relativeItemPathname = path.relative(collectionPath, itemPathname); @@ -118,6 +117,7 @@ const runSingleRequest = async function ( const options = getOptions(); const insecure = get(options, 'insecure', false); + const noproxy = get(options, 'noproxy', false); const httpsAgentRequestFields = {}; if (insecure) { httpsAgentRequestFields['rejectUnauthorized'] = false;