{"id":"../node_modules/rxjs/_esm5/internal/operators/publishLast.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/publishLast.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/publishLast.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":"../AsyncSubject","loc":{"line":2,"column":29},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/publishLast.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/AsyncSubject.js"},{"name":"./multicast","loc":{"line":3,"column":26},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/publishLast.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/multicast.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.publishLast = publishLast;\n\nvar _AsyncSubject = require(\"../AsyncSubject\");\n\nvar _multicast = require(\"./multicast\");\n\n/** PURE_IMPORTS_START _AsyncSubject,_multicast PURE_IMPORTS_END */\nfunction publishLast() {\n return function (source) {\n return (0, _multicast.multicast)(new _AsyncSubject.AsyncSubject())(source);\n };\n}","map":{"mappings":[{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":62,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":13,"column":0}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":63,"column":9},"generated":{"line":13,"column":9}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":13,"column":20}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":63,"column":31},"generated":{"line":13,"column":23}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":14,"column":9}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":14,"column":19}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":14,"column":25}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":14,"column":27}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":0}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":11}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":37}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":41}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":67}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":69}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":71}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":77}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":15,"column":78}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":16,"column":0}},{"source":"../../../src/internal/operators/publishLast.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":16,"column":3}}],"sources":{"../../../src/internal/operators/publishLast.ts":"import { Observable } from '../Observable';\nimport { AsyncSubject } from '../AsyncSubject';\nimport { multicast } from './multicast';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { UnaryFunction } from '../types';\n\n/**\n * Returns a connectable observable sequence that shares a single subscription to the\n * underlying sequence containing only the last notification.\n *\n * ![](publishLast.png)\n *\n * Similar to {@link publish}, but it waits until the source observable completes and stores\n * the last emitted value.\n * Similarly to {@link publishReplay} and {@link publishBehavior}, this keeps storing the last\n * value even if it has no more subscribers. If subsequent subscriptions happen, they will\n * immediately get that last stored value and complete.\n *\n * ## Example\n *\n * ```js\n * const connectable =\n * interval(1000)\n * .pipe(\n * tap(x => console.log(\"side effect\", x)),\n * take(3),\n * publishLast());\n *\n * connectable.subscribe(\n * x => console.log( \"Sub. A\", x),\n * err => console.log(\"Sub. A Error\", err),\n * () => console.log( \"Sub. A Complete\"));\n *\n * connectable.subscribe(\n * x => console.log( \"Sub. B\", x),\n * err => console.log(\"Sub. B Error\", err),\n * () => console.log( \"Sub. B Complete\"));\n *\n * connectable.connect();\n *\n * // Results:\n * // \"side effect 0\"\n * // \"side effect 1\"\n * // \"side effect 2\"\n * // \"Sub. A 2\"\n * // \"Sub. B 2\"\n * // \"Sub. A Complete\"\n * // \"Sub. B Complete\"\n * ```\n *\n * @see {@link ConnectableObservable}\n * @see {@link publish}\n * @see {@link publishReplay}\n * @see {@link publishBehavior}\n *\n * @return {ConnectableObservable} An observable sequence that contains the elements of a\n * sequence produced by multicasting the source sequence.\n * @method publishLast\n * @owner Observable\n */\n\nexport function publishLast(): UnaryFunction, ConnectableObservable> {\n return (source: Observable) => multicast(new AsyncSubject())(source);\n}\n"},"lineCount":null}},"hash":"4148770b1e47ba5b9e8541cfeeb39ed7","cacheData":{"env":{}}}