@artilleryio/int-core 2.13.0-43068a4 → 2.13.0-ca69167

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 +3 -1
  2. package/package.json +2 -2
package/lib/runner.js CHANGED
@@ -18,6 +18,7 @@ const isIdlePhase = require('./is-idle-phase');
18
18
  const createReader = require('./readers');
19
19
  const engineUtil = require('@artilleryio/int-commons').engine_util;
20
20
  const wl = require('./weighted-pick');
21
+ const { pathToFileURL } = require('url');
21
22
 
22
23
  const Engines = {
23
24
  http: require('./engine_http'),
@@ -86,7 +87,8 @@ async function loadProcessor(script, options) {
86
87
  );
87
88
 
88
89
  if (processorPath.endsWith('.mjs')) {
89
- const exports = await import(processorPath);
90
+ const fileUrl = pathToFileURL(processorPath);
91
+ const exports = await import(fileUrl.href);
90
92
  script.config.processor = Object.assign(
91
93
  {},
92
94
  script.config.processor,
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@artilleryio/int-core",
3
- "version": "2.13.0-43068a4",
3
+ "version": "2.13.0-ca69167",
4
4
  "main": "./index.js",
5
5
  "license": "MPL-2.0",
6
6
  "dependencies": {
7
- "@artilleryio/int-commons": "2.9.0-43068a4",
7
+ "@artilleryio/int-commons": "2.9.0-ca69167",
8
8
  "@artilleryio/sketches-js": "^2.1.1",
9
9
  "agentkeepalive": "^4.1.0",
10
10
  "arrivals": "^2.1.2",