# Code coverage report for RxJS/dist/cjs/operators/publishReplay.js

## Statements: 100% (16 / 16) Branches: 87.5% (7 / 8) Functions: 100% (3 / 3) Lines: 100% (13 / 13) Ignored: none

All files » RxJS/dist/cjs/operators/ » publishReplay.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25

    1
    1

    2

    1

    1

    1

    1

    1
    10
    10

    10
    10

    1'use strict';

    exports.__esModule = true;
    exports['default'] = publishReplay;

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

    var _subjectsReplaySubject = require('../subjects/ReplaySubject');

    var _subjectsReplaySubject2 = _interopRequireDefault(_subjectsReplaySubject);

    var _multicast = require('./multicast');

    var _multicast2 = _interopRequireDefault(_multicast);

    function publishReplay(bufferSize, windowTime, scheduler) {
        if (bufferSize === undefined) bufferSize = Number.POSITIVE_INFINITY;
        if (windowTime === undefined) windowTime = Number.POSITIVE_INFINITY;

        return _multicast2['default'].call(this, function () {
            return new _subjectsReplaySubject2['default'](bufferSize, windowTime, scheduler);
        });
    }

    module.exports = exports['default'];