new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"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 p q r s D t","2":"C K L H M N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 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 r s D t xB yB DC EC","2":"CC"},D:{"1":"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 l m n o p q r s D t xB yB FC"},E:{"1":"u J E F G A B C K L H HC IC JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I GC zB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 W X Y Z a b c d","2":"G B C OC PC QC RC qB 9B SC rB"},G:{"1":"F AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","16":"zB TC"},H:{"2":"nC"},I:{"1":"D sC tC","2":"oC pC qC","132":"tB I rC AC"},J:{"1":"A","2":"E"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:7,C:"High-quality kerning pairs & ligatures"};
|
||||
@@ -0,0 +1,53 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { SchedulerLike } from '../types';
|
||||
/**
|
||||
* Creates an Observable that starts emitting after an `dueTime` and
|
||||
* emits ever increasing numbers after each `period` of time thereafter.
|
||||
*
|
||||
* <span class="informal">Its like {@link index/interval}, but you can specify when
|
||||
* should the emissions start.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* `timer` returns an Observable that emits an infinite sequence of ascending
|
||||
* integers, with a constant interval of time, `period` of your choosing
|
||||
* between those emissions. The first emission happens after the specified
|
||||
* `dueTime`. The initial delay may be a `Date`. By default, this
|
||||
* operator uses the {@link asyncScheduler} {@link SchedulerLike} to provide a notion of time, but you
|
||||
* may pass any {@link SchedulerLike} to it. If `period` is not specified, the output
|
||||
* Observable emits only one value, `0`. Otherwise, it emits an infinite
|
||||
* sequence.
|
||||
*
|
||||
* ## Examples
|
||||
* ### Emits ascending numbers, one every second (1000ms), starting after 3 seconds
|
||||
* ```ts
|
||||
* import { timer } from 'rxjs';
|
||||
*
|
||||
* const numbers = timer(3000, 1000);
|
||||
* numbers.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* ### Emits one number after five seconds
|
||||
* ```ts
|
||||
* import { timer } from 'rxjs';
|
||||
*
|
||||
* const numbers = timer(5000);
|
||||
* numbers.subscribe(x => console.log(x));
|
||||
* ```
|
||||
* @see {@link index/interval}
|
||||
* @see {@link delay}
|
||||
*
|
||||
* @param {number|Date} [dueTime] The initial delay time specified as a Date object or as an integer denoting
|
||||
* milliseconds to wait before emitting the first value of 0`.
|
||||
* @param {number|SchedulerLike} [periodOrScheduler] The period of time between emissions of the
|
||||
* subsequent numbers.
|
||||
* @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for scheduling
|
||||
* the emission of values, and providing a notion of "time".
|
||||
* @return {Observable} An Observable that emits a `0` after the
|
||||
* `dueTime` and ever increasing numbers after each `period` of time
|
||||
* thereafter.
|
||||
* @static true
|
||||
* @name timer
|
||||
* @owner Observable
|
||||
*/
|
||||
export declare function timer(dueTime?: number | Date, periodOrScheduler?: number | SchedulerLike, scheduler?: SchedulerLike): Observable<number>;
|
||||
@@ -0,0 +1,13 @@
|
||||
import { ResponseHeaders } from "@octokit/types";
|
||||
import { GraphQlEndpointOptions, GraphQlQueryResponse } from "./types";
|
||||
declare type ServerResponseData<T> = Required<GraphQlQueryResponse<T>>;
|
||||
export declare class GraphqlResponseError<ResponseData> extends Error {
|
||||
readonly request: GraphQlEndpointOptions;
|
||||
readonly headers: ResponseHeaders;
|
||||
readonly response: ServerResponseData<ResponseData>;
|
||||
name: string;
|
||||
readonly errors: GraphQlQueryResponse<never>["errors"];
|
||||
readonly data: ResponseData;
|
||||
constructor(request: GraphQlEndpointOptions, headers: ResponseHeaders, response: ServerResponseData<ResponseData>);
|
||||
}
|
||||
export {};
|
||||
@@ -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.00417,"44":0,"45":0,"46":0,"47":0.00417,"48":0.00417,"49":0,"50":0,"51":0,"52":0.02503,"53":0,"54":0,"55":0,"56":0.00417,"57":0,"58":0,"59":0,"60":0.00417,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00417,"69":0,"70":0,"71":0,"72":0.00834,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0.00834,"79":0.00417,"80":0.00834,"81":0.00417,"82":0.00417,"83":0,"84":0,"85":0,"86":0.00417,"87":0,"88":0.00417,"89":0.01251,"90":0,"91":0.00417,"92":0.00417,"93":0.00417,"94":0.00417,"95":0.00834,"96":0.00834,"97":0.03337,"98":0.00417,"99":0.01251,"100":0.01251,"101":0.00417,"102":0.05839,"103":0.01668,"104":0.01251,"105":0.01668,"106":0.07925,"107":0.09176,"108":1.39311,"109":0.57143,"110":0.00417,"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.06257,"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.00834,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0.00417,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.01668,"50":0.01251,"51":0,"52":0,"53":0,"54":0.00834,"55":0.01251,"56":0.00417,"57":0.01251,"58":0.00417,"59":0.00417,"60":0,"61":0.00417,"62":0.00417,"63":0.00417,"64":0.00417,"65":0.00417,"66":0.00834,"67":0.00417,"68":0.00417,"69":0.00834,"70":0.00417,"71":0.0292,"72":0.00417,"73":0.00417,"74":0.02503,"75":0,"76":0,"77":0.00417,"78":0,"79":0.03754,"80":0.01251,"81":0.05839,"83":0.00417,"84":0,"85":0.01251,"86":0.02086,"87":0.00834,"88":0.02086,"89":0.00417,"90":0.01251,"91":0.00834,"92":0.02086,"93":0.00417,"94":0.00834,"95":0.05005,"96":0.02503,"97":0.06257,"98":0.01251,"99":0.00834,"100":0.01251,"101":0.04588,"102":0.03337,"103":0.07925,"104":0.09176,"105":0.09593,"106":0.08759,"107":0.23358,"108":4.29613,"109":3.08654,"110":0,"111":0.00417,"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.00417,"25":0,"26":0.00417,"27":0,"28":0.00417,"29":0.00417,"30":0.00834,"31":0,"32":0.02086,"33":0.00417,"34":0,"35":0.00417,"36":0,"37":0.00417,"38":0.00834,"39":0,"40":0,"41":0.00834,"42":0.00417,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0.00834,"51":0.00417,"52":0,"53":0.0292,"54":0,"55":0,"56":0.00417,"57":0,"58":0.00834,"60":0.0292,"62":0,"63":0.0292,"64":0.02503,"65":0.01251,"66":0.0292,"67":0.00834,"68":0,"69":0,"70":0.00417,"71":0.00417,"72":0,"73":0.00417,"74":0,"75":0,"76":0.01251,"77":0,"78":0,"79":0.04171,"80":0.00417,"81":0,"82":0,"83":0,"84":0,"85":0.00417,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00417,"93":0.05839,"94":0.317,"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.01251},B:{"12":0.00417,"13":0.00417,"14":0.00834,"15":0.01668,"16":0,"17":0.00834,"18":0.02086,"79":0,"80":0,"81":0,"83":0,"84":0.00417,"85":0.00417,"86":0,"87":0,"88":0,"89":0.00417,"90":0.00417,"91":0,"92":0.01251,"93":0,"94":0,"95":0,"96":0.00417,"97":0,"98":0,"99":0,"100":0.00417,"101":0,"102":0.00834,"103":0.01251,"104":0.00417,"105":0,"106":0.00834,"107":0.01668,"108":0.50886,"109":0.48384},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.02086,"14":0,"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.01668,"13.1":0.00834,"14.1":0.01251,"15.1":0,"15.2-15.3":0,"15.4":0.00417,"15.5":0.00417,"15.6":0.02503,"16.0":0.00417,"16.1":0.02086,"16.2":0.0292,"16.3":0.00417},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00045,"5.0-5.1":0.00178,"6.0-6.1":0,"7.0-7.1":0.03123,"8.1-8.4":0.00268,"9.0-9.2":0,"9.3":0.05443,"10.0-10.2":0.00134,"10.3":0.1392,"11.0-11.2":0.0116,"11.3-11.4":0.00669,"12.0-12.1":0.02543,"12.2-12.5":0.44974,"13.0-13.1":0.00446,"13.2":0.00312,"13.3":0.02499,"13.4-13.7":0.04462,"14.0-14.4":0.16553,"14.5-14.8":0.18561,"15.0-15.1":0.09771,"15.2-15.3":0.0879,"15.4":0.1053,"15.5":0.32972,"15.6":0.31187,"16.0":0.34533,"16.1":0.71967,"16.2":0.67238,"16.3":0.09414},P:{"4":0.07249,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.06213,"8.2":0,"9.2":0.02071,"10.1":0,"11.1-11.2":0.01036,"12.0":0.01036,"13.0":0.03107,"14.0":0.06213,"15.0":0.01036,"16.0":0.03107,"17.0":0.07249,"18.0":0.0932,"19.0":0.40385},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00844,"4.2-4.3":0.01406,"4.4":0,"4.4.3-4.4.4":0.15001},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0.00417,"10":0,"11":0.01668,"5.5":0},J:{"7":0,"10":0.00583},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.48964},Q:{"13.1":0.01166},O:{"0":0.9851},H:{"0":3.01311},L:{"0":74.50405},S:{"2.5":0.18653}};
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { MonoTypeOperatorFunction, OperatorFunction } from '../types';
|
||||
/** @deprecated Deprecated in favor of static race. */
|
||||
export declare function race<T>(observables: Array<Observable<T>>): MonoTypeOperatorFunction<T>;
|
||||
/** @deprecated Deprecated in favor of static race. */
|
||||
export declare function race<T, R>(observables: Array<Observable<T>>): OperatorFunction<T, R>;
|
||||
/** @deprecated Deprecated in favor of static race. */
|
||||
export declare function race<T>(...observables: Array<Observable<T> | Array<Observable<T>>>): MonoTypeOperatorFunction<T>;
|
||||
/** @deprecated Deprecated in favor of static race. */
|
||||
export declare function race<T, R>(...observables: Array<Observable<any> | Array<Observable<any>>>): OperatorFunction<T, R>;
|
||||
@@ -0,0 +1,7 @@
|
||||
import { InteropObservable } from '../types';
|
||||
import { observable as Symbol_observable } from '../symbol/observable';
|
||||
|
||||
/** Identifies an input as being Observable (but not necessary an Rx Observable) */
|
||||
export function isInteropObservable(input: any): input is InteropObservable<any> {
|
||||
return input && typeof input[Symbol_observable] === 'function';
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"fromIterable.js","sources":["../../../src/internal/observable/fromIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,UAAU,YAAY,CAAI,KAAkB,EAAE,SAAyB;IAC3E,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IACD,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,UAAU,CAAI,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;KACtD;SAAM;QACL,OAAO,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;KAC3C;AACH,CAAC"}
|
||||
@@ -0,0 +1,113 @@
|
||||
declare namespace cliBoxes {
|
||||
/**
|
||||
Style of the box border.
|
||||
*/
|
||||
interface BoxStyle {
|
||||
readonly topLeft: string;
|
||||
readonly topRight: string;
|
||||
readonly bottomLeft: string;
|
||||
readonly bottomRight: string;
|
||||
readonly horizontal: string;
|
||||
readonly vertical: string;
|
||||
}
|
||||
|
||||
/**
|
||||
All box styles.
|
||||
*/
|
||||
interface Boxes {
|
||||
/**
|
||||
@example
|
||||
```
|
||||
┌────┐
|
||||
│ │
|
||||
└────┘
|
||||
```
|
||||
*/
|
||||
readonly single: BoxStyle;
|
||||
|
||||
/**
|
||||
@example
|
||||
```
|
||||
╔════╗
|
||||
║ ║
|
||||
╚════╝
|
||||
```
|
||||
*/
|
||||
readonly double: BoxStyle;
|
||||
|
||||
/**
|
||||
@example
|
||||
```
|
||||
╭────╮
|
||||
│ │
|
||||
╰────╯
|
||||
```
|
||||
*/
|
||||
readonly round: BoxStyle;
|
||||
|
||||
/**
|
||||
@example
|
||||
```
|
||||
┏━━━━┓
|
||||
┃ ┃
|
||||
┗━━━━┛
|
||||
```
|
||||
*/
|
||||
readonly bold: BoxStyle;
|
||||
|
||||
/**
|
||||
@example
|
||||
```
|
||||
╓────╖
|
||||
║ ║
|
||||
╙────╜
|
||||
```
|
||||
*/
|
||||
readonly singleDouble: BoxStyle;
|
||||
|
||||
/**
|
||||
@example
|
||||
```
|
||||
╒════╕
|
||||
│ │
|
||||
╘════╛
|
||||
```
|
||||
*/
|
||||
readonly doubleSingle: BoxStyle;
|
||||
|
||||
/**
|
||||
@example
|
||||
```
|
||||
+----+
|
||||
| |
|
||||
+----+
|
||||
```
|
||||
*/
|
||||
readonly classic: BoxStyle;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Boxes for use in the terminal.
|
||||
|
||||
@example
|
||||
```
|
||||
import cliBoxes = require('cli-boxes');
|
||||
|
||||
console.log(cliBoxes.single);
|
||||
// {
|
||||
// topLeft: '┌',
|
||||
// topRight: '┐',
|
||||
// bottomRight: '┘',
|
||||
// bottomLeft: '└',
|
||||
// vertical: '│',
|
||||
// horizontal: '─'
|
||||
// }
|
||||
```
|
||||
*/
|
||||
declare const cliBoxes: cliBoxes.Boxes & {
|
||||
// TODO: Remove this for the next major release
|
||||
default: typeof cliBoxes;
|
||||
};
|
||||
|
||||
export = cliBoxes;
|
||||
@@ -0,0 +1,4 @@
|
||||
/// <reference types="node" />
|
||||
import { Readable } from 'stream';
|
||||
declare const getBuffer: (stream: Readable) => Promise<Buffer>;
|
||||
export default getBuffer;
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
|
||||
/** PURE_IMPORTS_START _observable_concat PURE_IMPORTS_END */
|
||||
import { concat as concatStatic } from '../observable/concat';
|
||||
export function concat() {
|
||||
var observables = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
observables[_i] = arguments[_i];
|
||||
}
|
||||
return function (source) { return source.lift.call(concatStatic.apply(void 0, [source].concat(observables))); };
|
||||
}
|
||||
//# sourceMappingURL=concat.js.map
|
||||
@@ -0,0 +1,66 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { OperatorFunction } from '../types';
|
||||
/**
|
||||
* Branch out the source Observable values as a nested Observable with each
|
||||
* nested Observable emitting at most `windowSize` values.
|
||||
*
|
||||
* <span class="informal">It's like {@link bufferCount}, but emits a nested
|
||||
* Observable instead of an array.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* Returns an Observable that emits windows of items it collects from the source
|
||||
* Observable. The output Observable emits windows every `startWindowEvery`
|
||||
* items, each containing no more than `windowSize` items. When the source
|
||||
* Observable completes or encounters an error, the output Observable emits
|
||||
* the current window and propagates the notification from the source
|
||||
* Observable. If `startWindowEvery` is not provided, then new windows are
|
||||
* started immediately at the start of the source and when each window completes
|
||||
* with size `windowSize`.
|
||||
*
|
||||
* ## Examples
|
||||
* Ignore every 3rd click event, starting from the first one
|
||||
* ```ts
|
||||
* import { fromEvent } from 'rxjs';
|
||||
* import { windowCount, map, mergeAll, skip } from 'rxjs/operators';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const result = clicks.pipe(
|
||||
* windowCount(3),
|
||||
* map(win => win.pipe(skip(1))), // skip first of every 3 clicks
|
||||
* mergeAll() // flatten the Observable-of-Observables
|
||||
* );
|
||||
* result.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* Ignore every 3rd click event, starting from the third one
|
||||
* ```ts
|
||||
* import { fromEvent } from 'rxjs';
|
||||
* import { windowCount, mergeAll } from 'rxjs/operators';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const result = clicks.pipe(
|
||||
* windowCount(2, 3),
|
||||
* mergeAll(), // flatten the Observable-of-Observables
|
||||
* );
|
||||
* result.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* @see {@link window}
|
||||
* @see {@link windowTime}
|
||||
* @see {@link windowToggle}
|
||||
* @see {@link windowWhen}
|
||||
* @see {@link bufferCount}
|
||||
*
|
||||
* @param {number} windowSize The maximum number of values emitted by each
|
||||
* window.
|
||||
* @param {number} [startWindowEvery] Interval at which to start a new window.
|
||||
* For example if `startWindowEvery` is `2`, then a new window will be started
|
||||
* on every other value from the source. A new window is started at the
|
||||
* beginning of the source by default.
|
||||
* @return {Observable<Observable<T>>} An Observable of windows, which in turn
|
||||
* are Observable of values.
|
||||
* @method windowCount
|
||||
* @owner Observable
|
||||
*/
|
||||
export declare function windowCount<T>(windowSize: number, startWindowEvery?: number): OperatorFunction<T, Observable<T>>;
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = isFloat;
|
||||
exports.locales = void 0;
|
||||
|
||||
var _assertString = _interopRequireDefault(require("./util/assertString"));
|
||||
|
||||
var _alpha = require("./alpha");
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function isFloat(str, options) {
|
||||
(0, _assertString.default)(str);
|
||||
options = options || {};
|
||||
var float = new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(options.locale ? _alpha.decimal[options.locale] : '.', "[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));
|
||||
|
||||
if (str === '' || str === '.' || str === '-' || str === '+') {
|
||||
return false;
|
||||
}
|
||||
|
||||
var value = parseFloat(str.replace(',', '.'));
|
||||
return float.test(str) && (!options.hasOwnProperty('min') || value >= options.min) && (!options.hasOwnProperty('max') || value <= options.max) && (!options.hasOwnProperty('lt') || value < options.lt) && (!options.hasOwnProperty('gt') || value > options.gt);
|
||||
}
|
||||
|
||||
var locales = Object.keys(_alpha.decimal);
|
||||
exports.locales = locales;
|
||||
@@ -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/defer"));
|
||||
//# sourceMappingURL=defer.js.map
|
||||
@@ -0,0 +1,82 @@
|
||||
import { AjaxObservable, AjaxCreationMethod } from './AjaxObservable';
|
||||
/**
|
||||
* There is an ajax operator on the Rx object.
|
||||
*
|
||||
* It creates an observable for an Ajax request with either a request object with
|
||||
* url, headers, etc or a string for a URL.
|
||||
*
|
||||
*
|
||||
* ## Using ajax() to fetch the response object that is being returned from API.
|
||||
* ```ts
|
||||
* import { ajax } from 'rxjs/ajax';
|
||||
* import { map, catchError } from 'rxjs/operators';
|
||||
* import { of } from 'rxjs';
|
||||
*
|
||||
* const obs$ = ajax(`https://api.github.com/users?per_page=5`).pipe(
|
||||
* map(userResponse => console.log('users: ', userResponse)),
|
||||
* catchError(error => {
|
||||
* console.log('error: ', error);
|
||||
* return of(error);
|
||||
* })
|
||||
* );
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* ## Using ajax.getJSON() to fetch data from API.
|
||||
* ```ts
|
||||
* import { ajax } from 'rxjs/ajax';
|
||||
* import { map, catchError } from 'rxjs/operators';
|
||||
* import { of } from 'rxjs';
|
||||
*
|
||||
* const obs$ = ajax.getJSON(`https://api.github.com/users?per_page=5`).pipe(
|
||||
* map(userResponse => console.log('users: ', userResponse)),
|
||||
* catchError(error => {
|
||||
* console.log('error: ', error);
|
||||
* return of(error);
|
||||
* })
|
||||
* );
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* ## Using ajax() with object as argument and method POST with a two seconds delay.
|
||||
* ```ts
|
||||
* import { ajax } from 'rxjs/ajax';
|
||||
* import { of } from 'rxjs';
|
||||
*
|
||||
* const users = ajax({
|
||||
* url: 'https://httpbin.org/delay/2',
|
||||
* method: 'POST',
|
||||
* headers: {
|
||||
* 'Content-Type': 'application/json',
|
||||
* 'rxjs-custom-header': 'Rxjs'
|
||||
* },
|
||||
* body: {
|
||||
* rxjs: 'Hello World!'
|
||||
* }
|
||||
* }).pipe(
|
||||
* map(response => console.log('response: ', response)),
|
||||
* catchError(error => {
|
||||
* console.log('error: ', error);
|
||||
* return of(error);
|
||||
* })
|
||||
* );
|
||||
*
|
||||
* ```
|
||||
*
|
||||
* ## Using ajax() to fetch. An error object that is being returned from the request.
|
||||
* ```ts
|
||||
* import { ajax } from 'rxjs/ajax';
|
||||
* import { map, catchError } from 'rxjs/operators';
|
||||
* import { of } from 'rxjs';
|
||||
*
|
||||
* const obs$ = ajax(`https://api.github.com/404`).pipe(
|
||||
* map(userResponse => console.log('users: ', userResponse)),
|
||||
* catchError(error => {
|
||||
* console.log('error: ', error);
|
||||
* return of(error);
|
||||
* })
|
||||
* );
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
export const ajax: AjaxCreationMethod = (() => AjaxObservable.create)();
|
||||
@@ -0,0 +1,44 @@
|
||||
import { Subscriber } from '../Subscriber';
|
||||
import { empty } from '../observable/empty';
|
||||
export function repeat(count = -1) {
|
||||
return (source) => {
|
||||
if (count === 0) {
|
||||
return empty();
|
||||
}
|
||||
else if (count < 0) {
|
||||
return source.lift(new RepeatOperator(-1, source));
|
||||
}
|
||||
else {
|
||||
return source.lift(new RepeatOperator(count - 1, source));
|
||||
}
|
||||
};
|
||||
}
|
||||
class RepeatOperator {
|
||||
constructor(count, source) {
|
||||
this.count = count;
|
||||
this.source = source;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source));
|
||||
}
|
||||
}
|
||||
class RepeatSubscriber extends Subscriber {
|
||||
constructor(destination, count, source) {
|
||||
super(destination);
|
||||
this.count = count;
|
||||
this.source = source;
|
||||
}
|
||||
complete() {
|
||||
if (!this.isStopped) {
|
||||
const { source, count } = this;
|
||||
if (count === 0) {
|
||||
return super.complete();
|
||||
}
|
||||
else if (count > -1) {
|
||||
this.count = count - 1;
|
||||
}
|
||||
source.subscribe(this._unsubscribeAndRecycle());
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=repeat.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"B","2":"J E F G A BC"},B:{"1":"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 p q r s D t"},C:{"1":"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 r s D t xB yB DC EC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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 l m n o p q r s D t xB yB FC","2":"I u J E"},E:{"2":"I u J E F G A B C K GC zB HC IC JC KC 0B qB rB","194":"L H 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 W X Y Z a b c d","2":"G B C OC PC QC RC qB 9B SC rB"},G:{"2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC","194":"jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"1":"I D sC tC","2":"tB oC pC qC rC AC"},J:{"2":"E A"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"1":"B","2":"A"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:5,C:"Resource Hints: prefetch"};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mergeScan.js","sources":["../../../src/internal/operators/mergeScan.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAyCjG,MAAM,UAAU,SAAS,CAAO,WAAoE,EACpE,IAAO,EACP,aAAqB,MAAM,CAAC,iBAAiB;IAC3E,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,iBAAiB,CAAC,WAAW,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC;AACtG,CAAC;AAED,MAAM,OAAO,iBAAiB;IAC5B,YAAoB,WAAoE,EACpE,IAAO,EACP,UAAkB;QAFlB,gBAAW,GAAX,WAAW,CAAyD;QACpE,SAAI,GAAJ,IAAI,CAAG;QACP,eAAU,GAAV,UAAU,CAAQ;IACtC,CAAC;IAED,IAAI,CAAC,UAAyB,EAAE,MAAW;QACzC,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,mBAAmB,CAC7C,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CACzD,CAAC,CAAC;IACL,CAAC;CACF;AAOD,MAAM,OAAO,mBAA0B,SAAQ,qBAA2B;IAOxE,YAAY,WAA0B,EAClB,WAAoE,EACpE,GAAM,EACN,UAAkB;QACpC,KAAK,CAAC,WAAW,CAAC,CAAC;QAHD,gBAAW,GAAX,W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