const pipe = require('1-liners/pipe');
const identity = require('1-liners/identity');

export default (plugins) => {
  const transform = plugins.reduce(pipe, identity);
  return (input) => {
    const inputData = input.map((data) => ({data}));
    return transform(inputData);
  };
};

@@ -172,18 +172,22 @@
 return (
-in
+doxOut
 put) =%3E 
@@ -207,17 +207,33 @@
 nput
-Data = in
+ = %7B%0A      chunks: doxOut
 put.
@@ -255,17 +255,64 @@
 %7Bdata%7D))
-;
+,%0A      version: '1',%0A      error: null,%0A    %7D;%0A
 %0A    ret
@@ -334,12 +334,8 @@
 nput
-Data
 );%0A 

Update data signature