deps-upgrade(rxjs): ⬆️ Update RxJS to latest version with operator and observable type improvements
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
7537f014d5
commit
167b0c192f
15 changed files with 0 additions and 327 deletions
26
run/node_modules/rxjs/dist/esm5/internal/operators/refCount.js
generated
vendored
26
run/node_modules/rxjs/dist/esm5/internal/operators/refCount.js
generated
vendored
|
|
@ -1,26 +0,0 @@
|
|||
import { operate } from '../util/lift';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
export function refCount() {
|
||||
return operate(function (source, subscriber) {
|
||||
var connection = null;
|
||||
source._refCount++;
|
||||
var refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, function () {
|
||||
if (!source || source._refCount <= 0 || 0 < --source._refCount) {
|
||||
connection = null;
|
||||
return;
|
||||
}
|
||||
var sharedConnection = source._connection;
|
||||
var conn = connection;
|
||||
connection = null;
|
||||
if (sharedConnection && (!conn || sharedConnection === conn)) {
|
||||
sharedConnection.unsubscribe();
|
||||
}
|
||||
subscriber.unsubscribe();
|
||||
});
|
||||
source.subscribe(refCounter);
|
||||
if (!refCounter.closed) {
|
||||
connection = source.connect();
|
||||
}
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=refCount.js.map
|
||||
1
run/node_modules/rxjs/dist/esm5/internal/operators/refCount.js.map
generated
vendored
1
run/node_modules/rxjs/dist/esm5/internal/operators/refCount.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"refCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/refCount.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4DhE,MAAM,UAAU,QAAQ;IACtB,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,UAAU,GAAwB,IAAI,CAAC;QAE1C,MAAc,CAAC,SAAS,EAAE,CAAC;QAE5B,IAAM,UAAU,GAAG,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE;YACvF,IAAI,CAAC,MAAM,IAAK,MAAc,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAG,MAAc,CAAC,SAAS,EAAE;gBAChF,UAAU,GAAG,IAAI,CAAC;gBAClB,OAAO;aACR;YA2BD,IAAM,gBAAgB,GAAI,MAAc,CAAC,WAAW,CAAC;YACrD,IAAM,IAAI,GAAG,UAAU,CAAC;YACxB,UAAU,GAAG,IAAI,CAAC;YAElB,IAAI,gBAAgB,IAAI,CAAC,CAAC,IAAI,IAAI,gBAAgB,KAAK,IAAI,CAAC,EAAE;gBAC5D,gBAAgB,CAAC,WAAW,EAAE,CAAC;aAChC;YAED,UAAU,CAAC,WAAW,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACtB,UAAU,GAAI,MAAmC,CAAC,OAAO,EAAE,CAAC;SAC7D;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||
60
run/node_modules/rxjs/dist/esm5/internal/operators/repeat.js
generated
vendored
60
run/node_modules/rxjs/dist/esm5/internal/operators/repeat.js
generated
vendored
|
|
@ -1,60 +0,0 @@
|
|||
import { EMPTY } from '../observable/empty';
|
||||
import { operate } from '../util/lift';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
import { innerFrom } from '../observable/innerFrom';
|
||||
import { timer } from '../observable/timer';
|
||||
export function repeat(countOrConfig) {
|
||||
var _a;
|
||||
var count = Infinity;
|
||||
var delay;
|
||||
if (countOrConfig != null) {
|
||||
if (typeof countOrConfig === 'object') {
|
||||
(_a = countOrConfig.count, count = _a === void 0 ? Infinity : _a, delay = countOrConfig.delay);
|
||||
}
|
||||
else {
|
||||
count = countOrConfig;
|
||||
}
|
||||
}
|
||||
return count <= 0
|
||||
? function () { return EMPTY; }
|
||||
: operate(function (source, subscriber) {
|
||||
var soFar = 0;
|
||||
var sourceSub;
|
||||
var resubscribe = function () {
|
||||
sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe();
|
||||
sourceSub = null;
|
||||
if (delay != null) {
|
||||
var notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar));
|
||||
var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function () {
|
||||
notifierSubscriber_1.unsubscribe();
|
||||
subscribeToSource();
|
||||
});
|
||||
notifier.subscribe(notifierSubscriber_1);
|
||||
}
|
||||
else {
|
||||
subscribeToSource();
|
||||
}
|
||||
};
|
||||
var subscribeToSource = function () {
|
||||
var syncUnsub = false;
|
||||
sourceSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, function () {
|
||||
if (++soFar < count) {
|
||||
if (sourceSub) {
|
||||
resubscribe();
|
||||
}
|
||||
else {
|
||||
syncUnsub = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
subscriber.complete();
|
||||
}
|
||||
}));
|
||||
if (syncUnsub) {
|
||||
resubscribe();
|
||||
}
|
||||
};
|
||||
subscribeToSource();
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=repeat.js.map
|
||||
1
run/node_modules/rxjs/dist/esm5/internal/operators/repeat.js.map
generated
vendored
1
run/node_modules/rxjs/dist/esm5/internal/operators/repeat.js.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"repeat.js","sourceRoot":"","sources":["../../../../src/internal/operators/repeat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA6G5C,MAAM,UAAU,MAAM,CAAI,aAAqC;;IAC7D,IAAI,KAAK,GAAG,QAAQ,CAAC;IACrB,IAAI,KAA4B,CAAC;IAEjC,IAAI,aAAa,IAAI,IAAI,EAAE;QACzB,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;YACrC,CAAG,KAA4B,aAAa,MAAzB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,KAAK,GAAK,aAAa,MAAlB,CAAmB,CAAC;SAC/C;aAAM;YACL,KAAK,GAAG,aAAa,CAAC;SACvB;KACF;IAED,OAAO,KAAK,IAAI,CAAC;QACf,CAAC,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK;QACb,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,IAAI,KAAK,GAAG,CAAC,CAAC;YACd,IAAI,SAA8B,CAAC;YAEnC,IAAM,WAAW,GAAG;gBAClB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,EAAE,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBACjB,IAAI,KAAK,IAAI,IAAI,EAAE;oBACjB,IAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;oBACpF,IAAM,oBAAkB,GAAG,wBAAwB,CAAC,UAAU,EAAE;wBAC9D,oBAAkB,CAAC,WAAW,EAAE,CAAC;wBACjC,iBAAiB,EAAE,CAAC;oBACtB,CAAC,CAAC,CAAC;oBACH,QAAQ,CAAC,SAAS,CAAC,oBAAkB,CAAC,CAAC;iBACxC;qBAAM;oBACL,iBAAiB,EAAE,CAAC;iBACrB;YACH,CAAC,CAAC;YAEF,IAAM,iBAAiB,GAAG;gBACxB,IAAI,SAAS,GAAG,KAAK,CAAC;gBACtB,SAAS,GAAG,MAAM,CAAC,SAAS,CAC1B,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE;oBAC9C,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE;wBACnB,IAAI,SAAS,EAAE;4BACb,WAAW,EAAE,CAAC;yBACf;6BAAM;4BACL,SAAS,GAAG,IAAI,CAAC;yBAClB;qBACF;yBAAM;wBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;gBACH,CAAC,CAAC,CACH,CAAC;gBAEF,IAAI,SAAS,EAAE;oBACb,WAAW,EAAE,CAAC;iBACf;YACH,CAAC,CAAC;YAEF,iBAAiB,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;AACT,CAAC"}
|
||||
1
run/node_modules/rxjs/dist/types/internal/observable/iif.d.ts.map
generated
vendored
1
run/node_modules/rxjs/dist/types/internal/observable/iif.d.ts.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"iif.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/iif.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAEtI"}
|
||||
21
run/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts
generated
vendored
21
run/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts
generated
vendored
|
|
@ -1,21 +0,0 @@
|
|||
import { Observable } from '../Observable';
|
||||
import { ObservableInput, ObservedValueOf, ReadableStreamLike } from '../types';
|
||||
export declare function innerFrom<O extends ObservableInput<any>>(input: O): Observable<ObservedValueOf<O>>;
|
||||
/**
|
||||
* Creates an RxJS Observable from an object that implements `Symbol.observable`.
|
||||
* @param obj An object that properly implements `Symbol.observable`.
|
||||
*/
|
||||
export declare function fromInteropObservable<T>(obj: any): Observable<T>;
|
||||
/**
|
||||
* Synchronously emits the values of an array like and completes.
|
||||
* This is exported because there are creation functions and operators that need to
|
||||
* make direct use of the same logic, and there's no reason to make them run through
|
||||
* `from` conditionals because we *know* they're dealing with an array.
|
||||
* @param array The array to emit values from
|
||||
*/
|
||||
export declare function fromArrayLike<T>(array: ArrayLike<T>): Observable<T>;
|
||||
export declare function fromPromise<T>(promise: PromiseLike<T>): Observable<T>;
|
||||
export declare function fromIterable<T>(iterable: Iterable<T>): Observable<T>;
|
||||
export declare function fromAsyncIterable<T>(asyncIterable: AsyncIterable<T>): Observable<T>;
|
||||
export declare function fromReadableStreamLike<T>(readableStream: ReadableStreamLike<T>): Observable<T>;
|
||||
//# sourceMappingURL=innerFrom.d.ts.map
|
||||
1
run/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts.map
generated
vendored
1
run/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"innerFrom.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/innerFrom.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAWhF,wBAAgB,SAAS,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AA6BpG;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,iBAShD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,iBAgBnD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,iBAcrD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAUpD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,iBAInE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC,CAAC,iBAE9E"}
|
||||
48
run/node_modules/rxjs/dist/types/internal/observable/interval.d.ts
generated
vendored
48
run/node_modules/rxjs/dist/types/internal/observable/interval.d.ts
generated
vendored
|
|
@ -1,48 +0,0 @@
|
|||
import { Observable } from '../Observable';
|
||||
import { SchedulerLike } from '../types';
|
||||
/**
|
||||
* Creates an Observable that emits sequential numbers every specified
|
||||
* interval of time, on a specified {@link SchedulerLike}.
|
||||
*
|
||||
* <span class="informal">Emits incremental numbers periodically in time.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* `interval` returns an Observable that emits an infinite sequence of
|
||||
* ascending integers, with a constant interval of time of your choosing
|
||||
* between those emissions. The first emission is not sent immediately, but
|
||||
* only after the first period has passed. By default, this operator uses the
|
||||
* `async` {@link SchedulerLike} to provide a notion of time, but you may pass any
|
||||
* {@link SchedulerLike} to it.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* Emits ascending numbers, one every second (1000ms) up to the number 3
|
||||
*
|
||||
* ```ts
|
||||
* import { interval, take } from 'rxjs';
|
||||
*
|
||||
* const numbers = interval(1000);
|
||||
*
|
||||
* const takeFourNumbers = numbers.pipe(take(4));
|
||||
*
|
||||
* takeFourNumbers.subscribe(x => console.log('Next: ', x));
|
||||
*
|
||||
* // Logs:
|
||||
* // Next: 0
|
||||
* // Next: 1
|
||||
* // Next: 2
|
||||
* // Next: 3
|
||||
* ```
|
||||
*
|
||||
* @see {@link timer}
|
||||
* @see {@link delay}
|
||||
*
|
||||
* @param period The interval size in milliseconds (by default) or the time unit determined
|
||||
* by the scheduler's clock.
|
||||
* @param scheduler The {@link SchedulerLike} to use for scheduling the emission of values,
|
||||
* and providing a notion of "time".
|
||||
* @return An Observable that emits a sequential number each time interval.
|
||||
*/
|
||||
export declare function interval(period?: number, scheduler?: SchedulerLike): Observable<number>;
|
||||
//# sourceMappingURL=interval.d.ts.map
|
||||
1
run/node_modules/rxjs/dist/types/internal/observable/interval.d.ts.map
generated
vendored
1
run/node_modules/rxjs/dist/types/internal/observable/interval.d.ts.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"interval.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/interval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,QAAQ,CAAC,MAAM,SAAI,EAAE,SAAS,GAAE,aAA8B,GAAG,UAAU,CAAC,MAAM,CAAC,CAOlG"}
|
||||
9
run/node_modules/rxjs/dist/types/internal/observable/merge.d.ts
generated
vendored
9
run/node_modules/rxjs/dist/types/internal/observable/merge.d.ts
generated
vendored
|
|
@ -1,9 +0,0 @@
|
|||
import { Observable } from '../Observable';
|
||||
import { ObservableInputTuple, SchedulerLike } from '../types';
|
||||
export declare function merge<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A[number]>;
|
||||
export declare function merge<A extends readonly unknown[]>(...sourcesAndConcurrency: [...ObservableInputTuple<A>, number?]): Observable<A[number]>;
|
||||
/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
|
||||
export declare function merge<A extends readonly unknown[]>(...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike?]): Observable<A[number]>;
|
||||
/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
|
||||
export declare function merge<A extends readonly unknown[]>(...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple<A>, number?, SchedulerLike?]): Observable<A[number]>;
|
||||
//# sourceMappingURL=merge.d.ts.map
|
||||
1
run/node_modules/rxjs/dist/types/internal/observable/merge.d.ts.map
generated
vendored
1
run/node_modules/rxjs/dist/types/internal/observable/merge.d.ts.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAmB,oBAAoB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAOhF,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACrH,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,qBAAqB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5I,6JAA6J;AAC7J,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAChD,GAAG,mBAAmB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,GACnE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACzB,6JAA6J;AAC7J,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAChD,GAAG,iCAAiC,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC,GAC1F,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
||||
40
run/node_modules/rxjs/dist/types/internal/observable/never.d.ts
generated
vendored
40
run/node_modules/rxjs/dist/types/internal/observable/never.d.ts
generated
vendored
|
|
@ -1,40 +0,0 @@
|
|||
import { Observable } from '../Observable';
|
||||
/**
|
||||
* An Observable that emits no items to the Observer and never completes.
|
||||
*
|
||||
* 
|
||||
*
|
||||
* A simple Observable that emits neither values nor errors nor the completion
|
||||
* notification. It can be used for testing purposes or for composing with other
|
||||
* Observables. Please note that by never emitting a complete notification, this
|
||||
* Observable keeps the subscription from being disposed automatically.
|
||||
* Subscriptions need to be manually disposed.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* Emit the number 7, then never emit anything else (not even complete)
|
||||
*
|
||||
* ```ts
|
||||
* import { NEVER, startWith } from 'rxjs';
|
||||
*
|
||||
* const info = () => console.log('Will not be called');
|
||||
*
|
||||
* const result = NEVER.pipe(startWith(7));
|
||||
* result.subscribe({
|
||||
* next: x => console.log(x),
|
||||
* error: info,
|
||||
* complete: info
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @see {@link Observable}
|
||||
* @see {@link EMPTY}
|
||||
* @see {@link of}
|
||||
* @see {@link throwError}
|
||||
*/
|
||||
export declare const NEVER: Observable<never>;
|
||||
/**
|
||||
* @deprecated Replaced with the {@link NEVER} constant. Will be removed in v8.
|
||||
*/
|
||||
export declare function never(): Observable<never>;
|
||||
//# sourceMappingURL=never.d.ts.map
|
||||
1
run/node_modules/rxjs/dist/types/internal/observable/range.d.ts.map
generated
vendored
1
run/node_modules/rxjs/dist/types/internal/observable/range.d.ts.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAEzE;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC"}
|
||||
115
run/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts
generated
vendored
115
run/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts
generated
vendored
|
|
@ -1,115 +0,0 @@
|
|||
import { Observable } from '../Observable';
|
||||
import { SchedulerLike } from '../types';
|
||||
/**
|
||||
* Creates an observable that will create an error instance and push it to the consumer as an error
|
||||
* immediately upon subscription.
|
||||
*
|
||||
* <span class="informal">Just errors and does nothing else</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* This creation function is useful for creating an observable that will create an error and error every
|
||||
* time it is subscribed to. Generally, inside of most operators when you might want to return an errored
|
||||
* observable, this is unnecessary. In most cases, such as in the inner return of {@link concatMap},
|
||||
* {@link mergeMap}, {@link defer}, and many others, you can simply throw the error, and RxJS will pick
|
||||
* that up and notify the consumer of the error.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* Create a simple observable that will create a new error with a timestamp and log it
|
||||
* and the message every time you subscribe to it
|
||||
*
|
||||
* ```ts
|
||||
* import { throwError } from 'rxjs';
|
||||
*
|
||||
* let errorCount = 0;
|
||||
*
|
||||
* const errorWithTimestamp$ = throwError(() => {
|
||||
* const error: any = new Error(`This is error number ${ ++errorCount }`);
|
||||
* error.timestamp = Date.now();
|
||||
* return error;
|
||||
* });
|
||||
*
|
||||
* errorWithTimestamp$.subscribe({
|
||||
* error: err => console.log(err.timestamp, err.message)
|
||||
* });
|
||||
*
|
||||
* errorWithTimestamp$.subscribe({
|
||||
* error: err => console.log(err.timestamp, err.message)
|
||||
* });
|
||||
*
|
||||
* // Logs the timestamp and a new error message for each subscription
|
||||
* ```
|
||||
*
|
||||
* ### Unnecessary usage
|
||||
*
|
||||
* Using `throwError` inside of an operator or creation function
|
||||
* with a callback, is usually not necessary
|
||||
*
|
||||
* ```ts
|
||||
* import { of, concatMap, timer, throwError } from 'rxjs';
|
||||
*
|
||||
* const delays$ = of(1000, 2000, Infinity, 3000);
|
||||
*
|
||||
* delays$.pipe(
|
||||
* concatMap(ms => {
|
||||
* if (ms < 10000) {
|
||||
* return timer(ms);
|
||||
* } else {
|
||||
* // This is probably overkill.
|
||||
* return throwError(() => new Error(`Invalid time ${ ms }`));
|
||||
* }
|
||||
* })
|
||||
* )
|
||||
* .subscribe({
|
||||
* next: console.log,
|
||||
* error: console.error
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* You can just throw the error instead
|
||||
*
|
||||
* ```ts
|
||||
* import { of, concatMap, timer } from 'rxjs';
|
||||
*
|
||||
* const delays$ = of(1000, 2000, Infinity, 3000);
|
||||
*
|
||||
* delays$.pipe(
|
||||
* concatMap(ms => {
|
||||
* if (ms < 10000) {
|
||||
* return timer(ms);
|
||||
* } else {
|
||||
* // Cleaner and easier to read for most folks.
|
||||
* throw new Error(`Invalid time ${ ms }`);
|
||||
* }
|
||||
* })
|
||||
* )
|
||||
* .subscribe({
|
||||
* next: console.log,
|
||||
* error: console.error
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @param errorFactory A factory function that will create the error instance that is pushed.
|
||||
*/
|
||||
export declare function throwError(errorFactory: () => any): Observable<never>;
|
||||
/**
|
||||
* Returns an observable that will error with the specified error immediately upon subscription.
|
||||
*
|
||||
* @param error The error instance to emit
|
||||
* @deprecated Support for passing an error value will be removed in v8. Instead, pass a factory function to `throwError(() => new Error('test'))`. This is
|
||||
* because it will create the error at the moment it should be created and capture a more appropriate stack trace. If
|
||||
* for some reason you need to create the error ahead of time, you can still do that: `const err = new Error('test'); throwError(() => err);`.
|
||||
*/
|
||||
export declare function throwError(error: any): Observable<never>;
|
||||
/**
|
||||
* Notifies the consumer of an error using a given scheduler by scheduling it at delay `0` upon subscription.
|
||||
*
|
||||
* @param errorOrErrorFactory An error instance or error factory
|
||||
* @param scheduler A scheduler to use to schedule the error notification
|
||||
* @deprecated The `scheduler` parameter will be removed in v8.
|
||||
* Use `throwError` in combination with {@link observeOn}: `throwError(() => new Error('test')).pipe(observeOn(scheduler));`.
|
||||
* Details: https://rxjs.dev/deprecations/scheduler-argument
|
||||
*/
|
||||
export declare function throwError(errorOrErrorFactory: any, scheduler: SchedulerLike): Observable<never>;
|
||||
//# sourceMappingURL=throwError.d.ts.map
|
||||
1
run/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts.map
generated
vendored
1
run/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts.map
generated
vendored
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"throwError.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/throwError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH,wBAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAEvE;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAE1D;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC"}
|
||||
Loading…
Add table
Reference in a new issue