@jplorg/jpl
Version:
JPL interpreter
20 lines (19 loc) • 497 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _utils = require("./utils");
var _default = exports.default = {
/** { pipe: [op] } */
async op(runtime, input, params, scope, next) {
const outputs = await runtime.executeInstructions(params.pipe ?? [], [input], scope);
return next(outputs, scope);
},
/** { pipe: function } */
map(runtime, params) {
return {
pipe: (0, _utils.call)(params.pipe)
};
}
};