1 line
8.9 KiB
JSON
1 line
8.9 KiB
JSON
{"id":"Hs9S","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/switchMapTo.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/switchMapTo.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395749058},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/package.json","includedInParent":true,"mtime":1545395355370},{"name":"./switchMap","loc":{"line":2,"column":26},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/switchMapTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/switchMap.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.switchMapTo=e;var t=require(\"./switchMap\");function e(e,r){return r?(0,t.switchMap)(function(){return e},r):(0,t.switchMap)(function(){return e})}","map":{"mappings":[{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":88}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":1,"column":90}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":1,"column":94}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":1,"column":96}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":1,"column":104}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":2},"generated":{"line":1,"column":119}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":9},"generated":{"line":1,"column":128}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":26},"generated":{"line":1,"column":130}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":36},"generated":{"line":1,"column":132}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":135}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":142}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":145}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":147}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":149}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":160}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":171}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":178}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":181}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":185}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":187}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":189}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":200}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":211}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":1,"column":218}}],"sources":{"../../../src/internal/operators/switchMapTo.ts":"import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { ObservableInput, OperatorFunction } from '../types';\nimport { switchMap } from './switchMap';\n\n/* tslint:disable:max-line-length */\nexport function switchMapTo<R>(observable: ObservableInput<R>): OperatorFunction<any, R>;\n/** @deprecated resultSelector is no longer supported. Switch to using switchMap with an inner map */\nexport function switchMapTo<T, R>(observable: ObservableInput<R>, resultSelector: undefined): OperatorFunction<T, R>;\n/** @deprecated resultSelector is no longer supported. Switch to using switchMap with an inner map */\nexport function switchMapTo<T, I, R>(observable: ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to the same Observable which is flattened multiple\n * times with {@link switchMap} in the output Observable.\n *\n * <span class=\"informal\">It's like {@link switchMap}, but maps each value\n * always to the same inner Observable.</span>\n *\n * ![](switchMapTo.png)\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then flattens those resulting Observables into one\n * single Observable, which is the output Observable. The output Observables\n * emits values only from the most recently emitted instance of\n * `innerObservable`.\n *\n * ## Example\n * Rerun an interval Observable on every click event\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(switchMapTo(interval(1000)));\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link concatMapTo}\n * @see {@link switchAll}\n * @see {@link switchMap}\n * @see {@link mergeMapTo}\n *\n * @param {ObservableInput} innerObservable An Observable to replace each value from\n * the source Observable.\n * @return {Observable} An Observable that emits items from the given\n * `innerObservable` (and optionally transformed through the deprecated `resultSelector`)\n * every time a value is emitted on the source Observable, and taking only the values\n * from the most recently projected inner Observable.\n * @method switchMapTo\n * @owner Observable\n */\nexport function switchMapTo<T, I, R>(\n innerObservable: ObservableInput<I>,\n resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, I|R> {\n return resultSelector ? switchMap(() => innerObservable, resultSelector) : switchMap(() => innerObservable);\n}\n"},"lineCount":null}},"hash":"298e3a5546d51c62c03476a083bcc3fb","cacheData":{"env":{}}} |