@artilleryio/int-core
Advanced tools
Comparing version 2.13.0-4f6f322 to 2.13.0-5f5adff
@@ -410,14 +410,23 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
_.each(script.config.payload, function (el) { | ||
// If data = [] (i.e. the CSV file is empty, or only has headers and | ||
// skipHeaders = true), then row could = undefined | ||
let row = el.reader(el.data) || []; | ||
_.each(el.fields, function (fieldName, j) { | ||
result[fieldName] = row[j]; | ||
}); | ||
//when loading all the csv, we don't set individual fields | ||
if (!el.loadAll) { | ||
// If data = [] (i.e. the CSV file is empty, or only has headers and | ||
// skipHeaders = true), then row could = undefined | ||
let row = el.reader(el.data) || []; | ||
_.each(el.fields, function (fieldName, j) { | ||
result[fieldName] = row[j]; | ||
}); | ||
} | ||
if (typeof el.name !== 'undefined') { | ||
// Make the entire CSV available | ||
result[el.name] = el.reader(el.data); | ||
} else { | ||
console.log( | ||
'WARNING: loadAll is set to true but no name is provided for the CSV data' | ||
); | ||
} | ||
}); | ||
} | ||
return result; | ||
@@ -424,0 +433,0 @@ } |
{ | ||
"name": "@artilleryio/int-core", | ||
"version": "2.13.0-4f6f322", | ||
"version": "2.13.0-5f5adff", | ||
"main": "./index.js", | ||
"license": "MPL-2.0", | ||
"dependencies": { | ||
"@artilleryio/int-commons": "2.9.0-4f6f322", | ||
"@artilleryio/int-commons": "2.9.0-5f5adff", | ||
"@artilleryio/sketches-js": "^2.1.1", | ||
@@ -9,0 +9,0 @@ "agentkeepalive": "^4.1.0", |
121139
3072
+ Added@artilleryio/int-commons@2.9.0-5f5adff(transitive)
+ Addedlong@5.3.0(transitive)
+ Addedtldts@6.1.77(transitive)
+ Addedtldts-core@6.1.77(transitive)
+ Addedtough-cookie@5.1.1(transitive)
- Removed@artilleryio/int-commons@2.9.0-4f6f322(transitive)
- Removedlong@5.2.4(transitive)
- Removedtldts@6.1.76(transitive)
- Removedtldts-core@6.1.76(transitive)
- Removedtough-cookie@5.1.0(transitive)