aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/rxjs/internal/operators/shareReplay.js
diff options
context:
space:
mode:
authorNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
committerNevena Bojovic <nenabojov@gmail.com>2022-03-01 22:05:25 +0100
commit6555fb80fdd8f6a5d201efadec3189d1244830a0 (patch)
treec1aa1c5aedc634ad1ea7fad4847884d559b51290 /sandbox/testAppNevena/Front/node_modules/rxjs/internal/operators/shareReplay.js
parent7d3640f824f46490b47bd95f1c5a16644f712068 (diff)
Izbrisala bin, obj i node-modules.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/rxjs/internal/operators/shareReplay.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/rxjs/internal/operators/shareReplay.js67
1 files changed, 0 insertions, 67 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/rxjs/internal/operators/shareReplay.js b/sandbox/testAppNevena/Front/node_modules/rxjs/internal/operators/shareReplay.js
deleted file mode 100644
index e4379ab3..00000000
--- a/sandbox/testAppNevena/Front/node_modules/rxjs/internal/operators/shareReplay.js
+++ /dev/null
@@ -1,67 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var ReplaySubject_1 = require("../ReplaySubject");
-function shareReplay(configOrBufferSize, windowTime, scheduler) {
- var config;
- if (configOrBufferSize && typeof configOrBufferSize === 'object') {
- config = configOrBufferSize;
- }
- else {
- config = {
- bufferSize: configOrBufferSize,
- windowTime: windowTime,
- refCount: false,
- scheduler: scheduler,
- };
- }
- return function (source) { return source.lift(shareReplayOperator(config)); };
-}
-exports.shareReplay = shareReplay;
-function shareReplayOperator(_a) {
- var _b = _a.bufferSize, bufferSize = _b === void 0 ? Number.POSITIVE_INFINITY : _b, _c = _a.windowTime, windowTime = _c === void 0 ? Number.POSITIVE_INFINITY : _c, useRefCount = _a.refCount, scheduler = _a.scheduler;
- var subject;
- var refCount = 0;
- var subscription;
- var hasError = false;
- var isComplete = false;
- return function shareReplayOperation(source) {
- refCount++;
- var innerSub;
- if (!subject || hasError) {
- hasError = false;
- subject = new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler);
- innerSub = subject.subscribe(this);
- subscription = source.subscribe({
- next: function (value) {
- subject.next(value);
- },
- error: function (err) {
- hasError = true;
- subject.error(err);
- },
- complete: function () {
- isComplete = true;
- subscription = undefined;
- subject.complete();
- },
- });
- if (isComplete) {
- subscription = undefined;
- }
- }
- else {
- innerSub = subject.subscribe(this);
- }
- this.add(function () {
- refCount--;
- innerSub.unsubscribe();
- innerSub = undefined;
- if (subscription && !isComplete && useRefCount && refCount === 0) {
- subscription.unsubscribe();
- subscription = undefined;
- subject = undefined;
- }
- });
- };
-}
-//# sourceMappingURL=shareReplay.js.map \ No newline at end of file