@artilleryio/int-core 2.6.0-fa6acff → 2.6.0-fedb959

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/runner.js +1 -10
  2. package/package.json +2 -2
package/lib/runner.js CHANGED
@@ -337,11 +337,7 @@ function runScenario(script, metrics, runState, contextVars, options) {
337
337
  if (options.scenarioName) {
338
338
  let foundIndex;
339
339
  const foundScenario = script.scenarios.filter((scenario, index) => {
340
- const hasScenarioByRegex = new RegExp(options.scenarioName).test(
341
- scenario.name
342
- );
343
- const hasScenarioByName = scenario.name === options.scenarioName;
344
- const hasScenario = hasScenarioByName || hasScenarioByRegex;
340
+ const hasScenario = new RegExp(options.scenarioName).test(scenario.name);
345
341
 
346
342
  if (hasScenario) {
347
343
  foundIndex = index;
@@ -465,10 +461,6 @@ function createContext(script, contextVars, additionalProperties = {}) {
465
461
  ...additionalPropertiesWithoutOverride
466
462
  };
467
463
 
468
- if (script._configPath) {
469
- INITIAL_CONTEXT.vars.$dirname = path.dirname(script._configPath);
470
- }
471
-
472
464
  let result = INITIAL_CONTEXT;
473
465
 
474
466
  // variables from payloads:
@@ -480,7 +472,6 @@ function createContext(script, contextVars, additionalProperties = {}) {
480
472
 
481
473
  result._uid = uuidv4();
482
474
  result.vars.$uuid = result._uid;
483
-
484
475
  return result;
485
476
  }
486
477
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@artilleryio/int-core",
3
- "version": "2.6.0-fa6acff",
3
+ "version": "2.6.0-fedb959",
4
4
  "main": "./index.js",
5
5
  "license": "MPL-2.0",
6
6
  "dependencies": {
7
- "@artilleryio/int-commons": "2.2.0-fa6acff",
7
+ "@artilleryio/int-commons": "2.2.0-fedb959",
8
8
  "@artilleryio/sketches-js": "^2.1.1",
9
9
  "agentkeepalive": "^4.1.0",
10
10
  "arrivals": "^2.1.2",