@acutmore/rxjs
Version:
Reactive Extensions for modern JavaScript
34 lines • 1.78 kB
JavaScript
// v4-backwards-compatibility
import { Observable } from '../../internal/Observable';
import { race } from '../../internal/patching/operator/race';
Observable.prototype.amb = race;
import { bufferCount } from '../../internal/patching/operator/bufferCount';
Observable.prototype.bufferWithCount = bufferCount;
import { bufferTime } from '../../internal/patching/operator/bufferTime';
Observable.prototype.bufferWithTime = bufferTime;
import { _do } from '../../internal/patching/operator/do';
Observable.prototype.doOnNext = _do;
Observable.prototype.doOnError = function doOnError(cb) {
return this.do(undefined, cb);
};
Observable.prototype.doOnCompleted = function doOnCompleted(cb) {
return this.do(undefined, undefined, cb);
};
import { exhaustMap } from '../../internal/patching/operator/exhaustMap';
Observable.prototype.flatMapFirst = exhaustMap;
import { switchMap } from '../../internal/patching/operator/switchMap';
Observable.prototype.flatMapLatest = switchMap;
Observable.prototype.flatMapWithMaxConcurrent = function (count, map) {
return this.mergeMap(map, count);
};
import { pausableBuffered } from '../../internal/patching/operator/pausableBuffered';
Observable.prototype.pausableBuffered_deprecated = pausableBuffered;
import { exhaust } from '../../internal/patching/operator/exhaust';
Observable.prototype.switchFirst = exhaust;
import { _switch } from '../../internal/patching/operator/switch';
Observable.prototype.switchLatest = _switch;
import { windowCount } from '../../internal/patching/operator/windowCount';
Observable.prototype.windowWithCount = windowCount;
import { windowTime } from '../../internal/patching/operator/windowTime';
Observable.prototype.windowWithTime = windowTime;
//# sourceMappingURL=backwards-compatibility.js.map