new license file version [CI SKIP]

This commit is contained in:
2023-03-15 13:43:57 +00:00
parent d8a3063735
commit 00359d25c1
5600 changed files with 523898 additions and 2 deletions

View File

@@ -0,0 +1 @@
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0.00255,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0.00255,"48":0.00509,"49":0,"50":0,"51":0,"52":0.00255,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0.00764,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00764,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0.00255,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0.00509,"98":0,"99":0.00255,"100":0.00255,"101":0,"102":0.23942,"103":0.00255,"104":0.00255,"105":0.00255,"106":0.01019,"107":0.03311,"108":0.45846,"109":0.29291,"110":0,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.0433,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0.00255,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0.00509,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00255,"69":0.00255,"70":0.00255,"71":0,"72":0.00255,"73":0,"74":0.00509,"75":0.00255,"76":0,"77":0.00255,"78":0,"79":0.01274,"80":0.00255,"81":0.00509,"83":0,"84":0.00255,"85":0,"86":0.02802,"87":0.00509,"88":0.00764,"89":0,"90":0.01528,"91":0,"92":0,"93":0.00255,"94":0,"95":0.00509,"96":0.00255,"97":0.00255,"98":0.01019,"99":0,"100":0.00509,"101":0.00255,"102":0.01528,"103":0.01528,"104":0.00764,"105":0.01019,"106":0.00509,"107":0.04585,"108":1.19964,"109":1.25567,"110":0,"111":0,"112":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0.00255,"29":0,"30":0.00255,"31":0,"32":0.00764,"33":0,"34":0,"35":0,"36":0,"37":0.00509,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0.01019,"47":0,"48":0,"49":0,"50":0,"51":0.00255,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0.00255,"58":0.00509,"60":0.04839,"62":0,"63":0.05349,"64":0.01019,"65":0.01019,"66":0.07896,"67":0.01019,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.00255,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0.00255,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00255,"93":0.01274,"94":0.19103,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0.00255},B:{"12":0.00255,"13":0,"14":0.00255,"15":0,"16":0,"17":0,"18":0.01019,"79":0,"80":0,"81":0,"83":0,"84":0.00255,"85":0.00255,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00764,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0.00255,"101":0,"102":0,"103":0.00255,"104":0,"105":0.00509,"106":0.01019,"107":0.01274,"108":0.47629,"109":0.39733},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.00255,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0.01783,"14.1":0.00255,"15.1":0.00255,"15.2-15.3":0,"15.4":0.00255,"15.5":0.01019,"15.6":0.01019,"16.0":0.00255,"16.1":0.01019,"16.2":0.01528,"16.3":0.00255},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0.01304,"8.1-8.4":0.00137,"9.0-9.2":0.00206,"9.3":0.01716,"10.0-10.2":0,"10.3":0.05421,"11.0-11.2":0.00961,"11.3-11.4":0.00206,"12.0-12.1":0.08989,"12.2-12.5":0.75072,"13.0-13.1":0.00206,"13.2":0.00206,"13.3":0.0151,"13.4-13.7":0.02608,"14.0-14.4":0.28547,"14.5-14.8":0.17018,"15.0-15.1":0.11528,"15.2-15.3":0.26763,"15.4":0.25459,"15.5":0.33693,"15.6":0.35066,"16.0":0.86601,"16.1":1.01903,"16.2":1.45821,"16.3":0.23949},P:{"4":0.02038,"5.0-5.4":0,"6.2-6.4":0.03058,"7.2-7.4":0.1325,"8.2":0,"9.2":0.03058,"10.1":0,"11.1-11.2":0.02038,"12.0":0,"13.0":0.01019,"14.0":0.02038,"15.0":0.01019,"16.0":0.04077,"17.0":0.06115,"18.0":0.12231,"19.0":0.68287},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00132,"4.2-4.3":0.00066,"4.4":0,"4.4.3-4.4.4":0.17349},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.01528,"5.5":0},J:{"7":0,"10":0.00745},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.13415},Q:{"13.1":0.04472},O:{"0":0.68568},H:{"0":4.37473},L:{"0":79.76348},S:{"2.5":0.01491}};

View File

@@ -0,0 +1,14 @@
import { MonoTypeOperatorFunction } from '../types';
/**
* Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one
* Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will
* unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.
* This is an alias for `multicast(() => new Subject()), refCount()`.
*
* ![](share.png)
*
* @return {Observable<T>} An Observable that upon connection causes the source Observable to emit items to its Observers.
* @method share
* @owner Observable
*/
export declare function share<T>(): MonoTypeOperatorFunction<T>;

View File

@@ -0,0 +1,7 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("rxjs-compat/operator/mapTo"));
//# sourceMappingURL=mapTo.js.map

View File

@@ -0,0 +1,48 @@
{
"name": "protocols",
"version": "1.4.8",
"description": "Get the protocols of an input url.",
"main": "lib/index.js",
"directories": {
"example": "example",
"test": "test"
},
"scripts": {
"test": "node test"
},
"repository": {
"type": "git",
"url": "git@github.com:IonicaBizau/protocols.git"
},
"keywords": [
"protocols",
"protocol",
"url",
"parse"
],
"author": "Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)",
"license": "MIT",
"bugs": {
"url": "https://github.com/IonicaBizau/protocols/issues"
},
"homepage": "https://github.com/IonicaBizau/protocols",
"dependencies": {},
"devDependencies": {
"tester": "^1.3.1"
},
"files": [
"bin/",
"app/",
"lib/",
"dist/",
"src/",
"scripts/",
"resources/",
"menu/",
"cli.js",
"index.js",
"bloggify.js",
"bloggify.json",
"bloggify/"
]
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"switch.js","sources":["../src/operator/switch.ts"],"names":[],"mappings":";;;;;AAAA,iDAA4C"}

View File

@@ -0,0 +1,68 @@
import { Action } from './scheduler/Action';
import { Subscription } from './Subscription';
import { SchedulerLike, SchedulerAction } from './types';
/**
* An execution context and a data structure to order tasks and schedule their
* execution. Provides a notion of (potentially virtual) time, through the
* `now()` getter method.
*
* Each unit of work in a Scheduler is called an `Action`.
*
* ```ts
* class Scheduler {
* now(): number;
* schedule(work, delay?, state?): Subscription;
* }
* ```
*
* @class Scheduler
* @deprecated Scheduler is an internal implementation detail of RxJS, and
* should not be used directly. Rather, create your own class and implement
* {@link SchedulerLike}
*/
export class Scheduler implements SchedulerLike {
/**
* Note: the extra arrow function wrapper is to make testing by overriding
* Date.now easier.
* @nocollapse
*/
public static now: () => number = () => Date.now();
constructor(private SchedulerAction: typeof Action,
now: () => number = Scheduler.now) {
this.now = now;
}
/**
* A getter method that returns a number representing the current time
* (at the time this function was called) according to the scheduler's own
* internal clock.
* @return {number} A number that represents the current time. May or may not
* have a relation to wall-clock time. May or may not refer to a time unit
* (e.g. milliseconds).
*/
public now: () => number;
/**
* Schedules a function, `work`, for execution. May happen at some point in
* the future, according to the `delay` parameter, if specified. May be passed
* some context object, `state`, which will be passed to the `work` function.
*
* The given arguments will be processed an stored as an Action object in a
* queue of actions.
*
* @param {function(state: ?T): ?Subscription} work A function representing a
* task, or some unit of work to be executed by the Scheduler.
* @param {number} [delay] Time to wait before executing the work, where the
* time unit is implicit and defined by the Scheduler itself.
* @param {T} [state] Some contextual data that the `work` function uses when
* called by the Scheduler.
* @return {Subscription} A subscription in order to be able to unsubscribe
* the scheduled work.
*/
public schedule<T>(work: (this: SchedulerAction<T>, state?: T) => void, delay: number = 0, state?: T): Subscription {
return new this.SchedulerAction<T>(this, work).schedule(state, delay);
}
}

View File

@@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.subscribeToArray = function (array) { return function (subscriber) {
for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {
subscriber.next(array[i]);
}
subscriber.complete();
}; };
//# sourceMappingURL=subscribeToArray.js.map

View File

@@ -0,0 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I,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IACnG,CAAC;IAES,0CAAS,GAAnB;QACE,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;IAC9B,CAAC;IAED,8CAAa,GAAb;QACE,IAAI,CAAC,aAAa,EAAE,CAAC;QAErB,IAAI,IAAI,CAAC,QAAQ,EAAE;YACT,IAAA,0BAAS,CAAU;YAM3B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACtB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAClC;IACH,CAAC;IAEO,8CAAa,GAArB;QACE,IAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,CAAC;QAEzD,IAAI,qBAAqB,KAAK,IAAI,EAAE;YAClC,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;YACnC,qBAAqB,CAAC,WAAW,EAAE,CAAC;YACpC,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC;SACnC;IACH,CAAC;IACH,6BAAC;AAAD,CAAC,AAhDD,CAAwC,uBAAU,GAgDjD;AAED,SAAS,YAAY,CAAC,UAAuC;IAC3D,UAAU,CAAC,aAAa,EAAE,CAAC;AAC7B,CAAC"}

View File

@@ -0,0 +1,102 @@
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
}
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var Action_1 = require("./Action");
var AsyncAction = (function (_super) {
__extends(AsyncAction, _super);
function AsyncAction(scheduler, work) {
var _this = _super.call(this, scheduler, work) || this;
_this.scheduler = scheduler;
_this.work = work;
_this.pending = false;
return _this;
}
AsyncAction.prototype.schedule = function (state, delay) {
if (delay === void 0) { delay = 0; }
if (this.closed) {
return this;
}
this.state = state;
var id = this.id;
var scheduler = this.scheduler;
if (id != null) {
this.id = this.recycleAsyncId(scheduler, id, delay);
}
this.pending = true;
this.delay = delay;
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
return this;
};
AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {
if (delay === void 0) { delay = 0; }
return setInterval(scheduler.flush.bind(scheduler, this), delay);
};
AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
if (delay === void 0) { delay = 0; }
if (delay !== null && this.delay === delay && this.pending === false) {
return id;
}
clearInterval(id);
return undefined;
};
AsyncAction.prototype.execute = function (state, delay) {
if (this.closed) {
return new Error('executing a cancelled action');
}
this.pending = false;
var error = this._execute(state, delay);
if (error) {
return error;
}
else if (this.pending === false && this.id != null) {
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
}
};
AsyncAction.prototype._execute = function (state, delay) {
var errored = false;
var errorValue = undefined;
try {
this.work(state);
}
catch (e) {
errored = true;
errorValue = !!e && e || new Error(e);
}
if (errored) {
this.unsubscribe();
return errorValue;
}
};
AsyncAction.prototype._unsubscribe = function () {
var id = this.id;
var scheduler = this.scheduler;
var actions = scheduler.actions;
var index = actions.indexOf(this);
this.work = null;
this.state = null;
this.pending = false;
this.scheduler = null;
if (index !== -1) {
actions.splice(index, 1);
}
if (id != null) {
this.id = this.recycleAsyncId(scheduler, id, null);
}
this.delay = null;
};
return AsyncAction;
}(Action_1.Action));
exports.AsyncAction = AsyncAction;
//# sourceMappingURL=AsyncAction.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"observeOn.js","sources":["../../src/internal/operators/observeOn.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,4CAA2C;AAE3C,gDAA+C;AA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,YAAY,EAAE,IAAI,CAAC,WAAW,CAAC,CACrD,CAAC,CAAC;IACL,CAAC;IAES,mCAAK,GAAf,UAAgB,KAAQ;QACtB,IAAI,CAAC,eAAe,CAAC,2BAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IAES,oCAAM,GAAhB,UAAiB,GAAQ;QACvB,IAAI,CAAC,eAAe,CAAC,2BAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IAES,uCAAS,GAAnB;QACE,IAAI,CAAC,eAAe,CAAC,2BAAY,CAAC,cAAc,EAAE,CAAC,CAAC;QACpD,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IACH,0BAAC;AAAD,CAAC,AApCD,CAA4C,uBAAU,GAoCrD;AApCY,kDAAmB;AAsChC;IACE,0BAAmB,YAA+B,EAC/B,WAAiC;QADjC,iBAAY,GAAZ,YAAY,CAAmB;QAC/B,gBAAW,GAAX,WAAW,CAAsB;IACpD,CAAC;IACH,uBAAC;AAAD,CAAC,AAJD,IAIC;AAJY,4CAAgB"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"distinctUntilChanged.js","sources":["../../src/add/operator/distinctUntilChanged.ts"],"names":[],"mappings":";;AAAA,yDAAuD"}

View File

@@ -0,0 +1,29 @@
/**
Split a string on the first occurrence of a given separator.
@param string - The string to split.
@param separator - The separator to split on.
@example
```
import splitOnFirst = require('split-on-first');
splitOnFirst('a-b-c', '-');
//=> ['a', 'b-c']
splitOnFirst('key:value:value2', ':');
//=> ['key', 'value:value2']
splitOnFirst('a---b---c', '---');
//=> ['a', 'b---c']
splitOnFirst('a-b-c', '+');
//=> ['a-b-c']
```
*/
declare function splitOnFirst(
string: string,
separator: string
): [string, string?];
export = splitOnFirst;

View File

@@ -0,0 +1,100 @@
/** PURE_IMPORTS_START tslib,_Subscriber,_Observable,_util_subscribeTo PURE_IMPORTS_END */
import * as tslib_1 from "tslib";
import { Subscriber } from './Subscriber';
import { Observable } from './Observable';
import { subscribeTo } from './util/subscribeTo';
var SimpleInnerSubscriber = /*@__PURE__*/ (function (_super) {
tslib_1.__extends(SimpleInnerSubscriber, _super);
function SimpleInnerSubscriber(parent) {
var _this = _super.call(this) || this;
_this.parent = parent;
return _this;
}
SimpleInnerSubscriber.prototype._next = function (value) {
this.parent.notifyNext(value);
};
SimpleInnerSubscriber.prototype._error = function (error) {
this.parent.notifyError(error);
this.unsubscribe();
};
SimpleInnerSubscriber.prototype._complete = function () {
this.parent.notifyComplete();
this.unsubscribe();
};
return SimpleInnerSubscriber;
}(Subscriber));
export { SimpleInnerSubscriber };
var ComplexInnerSubscriber = /*@__PURE__*/ (function (_super) {
tslib_1.__extends(ComplexInnerSubscriber, _super);
function ComplexInnerSubscriber(parent, outerValue, outerIndex) {
var _this = _super.call(this) || this;
_this.parent = parent;
_this.outerValue = outerValue;
_this.outerIndex = outerIndex;
return _this;
}
ComplexInnerSubscriber.prototype._next = function (value) {
this.parent.notifyNext(this.outerValue, value, this.outerIndex, this);
};
ComplexInnerSubscriber.prototype._error = function (error) {
this.parent.notifyError(error);
this.unsubscribe();
};
ComplexInnerSubscriber.prototype._complete = function () {
this.parent.notifyComplete(this);
this.unsubscribe();
};
return ComplexInnerSubscriber;
}(Subscriber));
export { ComplexInnerSubscriber };
var SimpleOuterSubscriber = /*@__PURE__*/ (function (_super) {
tslib_1.__extends(SimpleOuterSubscriber, _super);
function SimpleOuterSubscriber() {
return _super !== null && _super.apply(this, arguments) || this;
}
SimpleOuterSubscriber.prototype.notifyNext = function (innerValue) {
this.destination.next(innerValue);
};
SimpleOuterSubscriber.prototype.notifyError = function (err) {
this.destination.error(err);
};
SimpleOuterSubscriber.prototype.notifyComplete = function () {
this.destination.complete();
};
return SimpleOuterSubscriber;
}(Subscriber));
export { SimpleOuterSubscriber };
var ComplexOuterSubscriber = /*@__PURE__*/ (function (_super) {
tslib_1.__extends(ComplexOuterSubscriber, _super);
function ComplexOuterSubscriber() {
return _super !== null && _super.apply(this, arguments) || this;
}
ComplexOuterSubscriber.prototype.notifyNext = function (_outerValue, innerValue, _outerIndex, _innerSub) {
this.destination.next(innerValue);
};
ComplexOuterSubscriber.prototype.notifyError = function (error) {
this.destination.error(error);
};
ComplexOuterSubscriber.prototype.notifyComplete = function (_innerSub) {
this.destination.complete();
};
return ComplexOuterSubscriber;
}(Subscriber));
export { ComplexOuterSubscriber };
export function innerSubscribe(result, innerSubscriber) {
if (innerSubscriber.closed) {
return undefined;
}
if (result instanceof Observable) {
return result.subscribe(innerSubscriber);
}
var subscription;
try {
subscription = subscribeTo(result)(innerSubscriber);
}
catch (error) {
innerSubscriber.error(error);
}
return subscription;
}
//# sourceMappingURL=innerSubscribe.js.map

View File

@@ -0,0 +1,6 @@
/** PURE_IMPORTS_START _QueueAction,_QueueScheduler PURE_IMPORTS_END */
import { QueueAction } from './QueueAction';
import { QueueScheduler } from './QueueScheduler';
export var queueScheduler = /*@__PURE__*/ new QueueScheduler(QueueAction);
export var queue = queueScheduler;
//# sourceMappingURL=queue.js.map

View File

@@ -0,0 +1,143 @@
import { Operator } from '../Operator';
import { Subscriber } from '../Subscriber';
import { async } from '../scheduler/async';
import { Observable } from '../Observable';
import { isDate } from '../util/isDate';
import { ObservableInput, OperatorFunction, SchedulerAction, SchedulerLike, TeardownLogic } from '../types';
import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';
/* tslint:disable:max-line-length */
export function timeoutWith<T, R>(due: number | Date, withObservable: ObservableInput<R>, scheduler?: SchedulerLike): OperatorFunction<T, T | R>;
/* tslint:enable:max-line-length */
/**
*
* Errors if Observable does not emit a value in given time span, in case of which
* subscribes to the second Observable.
*
* <span class="informal">It's a version of `timeout` operator that let's you specify fallback Observable.</span>
*
* ![](timeoutWith.png)
*
* `timeoutWith` is a variation of `timeout` operator. It behaves exactly the same,
* still accepting as a first argument either a number or a Date, which control - respectively -
* when values of source Observable should be emitted or when it should complete.
*
* The only difference is that it accepts a second, required parameter. This parameter
* should be an Observable which will be subscribed when source Observable fails any timeout check.
* So whenever regular `timeout` would emit an error, `timeoutWith` will instead start re-emitting
* values from second Observable. Note that this fallback Observable is not checked for timeouts
* itself, so it can emit values and complete at arbitrary points in time. From the moment of a second
* subscription, Observable returned from `timeoutWith` simply mirrors fallback stream. When that
* stream completes, it completes as well.
*
* Scheduler, which in case of `timeout` is provided as as second argument, can be still provided
* here - as a third, optional parameter. It still is used to schedule timeout checks and -
* as a consequence - when second Observable will be subscribed, since subscription happens
* immediately after failing check.
*
* ## Example
* Add fallback observable
* ```ts
* import { interval } from 'rxjs';
* import { timeoutWith } from 'rxjs/operators';
*
* const seconds = interval(1000);
* const minutes = interval(60 * 1000);
*
* seconds.pipe(timeoutWith(900, minutes))
* .subscribe(
* value => console.log(value), // After 900ms, will start emitting `minutes`,
* // since first value of `seconds` will not arrive fast enough.
* err => console.log(err), // Would be called after 900ms in case of `timeout`,
* // but here will never be called.
* );
* ```
*
* @param {number|Date} due Number specifying period within which Observable must emit values
* or Date specifying before when Observable should complete
* @param {Observable<T>} withObservable Observable which will be subscribed if source fails timeout check.
* @param {SchedulerLike} [scheduler] Scheduler controlling when timeout checks occur.
* @return {Observable<T>} Observable that mirrors behaviour of source or, when timeout check fails, of an Observable
* passed as a second parameter.
* @method timeoutWith
* @owner Observable
*/
export function timeoutWith<T, R>(due: number | Date,
withObservable: ObservableInput<R>,
scheduler: SchedulerLike = async): OperatorFunction<T, T | R> {
return (source: Observable<T>) => {
let absoluteTimeout = isDate(due);
let waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(<number>due);
return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));
};
}
class TimeoutWithOperator<T> implements Operator<T, T> {
constructor(private waitFor: number,
private absoluteTimeout: boolean,
private withObservable: ObservableInput<any>,
private scheduler: SchedulerLike) {
}
call(subscriber: Subscriber<T>, source: any): TeardownLogic {
return source.subscribe(new TimeoutWithSubscriber(
subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler
));
}
}
/**
* We need this JSDoc comment for affecting ESDoc.
* @ignore
* @extends {Ignored}
*/
class TimeoutWithSubscriber<T, R> extends SimpleOuterSubscriber<T, R> {
private action?: SchedulerAction<TimeoutWithSubscriber<T, R>>;
constructor(destination: Subscriber<T>,
private absoluteTimeout: boolean,
private waitFor: number,
private withObservable: ObservableInput<any>,
private scheduler: SchedulerLike) {
super(destination);
this.scheduleTimeout();
}
private static dispatchTimeout<T, R>(subscriber: TimeoutWithSubscriber<T, R>): void {
const { withObservable } = subscriber;
subscriber._unsubscribeAndRecycle();
subscriber.add(innerSubscribe(withObservable, new SimpleInnerSubscriber(subscriber)));
}
private scheduleTimeout(): void {
const { action } = this;
if (action) {
// Recycle the action if we've already scheduled one. All the production
// Scheduler Actions mutate their state/delay time and return themeselves.
// VirtualActions are immutable, so they create and return a clone. In this
// case, we need to set the action reference to the most recent VirtualAction,
// to ensure that's the one we clone from next time.
this.action = (<SchedulerAction<TimeoutWithSubscriber<T, R>>> action.schedule(this, this.waitFor));
} else {
this.add(this.action = (<SchedulerAction<TimeoutWithSubscriber<T, R>>> this.scheduler.schedule<TimeoutWithSubscriber<T, R>>(
TimeoutWithSubscriber.dispatchTimeout as any, this.waitFor, this
)));
}
}
protected _next(value: T): void {
if (!this.absoluteTimeout) {
this.scheduleTimeout();
}
super._next(value);
}
/** @deprecated This is an internal implementation detail, do not use. */
_unsubscribe() {
this.action = undefined;
this.scheduler = null!;
this.withObservable = null!;
}
}

View File

@@ -0,0 +1,7 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("rxjs-compat/operator/mergeMapTo"));
//# sourceMappingURL=mergeMapTo.js.map

View File

@@ -0,0 +1,7 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("rxjs-compat/observable/PromiseObservable"));
//# sourceMappingURL=PromiseObservable.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"first.js","sources":["../../../src/internal/operators/first.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAuE5C,MAAM,UAAU,KAAK,CACnB,SAAgF,EAChF,YAAgB;IAEhB,IAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,UAAC,MAAqB,IAAK,OAAA,MAAM,CAAC,IAAI,CAC3C,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAvB,CAAuB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAChE,IAAI,CAAC,CAAC,CAAC,EACP,eAAe,CAAC,CAAC,CAAC,cAAc,CAAQ,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,cAAM,OAAA,IAAI,UAAU,EAAE,EAAhB,CAAgB,CAAC,CAC7F,EAJiC,CAIjC,CAAC;AACJ,CAAC"}

View File

@@ -0,0 +1,7 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("rxjs-compat/operator/windowTime"));
//# sourceMappingURL=windowTime.js.map

View File

@@ -0,0 +1 @@
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0.0036,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0.01438,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0.0036,"35":0,"36":0,"37":0,"38":0.0036,"39":0,"40":0.0036,"41":0.0036,"42":0,"43":0.0036,"44":0,"45":0,"46":0,"47":0.0036,"48":0.00719,"49":0,"50":0,"51":0,"52":0.06113,"53":0,"54":0,"55":0,"56":0.0036,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.0036,"69":0,"70":0,"71":0,"72":0.00719,"73":0,"74":0,"75":0.0036,"76":0,"77":0,"78":0.0036,"79":0,"80":0.0036,"81":0.0036,"82":0.0036,"83":0.0036,"84":0,"85":0,"86":0,"87":0,"88":0.0036,"89":0.0036,"90":0,"91":0.0036,"92":0,"93":0,"94":0,"95":0.0036,"96":0.0036,"97":0.0036,"98":0,"99":0.00719,"100":0.00719,"101":0.0036,"102":0.01798,"103":0.00719,"104":0.00719,"105":0.00719,"106":0.01079,"107":0.03236,"108":0.59694,"109":0.33083,"110":0.0036,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0.0036,"28":0,"29":0.0036,"30":0,"31":0.0036,"32":0.01438,"33":0.00719,"34":0,"35":0,"36":0,"37":0,"38":0.0036,"39":0,"40":0.00719,"41":0,"42":0,"43":0.04315,"44":0,"45":0,"46":0,"47":0.0036,"48":0,"49":0.03596,"50":0.0036,"51":0,"52":0,"53":0.0036,"54":0,"55":0,"56":0.01079,"57":0,"58":0.00719,"59":0,"60":0.0036,"61":0.0036,"62":0.0036,"63":0.01079,"64":0.00719,"65":0.0036,"66":0.0036,"67":0.01798,"68":0.00719,"69":0.01079,"70":0.00719,"71":0.00719,"72":0.00719,"73":0.0036,"74":0.01438,"75":0.0036,"76":0.00719,"77":0.00719,"78":0.0036,"79":0.02517,"80":0.00719,"81":0.02517,"83":0.01438,"84":0.01079,"85":0.02158,"86":0.01798,"87":0.02158,"88":0.00719,"89":0.01079,"90":0.00719,"91":0.01079,"92":0.01079,"93":0.0036,"94":0.00719,"95":0.02877,"96":0.01438,"97":0.01438,"98":0.03956,"99":0.01438,"100":0.01798,"101":0.01079,"102":0.03596,"103":0.04315,"104":0.02877,"105":0.05754,"106":0.04675,"107":0.13305,"108":4.25407,"109":3.74703,"110":0.0036,"111":0.0036,"112":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0.0036,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0.0036,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0.0036,"62":0,"63":0.0036,"64":0.0036,"65":0.0036,"66":0.0036,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.0036,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0.01438,"80":0,"81":0,"82":0,"83":0,"84":0.0036,"85":0.01798,"86":0.00719,"87":0.0036,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0.1798,"94":0.38837,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0.0036,"13":0,"14":0,"15":0.0036,"16":0.00719,"17":0.0036,"18":0.00719,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0.0036,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00719,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0.0036,"107":0.02877,"108":0.32364,"109":0.28408},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.01079,"15":0.0036,_:"0","3.1":0,"3.2":0,"5.1":0.0036,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0.00719,"14.1":0.01079,"15.1":0.0036,"15.2-15.3":0.0036,"15.4":0.0036,"15.5":0.01079,"15.6":0.03956,"16.0":0.0036,"16.1":0.02158,"16.2":0.03956,"16.3":0.00719},G:{"8":0,"3.2":0.00122,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00729,"6.0-6.1":0.00365,"7.0-7.1":0.07959,"8.1-8.4":0.00182,"9.0-9.2":0.00243,"9.3":0.10693,"10.0-10.2":0.00304,"10.3":0.04557,"11.0-11.2":0.01154,"11.3-11.4":0.00729,"12.0-12.1":0.00729,"12.2-12.5":0.26854,"13.0-13.1":0.00486,"13.2":0.00304,"13.3":0.02309,"13.4-13.7":0.07473,"14.0-14.4":0.10754,"14.5-14.8":0.19016,"15.0-15.1":0.08202,"15.2-15.3":0.12212,"15.4":0.15067,"15.5":0.31046,"15.6":0.54741,"16.0":0.80197,"16.1":1.25824,"16.2":1.07719,"16.3":0.11361},P:{"4":0.11401,"5.0-5.4":0,"6.2-6.4":0.01036,"7.2-7.4":0.11401,"8.2":0,"9.2":0.02073,"10.1":0.01036,"11.1-11.2":0.06219,"12.0":0.01036,"13.0":0.05182,"14.0":0.05182,"15.0":0.02073,"16.0":0.09328,"17.0":0.09328,"18.0":0.12438,"19.0":1.01576},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00652,"4.2-4.3":0.02608,"4.4":0,"4.4.3-4.4.4":0.17606},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.01153,"9":0.00384,"10":0.00384,"11":0.08841,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.14089},Q:{"13.1":0.01281},O:{"0":0.37143},H:{"0":0.51535},L:{"0":78.4321},S:{"2.5":0}};