X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Frxjs%2F_esm2015%2Finternal%2Foperators%2Fscan.js;fp=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Frxjs%2F_esm2015%2Finternal%2Foperators%2Fscan.js;h=0000000000000000000000000000000000000000;hb=3ddadb3c98564791f0ac36cb39771d844a63dc91;hp=44cfc175b17e32efc65d3517cbec7a72b9c88ee5;hpb=5f797af6612ed10887189b47a1efc2f915586e59;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/scan.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/scan.js deleted file mode 100644 index 44cfc175..00000000 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/_esm2015/internal/operators/scan.js +++ /dev/null @@ -1,58 +0,0 @@ -import { Subscriber } from '../Subscriber'; -export function scan(accumulator, seed) { - let hasSeed = false; - if (arguments.length >= 2) { - hasSeed = true; - } - return function scanOperatorFunction(source) { - return source.lift(new ScanOperator(accumulator, seed, hasSeed)); - }; -} -class ScanOperator { - constructor(accumulator, seed, hasSeed = false) { - this.accumulator = accumulator; - this.seed = seed; - this.hasSeed = hasSeed; - } - call(subscriber, source) { - return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed)); - } -} -class ScanSubscriber extends Subscriber { - constructor(destination, accumulator, _seed, hasSeed) { - super(destination); - this.accumulator = accumulator; - this._seed = _seed; - this.hasSeed = hasSeed; - this.index = 0; - } - get seed() { - return this._seed; - } - set seed(value) { - this.hasSeed = true; - this._seed = value; - } - _next(value) { - if (!this.hasSeed) { - this.seed = value; - this.destination.next(value); - } - else { - return this._tryNext(value); - } - } - _tryNext(value) { - const index = this.index++; - let result; - try { - result = this.accumulator(this.seed, value, index); - } - catch (err) { - this.destination.error(err); - } - this.seed = result; - this.destination.next(result); - } -} -//# sourceMappingURL=scan.js.map \ No newline at end of file