#8 skip path if branch exists #12
@ -1507,10 +1507,10 @@ __webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isFunction */ 2971);
|
||||
|
||||
|
||||
function throwError(errorOrErroractory, scheduler) {
|
||||
const Erroractory = (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(errorOrErroractory) ? errorOrErroractory : () => errorOrErroractory;
|
||||
function throwError(errorOrErrorFactory, scheduler) {
|
||||
const errorFactory = (0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.isFunction)(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;
|
||||
|
||||
const init = subscriber => subscriber.error(Erroractory());
|
||||
const init = subscriber => subscriber.error(errorFactory());
|
||||
|
||||
return new _Observable__WEBPACK_IMPORTED_MODULE_1__.Observable(scheduler ? subscriber => scheduler.schedule(init, 0, subscriber) : init);
|
||||
}
|
||||
@ -2963,17 +2963,17 @@ __webpack_require__.r(__webpack_exports__);
|
||||
|
||||
|
||||
|
||||
function throwIfEmpty(Erroractory = defaultErroractory) {
|
||||
function throwIfEmpty(errorFactory = defaultErrorFactory) {
|
||||
return (0,_util_lift__WEBPACK_IMPORTED_MODULE_0__.operate)((source, subscriber) => {
|
||||
let hasValue = false;
|
||||
source.subscribe(new _OperatorSubscriber__WEBPACK_IMPORTED_MODULE_1__.OperatorSubscriber(subscriber, value => {
|
||||
hasValue = true;
|
||||
subscriber.next(value);
|
||||
}, () => hasValue ? subscriber.complete() : subscriber.error(Erroractory())));
|
||||
}, () => hasValue ? subscriber.complete() : subscriber.error(errorFactory())));
|
||||
});
|
||||
}
|
||||
|
||||
function defaultErroractory() {
|
||||
function defaultErrorFactory() {
|
||||
return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_2__.EmptyError();
|
||||
}
|
||||
|
||||
@ -67599,19 +67599,19 @@ class EventEmitter_ extends rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject {
|
||||
subscribe(observerOrNext, error, complete) {
|
||||
let nextFn = observerOrNext;
|
||||
|
||||
let Errorn = error || (() => null);
|
||||
let errorFn = error || (() => null);
|
||||
|
||||
let completeFn = complete;
|
||||
|
||||
if (observerOrNext && typeof observerOrNext === 'object') {
|
||||
const observer = observerOrNext;
|
||||
nextFn = observer.next?.bind(observer);
|
||||
Errorn = observer.error?.bind(observer);
|
||||
errorFn = observer.error?.bind(observer);
|
||||
completeFn = observer.complete?.bind(observer);
|
||||
}
|
||||
|
||||
if (this.__isAsync) {
|
||||
Errorn = _wrapInTimeout(Errorn);
|
||||
errorFn = _wrapInTimeout(errorFn);
|
||||
|
||||
if (nextFn) {
|
||||
nextFn = _wrapInTimeout(nextFn);
|
||||
@ -67624,7 +67624,7 @@ class EventEmitter_ extends rxjs__WEBPACK_IMPORTED_MODULE_0__.Subject {
|
||||
|
||||
const sink = super.subscribe({
|
||||
next: nextFn,
|
||||
error: Errorn,
|
||||
error: errorFn,
|
||||
complete: completeFn
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user