@bleedingdev/modern-js-utils 3.9.0-ultramodern.2 → 3.9.0-ultramodern.21
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/applyOptionsChain.js +1 -1
- package/dist/cjs/cli/get/config.js +1 -1
- package/dist/cjs/cli/require.js +13 -8
- package/dist/cjs/compiled.js +1 -9
- package/dist/cjs/universal/index.js +5 -25
- package/dist/compiled/browserslist/index.js +37 -35
- package/dist/compiled/chokidar/types/index.d.ts +1 -1
- package/dist/compiled/commander/index.js +2 -3
- package/dist/compiled/debug/index.js +1 -1
- package/dist/compiled/execa/index.js +8 -6
- 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/fs-extra/index.js +39 -35
- package/dist/compiled/glob/index.js +17 -15
- package/dist/compiled/inquirer/index.js +29 -25
- 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/js-yaml/index.js +1 -2
- package/dist/compiled/js-yaml/index.mjs +1 -2
- package/dist/compiled/lodash/index.d.ts +1 -11
- package/dist/compiled/minimist/index.js +1 -2
- package/dist/compiled/ora/index.js +17 -15
- package/dist/compiled/semver/index.js +12 -13
- package/dist/compiled/signale/index.js +3 -3
- package/dist/compiled/upath/index.js +15 -11
- package/dist/compiled/upath/upath.d.ts +2 -2
- package/dist/compiled/webpack-chain/index.js +5 -3
- package/dist/esm/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm/cli/get/config.mjs +1 -1
- package/dist/esm/cli/require.mjs +14 -6
- package/dist/esm/compiled.mjs +1 -10
- package/dist/esm/universal/index.mjs +0 -2
- package/dist/esm-node/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm-node/cli/get/config.mjs +1 -1
- package/dist/esm-node/cli/require.mjs +14 -6
- package/dist/esm-node/compiled.mjs +1 -9
- package/dist/esm-node/universal/index.mjs +0 -2
- package/dist/types/cli/require.d.ts +0 -1
- package/dist/types/universal/index.d.ts +0 -2
- package/package.json +7 -6
- package/rslib.config.mts +2 -0
- package/dist/cjs/universal/backend-federation-contract/build-artifact.js +0 -185
- package/dist/cjs/universal/backend-federation-contract/constants.js +0 -92
- package/dist/cjs/universal/backend-federation-contract/delivery-unit.js +0 -130
- package/dist/cjs/universal/backend-federation-contract/index.js +0 -137
- package/dist/cjs/universal/backend-federation-contract/metadata.js +0 -133
- package/dist/cjs/universal/backend-federation-contract/types.js +0 -18
- package/dist/cjs/universal/backend-federation-contract/validation-core.js +0 -85
- package/dist/cjs/universal/surface-resolution/env-static-provider.js +0 -318
- package/dist/cjs/universal/surface-resolution/index.js +0 -69
- package/dist/cjs/universal/surface-resolution/surface-ref.js +0 -132
- package/dist/cjs/universal/surface-resolution/types.js +0 -18
- package/dist/cjs/universal/surface-resolution/validation.js +0 -202
- package/dist/esm/rslib-runtime~1.mjs +0 -12
- package/dist/esm/universal/backend-federation-contract/build-artifact.mjs +0 -135
- package/dist/esm/universal/backend-federation-contract/constants.mjs +0 -18
- package/dist/esm/universal/backend-federation-contract/delivery-unit.mjs +0 -74
- package/dist/esm/universal/backend-federation-contract/index.mjs +0 -5
- package/dist/esm/universal/backend-federation-contract/metadata.mjs +0 -80
- package/dist/esm/universal/backend-federation-contract/types.mjs +0 -0
- package/dist/esm/universal/backend-federation-contract/validation-core.mjs +0 -29
- package/dist/esm/universal/surface-resolution/env-static-provider.mjs +0 -274
- package/dist/esm/universal/surface-resolution/index.mjs +0 -3
- package/dist/esm/universal/surface-resolution/surface-ref.mjs +0 -88
- package/dist/esm/universal/surface-resolution/types.mjs +0 -0
- package/dist/esm/universal/surface-resolution/validation.mjs +0 -155
- package/dist/esm-node/universal/backend-federation-contract/build-artifact.mjs +0 -136
- package/dist/esm-node/universal/backend-federation-contract/constants.mjs +0 -19
- package/dist/esm-node/universal/backend-federation-contract/delivery-unit.mjs +0 -75
- package/dist/esm-node/universal/backend-federation-contract/index.mjs +0 -6
- package/dist/esm-node/universal/backend-federation-contract/metadata.mjs +0 -81
- package/dist/esm-node/universal/backend-federation-contract/types.mjs +0 -1
- package/dist/esm-node/universal/backend-federation-contract/validation-core.mjs +0 -30
- package/dist/esm-node/universal/surface-resolution/env-static-provider.mjs +0 -275
- package/dist/esm-node/universal/surface-resolution/index.mjs +0 -4
- package/dist/esm-node/universal/surface-resolution/surface-ref.mjs +0 -89
- package/dist/esm-node/universal/surface-resolution/types.mjs +0 -1
- package/dist/esm-node/universal/surface-resolution/validation.mjs +0 -156
- package/dist/types/universal/backend-federation-contract/build-artifact.d.ts +0 -9
- package/dist/types/universal/backend-federation-contract/constants.d.ts +0 -14
- package/dist/types/universal/backend-federation-contract/delivery-unit.d.ts +0 -9
- package/dist/types/universal/backend-federation-contract/index.d.ts +0 -7
- package/dist/types/universal/backend-federation-contract/metadata.d.ts +0 -7
- package/dist/types/universal/backend-federation-contract/types.d.ts +0 -60
- package/dist/types/universal/backend-federation-contract/validation-core.d.ts +0 -8
- package/dist/types/universal/surface-resolution/env-static-provider.d.ts +0 -107
- package/dist/types/universal/surface-resolution/index.d.ts +0 -4
- package/dist/types/universal/surface-resolution/surface-ref.d.ts +0 -72
- package/dist/types/universal/surface-resolution/types.d.ts +0 -102
- package/dist/types/universal/surface-resolution/validation.d.ts +0 -53
|
@@ -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
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Observable } from '../Observable';
|
|
2
|
+
import { ObservableInput, SchedulerLike, ObservedValueOf, ObservableInputTuple } from '../types';
|
|
3
|
+
import { Subscriber } from '../Subscriber';
|
|
4
|
+
import { AnyCatcher } from '../AnyCatcher';
|
|
5
|
+
/**
|
|
6
|
+
* You have passed `any` here, we can't figure out if it is
|
|
7
|
+
* an array or an object, so you're getting `unknown`. Use better types.
|
|
8
|
+
* @param arg Something typed as `any`
|
|
9
|
+
*/
|
|
10
|
+
export declare function combineLatest<T extends AnyCatcher>(arg: T): Observable<unknown>;
|
|
11
|
+
export declare function combineLatest(sources: []): Observable<never>;
|
|
12
|
+
export declare function combineLatest<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>]): Observable<A>;
|
|
13
|
+
/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
|
|
14
|
+
export declare function combineLatest<A extends readonly unknown[], R>(sources: readonly [...ObservableInputTuple<A>], resultSelector: (...values: A) => R, scheduler: SchedulerLike): Observable<R>;
|
|
15
|
+
export declare function combineLatest<A extends readonly unknown[], R>(sources: readonly [...ObservableInputTuple<A>], resultSelector: (...values: A) => R): Observable<R>;
|
|
16
|
+
/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
|
|
17
|
+
export declare function combineLatest<A extends readonly unknown[]>(sources: readonly [...ObservableInputTuple<A>], scheduler: SchedulerLike): Observable<A>;
|
|
18
|
+
/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */
|
|
19
|
+
export declare function combineLatest<A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): Observable<A>;
|
|
20
|
+
/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
|
|
21
|
+
export declare function combineLatest<A extends readonly unknown[], R>(...sourcesAndResultSelectorAndScheduler: [...ObservableInputTuple<A>, (...values: A) => R, SchedulerLike]): Observable<R>;
|
|
22
|
+
/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */
|
|
23
|
+
export declare function combineLatest<A extends readonly unknown[], R>(...sourcesAndResultSelector: [...ObservableInputTuple<A>, (...values: A) => R]): Observable<R>;
|
|
24
|
+
/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */
|
|
25
|
+
export declare function combineLatest<A extends readonly unknown[]>(...sourcesAndScheduler: [...ObservableInputTuple<A>, SchedulerLike]): Observable<A>;
|
|
26
|
+
export declare function combineLatest(sourcesObject: {
|
|
27
|
+
[K in any]: never;
|
|
28
|
+
}): Observable<never>;
|
|
29
|
+
export declare function combineLatest<T extends Record<string, ObservableInput<any>>>(sourcesObject: T): Observable<{
|
|
30
|
+
[K in keyof T]: ObservedValueOf<T[K]>;
|
|
31
|
+
}>;
|
|
32
|
+
export declare function combineLatestInit(observables: ObservableInput<any>[], scheduler?: SchedulerLike, valueTransform?: (values: any[]) => any): (subscriber: Subscriber<any>) => void;
|
|
33
|
+
//# sourceMappingURL=combineLatest.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Observable } from '../Observable';
|
|
2
|
+
import { ObservableInputTuple, SchedulerLike } from '../types';
|
|
3
|
+
export declare function concat<T extends readonly unknown[]>(...inputs: [...ObservableInputTuple<T>]): Observable<T[number]>;
|
|
4
|
+
export declare function concat<T extends readonly unknown[]>(...inputsAndScheduler: [...ObservableInputTuple<T>, SchedulerLike]): Observable<T[number]>;
|
|
5
|
+
//# sourceMappingURL=concat.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Connectable, ObservableInput, SubjectLike } from '../types';
|
|
2
|
+
export interface ConnectableConfig<T> {
|
|
3
|
+
/**
|
|
4
|
+
* A factory function used to create the Subject through which the source
|
|
5
|
+
* is multicast. By default this creates a {@link Subject}.
|
|
6
|
+
*/
|
|
7
|
+
connector: () => SubjectLike<T>;
|
|
8
|
+
/**
|
|
9
|
+
* If true, the resulting observable will reset internal state upon disconnection
|
|
10
|
+
* and return to a "cold" state. This allows the resulting observable to be
|
|
11
|
+
* reconnected.
|
|
12
|
+
* If false, upon disconnection, the connecting subject will remain the
|
|
13
|
+
* connecting subject, meaning the resulting observable will not go "cold" again,
|
|
14
|
+
* and subsequent repeats or resubscriptions will resubscribe to that same subject.
|
|
15
|
+
*/
|
|
16
|
+
resetOnDisconnect?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Creates an observable that multicasts once `connect()` is called on it.
|
|
20
|
+
*
|
|
21
|
+
* @param source The observable source to make connectable.
|
|
22
|
+
* @param config The configuration object for `connectable`.
|
|
23
|
+
* @returns A "connectable" observable, that has a `connect()` method, that you must call to
|
|
24
|
+
* connect the source to all consumers through the subject provided as the connector.
|
|
25
|
+
*/
|
|
26
|
+
export declare function connectable<T>(source: ObservableInput<T>, config?: ConnectableConfig<T>): Connectable<T>;
|
|
27
|
+
//# sourceMappingURL=connectable.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Observable } from '../Observable';
|
|
2
|
+
import { ObservedValueOf, ObservableInput } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Creates an Observable that, on subscribe, calls an Observable factory to
|
|
5
|
+
* make an Observable for each new Observer.
|
|
6
|
+
*
|
|
7
|
+
* <span class="informal">Creates the Observable lazily, that is, only when it
|
|
8
|
+
* is subscribed.
|
|
9
|
+
* </span>
|
|
10
|
+
*
|
|
11
|
+
* 
|
|
12
|
+
*
|
|
13
|
+
* `defer` allows you to create an Observable only when the Observer
|
|
14
|
+
* subscribes. It waits until an Observer subscribes to it, calls the given
|
|
15
|
+
* factory function to get an Observable -- where a factory function typically
|
|
16
|
+
* generates a new Observable -- and subscribes the Observer to this Observable.
|
|
17
|
+
* In case the factory function returns a falsy value, then EMPTY is used as
|
|
18
|
+
* Observable instead. Last but not least, an exception during the factory
|
|
19
|
+
* function call is transferred to the Observer by calling `error`.
|
|
20
|
+
*
|
|
21
|
+
* ## Example
|
|
22
|
+
*
|
|
23
|
+
* Subscribe to either an Observable of clicks or an Observable of interval, at random
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* import { defer, fromEvent, interval } from '../..';
|
|
27
|
+
*
|
|
28
|
+
* const clicksOrInterval = defer(() => {
|
|
29
|
+
* return Math.random() > 0.5
|
|
30
|
+
* ? fromEvent(document, 'click')
|
|
31
|
+
* : interval(1000);
|
|
32
|
+
* });
|
|
33
|
+
* clicksOrInterval.subscribe(x => console.log(x));
|
|
34
|
+
*
|
|
35
|
+
* // Results in the following behavior:
|
|
36
|
+
* // If the result of Math.random() is greater than 0.5 it will listen
|
|
37
|
+
* // for clicks anywhere on the "document"; when document is clicked it
|
|
38
|
+
* // will log a MouseEvent object to the console. If the result is less
|
|
39
|
+
* // than 0.5 it will emit ascending numbers, one every second(1000ms).
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link Observable}
|
|
43
|
+
*
|
|
44
|
+
* @param observableFactory The Observable factory function to invoke for each
|
|
45
|
+
* Observer that subscribes to the output Observable. May also return any
|
|
46
|
+
* `ObservableInput`, which will be converted on the fly to an Observable.
|
|
47
|
+
* @return An Observable whose Observers' subscriptions trigger an invocation of the
|
|
48
|
+
* given Observable factory function.
|
|
49
|
+
*/
|
|
50
|
+
export declare function defer<R extends ObservableInput<any>>(observableFactory: () => R): Observable<ObservedValueOf<R>>;
|
|
51
|
+
//# sourceMappingURL=defer.d.ts.map
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { AnonymousSubject } from '../../Subject';
|
|
2
|
+
import { Observable } from '../../Observable';
|
|
3
|
+
import { Operator } from '../../Operator';
|
|
4
|
+
import { Observer, NextObserver } from '../../types';
|
|
5
|
+
/**
|
|
6
|
+
* WebSocketSubjectConfig is a plain Object that allows us to make our
|
|
7
|
+
* webSocket configurable.
|
|
8
|
+
*
|
|
9
|
+
* <span class="informal">Provides flexibility to {@link webSocket}</span>
|
|
10
|
+
*
|
|
11
|
+
* It defines a set of properties to provide custom behavior in specific
|
|
12
|
+
* moments of the socket's lifecycle. When the connection opens we can
|
|
13
|
+
* use `openObserver`, when the connection is closed `closeObserver`, if we
|
|
14
|
+
* are interested in listening for data coming from server: `deserializer`,
|
|
15
|
+
* which allows us to customize the deserialization strategy of data before passing it
|
|
16
|
+
* to the socket client. By default, `deserializer` is going to apply `JSON.parse` to each message coming
|
|
17
|
+
* from the Server.
|
|
18
|
+
*
|
|
19
|
+
* ## Examples
|
|
20
|
+
*
|
|
21
|
+
* **deserializer**, the default for this property is `JSON.parse` but since there are just two options
|
|
22
|
+
* for incoming data, either be text or binary data. We can apply a custom deserialization strategy
|
|
23
|
+
* or just simply skip the default behaviour.
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* import { webSocket } from 'rxjs/webSocket';
|
|
27
|
+
*
|
|
28
|
+
* const wsSubject = webSocket({
|
|
29
|
+
* url: 'ws://localhost:8081',
|
|
30
|
+
* //Apply any transformation of your choice.
|
|
31
|
+
* deserializer: ({ data }) => data
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* wsSubject.subscribe(console.log);
|
|
35
|
+
*
|
|
36
|
+
* // Let's suppose we have this on the Server: ws.send('This is a msg from the server')
|
|
37
|
+
* //output
|
|
38
|
+
* //
|
|
39
|
+
* // This is a msg from the server
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* **serializer** allows us to apply custom serialization strategy but for the outgoing messages.
|
|
43
|
+
*
|
|
44
|
+
* ```ts
|
|
45
|
+
* import { webSocket } from 'rxjs/webSocket';
|
|
46
|
+
*
|
|
47
|
+
* const wsSubject = webSocket({
|
|
48
|
+
* url: 'ws://localhost:8081',
|
|
49
|
+
* // Apply any transformation of your choice.
|
|
50
|
+
* serializer: msg => JSON.stringify({ channel: 'webDevelopment', msg: msg })
|
|
51
|
+
* });
|
|
52
|
+
*
|
|
53
|
+
* wsSubject.subscribe(() => subject.next('msg to the server'));
|
|
54
|
+
*
|
|
55
|
+
* // Let's suppose we have this on the Server:
|
|
56
|
+
* // ws.on('message', msg => console.log);
|
|
57
|
+
* // ws.send('This is a msg from the server');
|
|
58
|
+
* // output at server side:
|
|
59
|
+
* //
|
|
60
|
+
* // {"channel":"webDevelopment","msg":"msg to the server"}
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* **closeObserver** allows us to set a custom error when an error raises up.
|
|
64
|
+
*
|
|
65
|
+
* ```ts
|
|
66
|
+
* import { webSocket } from 'rxjs/webSocket';
|
|
67
|
+
*
|
|
68
|
+
* const wsSubject = webSocket({
|
|
69
|
+
* url: 'ws://localhost:8081',
|
|
70
|
+
* closeObserver: {
|
|
71
|
+
* next() {
|
|
72
|
+
* const customError = { code: 6666, reason: 'Custom evil reason' }
|
|
73
|
+
* console.log(`code: ${ customError.code }, reason: ${ customError.reason }`);
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
76
|
+
* });
|
|
77
|
+
*
|
|
78
|
+
* // output
|
|
79
|
+
* // code: 6666, reason: Custom evil reason
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* **openObserver**, Let's say we need to make some kind of init task before sending/receiving msgs to the
|
|
83
|
+
* webSocket or sending notification that the connection was successful, this is when
|
|
84
|
+
* openObserver is useful for.
|
|
85
|
+
*
|
|
86
|
+
* ```ts
|
|
87
|
+
* import { webSocket } from 'rxjs/webSocket';
|
|
88
|
+
*
|
|
89
|
+
* const wsSubject = webSocket({
|
|
90
|
+
* url: 'ws://localhost:8081',
|
|
91
|
+
* openObserver: {
|
|
92
|
+
* next: () => {
|
|
93
|
+
* console.log('Connection ok');
|
|
94
|
+
* }
|
|
95
|
+
* }
|
|
96
|
+
* });
|
|
97
|
+
*
|
|
98
|
+
* // output
|
|
99
|
+
* // Connection ok
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export interface WebSocketSubjectConfig<T> {
|
|
103
|
+
/** The url of the socket server to connect to */
|
|
104
|
+
url: string;
|
|
105
|
+
/** The protocol to use to connect */
|
|
106
|
+
protocol?: string | Array<string>;
|
|
107
|
+
/** @deprecated Will be removed in v8. Use {@link deserializer} instead. */
|
|
108
|
+
resultSelector?: (e: MessageEvent) => T;
|
|
109
|
+
/**
|
|
110
|
+
* A serializer used to create messages from passed values before the
|
|
111
|
+
* messages are sent to the server. Defaults to JSON.stringify.
|
|
112
|
+
*/
|
|
113
|
+
serializer?: (value: T) => WebSocketMessage;
|
|
114
|
+
/**
|
|
115
|
+
* A deserializer used for messages arriving on the socket from the
|
|
116
|
+
* server. Defaults to JSON.parse.
|
|
117
|
+
*/
|
|
118
|
+
deserializer?: (e: MessageEvent) => T;
|
|
119
|
+
/**
|
|
120
|
+
* An Observer that watches when open events occur on the underlying web socket.
|
|
121
|
+
*/
|
|
122
|
+
openObserver?: NextObserver<Event>;
|
|
123
|
+
/**
|
|
124
|
+
* An Observer that watches when close events occur on the underlying web socket
|
|
125
|
+
*/
|
|
126
|
+
closeObserver?: NextObserver<CloseEvent>;
|
|
127
|
+
/**
|
|
128
|
+
* An Observer that watches when a close is about to occur due to
|
|
129
|
+
* unsubscription.
|
|
130
|
+
*/
|
|
131
|
+
closingObserver?: NextObserver<void>;
|
|
132
|
+
/**
|
|
133
|
+
* A WebSocket constructor to use. This is useful for situations like using a
|
|
134
|
+
* WebSocket impl in Node (WebSocket is a DOM API), or for mocking a WebSocket
|
|
135
|
+
* for testing purposes
|
|
136
|
+
*/
|
|
137
|
+
WebSocketCtor?: {
|
|
138
|
+
new (url: string, protocols?: string | string[]): WebSocket;
|
|
139
|
+
};
|
|
140
|
+
/** Sets the `binaryType` property of the underlying WebSocket. */
|
|
141
|
+
binaryType?: 'blob' | 'arraybuffer';
|
|
142
|
+
}
|
|
143
|
+
export declare type WebSocketMessage = string | ArrayBuffer | Blob | ArrayBufferView;
|
|
144
|
+
export declare class WebSocketSubject<T> extends AnonymousSubject<T> {
|
|
145
|
+
private _config;
|
|
146
|
+
private _socket;
|
|
147
|
+
constructor(urlConfigOrSource: string | WebSocketSubjectConfig<T> | Observable<T>, destination?: Observer<T>);
|
|
148
|
+
/** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
|
|
149
|
+
lift<R>(operator: Operator<T, R>): WebSocketSubject<R>;
|
|
150
|
+
private _resetState;
|
|
151
|
+
/**
|
|
152
|
+
* Creates an {@link Observable}, that when subscribed to, sends a message,
|
|
153
|
+
* defined by the `subMsg` function, to the server over the socket to begin a
|
|
154
|
+
* subscription to data over that socket. Once data arrives, the
|
|
155
|
+
* `messageFilter` argument will be used to select the appropriate data for
|
|
156
|
+
* the resulting Observable. When finalization occurs, either due to
|
|
157
|
+
* unsubscription, completion, or error, a message defined by the `unsubMsg`
|
|
158
|
+
* argument will be sent to the server over the WebSocketSubject.
|
|
159
|
+
*
|
|
160
|
+
* @param subMsg A function to generate the subscription message to be sent to
|
|
161
|
+
* the server. This will still be processed by the serializer in the
|
|
162
|
+
* WebSocketSubject's config. (Which defaults to JSON serialization)
|
|
163
|
+
* @param unsubMsg A function to generate the unsubscription message to be
|
|
164
|
+
* sent to the server at finalization. This will still be processed by the
|
|
165
|
+
* serializer in the WebSocketSubject's config.
|
|
166
|
+
* @param messageFilter A predicate for selecting the appropriate messages
|
|
167
|
+
* from the server for the output stream.
|
|
168
|
+
*/
|
|
169
|
+
multiplex(subMsg: () => any, unsubMsg: () => any, messageFilter: (value: T) => boolean): Observable<T>;
|
|
170
|
+
private _connectSocket;
|
|
171
|
+
unsubscribe(): void;
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=WebSocketSubject.d.ts.map
|