mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-18 00:39:59 +02:00
fix: cli -- collection run -- clone request item at start (#3760)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { forOwn } = require('lodash');
|
const { forOwn, cloneDeep } = require('lodash');
|
||||||
const { exists, isFile, isDirectory } = require('../utils/filesystem');
|
const { exists, isFile, isDirectory } = require('../utils/filesystem');
|
||||||
const { runSingleRequest } = require('../runner/run-single-request');
|
const { runSingleRequest } = require('../runner/run-single-request');
|
||||||
const { bruToEnvJson, getEnvVars } = require('../utils/bru');
|
const { bruToEnvJson, getEnvVars } = require('../utils/bru');
|
||||||
@@ -637,7 +637,7 @@ const handler = async function (argv) {
|
|||||||
let currentRequestIndex = 0;
|
let currentRequestIndex = 0;
|
||||||
let nJumps = 0; // count the number of jumps to avoid infinite loops
|
let nJumps = 0; // count the number of jumps to avoid infinite loops
|
||||||
while (currentRequestIndex < bruJsons.length) {
|
while (currentRequestIndex < bruJsons.length) {
|
||||||
const iter = bruJsons[currentRequestIndex];
|
const iter = cloneDeep(bruJsons[currentRequestIndex]);
|
||||||
const { bruFilepath, bruJson } = iter;
|
const { bruFilepath, bruJson } = iter;
|
||||||
|
|
||||||
const start = process.hrtime();
|
const start = process.hrtime();
|
||||||
|
Reference in New Issue
Block a user