404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.16.124.181: ~ $
import { subscribeToArray } from './subscribeToArray';
import { subscribeToPromise } from './subscribeToPromise';
import { subscribeToIterable } from './subscribeToIterable';
import { subscribeToObservable } from './subscribeToObservable';
import { isArrayLike } from './isArrayLike';
import { isPromise } from './isPromise';
import { isObject } from './isObject';
import { iterator as Symbol_iterator } from '../symbol/iterator';
import { observable as Symbol_observable } from '../symbol/observable';
export const subscribeTo = (result) => {
    if (!!result && typeof result[Symbol_observable] === 'function') {
        return subscribeToObservable(result);
    }
    else if (isArrayLike(result)) {
        return subscribeToArray(result);
    }
    else if (isPromise(result)) {
        return subscribeToPromise(result);
    }
    else if (!!result && typeof result[Symbol_iterator] === 'function') {
        return subscribeToIterable(result);
    }
    else {
        const value = isObject(result) ? 'an invalid object' : `'${result}'`;
        const msg = `You provided ${value} where a stream was expected.`
            + ' You can provide an Observable, Promise, Array, or Iterable.';
        throw new TypeError(msg);
    }
};
//# sourceMappingURL=subscribeTo.js.map

Filemanager

Name Type Size Permission Actions
ArgumentOutOfRangeError.js File 479 B 0644
ArgumentOutOfRangeError.js.map File 511 B 0644
EmptyError.js File 377 B 0644
EmptyError.js.map File 472 B 0644
Immediate.js File 684 B 0644
Immediate.js.map File 842 B 0644
ObjectUnsubscribedError.js File 477 B 0644
ObjectUnsubscribedError.js.map File 511 B 0644
TimeoutError.js File 390 B 0644
TimeoutError.js.map File 485 B 0644
UnsubscriptionError.js File 613 B 0644
UnsubscriptionError.js.map File 749 B 0644
applyMixins.js File 466 B 0644
applyMixins.js.map File 619 B 0644
canReportError.js File 478 B 0644
canReportError.js.map File 477 B 0644
errorObject.js File 77 B 0644
errorObject.js.map File 178 B 0644
hostReportError.js File 125 B 0644
hostReportError.js.map File 243 B 0644
identity.js File 82 B 0644
identity.js.map File 173 B 0644
isArray.js File 129 B 0644
isArray.js.map File 270 B 0644
isArrayLike.js File 137 B 0644
isArrayLike.js.map File 254 B 0644
isDate.js File 120 B 0644
isDate.js.map File 215 B 0644
isFunction.js File 108 B 0644
isFunction.js.map File 193 B 0644
isInteropObservable.js File 234 B 0644
isInteropObservable.js.map File 295 B 0644
isIterable.js File 208 B 0644
isIterable.js.map File 271 B 0644
isNumeric.js File 171 B 0644
isNumeric.js.map File 302 B 0644
isObject.js File 116 B 0644
isObject.js.map File 209 B 0644
isObservable.js File 246 B 0644
isObservable.js.map File 343 B 0644
isPromise.js File 171 B 0644
isPromise.js.map File 256 B 0644
isScheduler.js File 136 B 0644
isScheduler.js.map File 215 B 0644
noop.js File 59 B 0644
noop.js.map File 134 B 0644
not.js File 243 B 0644
not.js.map File 362 B 0644
pipe.js File 390 B 0644
pipe.js.map File 573 B 0644
root.js File 492 B 0644
root.js.map File 521 B 0644
subscribeTo.js File 1.25 KB 0644
subscribeTo.js.map File 1.17 KB 0644
subscribeToArray.js File 254 B 0644
subscribeToArray.js.map File 441 B 0644
subscribeToIterable.js File 831 B 0644
subscribeToIterable.js.map File 898 B 0644
subscribeToObservable.js File 437 B 0644
subscribeToObservable.js.map File 490 B 0644
subscribeToPromise.js File 412 B 0644
subscribeToPromise.js.map File 566 B 0644
subscribeToResult.js File 566 B 0644
subscribeToResult.js.map File 582 B 0644
toSubscriber.js File 689 B 0644
toSubscriber.js.map File 667 B 0644
tryCatch.js File 442 B 0644
tryCatch.js.map File 515 B 0644