UNPKG

caminho

Version:

Tool for creating efficient data pipelines in a JavaScript environment

12 lines 485 B
var stub = function () { }; export function getOnStepFinished(name, onStepFinished) { if (onStepFinished) { return function internalOnStepFinished(valueBags, stepStartedAt, error) { var now = Date.now(); var tookMs = now - stepStartedAt.getTime(); onStepFinished({ name: name, tookMs: tookMs, valueBags: valueBags, emitted: valueBags.length, error: error }); }; } return stub; } //# sourceMappingURL=onStepFinished.js.map