1 line
31 KiB
JSON
1 line
31 KiB
JSON
|
{"id":"../node_modules/rxjs/_esm5/internal/operators/shareReplay.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/shareReplay.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/shareReplay.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":"../ReplaySubject","loc":{"line":2,"column":30},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/shareReplay.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/ReplaySubject.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.shareReplay = shareReplay;\n\nvar _ReplaySubject = require(\"../ReplaySubject\");\n\n/** PURE_IMPORTS_START _ReplaySubject PURE_IMPORTS_END */\nfunction shareReplay(bufferSize, windowTime, scheduler) {\n if (bufferSize === void 0) {\n bufferSize = Number.POSITIVE_INFINITY;\n }\n\n if (windowTime === void 0) {\n windowTime = Number.POSITIVE_INFINITY;\n }\n\n return function (source) {\n return source.lift(shareReplayOperator(bufferSize, windowTime, scheduler));\n };\n}\n\nfunction shareReplayOperator(bufferSize, windowTime, scheduler) {\n var subject;\n var refCount = 0;\n var subscription;\n var hasError = false;\n var isComplete = false;\n return function shareReplayOperation(source) {\n refCount++;\n\n if (!subject || hasError) {\n hasError = false;\n subject = new _ReplaySubject.ReplaySubject(bufferSize, windowTime, scheduler);\n subscription = source.subscribe({\n next: function (value) {\n subject.next(value);\n },\n error: function (err) {\n hasError = true;\n subject.error(err);\n },\n complete: function () {\n isComplete = true;\n subject.complete();\n }\n });\n }\n\n var innerSub = subject.subscribe(this);\n return function () {\n refCount--;\n innerSub.unsubscribe();\n\n if (subscription && refCount === 0 && isComplete) {\n subscription.unsubscribe();\n }\n };\n };\n}","map":{"mappings":[{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":49,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":11,"column":0}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":11,"column":9}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":11,"column":20}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":11,"column":21}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":11,"column":31}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":11,"column":33}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":2},"generated":{"line":11,"column":43}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":29},"generated":{"line":11,"column":45}},{"source":"../../../src/internal/operators/shareReplay.ts","name":null,"original":{"line":50,"column":2},"ge
|