31 lines
627 B
JavaScript
31 lines
627 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = Pipe;
|
|
/** @license MIT License (c) copyright 2010-2016 original author or authors */
|
|
/** @author Brian Cavalier */
|
|
/** @author John Hann */
|
|
|
|
/**
|
|
* A sink mixin that simply forwards event, end, and error to
|
|
* another sink.
|
|
* @param sink
|
|
* @constructor
|
|
*/
|
|
function Pipe(sink) {
|
|
this.sink = sink;
|
|
}
|
|
|
|
Pipe.prototype.event = function (t, x) {
|
|
return this.sink.event(t, x);
|
|
};
|
|
|
|
Pipe.prototype.end = function (t, x) {
|
|
return this.sink.end(t, x);
|
|
};
|
|
|
|
Pipe.prototype.error = function (t, e) {
|
|
return this.sink.error(t, e);
|
|
}; |