PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
rxjs
/
internal
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var canReportError_1 = require("./util/canReportError"); var toSubscriber_1 = require("./util/toSubscriber"); var observable_1 = require("./symbol/observable"); var pipe_1 = require("./util/pipe"); var config_1 = require("./config"); var Observable = (function () { function Observable(subscribe) { this._isScalar = false; if (subscribe) { this._subscribe = subscribe; } } Observable.prototype.lift = function (operator) { var observable = new Observable(); observable.source = this; observable.operator = operator; return observable; }; Observable.prototype.subscribe = function (observerOrNext, error, complete) { var operator = this.operator; var sink = toSubscriber_1.toSubscriber(observerOrNext, error, complete); if (operator) { sink.add(operator.call(sink, this.source)); } else { sink.add(this.source || (config_1.config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ? this._subscribe(sink) : this._trySubscribe(sink)); } if (config_1.config.useDeprecatedSynchronousErrorHandling) { if (sink.syncErrorThrowable) { sink.syncErrorThrowable = false; if (sink.syncErrorThrown) { throw sink.syncErrorValue; } } } return sink; }; Observable.prototype._trySubscribe = function (sink) { try { return this._subscribe(sink); } catch (err) { if (config_1.config.useDeprecatedSynchronousErrorHandling) { sink.syncErrorThrown = true; sink.syncErrorValue = err; } if (canReportError_1.canReportError(sink)) { sink.error(err); } else { console.warn(err); } } }; Observable.prototype.forEach = function (next, promiseCtor) { var _this = this; promiseCtor = getPromiseCtor(promiseCtor); return new promiseCtor(function (resolve, reject) { var subscription; subscription = _this.subscribe(function (value) { try { next(value); } catch (err) { reject(err); if (subscription) { subscription.unsubscribe(); } } }, reject, resolve); }); }; Observable.prototype._subscribe = function (subscriber) { var source = this.source; return source && source.subscribe(subscriber); }; Observable.prototype[observable_1.observable] = function () { return this; }; Observable.prototype.pipe = function () { var operations = []; for (var _i = 0; _i < arguments.length; _i++) { operations[_i] = arguments[_i]; } if (operations.length === 0) { return this; } return pipe_1.pipeFromArray(operations)(this); }; Observable.prototype.toPromise = function (promiseCtor) { var _this = this; promiseCtor = getPromiseCtor(promiseCtor); return new promiseCtor(function (resolve, reject) { var value; _this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); }); }); }; Observable.create = function (subscribe) { return new Observable(subscribe); }; return Observable; }()); exports.Observable = Observable; function getPromiseCtor(promiseCtor) { if (!promiseCtor) { promiseCtor = config_1.config.Promise || Promise; } if (!promiseCtor) { throw new Error('no Promise impl found'); } return promiseCtor; } //# sourceMappingURL=Observable.js.map
[-] Observable.js.map
[edit]
[-] Rx.js.map
[edit]
[+]
scheduled
[-] Notification.js
[edit]
[-] SubjectSubscription.js.map
[edit]
[-] Subscription.d.ts
[edit]
[-] InnerSubscriber.js
[edit]
[+]
..
[+]
testing
[-] ReplaySubject.js.map
[edit]
[-] Subscription.js
[edit]
[-] Observer.js.map
[edit]
[-] Rx.d.ts
[edit]
[-] Operator.js.map
[edit]
[-] BehaviorSubject.d.ts
[edit]
[-] OuterSubscriber.js.map
[edit]
[-] ReplaySubject.d.ts
[edit]
[-] config.d.ts
[edit]
[-] OuterSubscriber.d.ts
[edit]
[-] SubjectSubscription.js
[edit]
[-] Subject.js.map
[edit]
[-] Scheduler.js
[edit]
[+]
observable
[-] Operator.js
[edit]
[-] Subject.d.ts
[edit]
[-] types.js.map
[edit]
[-] Observer.js
[edit]
[+]
scheduler
[+]
symbol
[-] Subscriber.js
[edit]
[-] AsyncSubject.js.map
[edit]
[-] AsyncSubject.js
[edit]
[-] Rx.js
[edit]
[-] Scheduler.js.map
[edit]
[-] Observable.d.ts
[edit]
[-] Subscriber.js.map
[edit]
[-] BehaviorSubject.js.map
[edit]
[-] types.js
[edit]
[-] Operator.d.ts
[edit]
[-] Subject.js
[edit]
[-] config.js.map
[edit]
[+]
util
[-] Scheduler.d.ts
[edit]
[-] Subscriber.d.ts
[edit]
[-] config.js
[edit]
[-] types.d.ts
[edit]
[-] OuterSubscriber.js
[edit]
[-] Subscription.js.map
[edit]
[-] InnerSubscriber.d.ts
[edit]
[-] AsyncSubject.d.ts
[edit]
[-] ReplaySubject.js
[edit]
[-] Observable.js
[edit]
[-] Observer.d.ts
[edit]
[-] Notification.js.map
[edit]
[-] SubjectSubscription.d.ts
[edit]
[-] BehaviorSubject.js
[edit]
[+]
operators
[-] Notification.d.ts
[edit]
[-] InnerSubscriber.js.map
[edit]