@artilleryio/int-core
Advanced tools
Comparing version 2.14.0-533dfcd to 2.14.0-77c9a48
@@ -406,11 +406,19 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
let V = template(v, context); | ||
if (V && _.isPlainObject(V) && V.fromFile) { | ||
const absPath = path.resolve( | ||
path.dirname(context.vars.$scenarioFile), | ||
V.fromFile | ||
); | ||
fileUpload = absPath; | ||
V = fs.createReadStream(absPath); | ||
let options; | ||
if (V && _.isPlainObject(V)) { | ||
if (V.contentType) { | ||
options = { contentType: V.contentType }; | ||
} | ||
if (V.fromFile) { | ||
const absPath = path.resolve( | ||
path.dirname(context.vars.$scenarioFile), | ||
V.fromFile | ||
); | ||
fileUpload = absPath; | ||
V = fs.createReadStream(absPath); | ||
} else if (V.value) { | ||
V = V.value; | ||
} | ||
} | ||
acc.append(k, V); | ||
acc.append(k, V, options); | ||
return acc; | ||
@@ -417,0 +425,0 @@ }, |
{ | ||
"name": "@artilleryio/int-core", | ||
"version": "2.14.0-533dfcd", | ||
"version": "2.14.0-77c9a48", | ||
"main": "./index.js", | ||
"license": "MPL-2.0", | ||
"dependencies": { | ||
"@artilleryio/int-commons": "2.10.0-533dfcd", | ||
"@artilleryio/int-commons": "2.10.0-77c9a48", | ||
"@artilleryio/sketches-js": "^2.1.1", | ||
@@ -9,0 +9,0 @@ "agentkeepalive": "^4.1.0", |
121448
3081
+ Added@artilleryio/int-commons@2.10.0-77c9a48(transitive)
- Removed@artilleryio/int-commons@2.10.0-533dfcd(transitive)