X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Frxjs%2F_esm2015%2Finternal%2Foperators%2FexhaustMap.js;h=7223cb351c93039b5daabe84d8fea867b7fc4a38;hp=89ac71889b5048f17e0571fe3059cceb12bd389b;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=b3950616b54221c40a7dab9099bda675007e5b6e diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js index 89ac7188..7223cb35 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js @@ -1,8 +1,6 @@ -import { OuterSubscriber } from '../OuterSubscriber'; -import { InnerSubscriber } from '../InnerSubscriber'; -import { subscribeToResult } from '../util/subscribeToResult'; import { map } from './map'; import { from } from '../observable/from'; +import { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe'; export function exhaustMap(project, resultSelector) { if (resultSelector) { return (source) => source.pipe(exhaustMap((a, i) => from(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii))))); @@ -17,7 +15,7 @@ class ExhaustMapOperator { return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project)); } } -class ExhaustMapSubscriber extends OuterSubscriber { +class ExhaustMapSubscriber extends SimpleOuterSubscriber { constructor(destination, project) { super(destination); this.project = project; @@ -41,13 +39,13 @@ class ExhaustMapSubscriber extends OuterSubscriber { return; } this.hasSubscription = true; - this._innerSub(result, value, index); + this._innerSub(result); } - _innerSub(result, value, index) { - const innerSubscriber = new InnerSubscriber(this, value, index); + _innerSub(result) { + const innerSubscriber = new SimpleInnerSubscriber(this); const destination = this.destination; destination.add(innerSubscriber); - const innerSubscription = subscribeToResult(this, result, undefined, undefined, innerSubscriber); + const innerSubscription = innerSubscribe(result, innerSubscriber); if (innerSubscription !== innerSubscriber) { destination.add(innerSubscription); } @@ -59,15 +57,13 @@ class ExhaustMapSubscriber extends OuterSubscriber { } this.unsubscribe(); } - notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) { + notifyNext(innerValue) { this.destination.next(innerValue); } notifyError(err) { this.destination.error(err); } - notifyComplete(innerSub) { - const destination = this.destination; - destination.remove(innerSub); + notifyComplete() { this.hasSubscription = false; if (this.hasCompleted) { this.destination.complete();