Node.js component should support snapshots feature.
Acceptance criterias
[ ] run function accepts 3 arguments: msg, cfg, snapshot
[ ] cfg param is always an object with 1 property: code (the code in text format)
[ ] snapshot is an empty object ({}) by default
[ ] it should be possible to modify the snapshot by doing this.emit('snapshot', snapshot). The behaviour should be the same as for the normal component.
Node.js component should support snapshots feature.
Acceptance criterias
run
function accepts 3 arguments:msg
,cfg
,snapshot
cfg
param is always an object with 1 property:code
(the code in text format)snapshot
is an empty object ({}
) by defaultthis.emit('snapshot', snapshot)
. The behaviour should be the same as for the normal component.