aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js')
-rw-r--r--node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js b/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js
new file mode 100644
index 0000000..7fa74a2
--- /dev/null
+++ b/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js
@@ -0,0 +1,24 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.shareReplay = void 0;
+var ReplaySubject_1 = require("../ReplaySubject");
+var share_1 = require("./share");
+function shareReplay(configOrBufferSize, windowTime, scheduler) {
+ var _a, _b, _c;
+ var bufferSize;
+ var refCount = false;
+ if (configOrBufferSize && typeof configOrBufferSize === 'object') {
+ (_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler);
+ }
+ else {
+ bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity);
+ }
+ return share_1.share({
+ connector: function () { return new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler); },
+ resetOnError: true,
+ resetOnComplete: false,
+ resetOnRefCountZero: refCount,
+ });
+}
+exports.shareReplay = shareReplay;
+//# sourceMappingURL=shareReplay.js.map \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage