@bleedingdev/modern-js-utils 3.9.0-ultramodern.2 → 3.9.0-ultramodern.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/require.js +10 -1
- package/dist/compiled/chokidar/types/index.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +1 -1
- package/dist/compiled/fast-glob/out/types/index.d.ts +1 -1
- package/dist/compiled/inquirer/lib/prompts/base.d.ts +100 -0
- package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +116 -0
- package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +53 -0
- package/dist/compiled/inquirer/lib/prompts/editor.d.ts +101 -0
- package/dist/compiled/inquirer/lib/prompts/expand.d.ts +149 -0
- package/dist/compiled/inquirer/lib/prompts/input.d.ts +82 -0
- package/dist/compiled/inquirer/lib/prompts/list.d.ts +89 -0
- package/dist/compiled/inquirer/lib/prompts/number.d.ts +32 -0
- package/dist/compiled/inquirer/lib/prompts/password.d.ts +82 -0
- package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +111 -0
- package/dist/compiled/inquirer/lib/utils/events.d.ts +72 -0
- package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +23 -0
- package/dist/compiled/inquirer/lib/utils/paginator.d.ts +55 -0
- package/dist/compiled/inquirer/lib/utils/readline.d.ts +56 -0
- package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +90 -0
- package/dist/compiled/inquirer/lib/utils/utils.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/LICENSE.txt +202 -0
- package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/index.d.ts +173 -0
- package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +175 -0
- package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +121 -0
- package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +92 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +115 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +227 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +65 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +200 -0
- package/dist/compiled/inquirer/rxjs/internal/config.d.ts +73 -0
- package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +42 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +33 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +27 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +173 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +76 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +159 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +24 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +314 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +82 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +21 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +40 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +115 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +126 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +87 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +58 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +60 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +47 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +64 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +119 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +64 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +52 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +62 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +18 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +68 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +44 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +63 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +56 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +18 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +69 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +56 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +29 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +108 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +28 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +60 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +36 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +62 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +20 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +42 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +78 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +39 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +255 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +35 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +33 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +65 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +26 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +24 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +69 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +16 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +88 -0
- package/dist/compiled/inquirer/rxjs/internal/types.d.ts +307 -0
- package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +21 -0
- package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +17 -0
- package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +20 -0
- package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +17 -0
- package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +16 -0
- package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +44 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/operators/index.d.ts +114 -0
- package/dist/compiled/inquirer/rxjs/testing/index.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +3 -0
- package/dist/compiled/inquirer/types-license +21 -0
- package/dist/compiled/lodash/index.d.ts +1 -11
- package/dist/compiled/upath/upath.d.ts +2 -2
- package/dist/esm/cli/require.mjs +10 -1
- package/dist/esm-node/cli/require.mjs +10 -1
- package/package.json +4 -3
- package/rslib.config.mts +2 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { Observable } from '../Observable';
|
|
2
|
+
import { AjaxConfig } from './types';
|
|
3
|
+
import { AjaxResponse } from './AjaxResponse';
|
|
4
|
+
export interface AjaxCreationMethod {
|
|
5
|
+
/**
|
|
6
|
+
* Creates an observable that will perform an AJAX request using the
|
|
7
|
+
* [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
|
|
8
|
+
* global scope by default.
|
|
9
|
+
*
|
|
10
|
+
* This is the most configurable option, and the basis for all other AJAX calls in the library.
|
|
11
|
+
*
|
|
12
|
+
* ## Example
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { ajax } from 'rxjs/ajax';
|
|
16
|
+
* import { map, catchError, of } from '../..';
|
|
17
|
+
*
|
|
18
|
+
* const obs$ = ajax({
|
|
19
|
+
* method: 'GET',
|
|
20
|
+
* url: 'https://api.github.com/users?per_page=5',
|
|
21
|
+
* responseType: 'json'
|
|
22
|
+
* }).pipe(
|
|
23
|
+
* map(userResponse => console.log('users: ', userResponse)),
|
|
24
|
+
* catchError(error => {
|
|
25
|
+
* console.log('error: ', error);
|
|
26
|
+
* return of(error);
|
|
27
|
+
* })
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
<T>(config: AjaxConfig): Observable<AjaxResponse<T>>;
|
|
32
|
+
/**
|
|
33
|
+
* Perform an HTTP GET using the
|
|
34
|
+
* [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
|
|
35
|
+
* global scope. Defaults to a `responseType` of `"json"`.
|
|
36
|
+
*
|
|
37
|
+
* ## Example
|
|
38
|
+
*
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { ajax } from 'rxjs/ajax';
|
|
41
|
+
* import { map, catchError, of } from '../..';
|
|
42
|
+
*
|
|
43
|
+
* const obs$ = ajax('https://api.github.com/users?per_page=5').pipe(
|
|
44
|
+
* map(userResponse => console.log('users: ', userResponse)),
|
|
45
|
+
* catchError(error => {
|
|
46
|
+
* console.log('error: ', error);
|
|
47
|
+
* return of(error);
|
|
48
|
+
* })
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
<T>(url: string): Observable<AjaxResponse<T>>;
|
|
53
|
+
/**
|
|
54
|
+
* Performs an HTTP GET using the
|
|
55
|
+
* [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
|
|
56
|
+
* global scope by default, and a `responseType` of `"json"`.
|
|
57
|
+
*
|
|
58
|
+
* @param url The URL to get the resource from
|
|
59
|
+
* @param headers Optional headers. Case-Insensitive.
|
|
60
|
+
*/
|
|
61
|
+
get<T>(url: string, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
|
|
62
|
+
/**
|
|
63
|
+
* Performs an HTTP POST using the
|
|
64
|
+
* [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
|
|
65
|
+
* global scope by default, and a `responseType` of `"json"`.
|
|
66
|
+
*
|
|
67
|
+
* Before sending the value passed to the `body` argument, it is automatically serialized
|
|
68
|
+
* based on the specified `responseType`. By default, a JavaScript object will be serialized
|
|
69
|
+
* to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided
|
|
70
|
+
* dictionary object to a url-encoded string.
|
|
71
|
+
*
|
|
72
|
+
* @param url The URL to get the resource from
|
|
73
|
+
* @param body The content to send. The body is automatically serialized.
|
|
74
|
+
* @param headers Optional headers. Case-Insensitive.
|
|
75
|
+
*/
|
|
76
|
+
post<T>(url: string, body?: any, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
|
|
77
|
+
/**
|
|
78
|
+
* Performs an HTTP PUT using the
|
|
79
|
+
* [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
|
|
80
|
+
* global scope by default, and a `responseType` of `"json"`.
|
|
81
|
+
*
|
|
82
|
+
* Before sending the value passed to the `body` argument, it is automatically serialized
|
|
83
|
+
* based on the specified `responseType`. By default, a JavaScript object will be serialized
|
|
84
|
+
* to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided
|
|
85
|
+
* dictionary object to a url-encoded string.
|
|
86
|
+
*
|
|
87
|
+
* @param url The URL to get the resource from
|
|
88
|
+
* @param body The content to send. The body is automatically serialized.
|
|
89
|
+
* @param headers Optional headers. Case-Insensitive.
|
|
90
|
+
*/
|
|
91
|
+
put<T>(url: string, body?: any, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
|
|
92
|
+
/**
|
|
93
|
+
* Performs an HTTP PATCH using the
|
|
94
|
+
* [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
|
|
95
|
+
* global scope by default, and a `responseType` of `"json"`.
|
|
96
|
+
*
|
|
97
|
+
* Before sending the value passed to the `body` argument, it is automatically serialized
|
|
98
|
+
* based on the specified `responseType`. By default, a JavaScript object will be serialized
|
|
99
|
+
* to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided
|
|
100
|
+
* dictionary object to a url-encoded string.
|
|
101
|
+
*
|
|
102
|
+
* @param url The URL to get the resource from
|
|
103
|
+
* @param body The content to send. The body is automatically serialized.
|
|
104
|
+
* @param headers Optional headers. Case-Insensitive.
|
|
105
|
+
*/
|
|
106
|
+
patch<T>(url: string, body?: any, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
|
|
107
|
+
/**
|
|
108
|
+
* Performs an HTTP DELETE using the
|
|
109
|
+
* [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
|
|
110
|
+
* global scope by default, and a `responseType` of `"json"`.
|
|
111
|
+
*
|
|
112
|
+
* @param url The URL to get the resource from
|
|
113
|
+
* @param headers Optional headers. Case-Insensitive.
|
|
114
|
+
*/
|
|
115
|
+
delete<T>(url: string, headers?: Record<string, string>): Observable<AjaxResponse<T>>;
|
|
116
|
+
/**
|
|
117
|
+
* Performs an HTTP GET using the
|
|
118
|
+
* [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in
|
|
119
|
+
* global scope by default, and returns the hydrated JavaScript object from the
|
|
120
|
+
* response.
|
|
121
|
+
*
|
|
122
|
+
* @param url The URL to get the resource from
|
|
123
|
+
* @param headers Optional headers. Case-Insensitive.
|
|
124
|
+
*/
|
|
125
|
+
getJSON<T>(url: string, headers?: Record<string, string>): Observable<T>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* There is an ajax operator on the Rx object.
|
|
129
|
+
*
|
|
130
|
+
* It creates an observable for an Ajax request with either a request object with
|
|
131
|
+
* url, headers, etc or a string for a URL.
|
|
132
|
+
*
|
|
133
|
+
* ## Examples
|
|
134
|
+
*
|
|
135
|
+
* Using `ajax()` to fetch the response object that is being returned from API
|
|
136
|
+
*
|
|
137
|
+
* ```ts
|
|
138
|
+
* import { ajax } from 'rxjs/ajax';
|
|
139
|
+
* import { map, catchError, of } from '../..';
|
|
140
|
+
*
|
|
141
|
+
* const obs$ = ajax('https://api.github.com/users?per_page=5').pipe(
|
|
142
|
+
* map(userResponse => console.log('users: ', userResponse)),
|
|
143
|
+
* catchError(error => {
|
|
144
|
+
* console.log('error: ', error);
|
|
145
|
+
* return of(error);
|
|
146
|
+
* })
|
|
147
|
+
* );
|
|
148
|
+
*
|
|
149
|
+
* obs$.subscribe({
|
|
150
|
+
* next: value => console.log(value),
|
|
151
|
+
* error: err => console.log(err)
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* Using `ajax.getJSON()` to fetch data from API
|
|
156
|
+
*
|
|
157
|
+
* ```ts
|
|
158
|
+
* import { ajax } from 'rxjs/ajax';
|
|
159
|
+
* import { map, catchError, of } from '../..';
|
|
160
|
+
*
|
|
161
|
+
* const obs$ = ajax.getJSON('https://api.github.com/users?per_page=5').pipe(
|
|
162
|
+
* map(userResponse => console.log('users: ', userResponse)),
|
|
163
|
+
* catchError(error => {
|
|
164
|
+
* console.log('error: ', error);
|
|
165
|
+
* return of(error);
|
|
166
|
+
* })
|
|
167
|
+
* );
|
|
168
|
+
*
|
|
169
|
+
* obs$.subscribe({
|
|
170
|
+
* next: value => console.log(value),
|
|
171
|
+
* error: err => console.log(err)
|
|
172
|
+
* });
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* Using `ajax()` with object as argument and method POST with a two seconds delay
|
|
176
|
+
*
|
|
177
|
+
* ```ts
|
|
178
|
+
* import { ajax } from 'rxjs/ajax';
|
|
179
|
+
* import { map, catchError, of } from '../..';
|
|
180
|
+
*
|
|
181
|
+
* const users = ajax({
|
|
182
|
+
* url: 'https://httpbin.org/delay/2',
|
|
183
|
+
* method: 'POST',
|
|
184
|
+
* headers: {
|
|
185
|
+
* 'Content-Type': 'application/json',
|
|
186
|
+
* 'rxjs-custom-header': 'Rxjs'
|
|
187
|
+
* },
|
|
188
|
+
* body: {
|
|
189
|
+
* rxjs: 'Hello World!'
|
|
190
|
+
* }
|
|
191
|
+
* }).pipe(
|
|
192
|
+
* map(response => console.log('response: ', response)),
|
|
193
|
+
* catchError(error => {
|
|
194
|
+
* console.log('error: ', error);
|
|
195
|
+
* return of(error);
|
|
196
|
+
* })
|
|
197
|
+
* );
|
|
198
|
+
*
|
|
199
|
+
* users.subscribe({
|
|
200
|
+
* next: value => console.log(value),
|
|
201
|
+
* error: err => console.log(err)
|
|
202
|
+
* });
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* Using `ajax()` to fetch. An error object that is being returned from the request
|
|
206
|
+
*
|
|
207
|
+
* ```ts
|
|
208
|
+
* import { ajax } from 'rxjs/ajax';
|
|
209
|
+
* import { map, catchError, of } from '../..';
|
|
210
|
+
*
|
|
211
|
+
* const obs$ = ajax('https://api.github.com/404').pipe(
|
|
212
|
+
* map(userResponse => console.log('users: ', userResponse)),
|
|
213
|
+
* catchError(error => {
|
|
214
|
+
* console.log('error: ', error);
|
|
215
|
+
* return of(error);
|
|
216
|
+
* })
|
|
217
|
+
* );
|
|
218
|
+
*
|
|
219
|
+
* obs$.subscribe({
|
|
220
|
+
* next: value => console.log(value),
|
|
221
|
+
* error: err => console.log(err)
|
|
222
|
+
* });
|
|
223
|
+
* ```
|
|
224
|
+
*/
|
|
225
|
+
export declare const ajax: AjaxCreationMethod;
|
|
226
|
+
export declare function fromAjax<T>(init: AjaxConfig): Observable<AjaxResponse<T>>;
|
|
227
|
+
//# sourceMappingURL=ajax.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AjaxRequest } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* A normalized AJAX error.
|
|
4
|
+
*
|
|
5
|
+
* @see {@link ajax}
|
|
6
|
+
*/
|
|
7
|
+
export interface AjaxError extends Error {
|
|
8
|
+
/**
|
|
9
|
+
* The XHR instance associated with the error.
|
|
10
|
+
*/
|
|
11
|
+
xhr: XMLHttpRequest;
|
|
12
|
+
/**
|
|
13
|
+
* The AjaxRequest associated with the error.
|
|
14
|
+
*/
|
|
15
|
+
request: AjaxRequest;
|
|
16
|
+
/**
|
|
17
|
+
* The HTTP status code, if the request has completed. If not,
|
|
18
|
+
* it is set to `0`.
|
|
19
|
+
*/
|
|
20
|
+
status: number;
|
|
21
|
+
/**
|
|
22
|
+
* The responseType (e.g. 'json', 'arraybuffer', or 'xml').
|
|
23
|
+
*/
|
|
24
|
+
responseType: XMLHttpRequestResponseType;
|
|
25
|
+
/**
|
|
26
|
+
* The response data.
|
|
27
|
+
*/
|
|
28
|
+
response: any;
|
|
29
|
+
}
|
|
30
|
+
export interface AjaxErrorCtor {
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Internal implementation detail. Do not construct error instances.
|
|
33
|
+
* Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
|
|
34
|
+
*/
|
|
35
|
+
new (message: string, xhr: XMLHttpRequest, request: AjaxRequest): AjaxError;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Thrown when an error occurs during an AJAX request.
|
|
39
|
+
* This is only exported because it is useful for checking to see if an error
|
|
40
|
+
* is an `instanceof AjaxError`. DO NOT create new instances of `AjaxError` with
|
|
41
|
+
* the constructor.
|
|
42
|
+
*
|
|
43
|
+
* @see {@link ajax}
|
|
44
|
+
*/
|
|
45
|
+
export declare const AjaxError: AjaxErrorCtor;
|
|
46
|
+
export interface AjaxTimeoutError extends AjaxError {
|
|
47
|
+
}
|
|
48
|
+
export interface AjaxTimeoutErrorCtor {
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Internal implementation detail. Do not construct error instances.
|
|
51
|
+
* Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
|
|
52
|
+
*/
|
|
53
|
+
new (xhr: XMLHttpRequest, request: AjaxRequest): AjaxTimeoutError;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Thrown when an AJAX request times out. Not to be confused with {@link TimeoutError}.
|
|
57
|
+
*
|
|
58
|
+
* This is exported only because it is useful for checking to see if errors are an
|
|
59
|
+
* `instanceof AjaxTimeoutError`. DO NOT use the constructor to create an instance of
|
|
60
|
+
* this type.
|
|
61
|
+
*
|
|
62
|
+
* @see {@link ajax}
|
|
63
|
+
*/
|
|
64
|
+
export declare const AjaxTimeoutError: AjaxTimeoutErrorCtor;
|
|
65
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gets what should be in the `response` property of the XHR. However,
|
|
3
|
+
* since we still support the final versions of IE, we need to do a little
|
|
4
|
+
* checking here to make sure that we get the right thing back. Consequently,
|
|
5
|
+
* we need to do a JSON.parse() in here, which *could* throw if the response
|
|
6
|
+
* isn't valid JSON.
|
|
7
|
+
*
|
|
8
|
+
* This is used both in creating an AjaxResponse, and in creating certain errors
|
|
9
|
+
* that we throw, so we can give the user whatever was in the response property.
|
|
10
|
+
*
|
|
11
|
+
* @param xhr The XHR to examine the response of
|
|
12
|
+
*/
|
|
13
|
+
export declare function getXHRResponse(xhr: XMLHttpRequest): any;
|
|
14
|
+
//# sourceMappingURL=getXHRResponse.d.ts.map
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { PartialObserver } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Valid Ajax direction types. Prefixes the event `type` in the
|
|
4
|
+
* {@link AjaxResponse} object with "upload_" for events related
|
|
5
|
+
* to uploading and "download_" for events related to downloading.
|
|
6
|
+
*/
|
|
7
|
+
export declare type AjaxDirection = 'upload' | 'download';
|
|
8
|
+
export declare type ProgressEventType = 'loadstart' | 'progress' | 'load';
|
|
9
|
+
export declare type AjaxResponseType = `${AjaxDirection}_${ProgressEventType}`;
|
|
10
|
+
/**
|
|
11
|
+
* The object containing values RxJS used to make the HTTP request.
|
|
12
|
+
*
|
|
13
|
+
* This is provided in {@link AjaxError} instances as the `request`
|
|
14
|
+
* object.
|
|
15
|
+
*/
|
|
16
|
+
export interface AjaxRequest {
|
|
17
|
+
/**
|
|
18
|
+
* The URL requested.
|
|
19
|
+
*/
|
|
20
|
+
url: string;
|
|
21
|
+
/**
|
|
22
|
+
* The body to send over the HTTP request.
|
|
23
|
+
*/
|
|
24
|
+
body?: any;
|
|
25
|
+
/**
|
|
26
|
+
* The HTTP method used to make the HTTP request.
|
|
27
|
+
*/
|
|
28
|
+
method: string;
|
|
29
|
+
/**
|
|
30
|
+
* Whether or not the request was made asynchronously.
|
|
31
|
+
*/
|
|
32
|
+
async: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The headers sent over the HTTP request.
|
|
35
|
+
*/
|
|
36
|
+
headers: Readonly<Record<string, any>>;
|
|
37
|
+
/**
|
|
38
|
+
* The timeout value used for the HTTP request.
|
|
39
|
+
* Note: this is only honored if the request is asynchronous (`async` is `true`).
|
|
40
|
+
*/
|
|
41
|
+
timeout: number;
|
|
42
|
+
/**
|
|
43
|
+
* The user credentials user name sent with the HTTP request.
|
|
44
|
+
*/
|
|
45
|
+
user?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The user credentials password sent with the HTTP request.
|
|
48
|
+
*/
|
|
49
|
+
password?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Whether or not the request was a CORS request.
|
|
52
|
+
*/
|
|
53
|
+
crossDomain: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether or not a CORS request was sent with credentials.
|
|
56
|
+
* If `false`, will also ignore cookies in the CORS response.
|
|
57
|
+
*/
|
|
58
|
+
withCredentials: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The [`responseType`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType) set before sending the request.
|
|
61
|
+
*/
|
|
62
|
+
responseType: XMLHttpRequestResponseType;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Configuration for the {@link ajax} creation function.
|
|
66
|
+
*/
|
|
67
|
+
export interface AjaxConfig {
|
|
68
|
+
/** The address of the resource to request via HTTP. */
|
|
69
|
+
url: string;
|
|
70
|
+
/**
|
|
71
|
+
* The body of the HTTP request to send.
|
|
72
|
+
*
|
|
73
|
+
* This is serialized, by default, based off of the value of the `"content-type"` header.
|
|
74
|
+
* For example, if the `"content-type"` is `"application/json"`, the body will be serialized
|
|
75
|
+
* as JSON. If the `"content-type"` is `"application/x-www-form-urlencoded"`, whatever object passed
|
|
76
|
+
* to the body will be serialized as URL, using key-value pairs based off of the keys and values of the object.
|
|
77
|
+
* In all other cases, the body will be passed directly.
|
|
78
|
+
*/
|
|
79
|
+
body?: any;
|
|
80
|
+
/**
|
|
81
|
+
* Whether or not to send the request asynchronously. Defaults to `true`.
|
|
82
|
+
* If set to `false`, this will block the thread until the AJAX request responds.
|
|
83
|
+
*/
|
|
84
|
+
async?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* The HTTP Method to use for the request. Defaults to "GET".
|
|
87
|
+
*/
|
|
88
|
+
method?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The HTTP headers to apply.
|
|
91
|
+
*
|
|
92
|
+
* Note that, by default, RxJS will add the following headers under certain conditions:
|
|
93
|
+
*
|
|
94
|
+
* 1. If the `"content-type"` header is **NOT** set, and the `body` is [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData),
|
|
95
|
+
* a `"content-type"` of `"application/x-www-form-urlencoded; charset=UTF-8"` will be set automatically.
|
|
96
|
+
* 2. If the `"x-requested-with"` header is **NOT** set, and the `crossDomain` configuration property is **NOT** explicitly set to `true`,
|
|
97
|
+
* (meaning it is not a CORS request), a `"x-requested-with"` header with a value of `"XMLHttpRequest"` will be set automatically.
|
|
98
|
+
* This header is generally meaningless, and is set by libraries and frameworks using `XMLHttpRequest` to make HTTP requests.
|
|
99
|
+
*/
|
|
100
|
+
headers?: Readonly<Record<string, any>>;
|
|
101
|
+
/**
|
|
102
|
+
* The time to wait before causing the underlying XMLHttpRequest to timeout. This is only honored if the
|
|
103
|
+
* `async` configuration setting is unset or set to `true`. Defaults to `0`, which is idiomatic for "never timeout".
|
|
104
|
+
*/
|
|
105
|
+
timeout?: number;
|
|
106
|
+
/** The user credentials user name to send with the HTTP request */
|
|
107
|
+
user?: string;
|
|
108
|
+
/** The user credentials password to send with the HTTP request*/
|
|
109
|
+
password?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Whether or not to send the HTTP request as a CORS request.
|
|
112
|
+
* Defaults to `false`.
|
|
113
|
+
*
|
|
114
|
+
* @deprecated Will be removed in version 8. Cross domain requests and what creates a cross
|
|
115
|
+
* domain request, are dictated by the browser, and a boolean that forces it to be cross domain
|
|
116
|
+
* does not make sense. If you need to force cross domain, make sure you're making a secure request,
|
|
117
|
+
* then add a custom header to the request or use `withCredentials`. For more information on what
|
|
118
|
+
* triggers a cross domain request, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials).
|
|
119
|
+
* In particular, the section on [Simple Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests) is useful
|
|
120
|
+
* for understanding when CORS will not be used.
|
|
121
|
+
*/
|
|
122
|
+
crossDomain?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* To send user credentials in a CORS request, set to `true`. To exclude user credentials from
|
|
125
|
+
* a CORS request, _OR_ when cookies are to be ignored by the CORS response, set to `false`.
|
|
126
|
+
*
|
|
127
|
+
* Defaults to `false`.
|
|
128
|
+
*/
|
|
129
|
+
withCredentials?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* The name of your site's XSRF cookie.
|
|
132
|
+
*/
|
|
133
|
+
xsrfCookieName?: string;
|
|
134
|
+
/**
|
|
135
|
+
* The name of a custom header that you can use to send your XSRF cookie.
|
|
136
|
+
*/
|
|
137
|
+
xsrfHeaderName?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Can be set to change the response type.
|
|
140
|
+
* Valid values are `"arraybuffer"`, `"blob"`, `"document"`, `"json"`, and `"text"`.
|
|
141
|
+
* Note that the type of `"document"` (such as an XML document) is ignored if the global context is
|
|
142
|
+
* not `Window`.
|
|
143
|
+
*
|
|
144
|
+
* Defaults to `"json"`.
|
|
145
|
+
*/
|
|
146
|
+
responseType?: XMLHttpRequestResponseType;
|
|
147
|
+
/**
|
|
148
|
+
* An optional factory used to create the XMLHttpRequest object used to make the AJAX request.
|
|
149
|
+
* This is useful in environments that lack `XMLHttpRequest`, or in situations where you
|
|
150
|
+
* wish to override the default `XMLHttpRequest` for some reason.
|
|
151
|
+
*
|
|
152
|
+
* If not provided, the `XMLHttpRequest` in global scope will be used.
|
|
153
|
+
*
|
|
154
|
+
* NOTE: This AJAX implementation relies on the built-in serialization and setting
|
|
155
|
+
* of Content-Type headers that is provided by standards-compliant XMLHttpRequest implementations,
|
|
156
|
+
* be sure any implementation you use meets that standard.
|
|
157
|
+
*/
|
|
158
|
+
createXHR?: () => XMLHttpRequest;
|
|
159
|
+
/**
|
|
160
|
+
* An observer for watching the upload progress of an HTTP request. Will
|
|
161
|
+
* emit progress events, and completes on the final upload load event, will error for
|
|
162
|
+
* any XHR error or timeout.
|
|
163
|
+
*
|
|
164
|
+
* This will **not** error for errored status codes. Rather, it will always _complete_ when
|
|
165
|
+
* the HTTP response comes back.
|
|
166
|
+
*
|
|
167
|
+
* @deprecated If you're looking for progress events, use {@link includeDownloadProgress} and
|
|
168
|
+
* {@link includeUploadProgress} instead. Will be removed in v8.
|
|
169
|
+
*/
|
|
170
|
+
progressSubscriber?: PartialObserver<ProgressEvent>;
|
|
171
|
+
/**
|
|
172
|
+
* If `true`, will emit all download progress and load complete events as {@link AjaxResponse}
|
|
173
|
+
* from the observable. The final download event will also be emitted as a {@link AjaxResponse}.
|
|
174
|
+
*
|
|
175
|
+
* If both this and {@link includeUploadProgress} are `false`, then only the {@link AjaxResponse} will
|
|
176
|
+
* be emitted from the resulting observable.
|
|
177
|
+
*/
|
|
178
|
+
includeDownloadProgress?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* If `true`, will emit all upload progress and load complete events as {@link AjaxResponse}
|
|
181
|
+
* from the observable. The final download event will also be emitted as a {@link AjaxResponse}.
|
|
182
|
+
*
|
|
183
|
+
* If both this and {@link includeDownloadProgress} are `false`, then only the {@link AjaxResponse} will
|
|
184
|
+
* be emitted from the resulting observable.
|
|
185
|
+
*/
|
|
186
|
+
includeUploadProgress?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Query string parameters to add to the URL in the request.
|
|
189
|
+
* <em>This will require a polyfill for `URL` and `URLSearchParams` in Internet Explorer!</em>
|
|
190
|
+
*
|
|
191
|
+
* Accepts either a query string, a `URLSearchParams` object, a dictionary of key/value pairs, or an
|
|
192
|
+
* array of key/value entry tuples. (Essentially, it takes anything that `new URLSearchParams` would normally take).
|
|
193
|
+
*
|
|
194
|
+
* If, for some reason you have a query string in the `url` argument, this will append to the query string in the url,
|
|
195
|
+
* but it will also overwrite the value of any keys that are an exact match. In other words, a url of `/test?a=1&b=2`,
|
|
196
|
+
* with queryParams of `{ b: 5, c: 6 }` will result in a url of roughly `/test?a=1&b=5&c=6`.
|
|
197
|
+
*/
|
|
198
|
+
queryParams?: string | URLSearchParams | Record<string, string | number | boolean | string[] | number[] | boolean[]> | [string, string | number | boolean | string[] | number[] | boolean[]][];
|
|
199
|
+
}
|
|
200
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Subscriber } from './Subscriber';
|
|
2
|
+
import { ObservableNotification } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The {@link GlobalConfig} object for RxJS. It is used to configure things
|
|
5
|
+
* like how to react on unhandled errors.
|
|
6
|
+
*/
|
|
7
|
+
export declare const config: GlobalConfig;
|
|
8
|
+
/**
|
|
9
|
+
* The global configuration object for RxJS, used to configure things
|
|
10
|
+
* like how to react on unhandled errors. Accessible via {@link config}
|
|
11
|
+
* object.
|
|
12
|
+
*/
|
|
13
|
+
export interface GlobalConfig {
|
|
14
|
+
/**
|
|
15
|
+
* A registration point for unhandled errors from RxJS. These are errors that
|
|
16
|
+
* cannot were not handled by consuming code in the usual subscription path. For
|
|
17
|
+
* example, if you have this configured, and you subscribe to an observable without
|
|
18
|
+
* providing an error handler, errors from that subscription will end up here. This
|
|
19
|
+
* will _always_ be called asynchronously on another job in the runtime. This is because
|
|
20
|
+
* we do not want errors thrown in this user-configured handler to interfere with the
|
|
21
|
+
* behavior of the library.
|
|
22
|
+
*/
|
|
23
|
+
onUnhandledError: ((err: any) => void) | null;
|
|
24
|
+
/**
|
|
25
|
+
* A registration point for notifications that cannot be sent to subscribers because they
|
|
26
|
+
* have completed, errored or have been explicitly unsubscribed. By default, next, complete
|
|
27
|
+
* and error notifications sent to stopped subscribers are noops. However, sometimes callers
|
|
28
|
+
* might want a different behavior. For example, with sources that attempt to report errors
|
|
29
|
+
* to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead.
|
|
30
|
+
* This will _always_ be called asynchronously on another job in the runtime. This is because
|
|
31
|
+
* we do not want errors thrown in this user-configured handler to interfere with the
|
|
32
|
+
* behavior of the library.
|
|
33
|
+
*/
|
|
34
|
+
onStoppedNotification: ((notification: ObservableNotification<any>, subscriber: Subscriber<any>) => void) | null;
|
|
35
|
+
/**
|
|
36
|
+
* The promise constructor used by default for {@link Observable#toPromise toPromise} and {@link Observable#forEach forEach}
|
|
37
|
+
* methods.
|
|
38
|
+
*
|
|
39
|
+
* @deprecated As of version 8, RxJS will no longer support this sort of injection of a
|
|
40
|
+
* Promise constructor. If you need a Promise implementation other than native promises,
|
|
41
|
+
* please polyfill/patch Promise as you see appropriate. Will be removed in v8.
|
|
42
|
+
*/
|
|
43
|
+
Promise?: PromiseConstructorLike;
|
|
44
|
+
/**
|
|
45
|
+
* If true, turns on synchronous error rethrowing, which is a deprecated behavior
|
|
46
|
+
* in v6 and higher. This behavior enables bad patterns like wrapping a subscribe
|
|
47
|
+
* call in a try/catch block. It also enables producer interference, a nasty bug
|
|
48
|
+
* where a multicast can be broken for all observers by a downstream consumer with
|
|
49
|
+
* an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BUY TIME
|
|
50
|
+
* FOR MIGRATION REASONS.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated As of version 8, RxJS will no longer support synchronous throwing
|
|
53
|
+
* of unhandled errors. All errors will be thrown on a separate call stack to prevent bad
|
|
54
|
+
* behaviors described above. Will be removed in v8.
|
|
55
|
+
*/
|
|
56
|
+
useDeprecatedSynchronousErrorHandling: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* If true, enables an as-of-yet undocumented feature from v5: The ability to access
|
|
59
|
+
* `unsubscribe()` via `this` context in `next` functions created in observers passed
|
|
60
|
+
* to `subscribe`.
|
|
61
|
+
*
|
|
62
|
+
* This is being removed because the performance was severely problematic, and it could also cause
|
|
63
|
+
* issues when types other than POJOs are passed to subscribe as subscribers, as they will likely have
|
|
64
|
+
* their `this` context overwritten.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated As of version 8, RxJS will no longer support altering the
|
|
67
|
+
* context of next functions provided as part of an observer to Subscribe. Instead,
|
|
68
|
+
* you will have access to a subscription or a signal or token that will allow you to do things like
|
|
69
|
+
* unsubscribe and test closed status. Will be removed in v8.
|
|
70
|
+
*/
|
|
71
|
+
useDeprecatedNextContext: boolean;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from './Observable';
|
|
2
|
+
export interface FirstValueFromConfig<T> {
|
|
3
|
+
defaultValue: T;
|
|
4
|
+
}
|
|
5
|
+
export declare function firstValueFrom<T, D>(source: Observable<T>, config: FirstValueFromConfig<D>): Promise<T | D>;
|
|
6
|
+
export declare function firstValueFrom<T>(source: Observable<T>): Promise<T>;
|
|
7
|
+
//# sourceMappingURL=firstValueFrom.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from './Observable';
|
|
2
|
+
export interface LastValueFromConfig<T> {
|
|
3
|
+
defaultValue: T;
|
|
4
|
+
}
|
|
5
|
+
export declare function lastValueFrom<T, D>(source: Observable<T>, config: LastValueFromConfig<D>): Promise<T | D>;
|
|
6
|
+
export declare function lastValueFrom<T>(source: Observable<T>): Promise<T>;
|
|
7
|
+
//# sourceMappingURL=lastValueFrom.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Subject } from '../Subject';
|
|
2
|
+
import { Observable } from '../Observable';
|
|
3
|
+
import { Subscription } from '../Subscription';
|
|
4
|
+
/**
|
|
5
|
+
* @class ConnectableObservable<T>
|
|
6
|
+
* @deprecated Will be removed in v8. Use {@link connectable} to create a connectable observable.
|
|
7
|
+
* If you are using the `refCount` method of `ConnectableObservable`, use the {@link share} operator
|
|
8
|
+
* instead.
|
|
9
|
+
* Details: https://rxjs.dev/deprecations/multicasting
|
|
10
|
+
*/
|
|
11
|
+
export declare class ConnectableObservable<T> extends Observable<T> {
|
|
12
|
+
source: Observable<T>;
|
|
13
|
+
protected subjectFactory: () => Subject<T>;
|
|
14
|
+
protected _subject: Subject<T> | null;
|
|
15
|
+
protected _refCount: number;
|
|
16
|
+
protected _connection: Subscription | null;
|
|
17
|
+
/**
|
|
18
|
+
* @param source The source observable
|
|
19
|
+
* @param subjectFactory The factory that creates the subject used internally.
|
|
20
|
+
* @deprecated Will be removed in v8. Use {@link connectable} to create a connectable observable.
|
|
21
|
+
* `new ConnectableObservable(source, factory)` is equivalent to
|
|
22
|
+
* `connectable(source, { connector: factory })`.
|
|
23
|
+
* When the `refCount()` method is needed, the {@link share} operator should be used instead:
|
|
24
|
+
* `new ConnectableObservable(source, factory).refCount()` is equivalent to
|
|
25
|
+
* `source.pipe(share({ connector: factory }))`.
|
|
26
|
+
* Details: https://rxjs.dev/deprecations/multicasting
|
|
27
|
+
*/
|
|
28
|
+
constructor(source: Observable<T>, subjectFactory: () => Subject<T>);
|
|
29
|
+
protected getSubject(): Subject<T>;
|
|
30
|
+
protected _teardown(): void;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated {@link ConnectableObservable} will be removed in v8. Use {@link connectable} instead.
|
|
33
|
+
* Details: https://rxjs.dev/deprecations/multicasting
|
|
34
|
+
*/
|
|
35
|
+
connect(): Subscription;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated {@link ConnectableObservable} will be removed in v8. Use the {@link share} operator instead.
|
|
38
|
+
* Details: https://rxjs.dev/deprecations/multicasting
|
|
39
|
+
*/
|
|
40
|
+
refCount(): Observable<T>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=ConnectableObservable.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SchedulerLike } from '../types';
|
|
2
|
+
import { Observable } from '../Observable';
|
|
3
|
+
export declare function bindCallback(callbackFunc: (...args: any[]) => void, resultSelector: (...args: any[]) => any, scheduler?: SchedulerLike): (...args: any[]) => Observable<any>;
|
|
4
|
+
export declare function bindCallback<A extends readonly unknown[], R extends readonly unknown[]>(callbackFunc: (...args: [...A, (...res: R) => void]) => void, schedulerLike?: SchedulerLike): (...arg: A) => Observable<R extends [] ? void : R extends [any] ? R[0] : R>;
|
|
5
|
+
//# sourceMappingURL=bindCallback.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SchedulerLike } from '../types';
|
|
2
|
+
import { Observable } from '../Observable';
|
|
3
|
+
export declare function bindCallbackInternals(isNodeStyle: boolean, callbackFunc: any, resultSelector?: any, scheduler?: SchedulerLike): (...args: any[]) => Observable<unknown>;
|
|
4
|
+
//# sourceMappingURL=bindCallbackInternals.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Observable } from '../Observable';
|
|
2
|
+
import { SchedulerLike } from '../types';
|
|
3
|
+
export declare function bindNodeCallback(callbackFunc: (...args: any[]) => void, resultSelector: (...args: any[]) => any, scheduler?: SchedulerLike): (...args: any[]) => Observable<any>;
|
|
4
|
+
export declare function bindNodeCallback<A extends readonly unknown[], R extends readonly unknown[]>(callbackFunc: (...args: [...A, (err: any, ...res: R) => void]) => void, schedulerLike?: SchedulerLike): (...arg: A) => Observable<R extends [] ? void : R extends [any] ? R[0] : R>;
|
|
5
|
+
//# sourceMappingURL=bindNodeCallback.d.ts.map
|