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%2FonErrorResumeNext.js;h=92bbbfd9b0021263390d6da69fcd728222543b50;hp=67a64f72ecb64d16f0200b34bf87175aea4e02bd;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=b3950616b54221c40a7dab9099bda675007e5b6e diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/onErrorResumeNext.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/onErrorResumeNext.js index 67a64f72..92bbbfd9 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/onErrorResumeNext.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/onErrorResumeNext.js @@ -1,8 +1,6 @@ import { from } from '../observable/from'; import { isArray } from '../util/isArray'; -import { OuterSubscriber } from '../OuterSubscriber'; -import { InnerSubscriber } from '../InnerSubscriber'; -import { subscribeToResult } from '../util/subscribeToResult'; +import { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe'; export function onErrorResumeNext(...nextSources) { if (nextSources.length === 1 && isArray(nextSources[0])) { nextSources = nextSources[0]; @@ -10,12 +8,12 @@ export function onErrorResumeNext(...nextSources) { return (source) => source.lift(new OnErrorResumeNextOperator(nextSources)); } export function onErrorResumeNextStatic(...nextSources) { - let source = null; + let source = undefined; if (nextSources.length === 1 && isArray(nextSources[0])) { nextSources = nextSources[0]; } source = nextSources.shift(); - return from(source, null).lift(new OnErrorResumeNextOperator(nextSources)); + return from(source).lift(new OnErrorResumeNextOperator(nextSources)); } class OnErrorResumeNextOperator { constructor(nextSources) { @@ -25,16 +23,16 @@ class OnErrorResumeNextOperator { return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources)); } } -class OnErrorResumeNextSubscriber extends OuterSubscriber { +class OnErrorResumeNextSubscriber extends SimpleOuterSubscriber { constructor(destination, nextSources) { super(destination); this.destination = destination; this.nextSources = nextSources; } - notifyError(error, innerSub) { + notifyError() { this.subscribeToNextSource(); } - notifyComplete(innerSub) { + notifyComplete() { this.subscribeToNextSource(); } _error(err) { @@ -48,10 +46,10 @@ class OnErrorResumeNextSubscriber extends OuterSubscriber { subscribeToNextSource() { const next = this.nextSources.shift(); if (!!next) { - const innerSubscriber = new InnerSubscriber(this, undefined, undefined); + const innerSubscriber = new SimpleInnerSubscriber(this); const destination = this.destination; destination.add(innerSubscriber); - const innerSubscription = subscribeToResult(this, next, undefined, undefined, innerSubscriber); + const innerSubscription = innerSubscribe(next, innerSubscriber); if (innerSubscription !== innerSubscriber) { destination.add(innerSubscription); }