@bleedingdev/modern-js-utils 3.9.0-ultramodern.1 → 3.9.0-ultramodern.11
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/cjs/universal/index.js +5 -25
- 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/universal/index.mjs +0 -2
- package/dist/esm-node/cli/require.mjs +10 -1
- package/dist/esm-node/universal/index.mjs +0 -2
- 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/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,82 @@
|
|
|
1
|
+
import Prompt = require('./base');
|
|
2
|
+
import inquirer = require('../..');
|
|
3
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The question-options for the `InputPrompt<T>`.
|
|
7
|
+
*/
|
|
8
|
+
type Question = inquirer.InputQuestionOptions<inquirer.Answers>;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents a prompt which allows the user to type an answer.
|
|
12
|
+
*
|
|
13
|
+
* @template TQuestion
|
|
14
|
+
* The options for the question.
|
|
15
|
+
*/
|
|
16
|
+
declare class InputPrompt<TQuestion extends Question = Question> extends Prompt<TQuestion> {
|
|
17
|
+
/**
|
|
18
|
+
* Resolves the value of the prompt.
|
|
19
|
+
*/
|
|
20
|
+
protected done: (value: any) => void;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The answer to this prompt.
|
|
24
|
+
*/
|
|
25
|
+
protected answer: any;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Initializes a new instance of the `InputPrompt<T>` class.
|
|
29
|
+
*
|
|
30
|
+
* @param question
|
|
31
|
+
* The question to prompt the user to answer.
|
|
32
|
+
*
|
|
33
|
+
* @param readLine
|
|
34
|
+
* An object for performing read from and write to the console.
|
|
35
|
+
*
|
|
36
|
+
* @param answers
|
|
37
|
+
* The answer-object.
|
|
38
|
+
*/
|
|
39
|
+
constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Renders the prompt.
|
|
43
|
+
*
|
|
44
|
+
* @param error
|
|
45
|
+
* The error to render.
|
|
46
|
+
*/
|
|
47
|
+
protected render(error?: string): void;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Filters the specified `input`.
|
|
51
|
+
*
|
|
52
|
+
* @param input
|
|
53
|
+
* The input to filter.
|
|
54
|
+
*
|
|
55
|
+
* @returns
|
|
56
|
+
* The filtered input.
|
|
57
|
+
*/
|
|
58
|
+
protected filterInput(input: string): string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Handles the `success`-event of the prompt.
|
|
62
|
+
*
|
|
63
|
+
* @param eventArgs
|
|
64
|
+
* An object which contains eventr-data.
|
|
65
|
+
*/
|
|
66
|
+
protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Handles the `error`-event of the prompt.
|
|
70
|
+
*
|
|
71
|
+
* @param eventArgs
|
|
72
|
+
* An object which contains event-data.
|
|
73
|
+
*/
|
|
74
|
+
protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Handles the `keypress`-event of the prompt.
|
|
78
|
+
*/
|
|
79
|
+
protected onKeypress(): void;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export = InputPrompt;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import Prompt = require('./base');
|
|
2
|
+
import { Answers, ListQuestionOptions } from '../..';
|
|
3
|
+
import Paginator = require('../utils/paginator');
|
|
4
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The question-options for the `ListPrompt<T>`.
|
|
8
|
+
*/
|
|
9
|
+
type Question = ListQuestionOptions;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents a prompt which provides a list to choose an answer from.
|
|
13
|
+
*
|
|
14
|
+
* @template TQuestion
|
|
15
|
+
* The options for the question.
|
|
16
|
+
*/
|
|
17
|
+
declare class ListPrompt<TQuestion extends Question = Question> extends Prompt<TQuestion> {
|
|
18
|
+
/**
|
|
19
|
+
* Resolves the value of the prompt.
|
|
20
|
+
*/
|
|
21
|
+
protected done: (value: any) => void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Gets or sets a value indicating whether the prompt has been rendered the first time.
|
|
25
|
+
*/
|
|
26
|
+
protected firstRender: boolean;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The index of the selected choice.
|
|
30
|
+
*/
|
|
31
|
+
protected selected: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets or sets an object for paginating the content.
|
|
35
|
+
*/
|
|
36
|
+
protected paginator: Paginator;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initializes a new instance of the `ListPrompt<T>` class.
|
|
40
|
+
*
|
|
41
|
+
* @param question
|
|
42
|
+
* The question to prompt the user to answer.
|
|
43
|
+
*
|
|
44
|
+
* @param readLine
|
|
45
|
+
* An object for performing read from and write to the console.
|
|
46
|
+
*
|
|
47
|
+
* @param answers
|
|
48
|
+
* The answer-object.
|
|
49
|
+
*/
|
|
50
|
+
constructor(question: TQuestion, readLine: ReadlineInterface, answers: Answers);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Renders the prompt.
|
|
54
|
+
*/
|
|
55
|
+
protected render(): void;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Gets the current value of the prompt.
|
|
59
|
+
*/
|
|
60
|
+
protected getCurrentValue(): any;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Handles the `upKey`-event.
|
|
64
|
+
*/
|
|
65
|
+
protected onUpKey(): void;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Handles the `downKey`-event.
|
|
69
|
+
*/
|
|
70
|
+
protected onDownKey(): void;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Handles the `numberKey`-event.
|
|
74
|
+
*
|
|
75
|
+
* @param input
|
|
76
|
+
* The number that has been pressed.
|
|
77
|
+
*/
|
|
78
|
+
protected onNumberKey(input: number): void;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Handles the `success`-event of the prompt.
|
|
82
|
+
*
|
|
83
|
+
* @param value
|
|
84
|
+
* The value of the prompt.
|
|
85
|
+
*/
|
|
86
|
+
protected onSubmit(value: any): void;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export = ListPrompt;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import InputPrompt = require('./input');
|
|
2
|
+
import { Answers, NumberQuestionOptions } from '../..';
|
|
3
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The question for the `NumberPrompt<T>`.
|
|
7
|
+
*/
|
|
8
|
+
type Question = NumberQuestionOptions;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Provides a prompt which allows the user to type a number as answer.
|
|
12
|
+
*
|
|
13
|
+
* @template TQuestion
|
|
14
|
+
* The options for the question.
|
|
15
|
+
*/
|
|
16
|
+
declare class NumberPrompt<TQuestion extends Question = Question> extends InputPrompt<TQuestion> {
|
|
17
|
+
/**
|
|
18
|
+
* Initializes a new instance of the `NumberPrompt<T>` class.
|
|
19
|
+
*
|
|
20
|
+
* @param question
|
|
21
|
+
* The question to prompt the user to answer.
|
|
22
|
+
*
|
|
23
|
+
* @param readLine
|
|
24
|
+
* An object for performing read from and write to the console.
|
|
25
|
+
*
|
|
26
|
+
* @param answers
|
|
27
|
+
* The answer-object.
|
|
28
|
+
*/
|
|
29
|
+
constructor(question: TQuestion, readLine: ReadlineInterface, answers: Answers);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export = NumberPrompt;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import Prompt = require('./base');
|
|
2
|
+
import inquirer = require('../..');
|
|
3
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The question for the `PasswordPrompt<T>`.
|
|
7
|
+
*/
|
|
8
|
+
type Question = inquirer.PasswordQuestionOptions<inquirer.Answers>;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents a prompt which allows the user to type a password.
|
|
12
|
+
*
|
|
13
|
+
* @template TQuestion
|
|
14
|
+
* The options for the question.
|
|
15
|
+
*/
|
|
16
|
+
declare class PasswordPrompt<TQuestion extends Question = Question> extends Prompt<TQuestion> {
|
|
17
|
+
/**
|
|
18
|
+
* Resolves the value of the prompt.
|
|
19
|
+
*/
|
|
20
|
+
protected done: (value: any) => void;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The answer to this prompt.
|
|
24
|
+
*/
|
|
25
|
+
protected answer: any;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Initializes a new instance of the `PasswordPrompt<T>` class.
|
|
29
|
+
*
|
|
30
|
+
* @param question
|
|
31
|
+
* The question to prompt the user to answer.
|
|
32
|
+
*
|
|
33
|
+
* @param readLine
|
|
34
|
+
* An object for performing read from and write to the console.
|
|
35
|
+
*
|
|
36
|
+
* @param answers
|
|
37
|
+
* The answer-object.
|
|
38
|
+
*/
|
|
39
|
+
constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Renders the prompt.
|
|
43
|
+
*
|
|
44
|
+
* @param error
|
|
45
|
+
* The error to render.
|
|
46
|
+
*/
|
|
47
|
+
protected render(error?: string): void;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Filters the specified `input`.
|
|
51
|
+
*
|
|
52
|
+
* @param input
|
|
53
|
+
* The input to filter.
|
|
54
|
+
*
|
|
55
|
+
* @returns
|
|
56
|
+
* The filtered input.
|
|
57
|
+
*/
|
|
58
|
+
protected filterInput(input: string): string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Handles the `keypress`-event of the prompt.
|
|
62
|
+
*/
|
|
63
|
+
protected onKeypress(): void;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Handles the `success`-event of the prompt.
|
|
67
|
+
*
|
|
68
|
+
* @param eventArgs
|
|
69
|
+
* An object which contains event-data.
|
|
70
|
+
*/
|
|
71
|
+
protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Handles the `error`-event of the prompt.
|
|
75
|
+
*
|
|
76
|
+
* @param eventArgs
|
|
77
|
+
* An object which contains event-data.
|
|
78
|
+
*/
|
|
79
|
+
protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export = PasswordPrompt;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import inquirer = require('../..');
|
|
2
|
+
import Prompt = require('./base');
|
|
3
|
+
import Paginator = require('../utils/paginator');
|
|
4
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The question for the `RawListPrompt<T>`.
|
|
8
|
+
*/
|
|
9
|
+
type Question = inquirer.RawListQuestionOptions<inquirer.Answers>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents a prompt which provides a list to choose an answer from.
|
|
13
|
+
*
|
|
14
|
+
* @template TQuestion
|
|
15
|
+
* The options for the question.
|
|
16
|
+
*/
|
|
17
|
+
declare class RawListPrompt<TQuestion extends Question = Question> extends Prompt<TQuestion> {
|
|
18
|
+
/**
|
|
19
|
+
* Resolves the value of the prompt.
|
|
20
|
+
*/
|
|
21
|
+
protected done: (value: any) => void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The index of the selected choice.
|
|
25
|
+
*/
|
|
26
|
+
protected selected: number;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets or sets the default index.
|
|
30
|
+
*/
|
|
31
|
+
protected rawDefault: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets or sets an object for paginating the content.
|
|
35
|
+
*/
|
|
36
|
+
protected paginator: Paginator;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initializes a new instance of the `RawListPrompt<T>` class.
|
|
40
|
+
*
|
|
41
|
+
* @param question
|
|
42
|
+
* The question to prompt the user to answer.
|
|
43
|
+
*
|
|
44
|
+
* @param readLine
|
|
45
|
+
* An object for performing read from and write to the console.
|
|
46
|
+
*
|
|
47
|
+
* @param answers
|
|
48
|
+
* The answer-object.
|
|
49
|
+
*/
|
|
50
|
+
constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Renders the prompt.
|
|
54
|
+
*
|
|
55
|
+
* @param error
|
|
56
|
+
* The error to render.
|
|
57
|
+
*/
|
|
58
|
+
protected render(error?: string): void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Gets the value of the specified `index`.
|
|
62
|
+
*
|
|
63
|
+
* @param index
|
|
64
|
+
* The index to get the value for.
|
|
65
|
+
*
|
|
66
|
+
* @returns
|
|
67
|
+
* The value of the specified `index`.
|
|
68
|
+
*/
|
|
69
|
+
protected getCurrentValue(index: number): any;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Handles the `Keypress`-event of the prompt.
|
|
73
|
+
*/
|
|
74
|
+
protected onKeypress(): void;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Handles the `UpdKey`-event of the prompt.
|
|
78
|
+
*/
|
|
79
|
+
protected onUpKey(): void;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Handles the `DownKey`-event of the prompt.
|
|
83
|
+
*/
|
|
84
|
+
protected onDownKey(): void;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Handles the `ArrowKey`-event of the prompt.
|
|
88
|
+
*
|
|
89
|
+
* @param type
|
|
90
|
+
* A value indicating whether the up or the down-arrow is being pressed.
|
|
91
|
+
*/
|
|
92
|
+
protected onArrowKey(type: 'up' | 'down'): void;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Handles the `success`-event of the prompt.
|
|
96
|
+
*
|
|
97
|
+
* @param eventArgs
|
|
98
|
+
* An object which contains event-data.
|
|
99
|
+
*/
|
|
100
|
+
protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Handles the `error`-event of the prompt.
|
|
104
|
+
*
|
|
105
|
+
* @param eventArgs
|
|
106
|
+
* An object which contains event-data.
|
|
107
|
+
*/
|
|
108
|
+
protected onError(): void;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export = RawListPrompt;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Interface as ReadlineInterface, Key } from 'readline';
|
|
2
|
+
import { Observable } from '../../rxjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Provides a description about a key.
|
|
6
|
+
*/
|
|
7
|
+
interface KeyDescriptor {
|
|
8
|
+
/**
|
|
9
|
+
* The value of the key.
|
|
10
|
+
*/
|
|
11
|
+
value: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Thedescription of the key.
|
|
15
|
+
*/
|
|
16
|
+
key: Key;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A set of events.
|
|
21
|
+
*/
|
|
22
|
+
interface Events {
|
|
23
|
+
/**
|
|
24
|
+
* The event-flow of the `line`-event of the readline-object.
|
|
25
|
+
*/
|
|
26
|
+
line: Observable<string>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The event-flow of the `keypress`-event of the readline-object.
|
|
30
|
+
*/
|
|
31
|
+
keypress: Observable<KeyDescriptor>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The event-flow of the `normalizedUpKey`-event.
|
|
35
|
+
*/
|
|
36
|
+
normalizedUpKey: Observable<KeyDescriptor>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The event-flow of the `normalizedDownKey`-event.
|
|
40
|
+
*/
|
|
41
|
+
normalizedDownKey: Observable<KeyDescriptor>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The event-flow of the `numberKey`-event.
|
|
45
|
+
*/
|
|
46
|
+
numberKey: Observable<KeyDescriptor>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The event-flow of the `spaceKey`-event.
|
|
50
|
+
*/
|
|
51
|
+
spaceKey: Observable<KeyDescriptor>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The event-flow of the `aKey`-event.
|
|
55
|
+
*/
|
|
56
|
+
aKey: Observable<KeyDescriptor>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The event-flow of the `iKey`-event.
|
|
60
|
+
*/
|
|
61
|
+
iKey: Observable<KeyDescriptor>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Observes a readline-object.
|
|
66
|
+
*
|
|
67
|
+
* @param readline
|
|
68
|
+
* The readline-object to observe.
|
|
69
|
+
*/
|
|
70
|
+
declare function observe(readline: ReadlineInterface): Events;
|
|
71
|
+
|
|
72
|
+
export = observe;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Choices = require('../objects/choices');
|
|
2
|
+
|
|
3
|
+
type Direction = 'up' | 'down';
|
|
4
|
+
interface Options {
|
|
5
|
+
choices: Choices;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Find the index of the next answer to be selected.
|
|
11
|
+
*
|
|
12
|
+
* @param current
|
|
13
|
+
* Index of the answer currently selected.
|
|
14
|
+
* @param dir
|
|
15
|
+
* Whether to go up or down in the answers list.
|
|
16
|
+
* @param opt
|
|
17
|
+
* The option used for the question initialization.
|
|
18
|
+
* @return
|
|
19
|
+
* The index of the next answer to be selected.
|
|
20
|
+
*/
|
|
21
|
+
declare function incrementListIndex(current: number, dir: Direction, opt: Options): number;
|
|
22
|
+
|
|
23
|
+
export = incrementListIndex;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import ScreenManager = require('./screen-manager');
|
|
2
|
+
|
|
3
|
+
interface PaginatorOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Whether or not to loop the content.
|
|
6
|
+
*/
|
|
7
|
+
isInfinite: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Provides the functionality to draw paginated content using a `ScreenManager`.
|
|
12
|
+
*/
|
|
13
|
+
declare class Paginator {
|
|
14
|
+
/**
|
|
15
|
+
* Gets or sets the index of the currently focused line.
|
|
16
|
+
*/
|
|
17
|
+
protected pointer: number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Gets or sets the index of the last focused line.
|
|
21
|
+
*/
|
|
22
|
+
protected lastIndex: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Gets or sets an object for drawing the paginated content.
|
|
26
|
+
*/
|
|
27
|
+
protected screen: ScreenManager;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Initializes a new instance of the `Paginator` class.
|
|
31
|
+
*
|
|
32
|
+
* @param screenManager
|
|
33
|
+
* A screen-manager for drawing the paginated content.
|
|
34
|
+
*/
|
|
35
|
+
constructor(screenManager: ScreenManager, options?: PaginatorOptions);
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Paginates the specified `content`.
|
|
39
|
+
*
|
|
40
|
+
* @param content
|
|
41
|
+
* The content to paginate.
|
|
42
|
+
*
|
|
43
|
+
* @param selectedIndex
|
|
44
|
+
* The number of the selected line.
|
|
45
|
+
*
|
|
46
|
+
* @param pageSize
|
|
47
|
+
* The number of lines to display at a time.
|
|
48
|
+
*
|
|
49
|
+
* @returns
|
|
50
|
+
* The paginated content.
|
|
51
|
+
*/
|
|
52
|
+
paginate(content: string, selectedIndex: number, pageSize?: number): string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export = Paginator;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Moves the cursor to the left.
|
|
5
|
+
*
|
|
6
|
+
* @param readLine
|
|
7
|
+
* The readline-object.
|
|
8
|
+
*
|
|
9
|
+
* @param count
|
|
10
|
+
* The number of columns to move the cursor.
|
|
11
|
+
*/
|
|
12
|
+
export function left(readLine: ReadlineInterface, count: number): void;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Moves the cursor to the right.
|
|
16
|
+
*
|
|
17
|
+
* @param readLine
|
|
18
|
+
* The readline-object.
|
|
19
|
+
*
|
|
20
|
+
* @param count
|
|
21
|
+
* The number of columns to move the cursor.
|
|
22
|
+
*/
|
|
23
|
+
export function right(readLine: ReadlineInterface, count: number): void;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Moves the cursor upwards.
|
|
27
|
+
*
|
|
28
|
+
* @param readLine
|
|
29
|
+
* The readline-object.
|
|
30
|
+
*
|
|
31
|
+
* @param count
|
|
32
|
+
* The number of lines to move the cursor.
|
|
33
|
+
*/
|
|
34
|
+
export function up(readLine: ReadlineInterface, count: number): void;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Moves the cursor downwards.
|
|
38
|
+
*
|
|
39
|
+
* @param readLine
|
|
40
|
+
* The readline-object.
|
|
41
|
+
*
|
|
42
|
+
* @param count
|
|
43
|
+
* The number of lines to move the cursor.
|
|
44
|
+
*/
|
|
45
|
+
export function down(readLine: ReadlineInterface, count: number): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Clears one or more lines.
|
|
49
|
+
*
|
|
50
|
+
* @param readLine
|
|
51
|
+
* The readline-object.
|
|
52
|
+
*
|
|
53
|
+
* @param count
|
|
54
|
+
* The number of lines to clear.
|
|
55
|
+
*/
|
|
56
|
+
export function clearLine(readLine: ReadlineInterface, count: number): void;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Interface as ReadLineInterface } from 'readline';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Provides the functionality to manage the content of a console-screen.
|
|
5
|
+
*/
|
|
6
|
+
declare class ScreenManager {
|
|
7
|
+
/**
|
|
8
|
+
* Gets or sets the height of the screen.
|
|
9
|
+
*/
|
|
10
|
+
height: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Gets or sets the number of extra-lines below the prompt.
|
|
14
|
+
*/
|
|
15
|
+
extraLinesUnderPrompt: number;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Gets or sets an object for performing read from and write to the console.
|
|
19
|
+
*/
|
|
20
|
+
rl: ReadLineInterface;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Initializes a new instance of the `ScreenManager` class.
|
|
24
|
+
*
|
|
25
|
+
* @param readLine
|
|
26
|
+
* An object for performing read from and write to the console.
|
|
27
|
+
*/
|
|
28
|
+
constructor(readLine: ReadLineInterface);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Renders content to the screen.
|
|
32
|
+
*
|
|
33
|
+
* @param content
|
|
34
|
+
* The content to render.
|
|
35
|
+
*
|
|
36
|
+
* @param bottomContent
|
|
37
|
+
* The content to render to the bottom of the screen.
|
|
38
|
+
*/
|
|
39
|
+
render(content: string, bottomContent: string): void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Cleans all lines expect the first `extraLines`.
|
|
43
|
+
*
|
|
44
|
+
* @param extraLines
|
|
45
|
+
* The number of lines at the begin to skip.
|
|
46
|
+
*/
|
|
47
|
+
clean(extraLines: number): void;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Releases all unmanaged resources.
|
|
51
|
+
*/
|
|
52
|
+
done(): void;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Releases the cursor.
|
|
56
|
+
*/
|
|
57
|
+
releaseCursor(): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Identifies the width of the screen.
|
|
61
|
+
*
|
|
62
|
+
* @returns
|
|
63
|
+
* The width of the screen.
|
|
64
|
+
*/
|
|
65
|
+
protected normalizedCliWidth(): number;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Splits the `text` into multiple lines with the specified max `width`.
|
|
69
|
+
*
|
|
70
|
+
* @param text
|
|
71
|
+
* The text to process.
|
|
72
|
+
*
|
|
73
|
+
* @param width
|
|
74
|
+
* The max width of each line.
|
|
75
|
+
*/
|
|
76
|
+
protected breakLines(text: string, width: number): string[];
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Adds line-breaks to the specified `text` with the specified max `width`.
|
|
80
|
+
*
|
|
81
|
+
* @param text
|
|
82
|
+
* The text to process.
|
|
83
|
+
*
|
|
84
|
+
* @param width
|
|
85
|
+
* The max width of each line.
|
|
86
|
+
*/
|
|
87
|
+
protected forceLineReturn(text: string, width: number): string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export = ScreenManager;
|