File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.1.4 (August 21, 2020)
2
+
3
+ Minor asynchronicity improvement.
4
+
1
5
## 2.1.3 (June 5, 2020)
2
6
3
7
* Fix ` timeout is not a function ` bug
Original file line number Diff line number Diff line change 165
165
"properties" : {
166
166
"inputArray" : {
167
167
"type" : " array" ,
168
+ "required" : true ,
168
169
"items" : {}
169
170
}
170
171
}
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ async function init(cfg) {
56
56
ax = axios . create ( ) ;
57
57
util . addRetryCountInterceptorToAxios ( ax ) ;
58
58
}
59
+
59
60
async function ProcessAction ( msg ) {
60
61
// eslint-disable-next-line consistent-this
61
62
const self = this ;
@@ -94,14 +95,15 @@ async function ProcessAction(msg) {
94
95
throw Error ( `Inbound message should be a plain Object. At least one of entries is not a primitive type: ${ JSON . stringify ( errorValue ) } ` ) ;
95
96
}
96
97
97
- ax . put ( putUrl , stringifier , {
98
+ await stringifier . end ( ) ;
99
+
100
+ await ax . put ( putUrl , stringifier , {
98
101
method : 'PUT' ,
99
102
timeout : REQUEST_TIMEOUT ,
100
103
retry : REQUEST_MAX_RETRY ,
101
104
delay : REQUEST_RETRY_DELAY ,
102
105
maxContentLength : REQUEST_MAX_CONTENT_LENGTH ,
103
106
} ) ;
104
- stringifier . end ( ) ;
105
107
106
108
const messageToEmit = messages . newMessageWithBody ( {
107
109
rowCount,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " csv-component" ,
3
- "version" : " 2.1.3 " ,
3
+ "version" : " 2.1.4 " ,
4
4
"description" : " CSV Component for elastic.io platform" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments