Skip to content

Commit 5f811d5

Browse files
author
Kirill
committed
add description of the 'Emit all messages' feature to documentation
1 parent 5b1fcce commit 5f811d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ outgoing message.
3636
This action will read the CSV attachment of the incoming message and output
3737
a `JSON` object. To configure this action the following fields can be used:
3838

39+
* `Emit all messages` - this checkbox configures output behavior of the component. If the option is checked - the component emits an array of messages, otherwise - the component emits a message per row.
3940
* `CSV Header` - this is a required field. Input the names of headers separated with a comma.
4041
* `Separators` - Specify the separator type. Usually it is a comma (`,`) but values like Semicolon (`;`), Space (` `), Tab (`\t`) and Hash (`#`) are also supported.
41-
* `Skip rows` - if you know that the incoming CSV file has certain number of headers you can indicate to skip them. The supported values are `None`, `First row`, `First two`, `Dirst three` and `First four`.
42+
* `Skip rows` - if you know that the incoming CSV file has certain number of headers you can indicate to skip them. The supported values are `None`, `First row`, `First two`, `First three` and `First four`.
4243
* `Data columns` - here the values will be added dynamically based on the values in the `CSV Header` field. Here each data column will be listed with the name, Data Type and the Format to enable further configuration.
4344

4445

lib/read.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function ProcessRead(msg, cfg) {
9595
if (index >= startRow) {
9696
const msg = createRowMessage(chunk, cfg.reader.columns);
9797
if (cfg.emitAll) {
98-
debug('Row #%s idded to result array', index);
98+
debug('Row #%s added to result array', index);
9999
outputMsg.result.push(msg.body);
100100
} else {
101101
await that.emit('data', msg);

0 commit comments

Comments
 (0)