Browse Source

Rename forgotten bits

Sven Slootweg 3 months ago
parent
commit
f7cccea149
1 changed files with 3 additions and 3 deletions
  1. 3 3
      index.js

+ 3 - 3
index.js

@ -12,7 +12,7 @@ const isFunction = require("@validatem/is-function");
12 12
const defaultTo = require("@validatem/default-to");
13 13
14 14
// FIXME: Update other stream implementations to new API
15
module.exports = function greedySinkStream(_options) {
15
module.exports = function simpleSinkStream(_options) {
16 16
	let { onResult, onEnd, onAbort } = validateOptions(arguments, {
17 17
		onResult: [ required, isFunction ],
18 18
		onEnd: [ isFunction, defaultTo.literal(defaultOnEnd) ],
@ -34,10 +34,10 @@ module.exports = function greedySinkStream(_options) {
34 34
	}
35 35
36 36
	return {
37
		description: `greedy sink stream`,
37
		description: `simple sink stream`,
38 38
		abort: propagateAbort,
39 39
		peek: propagatePeek,
40
		read: function produceValue_greedySinkStream(source) {
40
		read: function produceValue_simpleSinkStream(source) {
41 41
			function attemptRead() {
42 42
				return Promise.try(() => {
43 43
					return source.read();