@bleedingdev/modern-js-utils 3.9.0-ultramodern.1 → 3.9.0-ultramodern.10
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
package/dist/cjs/cli/require.js
CHANGED
|
@@ -50,7 +50,16 @@ async function importPath(path) {
|
|
|
50
50
|
async function compatibleRequireESM(path, interop = true) {
|
|
51
51
|
if (path.endsWith('.json')) return JSON.parse(await (0, promises_namespaceObject.readFile)(path, 'utf8'));
|
|
52
52
|
const requiredModule = await importPath(path);
|
|
53
|
-
|
|
53
|
+
if (!interop || !Object.hasOwn(requiredModule, 'default')) return requiredModule;
|
|
54
|
+
let value = requiredModule.default;
|
|
55
|
+
if (requiredModule['module.exports'] === value) {
|
|
56
|
+
const seen = new Set();
|
|
57
|
+
while(value && 'object' == typeof value && true === value.__esModule && Object.hasOwn(value, 'default') && !seen.has(value)){
|
|
58
|
+
seen.add(value);
|
|
59
|
+
value = value.default;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return value;
|
|
54
63
|
}
|
|
55
64
|
async function compatibleRequireCJS(path, interop = true) {
|
|
56
65
|
if (path.endsWith('.json')) return require(path);
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
"./backend-federation-contract" (module) {
|
|
4
|
-
module.exports = require("./backend-federation-contract/index.js");
|
|
5
|
-
},
|
|
6
3
|
"./path" (module) {
|
|
7
4
|
module.exports = require("./path.js");
|
|
8
5
|
},
|
|
9
|
-
"./surface-resolution" (module) {
|
|
10
|
-
module.exports = require("./surface-resolution/index.js");
|
|
11
|
-
},
|
|
12
6
|
"./wait" (module) {
|
|
13
7
|
module.exports = require("./wait.js");
|
|
14
8
|
}
|
|
@@ -60,30 +54,16 @@ function __webpack_require__(moduleId) {
|
|
|
60
54
|
var __webpack_exports__ = {};
|
|
61
55
|
(()=>{
|
|
62
56
|
__webpack_require__.r(__webpack_exports__);
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
for(const __rspack_import_key in _backend_federation_contract__rspack_import_0)if ([
|
|
66
|
-
"cutNameByHyphen",
|
|
67
|
-
"default"
|
|
68
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_backend_federation_contract__rspack_import_0[__rspack_import_key];
|
|
69
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
70
|
-
var _path__rspack_import_1 = __webpack_require__("./path");
|
|
71
|
-
var _surface_resolution__rspack_import_2 = __webpack_require__("./surface-resolution");
|
|
72
|
-
var __rspack_reexport = {};
|
|
73
|
-
for(const __rspack_import_key in _surface_resolution__rspack_import_2)if ([
|
|
74
|
-
"cutNameByHyphen",
|
|
75
|
-
"default"
|
|
76
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_surface_resolution__rspack_import_2[__rspack_import_key];
|
|
77
|
-
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
78
|
-
var _wait__rspack_import_3 = __webpack_require__("./wait");
|
|
57
|
+
var _path__rspack_import_0 = __webpack_require__("./path");
|
|
58
|
+
var _wait__rspack_import_1 = __webpack_require__("./wait");
|
|
79
59
|
var __rspack_reexport = {};
|
|
80
|
-
for(const __rspack_import_key in
|
|
60
|
+
for(const __rspack_import_key in _wait__rspack_import_1)if ([
|
|
81
61
|
"cutNameByHyphen",
|
|
82
62
|
"default"
|
|
83
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
63
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_wait__rspack_import_1[__rspack_import_key];
|
|
84
64
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
85
65
|
__webpack_require__.d(__webpack_exports__, {
|
|
86
|
-
cutNameByHyphen: ()=>
|
|
66
|
+
cutNameByHyphen: ()=>_path__rspack_import_0.cutNameByHyphen
|
|
87
67
|
});
|
|
88
68
|
})();
|
|
89
69
|
exports.cutNameByHyphen = __webpack_exports__.cutNameByHyphen;
|
|
@@ -6,7 +6,7 @@ import * as fs from 'fs';
|
|
|
6
6
|
import { EventEmitter } from 'events';
|
|
7
7
|
import { Matcher } from '../anymatch';
|
|
8
8
|
|
|
9
|
-
export class FSWatcher extends EventEmitter
|
|
9
|
+
export class FSWatcher extends EventEmitter {
|
|
10
10
|
options: WatchOptions;
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { Readable } from 'stream';
|
|
3
|
-
import type { Dirent, FileSystemAdapter } from '
|
|
3
|
+
import type { Dirent, FileSystemAdapter } from '../../fs.scandir/out/index';
|
|
4
4
|
import { AsyncCallback } from './providers/async';
|
|
5
5
|
import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings';
|
|
6
6
|
import type { Entry } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
import * as fsScandir from '
|
|
3
|
+
import * as fsScandir from '../../../fs.scandir/out/index';
|
|
4
4
|
import type Settings from '../settings';
|
|
5
5
|
import type { Entry, Errno } from '../types';
|
|
6
6
|
import Reader from './reader';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as fsScandir from '
|
|
1
|
+
import * as fsScandir from '../../fs.scandir/out/index';
|
|
2
2
|
import type { Entry, Errno } from './types';
|
|
3
3
|
export declare type FilterFunction<T> = (value: T) => boolean;
|
|
4
4
|
export declare type DeepFilterFunction = FilterFunction<Entry>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import type * as scandir from '
|
|
2
|
+
import type * as scandir from '../../../fs.scandir/out/index';
|
|
3
3
|
export declare type Entry = scandir.Entry;
|
|
4
4
|
export declare type Errno = NodeJS.ErrnoException;
|
|
5
5
|
export interface QueueItem {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import * as fsWalk from '../../@nodelib/fs.walk';
|
|
2
|
+
import * as fsWalk from '../../@nodelib/fs.walk/out/index';
|
|
3
3
|
export declare type ErrnoException = NodeJS.ErrnoException;
|
|
4
4
|
export declare type Entry = fsWalk.Entry;
|
|
5
5
|
export declare type EntryItem = string | Entry;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Interface as ReadLineInterface } from 'readline';
|
|
2
|
+
import { Observable } from '../../rxjs';
|
|
3
|
+
import inquirer = require('../..');
|
|
4
|
+
import ScreenManager = require('../utils/screen-manager');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The question-options for the `Prompt<T>`.
|
|
8
|
+
*/
|
|
9
|
+
type Question = inquirer.Question<inquirer.Answers>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents a prompt.
|
|
13
|
+
*
|
|
14
|
+
* @template TQuestion
|
|
15
|
+
* The options for the question.
|
|
16
|
+
*/
|
|
17
|
+
declare class Prompt<TQuestion extends Question = Question> implements inquirer.prompts.PromptBase {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritdoc
|
|
20
|
+
*/
|
|
21
|
+
status: inquirer.prompts.PromptState;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Gets or sets an object which contains the answers.
|
|
25
|
+
*/
|
|
26
|
+
protected answers: inquirer.Answers;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets or sets the options of the prompt.
|
|
30
|
+
*/
|
|
31
|
+
protected opt: inquirer.prompts.PromptOptions<TQuestion>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets or sets an object for performing read from and write to the console.
|
|
35
|
+
*/
|
|
36
|
+
protected rl: ReadLineInterface;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Gets or sets an object for managing the console-screen.
|
|
40
|
+
*/
|
|
41
|
+
protected screen: ScreenManager;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes a new instance of the `Prompt<T>` class.
|
|
45
|
+
*
|
|
46
|
+
* @param question
|
|
47
|
+
* The question to prompt the user to answer.
|
|
48
|
+
*
|
|
49
|
+
* @param readLine
|
|
50
|
+
* An object for performing read from and write to the console.
|
|
51
|
+
*
|
|
52
|
+
* @param answers
|
|
53
|
+
* The answer-object.
|
|
54
|
+
*/
|
|
55
|
+
constructor(question: TQuestion, readLine: ReadLineInterface, answers: inquirer.Answers);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @inheritdoc
|
|
59
|
+
*/
|
|
60
|
+
run(): Promise<any>;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Runs the prompt.
|
|
64
|
+
*
|
|
65
|
+
* @param callback
|
|
66
|
+
* The callback for resolving the result.
|
|
67
|
+
*/
|
|
68
|
+
protected _run(callback: (callback: any) => void): void;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Throws an error for a missing param.
|
|
72
|
+
*
|
|
73
|
+
* @param name
|
|
74
|
+
* The name of the missing param.
|
|
75
|
+
*/
|
|
76
|
+
protected throwParamError(name: string): void;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Releases all unmanaged resources.
|
|
80
|
+
*/
|
|
81
|
+
protected close(): void;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Handles the submit-event.
|
|
85
|
+
*
|
|
86
|
+
* @param observable
|
|
87
|
+
* The observable submit-event flow.
|
|
88
|
+
*/
|
|
89
|
+
protected handleSubmitEvents<T>(observable: Observable<T>): inquirer.prompts.PromptEventPipes<T>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Generates the question-string.
|
|
93
|
+
*
|
|
94
|
+
* @returns
|
|
95
|
+
* The question-string.
|
|
96
|
+
*/
|
|
97
|
+
protected getQuestion(): string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export = Prompt;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import inquirer = require('../..');
|
|
2
|
+
import Prompt = require('./base');
|
|
3
|
+
import { Interface as ReadLineInterface } from 'readline';
|
|
4
|
+
import Paginator = require('../utils/paginator');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The question-options for the `ChoicePrompt<T>`.
|
|
8
|
+
*/
|
|
9
|
+
type Question = inquirer.CheckboxQuestionOptions<inquirer.Answers>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents a prompt which provides a set of choices to check.
|
|
13
|
+
*
|
|
14
|
+
* @template TQuestion
|
|
15
|
+
* The options for the question.
|
|
16
|
+
*/
|
|
17
|
+
declare class CheckboxPrompt<TQuestion extends Question = Question> extends Prompt<TQuestion> {
|
|
18
|
+
/**
|
|
19
|
+
* Gets or sets the index of the currently focused choice.
|
|
20
|
+
*/
|
|
21
|
+
protected pointer: number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Gets or sets an object for paginating the content.
|
|
25
|
+
*/
|
|
26
|
+
protected paginator: Paginator;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initializes a new instance of the `CheckboxPrompt<T>` class.
|
|
30
|
+
*
|
|
31
|
+
* @param question
|
|
32
|
+
* The question to prompt the user to answer.
|
|
33
|
+
*
|
|
34
|
+
* @param readLine
|
|
35
|
+
* An object for performing read from and write to the console.
|
|
36
|
+
*
|
|
37
|
+
* @param answers
|
|
38
|
+
* The answer-object.
|
|
39
|
+
*/
|
|
40
|
+
constructor(question: TQuestion, readLine: ReadLineInterface, answers: inquirer.Answers);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Renders the prompt.
|
|
44
|
+
*
|
|
45
|
+
* @param error
|
|
46
|
+
* An error message to render.
|
|
47
|
+
*/
|
|
48
|
+
protected render(error?: string): void;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Handles the `success`-event of the prompt.
|
|
52
|
+
*
|
|
53
|
+
* @param eventArgs
|
|
54
|
+
* An object which contains event-data.
|
|
55
|
+
*/
|
|
56
|
+
protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Handles the `error`-event of the prompt.
|
|
60
|
+
*
|
|
61
|
+
* @param eventArgs
|
|
62
|
+
* An object which contains event-data.
|
|
63
|
+
*/
|
|
64
|
+
protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Gets the current value of the prompt.
|
|
68
|
+
*
|
|
69
|
+
* @returns
|
|
70
|
+
* The current value of the prompt.
|
|
71
|
+
*/
|
|
72
|
+
protected getCurrentValue(): any;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Handles the `UpdKey`-event of the prompt.
|
|
76
|
+
*/
|
|
77
|
+
protected onUpKey(): void;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Handles the `DownKey`-event of the prompt.
|
|
81
|
+
*/
|
|
82
|
+
protected onDownKey(): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Handles the `NumberKey`-event of the prompt.
|
|
86
|
+
*
|
|
87
|
+
* @param input
|
|
88
|
+
* The number which has been pressed.
|
|
89
|
+
*/
|
|
90
|
+
protected onNumberKey(input: number): void;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Handles the `SpaceKey`-event of the prompt.
|
|
94
|
+
*/
|
|
95
|
+
protected onSpaceKey(): void;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Handles the `AllKey`-event of the prompt.
|
|
99
|
+
*/
|
|
100
|
+
protected onAllKey(): void;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Handles the `InverseKey`-event of the prompt.
|
|
104
|
+
*/
|
|
105
|
+
protected onInverseKey(): void;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Toggles the state of a choice.
|
|
109
|
+
*
|
|
110
|
+
* @param index
|
|
111
|
+
* The index of the choice to toggle.
|
|
112
|
+
*/
|
|
113
|
+
protected toggleChoice(index: number): void;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export = CheckboxPrompt;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import Prompt = require('./base');
|
|
2
|
+
import { Answers, ConfirmQuestionOptions } from '../..';
|
|
3
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The question-options for the `ConfirmPrompt<T>`.
|
|
7
|
+
*/
|
|
8
|
+
type Question = ConfirmQuestionOptions;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents a prompt which provides a message to confirm.
|
|
12
|
+
*
|
|
13
|
+
* @template TQuestion
|
|
14
|
+
* The options for the question.
|
|
15
|
+
*/
|
|
16
|
+
declare class ConfirmPrompt<TQuestion extends Question = Question> extends Prompt<TQuestion> {
|
|
17
|
+
/**
|
|
18
|
+
* Initializes a new instance of the `ConfirmPrompt<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(questions: TQuestion, readLine: ReadlineInterface, answers: Answers);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Renders the prompt.
|
|
33
|
+
*
|
|
34
|
+
* @param answer
|
|
35
|
+
* The answer provided by the user.
|
|
36
|
+
*/
|
|
37
|
+
protected render(answer?: boolean): this;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Handles the `success`-event of the prompt.
|
|
41
|
+
*
|
|
42
|
+
* @param input
|
|
43
|
+
* The input provided by the user.
|
|
44
|
+
*/
|
|
45
|
+
protected onEnd(input: string): void;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Handles the `Keypress`-event of the prompt.
|
|
49
|
+
*/
|
|
50
|
+
protected onKeypress(): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export = ConfirmPrompt;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import Prompt = require('./base');
|
|
2
|
+
import { Subject, Subscription } from '../../rxjs';
|
|
3
|
+
import inquirer = require('../..');
|
|
4
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The question-options for the `EditorPrompt<T>`.
|
|
8
|
+
*/
|
|
9
|
+
type Question = inquirer.EditorQuestionOptions<inquirer.Answers>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents a prompt which provides a text-editor.
|
|
13
|
+
*
|
|
14
|
+
* @template TQuestion
|
|
15
|
+
* The options for the question.
|
|
16
|
+
*/
|
|
17
|
+
declare class EditorPrompt<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 an object for subscribing to the editor-result.
|
|
25
|
+
*/
|
|
26
|
+
protected editorResult: Subject<string>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets or sets a subscription to the `line`-event.
|
|
30
|
+
*/
|
|
31
|
+
protected lineSubscription: Subscription;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets or sets the initial text.
|
|
35
|
+
*/
|
|
36
|
+
protected currentText: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Initializes a new instance of the `EditorPrompt<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
|
+
* Runs the prompt.
|
|
54
|
+
*
|
|
55
|
+
* @param callback
|
|
56
|
+
* The callback for resolving the result.
|
|
57
|
+
*/
|
|
58
|
+
protected _run(callback: (value: any) => void): this;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Renders the prompt.
|
|
62
|
+
*
|
|
63
|
+
* @param error
|
|
64
|
+
* The error to render.
|
|
65
|
+
*/
|
|
66
|
+
protected render(error?: string): void;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Launches the default text-editor of the system.
|
|
70
|
+
*/
|
|
71
|
+
protected startExternalEditor(): void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Closes the external editor.
|
|
75
|
+
*
|
|
76
|
+
* @param error
|
|
77
|
+
* Either the error which occurred while executing the external editor or `null`.
|
|
78
|
+
*
|
|
79
|
+
* @param result
|
|
80
|
+
* The result of the editor.
|
|
81
|
+
*/
|
|
82
|
+
protected endExternalEditor(error: Error, result: string): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Handles the `success`-event of the prompt.
|
|
86
|
+
*
|
|
87
|
+
* @param eventArgs
|
|
88
|
+
* An object which contains event-data.
|
|
89
|
+
*/
|
|
90
|
+
protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Handles the `error`-event of the prompt.
|
|
94
|
+
*
|
|
95
|
+
* @param eventArgs
|
|
96
|
+
* An object which contains event-data.
|
|
97
|
+
*/
|
|
98
|
+
protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export = EditorPrompt;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import Paginator = require('../utils/paginator');
|
|
2
|
+
import Prompt = require('./base');
|
|
3
|
+
import inquirer = require('../..');
|
|
4
|
+
import { Interface as ReadlineInterface } from 'readline';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The question-options for the `ExpandPrompt<T>`.
|
|
8
|
+
*/
|
|
9
|
+
type Question = inquirer.ExpandQuestionOptions<inquirer.Answers>;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Represents a prompt which forces the user to make a choice by typing a specific key.
|
|
13
|
+
*
|
|
14
|
+
* @template TQuestion
|
|
15
|
+
* The options for the question.
|
|
16
|
+
*/
|
|
17
|
+
declare class ExpandPrompt<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 the default key.
|
|
25
|
+
*/
|
|
26
|
+
protected rawDefault: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets or sets an object for paginating the content.
|
|
30
|
+
*/
|
|
31
|
+
protected paginator: Paginator;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets the promise of the keypress-eventhandler.
|
|
35
|
+
*/
|
|
36
|
+
protected keypressObs: Promise<void>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Gets or sets the currently selected key.
|
|
40
|
+
*/
|
|
41
|
+
protected selectedKey: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets or sets the answer of the prompt.
|
|
45
|
+
*/
|
|
46
|
+
protected answer: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Initializes a new instance of the `ExpandPrompt<T>` class.
|
|
50
|
+
*
|
|
51
|
+
* @param question
|
|
52
|
+
* The question to prompt the user to answer.
|
|
53
|
+
*
|
|
54
|
+
* @param readLine
|
|
55
|
+
* An object for performing read from and write to the console.
|
|
56
|
+
*
|
|
57
|
+
* @param answers
|
|
58
|
+
* The answer-object.
|
|
59
|
+
*/
|
|
60
|
+
constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Renders the prompt to the screen.
|
|
64
|
+
*
|
|
65
|
+
* @param error
|
|
66
|
+
* The error to render.
|
|
67
|
+
*
|
|
68
|
+
* @param hint
|
|
69
|
+
* The hint to render.
|
|
70
|
+
*/
|
|
71
|
+
protected render(error?: string, hint?: string): void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Determines the current value of the prompt.
|
|
75
|
+
*
|
|
76
|
+
* @param input
|
|
77
|
+
* The input provided by the user.
|
|
78
|
+
*
|
|
79
|
+
* @returns
|
|
80
|
+
* The current value of the prompt.
|
|
81
|
+
*/
|
|
82
|
+
protected getCurrentValue(input: string): any;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Generates the string-representation of the choices.
|
|
86
|
+
*
|
|
87
|
+
* @deprecated
|
|
88
|
+
*
|
|
89
|
+
* @returns
|
|
90
|
+
* The string-representations of the choices.
|
|
91
|
+
*/
|
|
92
|
+
protected getChoices(): string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Handles the `success`-event of the prompt.
|
|
96
|
+
*
|
|
97
|
+
* @param eventArgs
|
|
98
|
+
* An object which contains event-data.
|
|
99
|
+
*/
|
|
100
|
+
protected onSubmit(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(eventArgs: inquirer.prompts.FailedPromptStateData): void;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Handles the `keypress`-event of the prompt.
|
|
112
|
+
*/
|
|
113
|
+
protected onKeypress(): void;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Validates the integrity of the choices.
|
|
117
|
+
*
|
|
118
|
+
* @param choices
|
|
119
|
+
* The choices to validate.
|
|
120
|
+
*/
|
|
121
|
+
protected validateChoices(choices: ExpandPrompt<TQuestion>['opt']['choices']): void;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Generates the string-representation of the choices.
|
|
125
|
+
*
|
|
126
|
+
* @param choices
|
|
127
|
+
* The choices to generate the string-representation for.
|
|
128
|
+
*
|
|
129
|
+
* @param defaultChoice
|
|
130
|
+
* The value of the default choice.
|
|
131
|
+
*
|
|
132
|
+
* @returns
|
|
133
|
+
* The string-representations of the choices.
|
|
134
|
+
*/
|
|
135
|
+
protected generateChoicesString(choices: ExpandPrompt<TQuestion>['opt']['choices'], defaultChoice: any): string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Renders the choices.
|
|
139
|
+
*
|
|
140
|
+
* @param choices
|
|
141
|
+
* The choices to render.
|
|
142
|
+
*
|
|
143
|
+
* @param pointer
|
|
144
|
+
* The value of the choice to select.
|
|
145
|
+
*/
|
|
146
|
+
protected renderChoices(choices: ExpandPrompt<TQuestion>['opt']['choices'], pointer: string): string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export = ExpandPrompt;
|