From 6f9b41464f25d12a24b2672dbf12b43c7df81dd2 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 25 Jun 2017 13:13:19 +0200 Subject: refactor: Replace stream-array with highland Works with more than just arrays. Iterators in particular are useful --- src/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actions.js') diff --git a/src/actions.js b/src/actions.js index 1feb9c1..02414a1 100644 --- a/src/actions.js +++ b/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) { -- cgit 1.4.1