summary refs log tree commit diff stats
path: root/src/actions.js
diff options
context:
space:
mode:
authorAlan Pearce2017-06-25 13:13:19 +0200
committerAlan Pearce2017-06-25 13:13:19 +0200
commit6f9b41464f25d12a24b2672dbf12b43c7df81dd2 (patch)
treebe20f96c408668e589199aff4746ada463076cb1 /src/actions.js
parentb959fe891cc975038a1d34b51192365b55cb7e7e (diff)
downloadhomestead-6f9b41464f25d12a24b2672dbf12b43c7df81dd2.tar.lz
homestead-6f9b41464f25d12a24b2672dbf12b43c7df81dd2.tar.zst
homestead-6f9b41464f25d12a24b2672dbf12b43c7df81dd2.zip
refactor: Replace stream-array with highland
Works with more than just arrays.  Iterators in particular are useful
Diffstat (limited to 'src/actions.js')
-rw-r--r--src/actions.js4
1 files changed, 2 insertions, 2 deletions
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) {