diff options
author | Alan Pearce | 2017-06-25 13:13:19 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-25 13:13:19 +0200 |
commit | 6f9b41464f25d12a24b2672dbf12b43c7df81dd2 (patch) | |
tree | be20f96c408668e589199aff4746ada463076cb1 /src | |
parent | b959fe891cc975038a1d34b51192365b55cb7e7e (diff) | |
download | homestead-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')
-rw-r--r-- | src/actions.js | 4 |
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) { |