From f7cccea1497b014b9ea17acfe4aaf910bf12ed62 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 19 Jul 2020 21:07:24 +0200 Subject: [PATCH] Rename forgotten bits --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0993458..43f6343 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ const isFunction = require("@validatem/is-function"); const defaultTo = require("@validatem/default-to"); // FIXME: Update other stream implementations to new API -module.exports = function greedySinkStream(_options) { +module.exports = function simpleSinkStream(_options) { let { onResult, onEnd, onAbort } = validateOptions(arguments, { onResult: [ required, isFunction ], onEnd: [ isFunction, defaultTo.literal(defaultOnEnd) ], @@ -34,10 +34,10 @@ module.exports = function greedySinkStream(_options) { } return { - description: `greedy sink stream`, + description: `simple sink stream`, abort: propagateAbort, peek: propagatePeek, - read: function produceValue_greedySinkStream(source) { + read: function produceValue_simpleSinkStream(source) { function attemptRead() { return Promise.try(() => { return source.read();