webdetector/.cache/b8/8c82af72b3a508833c8d69fe13208f.json
2018-12-21 13:36:28 +01:00

1 line
9.0 KiB
JSON

{"id":"../node_modules/rxjs/_esm5/internal/operators/switchMapTo.js","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":1545395695572},{"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\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.switchMapTo = switchMapTo;\n\nvar _switchMap = require(\"./switchMap\");\n\n/** PURE_IMPORTS_START _switchMap PURE_IMPORTS_END */\nfunction switchMapTo(innerObservable, resultSelector) {\n return resultSelector ? (0, _switchMap.switchMap)(function () {\n return innerObservable;\n }, resultSelector) : (0, _switchMap.switchMap)(function () {\n return innerObservable;\n });\n}","map":{"mappings":[{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":2},"generated":{"line":11,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":9},"generated":{"line":11,"column":9}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":2},"generated":{"line":11,"column":20}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":26},"generated":{"line":11,"column":21}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":2},"generated":{"line":11,"column":36}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":36},"generated":{"line":11,"column":38}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":2},"generated":{"line":11,"column":52}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":60,"column":42},"generated":{"line":11,"column":54}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":12,"column":9}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":12,"column":23}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":12,"column":26}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":12,"column":52}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":12,"column":64}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":13,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":13,"column":11}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":13,"column":26}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":14,"column":3}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":14,"column":5}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":14,"column":19}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":14,"column":20}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":14,"column":23}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":14,"column":49}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":14,"column":61}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":15,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":15,"column":11}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":15,"column":26}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":16,"column":0}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":16,"column":3}},{"source":"../../../src/internal/operators/switchMapTo.ts","name":null,"original":{"line":61,"column":1},"generated":{"line":16,"column":4}}],"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":"46a1afdea92cf7b04c70a414e5a8dc40","cacheData":{"env":{}}}