new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export declare const VERSION = "5.6.3";
|
||||
@@ -0,0 +1,18 @@
|
||||
let _enable_super_gross_mode_that_will_cause_bad_things = false;
|
||||
export const config = {
|
||||
Promise: undefined,
|
||||
set useDeprecatedSynchronousErrorHandling(value) {
|
||||
if (value) {
|
||||
const error = new Error();
|
||||
console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack);
|
||||
}
|
||||
else if (_enable_super_gross_mode_that_will_cause_bad_things) {
|
||||
console.log('RxJS: Back to a better error behavior. Thank you. <3');
|
||||
}
|
||||
_enable_super_gross_mode_that_will_cause_bad_things = value;
|
||||
},
|
||||
get useDeprecatedSynchronousErrorHandling() {
|
||||
return _enable_super_gross_mode_that_will_cause_bad_things;
|
||||
},
|
||||
};
|
||||
//# sourceMappingURL=config.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"windowCount.js","sources":["../src/operators/windowCount.ts"],"names":[],"mappings":";;;;;AAAA,uDAAkD"}
|
||||
@@ -0,0 +1,49 @@
|
||||
/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';
|
||||
export function catchError(selector) {
|
||||
return function catchErrorOperatorFunction(source) {
|
||||
var operator = new CatchOperator(selector);
|
||||
var caught = source.lift(operator);
|
||||
return (operator.caught = caught);
|
||||
};
|
||||
}
|
||||
var CatchOperator = /*@__PURE__*/ (function () {
|
||||
function CatchOperator(selector) {
|
||||
this.selector = selector;
|
||||
}
|
||||
CatchOperator.prototype.call = function (subscriber, source) {
|
||||
return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));
|
||||
};
|
||||
return CatchOperator;
|
||||
}());
|
||||
var CatchSubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(CatchSubscriber, _super);
|
||||
function CatchSubscriber(destination, selector, caught) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.selector = selector;
|
||||
_this.caught = caught;
|
||||
return _this;
|
||||
}
|
||||
CatchSubscriber.prototype.error = function (err) {
|
||||
if (!this.isStopped) {
|
||||
var result = void 0;
|
||||
try {
|
||||
result = this.selector(err, this.caught);
|
||||
}
|
||||
catch (err2) {
|
||||
_super.prototype.error.call(this, err2);
|
||||
return;
|
||||
}
|
||||
this._unsubscribeAndRecycle();
|
||||
var innerSubscriber = new SimpleInnerSubscriber(this);
|
||||
this.add(innerSubscriber);
|
||||
var innerSubscription = innerSubscribe(result, innerSubscriber);
|
||||
if (innerSubscription !== innerSubscriber) {
|
||||
this.add(innerSubscription);
|
||||
}
|
||||
}
|
||||
};
|
||||
return CatchSubscriber;
|
||||
}(SimpleOuterSubscriber));
|
||||
//# sourceMappingURL=catchError.js.map
|
||||
@@ -0,0 +1,72 @@
|
||||
# resolve-from [](https://travis-ci.org/sindresorhus/resolve-from)
|
||||
|
||||
> Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install resolve-from
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const resolveFrom = require('resolve-from');
|
||||
|
||||
// There is a file at `./foo/bar.js`
|
||||
|
||||
resolveFrom('foo', './bar');
|
||||
//=> '/Users/sindresorhus/dev/test/foo/bar.js'
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### resolveFrom(fromDirectory, moduleId)
|
||||
|
||||
Like `require()`, throws when the module can't be found.
|
||||
|
||||
### resolveFrom.silent(fromDirectory, moduleId)
|
||||
|
||||
Returns `undefined` instead of throwing when the module can't be found.
|
||||
|
||||
#### fromDirectory
|
||||
|
||||
Type: `string`
|
||||
|
||||
Directory to resolve from.
|
||||
|
||||
#### moduleId
|
||||
|
||||
Type: `string`
|
||||
|
||||
What you would use in `require()`.
|
||||
|
||||
|
||||
## Tip
|
||||
|
||||
Create a partial using a bound function if you want to resolve from the same `fromDirectory` multiple times:
|
||||
|
||||
```js
|
||||
const resolveFromFoo = resolveFrom.bind(null, 'foo');
|
||||
|
||||
resolveFromFoo('./bar');
|
||||
resolveFromFoo('./baz');
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [resolve-cwd](https://github.com/sindresorhus/resolve-cwd) - Resolve the path of a module from the current working directory
|
||||
- [import-from](https://github.com/sindresorhus/import-from) - Import a module from a given path
|
||||
- [import-cwd](https://github.com/sindresorhus/import-cwd) - Import a module from the current working directory
|
||||
- [resolve-pkg](https://github.com/sindresorhus/resolve-pkg) - Resolve the path of a package regardless of it having an entry point
|
||||
- [import-lazy](https://github.com/sindresorhus/import-lazy) - Import a module lazily
|
||||
- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"startWith.js","sources":["../../../src/internal/operators/startWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAiElD,MAAM,UAAU,SAAS,CAAO,GAAG,KAA+B;IAChE,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAkB,CAAC;IAC3D,IAAI,WAAW,CAAC,SAAS,CAAC,EAAE;QAE1B,KAAK,CAAC,GAAG,EAAE,CAAC;QACZ,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,KAAY,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;KAC3E;SAAM;QACL,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,KAAY,EAAE,MAAM,CAAC,CAAC;KAChE;AACH,CAAC"}
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var WebSocketSubject_1 = require("./WebSocketSubject");
|
||||
function webSocket(urlConfigOrSource) {
|
||||
return new WebSocketSubject_1.WebSocketSubject(urlConfigOrSource);
|
||||
}
|
||||
exports.webSocket = webSocket;
|
||||
//# sourceMappingURL=webSocket.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { ConfigureOptions } from './types';
|
||||
interface Formats {
|
||||
number: Record<string, any>;
|
||||
date: Record<string, any>;
|
||||
time: Record<string, any>;
|
||||
}
|
||||
export declare const defaultFormats: Formats;
|
||||
export declare const defaultOptions: ConfigureOptions;
|
||||
export declare function getOptions(): ConfigureOptions;
|
||||
export declare function init(opts: ConfigureOptions): void;
|
||||
export {};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"windowToggle.js","sources":["../../../src/internal/operators/windowToggle.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAmD9D,MAAM,UAAU,YAAY,CAAO,QAAuB,EACvB,eAAkD;IACnF,OAAO,UAAC,MAAqB,IAAK,OAAA,MAAM,CAAC,IAAI,CAAC,IAAI,oBAAoB,CAAO,QAAQ,EAAE,eAAe,CAAC,CAAC,EAAtE,CAAsE,CAAC;AAC3G,CAAC;AAED;IAEE,8BAAoB,QAAuB,EACvB,eAAkD;QADlD,aAAQ,GAAR,QAAQ,CAAe;QACvB,oBAAe,GAAf,eAAe,CAAmC;IACtE,CAAC;IAED,mCAAI,GAAJ,UAAK,UAAqC,EAAE,MAAW;QACrD,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,sBAA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AG,QAAQ,CAAC,KAAK,CAAC,CAAC;QACxB,IAAA,uBAAM,EAAE,mCAAY,CAAa;QACzC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,QAAQ,EAAE,CAAC;QAClB,YAAY,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;IACH,6BAAC;AAAD,CAAC,AA5HD,CAA2C,eAAe,GA4HzD"}
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/operator/skip");
|
||||
//# sourceMappingURL=skip.js.map
|
||||
@@ -0,0 +1,15 @@
|
||||
import { URL, UrlWithStringQuery } from 'url';
|
||||
export interface LegacyUrlOptions {
|
||||
protocol: string;
|
||||
hostname: string;
|
||||
host: string;
|
||||
hash: string | null;
|
||||
search: string | null;
|
||||
pathname: string;
|
||||
href: string;
|
||||
path: string;
|
||||
port?: number;
|
||||
auth?: string;
|
||||
}
|
||||
declare const _default: (url: URL | UrlWithStringQuery) => LegacyUrlOptions;
|
||||
export default _default;
|
||||
@@ -0,0 +1,37 @@
|
||||
/** PURE_IMPORTS_START tslib,_innerSubscribe PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { innerSubscribe, SimpleInnerSubscriber, SimpleOuterSubscriber } from '../innerSubscribe';
|
||||
export function takeUntil(notifier) {
|
||||
return function (source) { return source.lift(new TakeUntilOperator(notifier)); };
|
||||
}
|
||||
var TakeUntilOperator = /*@__PURE__*/ (function () {
|
||||
function TakeUntilOperator(notifier) {
|
||||
this.notifier = notifier;
|
||||
}
|
||||
TakeUntilOperator.prototype.call = function (subscriber, source) {
|
||||
var takeUntilSubscriber = new TakeUntilSubscriber(subscriber);
|
||||
var notifierSubscription = innerSubscribe(this.notifier, new SimpleInnerSubscriber(takeUntilSubscriber));
|
||||
if (notifierSubscription && !takeUntilSubscriber.seenValue) {
|
||||
takeUntilSubscriber.add(notifierSubscription);
|
||||
return source.subscribe(takeUntilSubscriber);
|
||||
}
|
||||
return takeUntilSubscriber;
|
||||
};
|
||||
return TakeUntilOperator;
|
||||
}());
|
||||
var TakeUntilSubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(TakeUntilSubscriber, _super);
|
||||
function TakeUntilSubscriber(destination) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.seenValue = false;
|
||||
return _this;
|
||||
}
|
||||
TakeUntilSubscriber.prototype.notifyNext = function () {
|
||||
this.seenValue = true;
|
||||
this.complete();
|
||||
};
|
||||
TakeUntilSubscriber.prototype.notifyComplete = function () {
|
||||
};
|
||||
return TakeUntilSubscriber;
|
||||
}(SimpleOuterSubscriber));
|
||||
//# sourceMappingURL=takeUntil.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subscribeToObservable.js","sources":["../../src/internal/util/subscribeToObservable.ts"],"names":[],"mappings":";;AACA,mDAAuE;AAO1D,QAAA,qBAAqB,GAAG,UAAI,GAAQ,IAAK,OAAA,UAAC,UAAyB;IAC9E,IAAM,GAAG,GAAG,GAAG,CAAC,uBAAiB,CAAC,EAAE,CAAC;IACrC,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,UAAU,EAAE;QAEvC,MAAM,IAAI,SAAS,CAAC,gEAAgE,CAAC,CAAC;KACvF;SAAM;QACL,OAAO,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;KAClC;AACH,CAAC,EARqD,CAQrD,CAAC"}
|
||||
@@ -0,0 +1,78 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { MonoTypeOperatorFunction } from '../types';
|
||||
import { SimpleOuterSubscriber } from '../innerSubscribe';
|
||||
/**
|
||||
* Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.
|
||||
*
|
||||
* If a keySelector function is provided, then it will project each value from the source observable into a new value that it will
|
||||
* check for equality with previously projected values. If a keySelector function is not provided, it will use each value from the
|
||||
* source observable directly with an equality check against previous values.
|
||||
*
|
||||
* In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking.
|
||||
*
|
||||
* In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the
|
||||
* hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct`
|
||||
* use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so
|
||||
* that the internal `Set` can be "flushed", basically clearing it of values.
|
||||
*
|
||||
* ## Examples
|
||||
* A simple example with numbers
|
||||
* ```ts
|
||||
* import { of } from 'rxjs';
|
||||
* import { distinct } from 'rxjs/operators';
|
||||
*
|
||||
* of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1).pipe(
|
||||
* distinct(),
|
||||
* )
|
||||
* .subscribe(x => console.log(x)); // 1, 2, 3, 4
|
||||
* ```
|
||||
*
|
||||
* An example using a keySelector function
|
||||
* ```typescript
|
||||
* import { of } from 'rxjs';
|
||||
* import { distinct } from 'rxjs/operators';
|
||||
*
|
||||
* interface Person {
|
||||
* age: number,
|
||||
* name: string
|
||||
* }
|
||||
*
|
||||
* of<Person>(
|
||||
* { age: 4, name: 'Foo'},
|
||||
* { age: 7, name: 'Bar'},
|
||||
* { age: 5, name: 'Foo'},
|
||||
* ).pipe(
|
||||
* distinct((p: Person) => p.name),
|
||||
* )
|
||||
* .subscribe(x => console.log(x));
|
||||
*
|
||||
* // displays:
|
||||
* // { age: 4, name: 'Foo' }
|
||||
* // { age: 7, name: 'Bar' }
|
||||
* ```
|
||||
* @see {@link distinctUntilChanged}
|
||||
* @see {@link distinctUntilKeyChanged}
|
||||
*
|
||||
* @param {function} [keySelector] Optional function to select which value you want to check as distinct.
|
||||
* @param {Observable} [flushes] Optional Observable for flushing the internal HashSet of the operator.
|
||||
* @return {Observable} An Observable that emits items from the source Observable with distinct values.
|
||||
* @method distinct
|
||||
* @owner Observable
|
||||
*/
|
||||
export declare function distinct<T, K>(keySelector?: (value: T) => K, flushes?: Observable<any>): MonoTypeOperatorFunction<T>;
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export declare class DistinctSubscriber<T, K> extends SimpleOuterSubscriber<T, T> {
|
||||
private keySelector?;
|
||||
private values;
|
||||
constructor(destination: Subscriber<T>, keySelector?: (value: T) => K, flushes?: Observable<any>);
|
||||
notifyNext(): void;
|
||||
notifyError(error: any): void;
|
||||
protected _next(value: T): void;
|
||||
private _useKeySelector;
|
||||
private _finalizeNext;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operator/let';
|
||||
@@ -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,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0.01456,"46":0,"47":0,"48":0.00971,"49":0,"50":0,"51":0,"52":0.10193,"53":0,"54":0,"55":0,"56":0.00485,"57":0,"58":0,"59":0,"60":0.00485,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00971,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.08737,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0.10679,"92":0,"93":0,"94":0.01456,"95":0,"96":0,"97":0.00485,"98":0.01942,"99":0,"100":0.01456,"101":0.00485,"102":0.28639,"103":0.00485,"104":0,"105":0.00485,"106":0.00971,"107":0.04369,"108":1.99014,"109":1.13584,"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,"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,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.03398,"50":0,"51":0,"52":0,"53":0.00485,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0.00485,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0.00485,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0.00485,"72":0.00971,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00485,"79":0.01456,"80":0.00971,"81":0.02427,"83":0,"84":0,"85":0,"86":0,"87":0.00485,"88":0,"89":0,"90":0.00485,"91":0.00971,"92":0.00971,"93":0,"94":0.02912,"95":0,"96":0.11164,"97":0.03883,"98":0.03883,"99":0.02427,"100":0.00971,"101":0.00485,"102":0.00485,"103":0.04369,"104":0.00971,"105":0.02912,"106":0.04854,"107":0.27182,"108":5.62579,"109":4.6113,"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,"29":0,"30":0,"31":0,"32":0,"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,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"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,"93":0.20387,"94":0.30095,"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,"13":0.00485,"14":0.00485,"15":0,"16":0,"17":0,"18":0.00971,"79":0,"80":0,"81":0,"83":0.00485,"84":0.00485,"85":0,"86":0,"87":0,"88":0.00485,"89":0.00485,"90":0,"91":0,"92":0.00485,"93":0,"94":0,"95":0,"96":0.00485,"97":0.00485,"98":0,"99":0,"100":0.00485,"101":0,"102":0,"103":0,"104":0.01456,"105":0.41259,"106":0.00485,"107":0.02912,"108":1.16496,"109":1.25233},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.01942,"14":0.0631,"15":0.00971,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0.00485,"11.1":0,"12.1":0.02912,"13.1":0.05825,"14.1":0.18445,"15.1":0.03398,"15.2-15.3":0.13106,"15.4":0.02912,"15.5":0.09223,"15.6":0.69898,"16.0":0.11164,"16.1":0.40288,"16.2":0.49025,"16.3":0.03883},G:{"8":0.01277,"3.2":0.00255,"4.0-4.1":0,"4.2-4.3":0.00255,"5.0-5.1":0,"6.0-6.1":0.01788,"7.0-7.1":0.01788,"8.1-8.4":0.01788,"9.0-9.2":0.01788,"9.3":0.17367,"10.0-10.2":0.01022,"10.3":0.10982,"11.0-11.2":0.05874,"11.3-11.4":0.42906,"12.0-12.1":0.04597,"12.2-12.5":0.82237,"13.0-13.1":0.01532,"13.2":0,"13.3":0.37543,"13.4-13.7":0.07406,"14.0-14.4":0.1941,"14.5-14.8":0.65381,"15.0-15.1":0.34478,"15.2-15.3":0.26816,"15.4":0.61805,"15.5":0.66913,"15.6":3.01619,"16.0":3.25626,"16.1":7.03353,"16.2":4.901,"16.3":0.31158},P:{"4":0.07763,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.66538,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0.05545,"12.0":0.01109,"13.0":0.09981,"14.0":0.04436,"15.0":0.02218,"16.0":0.08872,"17.0":0.02218,"18.0":0.18852,"19.0":4.59113},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.01257,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.16335},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.01942,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.67413},Q:{"13.1":0.01029},O:{"0":0.02058},H:{"0":0.06333},L:{"0":43.26679},S:{"2.5":0}};
|
||||
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/observable/from';
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"p q r s D t","2":"C K L H M N O P Q R S T U V W X Y Z a b c d f g h i j k l m n o"},C:{"1":"r s D t xB yB","2":"0 1 2 3 4 5 6 7 8 9 CC tB I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q DC EC"},D:{"1":"l m n o p q r s D t xB yB FC","2":"0 1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R S T U V W X Y Z a b c d f g h i j k"},E:{"1":"3B 4B 5B sB 6B 7B 8B NC","2":"I u J E F G A B C K L H GC zB HC IC JC KC 0B qB rB 1B LC MC 2B"},F:{"1":"W X Y Z a b c d","2":"0 1 2 3 4 5 6 7 8 9 G B C H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V OC PC QC RC qB 9B SC rB"},G:{"1":"3B 4B 5B sB 6B 7B 8B","2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"2":"E A"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"uC"},P:{"1":"7C","2":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C"},Q:{"2":"1B"},R:{"2":"8C"},S:{"2":"9C"}},B:5,C:"CSS font-palette"};
|
||||
@@ -0,0 +1,58 @@
|
||||
//TODO: handle reviver/dehydrate function like normal
|
||||
//and handle indentation, like normal.
|
||||
//if anyone needs this... please send pull request.
|
||||
|
||||
exports.stringify = function stringify (o) {
|
||||
if('undefined' == typeof o) return o
|
||||
|
||||
if(o && Buffer.isBuffer(o))
|
||||
return JSON.stringify(':base64:' + o.toString('base64'))
|
||||
|
||||
if(o && o.toJSON)
|
||||
o = o.toJSON()
|
||||
|
||||
if(o && 'object' === typeof o) {
|
||||
var s = ''
|
||||
var array = Array.isArray(o)
|
||||
s = array ? '[' : '{'
|
||||
var first = true
|
||||
|
||||
for(var k in o) {
|
||||
var ignore = 'function' == typeof o[k] || (!array && 'undefined' === typeof o[k])
|
||||
if(Object.hasOwnProperty.call(o, k) && !ignore) {
|
||||
if(!first)
|
||||
s += ','
|
||||
first = false
|
||||
if (array) {
|
||||
if(o[k] == undefined)
|
||||
s += 'null'
|
||||
else
|
||||
s += stringify(o[k])
|
||||
} else if (o[k] !== void(0)) {
|
||||
s += stringify(k) + ':' + stringify(o[k])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
s += array ? ']' : '}'
|
||||
|
||||
return s
|
||||
} else if ('string' === typeof o) {
|
||||
return JSON.stringify(/^:/.test(o) ? ':' + o : o)
|
||||
} else if ('undefined' === typeof o) {
|
||||
return 'null';
|
||||
} else
|
||||
return JSON.stringify(o)
|
||||
}
|
||||
|
||||
exports.parse = function (s) {
|
||||
return JSON.parse(s, function (key, value) {
|
||||
if('string' === typeof value) {
|
||||
if(/^:base64:/.test(value))
|
||||
return new Buffer(value.substring(8), 'base64')
|
||||
else
|
||||
return /^:/.test(value) ? value.substring(1) : value
|
||||
}
|
||||
return value
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
import { MonoTypeOperatorFunction, SubscribableOrPromise } from '../types';
|
||||
/**
|
||||
* Emits a value from the source Observable only after a particular time span
|
||||
* determined by another Observable has passed without another source emission.
|
||||
*
|
||||
* <span class="informal">It's like {@link debounceTime}, but the time span of
|
||||
* emission silence is determined by a second Observable.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* `debounce` delays values emitted by the source Observable, but drops previous
|
||||
* pending delayed emissions if a new value arrives on the source Observable.
|
||||
* This operator keeps track of the most recent value from the source
|
||||
* Observable, and spawns a duration Observable by calling the
|
||||
* `durationSelector` function. The value is emitted only when the duration
|
||||
* Observable emits a value or completes, and if no other value was emitted on
|
||||
* the source Observable since the duration Observable was spawned. If a new
|
||||
* value appears before the duration Observable emits, the previous value will
|
||||
* be dropped and will not be emitted on the output Observable.
|
||||
*
|
||||
* Like {@link debounceTime}, this is a rate-limiting operator, and also a
|
||||
* delay-like operator since output emissions do not necessarily occur at the
|
||||
* same time as they did on the source Observable.
|
||||
*
|
||||
* ## Example
|
||||
* Emit the most recent click after a burst of clicks
|
||||
* ```ts
|
||||
* import { fromEvent, interval } from 'rxjs';
|
||||
* import { debounce } from 'rxjs/operators';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const result = clicks.pipe(debounce(() => interval(1000)));
|
||||
* result.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* @see {@link audit}
|
||||
* @see {@link debounceTime}
|
||||
* @see {@link delayWhen}
|
||||
* @see {@link throttle}
|
||||
*
|
||||
* @param {function(value: T): SubscribableOrPromise} durationSelector A function
|
||||
* that receives a value from the source Observable, for computing the timeout
|
||||
* duration for each source value, returned as an Observable or a Promise.
|
||||
* @return {Observable} An Observable that delays the emissions of the source
|
||||
* Observable by the specified duration Observable returned by
|
||||
* `durationSelector`, and may drop some values if they occur too frequently.
|
||||
* @method debounce
|
||||
* @owner Observable
|
||||
*/
|
||||
export declare function debounce<T>(durationSelector: (value: T) => SubscribableOrPromise<any>): MonoTypeOperatorFunction<T>;
|
||||
Reference in New Issue
Block a user