Skip to content

Commit d3de46c

Browse files
authored
New Jsonata expressions (#41)
1 parent 71afca4 commit d3de46c

File tree

4 files changed

+61
-5
lines changed

4 files changed

+61
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.0.6 (March 26, 2020)
2+
* Add support for new getFlowVariables and handlePathrough jsonata functions
3+
14
## 1.0.5 (March 3, 2020)
25
* Fixed bug when emitting to much data
36

lib/actions/splitOnJsonata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { messages } = require('elasticio-node');
66
* @this processAction
77
*/
88
async function processAction(msg, cfg) {
9-
const split = JsonataTransform.jsonataTransform(msg, cfg);
9+
const split = JsonataTransform.jsonataTransform(msg, cfg, this);
1010

1111
if (!Array.isArray(split)) {
1212
await this.emit('error', new Error('The evaluated expression must be an array.'));

package-lock.json

Lines changed: 56 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"node": "12"
1717
},
1818
"dependencies": {
19-
"@elastic.io/component-commons-library": "0.0.7",
19+
"@elastic.io/component-commons-library": "1.1.0",
2020
"elasticio-node": "0.0.9",
2121
"elasticio-sailor-nodejs": "2.6.5",
2222
"lodash": "4.17.15"

0 commit comments

Comments
 (0)