UNPKG

@jplorg/jpl

Version:
20 lines (19 loc) 497 B
"use strict"; 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) }; } };