refactor: Replace stream-array with highland Works with more than just arrays. Iterators in particular are useful
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M src/actions.js → src/actions.js
@@ -1,11 +1,11 @@ 'use strict' const send = require('koa-send') -const streamify = require('stream-array') +const h = require('highland') const responders = require('./responders') function toArrayStream (iterator) { - return streamify(Array.from(iterator.entries())) + return h(iterator.entries()) } function home (config, posts) {