@bleedingdev/modern-js-utils 3.9.0-ultramodern.2 → 3.9.0-ultramodern.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/applyOptionsChain.js +1 -1
- package/dist/cjs/cli/get/config.js +1 -1
- package/dist/cjs/cli/require.js +13 -8
- package/dist/cjs/compiled.js +1 -9
- package/dist/cjs/universal/index.js +5 -25
- package/dist/compiled/browserslist/index.js +37 -35
- package/dist/compiled/chokidar/types/index.d.ts +1 -1
- package/dist/compiled/commander/index.js +2 -3
- package/dist/compiled/debug/index.js +1 -1
- package/dist/compiled/execa/index.js +8 -6
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +1 -1
- package/dist/compiled/fast-glob/out/types/index.d.ts +1 -1
- package/dist/compiled/fs-extra/index.js +39 -35
- package/dist/compiled/glob/index.js +17 -15
- package/dist/compiled/inquirer/index.js +29 -25
- package/dist/compiled/inquirer/lib/prompts/base.d.ts +100 -0
- package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +116 -0
- package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +53 -0
- package/dist/compiled/inquirer/lib/prompts/editor.d.ts +101 -0
- package/dist/compiled/inquirer/lib/prompts/expand.d.ts +149 -0
- package/dist/compiled/inquirer/lib/prompts/input.d.ts +82 -0
- package/dist/compiled/inquirer/lib/prompts/list.d.ts +89 -0
- package/dist/compiled/inquirer/lib/prompts/number.d.ts +32 -0
- package/dist/compiled/inquirer/lib/prompts/password.d.ts +82 -0
- package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +111 -0
- package/dist/compiled/inquirer/lib/utils/events.d.ts +72 -0
- package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +23 -0
- package/dist/compiled/inquirer/lib/utils/paginator.d.ts +55 -0
- package/dist/compiled/inquirer/lib/utils/readline.d.ts +56 -0
- package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +90 -0
- package/dist/compiled/inquirer/lib/utils/utils.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/LICENSE.txt +202 -0
- package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/index.d.ts +173 -0
- package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +175 -0
- package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +121 -0
- package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +92 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +115 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +227 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +65 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +200 -0
- package/dist/compiled/inquirer/rxjs/internal/config.d.ts +73 -0
- package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +42 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +33 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +27 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +173 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +76 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +159 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +24 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +314 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +82 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +21 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +40 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +115 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +126 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +87 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +58 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +60 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +47 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +64 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +119 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +64 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +52 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +62 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +18 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +68 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +44 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +63 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +56 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +18 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +69 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +56 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +29 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +108 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +28 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +60 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +36 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +62 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +20 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +42 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +78 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +39 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +255 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +35 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +33 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +65 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +26 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +24 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +69 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +16 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +88 -0
- package/dist/compiled/inquirer/rxjs/internal/types.d.ts +307 -0
- package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +21 -0
- package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +17 -0
- package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +20 -0
- package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +17 -0
- package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +16 -0
- package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +44 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/operators/index.d.ts +114 -0
- package/dist/compiled/inquirer/rxjs/testing/index.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +3 -0
- package/dist/compiled/inquirer/types-license +21 -0
- package/dist/compiled/js-yaml/index.js +1 -2
- package/dist/compiled/js-yaml/index.mjs +1 -2
- package/dist/compiled/lodash/index.d.ts +1 -11
- package/dist/compiled/minimist/index.js +1 -2
- package/dist/compiled/ora/index.js +17 -15
- package/dist/compiled/semver/index.js +12 -13
- package/dist/compiled/signale/index.js +3 -3
- package/dist/compiled/upath/index.js +15 -11
- package/dist/compiled/upath/upath.d.ts +2 -2
- package/dist/compiled/webpack-chain/index.js +5 -3
- package/dist/esm/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm/cli/get/config.mjs +1 -1
- package/dist/esm/cli/require.mjs +14 -6
- package/dist/esm/compiled.mjs +1 -10
- package/dist/esm/universal/index.mjs +0 -2
- package/dist/esm-node/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm-node/cli/get/config.mjs +1 -1
- package/dist/esm-node/cli/require.mjs +14 -6
- package/dist/esm-node/compiled.mjs +1 -9
- package/dist/esm-node/universal/index.mjs +0 -2
- package/dist/types/cli/require.d.ts +0 -1
- package/dist/types/universal/index.d.ts +0 -2
- package/package.json +7 -6
- package/rslib.config.mts +2 -0
- package/dist/cjs/universal/backend-federation-contract/build-artifact.js +0 -185
- package/dist/cjs/universal/backend-federation-contract/constants.js +0 -92
- package/dist/cjs/universal/backend-federation-contract/delivery-unit.js +0 -130
- package/dist/cjs/universal/backend-federation-contract/index.js +0 -137
- package/dist/cjs/universal/backend-federation-contract/metadata.js +0 -133
- package/dist/cjs/universal/backend-federation-contract/types.js +0 -18
- package/dist/cjs/universal/backend-federation-contract/validation-core.js +0 -85
- package/dist/cjs/universal/surface-resolution/env-static-provider.js +0 -318
- package/dist/cjs/universal/surface-resolution/index.js +0 -69
- package/dist/cjs/universal/surface-resolution/surface-ref.js +0 -132
- package/dist/cjs/universal/surface-resolution/types.js +0 -18
- package/dist/cjs/universal/surface-resolution/validation.js +0 -202
- package/dist/esm/rslib-runtime~1.mjs +0 -12
- package/dist/esm/universal/backend-federation-contract/build-artifact.mjs +0 -135
- package/dist/esm/universal/backend-federation-contract/constants.mjs +0 -18
- package/dist/esm/universal/backend-federation-contract/delivery-unit.mjs +0 -74
- package/dist/esm/universal/backend-federation-contract/index.mjs +0 -5
- package/dist/esm/universal/backend-federation-contract/metadata.mjs +0 -80
- package/dist/esm/universal/backend-federation-contract/types.mjs +0 -0
- package/dist/esm/universal/backend-federation-contract/validation-core.mjs +0 -29
- package/dist/esm/universal/surface-resolution/env-static-provider.mjs +0 -274
- package/dist/esm/universal/surface-resolution/index.mjs +0 -3
- package/dist/esm/universal/surface-resolution/surface-ref.mjs +0 -88
- package/dist/esm/universal/surface-resolution/types.mjs +0 -0
- package/dist/esm/universal/surface-resolution/validation.mjs +0 -155
- package/dist/esm-node/universal/backend-federation-contract/build-artifact.mjs +0 -136
- package/dist/esm-node/universal/backend-federation-contract/constants.mjs +0 -19
- package/dist/esm-node/universal/backend-federation-contract/delivery-unit.mjs +0 -75
- package/dist/esm-node/universal/backend-federation-contract/index.mjs +0 -6
- package/dist/esm-node/universal/backend-federation-contract/metadata.mjs +0 -81
- package/dist/esm-node/universal/backend-federation-contract/types.mjs +0 -1
- package/dist/esm-node/universal/backend-federation-contract/validation-core.mjs +0 -30
- package/dist/esm-node/universal/surface-resolution/env-static-provider.mjs +0 -275
- package/dist/esm-node/universal/surface-resolution/index.mjs +0 -4
- package/dist/esm-node/universal/surface-resolution/surface-ref.mjs +0 -89
- package/dist/esm-node/universal/surface-resolution/types.mjs +0 -1
- package/dist/esm-node/universal/surface-resolution/validation.mjs +0 -156
- package/dist/types/universal/backend-federation-contract/build-artifact.d.ts +0 -9
- package/dist/types/universal/backend-federation-contract/constants.d.ts +0 -14
- package/dist/types/universal/backend-federation-contract/delivery-unit.d.ts +0 -9
- package/dist/types/universal/backend-federation-contract/index.d.ts +0 -7
- package/dist/types/universal/backend-federation-contract/metadata.d.ts +0 -7
- package/dist/types/universal/backend-federation-contract/types.d.ts +0 -60
- package/dist/types/universal/backend-federation-contract/validation-core.d.ts +0 -8
- package/dist/types/universal/surface-resolution/env-static-provider.d.ts +0 -107
- package/dist/types/universal/surface-resolution/index.d.ts +0 -4
- package/dist/types/universal/surface-resolution/surface-ref.d.ts +0 -72
- package/dist/types/universal/surface-resolution/types.d.ts +0 -102
- package/dist/types/universal/surface-resolution/validation.d.ts +0 -53
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
const o = i.dereference ? n.statSync : n.lstatSync;
|
|
34
34
|
const c = o(t);
|
|
35
35
|
if (c.isDirectory()) return onDir(c, e, t, r, i);
|
|
36
|
-
if (c.isFile() || c.isCharacterDevice() || c.isBlockDevice()) return onFile(c, e, t, r, i);
|
|
37
|
-
if (c.isSymbolicLink()) return onLink(e, t, r, i);
|
|
38
|
-
if (c.isSocket()) throw new Error(`Cannot copy a socket file: ${t}`);
|
|
39
|
-
if (c.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${t}`);
|
|
36
|
+
else if (c.isFile() || c.isCharacterDevice() || c.isBlockDevice()) return onFile(c, e, t, r, i);
|
|
37
|
+
else if (c.isSymbolicLink()) return onLink(e, t, r, i);
|
|
38
|
+
else if (c.isSocket()) throw new Error(`Cannot copy a socket file: ${t}`);
|
|
39
|
+
else if (c.isFIFO()) throw new Error(`Cannot copy a FIFO pipe: ${t}`);
|
|
40
40
|
throw new Error(`Unknown file: ${t}`);
|
|
41
41
|
}
|
|
42
42
|
function onFile(e, t, r, n, i) {
|
|
@@ -47,8 +47,7 @@
|
|
|
47
47
|
if (i.overwrite) {
|
|
48
48
|
n.unlinkSync(r);
|
|
49
49
|
return copyFile(e, t, r, i);
|
|
50
|
-
}
|
|
51
|
-
if (i.errorOnExist) throw new Error(`'${r}' already exists`);
|
|
50
|
+
} else if (i.errorOnExist) throw new Error(`'${r}' already exists`);
|
|
52
51
|
}
|
|
53
52
|
function copyFile(e, t, r, i) {
|
|
54
53
|
n.copyFileSync(t, r);
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
let c = n.readlinkSync(t);
|
|
95
94
|
if (o.dereference) c = i.resolve(process.cwd(), c);
|
|
96
95
|
if (!e) return n.symlinkSync(c, r);
|
|
97
|
-
{
|
|
96
|
+
else {
|
|
98
97
|
let e;
|
|
99
98
|
try {
|
|
100
99
|
e = n.readlinkSync(r);
|
|
@@ -172,10 +171,10 @@
|
|
|
172
171
|
c(t, (n, c)=>{
|
|
173
172
|
if (n) return o(n);
|
|
174
173
|
if (c.isDirectory()) return onDir(c, e, t, r, i, o);
|
|
175
|
-
if (c.isFile() || c.isCharacterDevice() || c.isBlockDevice()) return onFile(c, e, t, r, i, o);
|
|
176
|
-
if (c.isSymbolicLink()) return onLink(e, t, r, i, o);
|
|
177
|
-
if (c.isSocket()) return o(new Error(`Cannot copy a socket file: ${t}`));
|
|
178
|
-
if (c.isFIFO()) return o(new Error(`Cannot copy a FIFO pipe: ${t}`));
|
|
174
|
+
else if (c.isFile() || c.isCharacterDevice() || c.isBlockDevice()) return onFile(c, e, t, r, i, o);
|
|
175
|
+
else if (c.isSymbolicLink()) return onLink(e, t, r, i, o);
|
|
176
|
+
else if (c.isSocket()) return o(new Error(`Cannot copy a socket file: ${t}`));
|
|
177
|
+
else if (c.isFIFO()) return o(new Error(`Cannot copy a FIFO pipe: ${t}`));
|
|
179
178
|
return o(new Error(`Unknown file: ${t}`));
|
|
180
179
|
});
|
|
181
180
|
}
|
|
@@ -267,7 +266,7 @@
|
|
|
267
266
|
if (t) return c(t);
|
|
268
267
|
if (o.dereference) s = i.resolve(process.cwd(), s);
|
|
269
268
|
if (!e) return n.symlink(s, r, c);
|
|
270
|
-
n.readlink(r, (t, u)=>{
|
|
269
|
+
else n.readlink(r, (t, u)=>{
|
|
271
270
|
if (t) {
|
|
272
271
|
if ("EINVAL" === t.code || "UNKNOWN" === t.code) return n.symlink(s, r, c);
|
|
273
272
|
return c(t);
|
|
@@ -474,7 +473,7 @@
|
|
|
474
473
|
toDst: e
|
|
475
474
|
});
|
|
476
475
|
});
|
|
477
|
-
{
|
|
476
|
+
else {
|
|
478
477
|
const c = n.dirname(t);
|
|
479
478
|
const s = n.join(c, e);
|
|
480
479
|
return o(s, (t, o)=>{
|
|
@@ -483,7 +482,7 @@
|
|
|
483
482
|
toCwd: s,
|
|
484
483
|
toDst: e
|
|
485
484
|
});
|
|
486
|
-
return i.lstat(e, (t)=>{
|
|
485
|
+
else return i.lstat(e, (t)=>{
|
|
487
486
|
if (t) {
|
|
488
487
|
t.message = t.message.replace("lstat", "ensureSymlink");
|
|
489
488
|
return r(t);
|
|
@@ -505,8 +504,7 @@
|
|
|
505
504
|
toCwd: e,
|
|
506
505
|
toDst: e
|
|
507
506
|
};
|
|
508
|
-
}
|
|
509
|
-
{
|
|
507
|
+
} else {
|
|
510
508
|
const o = n.dirname(t);
|
|
511
509
|
const c = n.join(o, e);
|
|
512
510
|
r = i.existsSync(c);
|
|
@@ -514,12 +512,14 @@
|
|
|
514
512
|
toCwd: c,
|
|
515
513
|
toDst: e
|
|
516
514
|
};
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
515
|
+
else {
|
|
516
|
+
r = i.existsSync(e);
|
|
517
|
+
if (!r) throw new Error("relative srcpath does not exist");
|
|
518
|
+
return {
|
|
519
|
+
toCwd: e,
|
|
520
|
+
toDst: n.relative(o, e)
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
e.exports = {
|
|
@@ -1103,13 +1103,13 @@
|
|
|
1103
1103
|
t.chmodSync(e, 438);
|
|
1104
1104
|
} catch (e) {
|
|
1105
1105
|
if ("ENOENT" === e.code) return;
|
|
1106
|
-
throw r;
|
|
1106
|
+
else throw r;
|
|
1107
1107
|
}
|
|
1108
1108
|
try {
|
|
1109
1109
|
n = t.statSync(e);
|
|
1110
1110
|
} catch (e) {
|
|
1111
1111
|
if ("ENOENT" === e.code) return;
|
|
1112
|
-
throw r;
|
|
1112
|
+
else throw r;
|
|
1113
1113
|
}
|
|
1114
1114
|
if (n.isDirectory()) rmdirSync(e, t, r);
|
|
1115
1115
|
else t.unlinkSync(e);
|
|
@@ -1160,8 +1160,8 @@
|
|
|
1160
1160
|
else t.unlinkSync(e);
|
|
1161
1161
|
} catch (r) {
|
|
1162
1162
|
if ("ENOENT" === r.code) return;
|
|
1163
|
-
if ("EPERM" === r.code) return c ? fixWinEPERMSync(e, t, r) : rmdirSync(e, t, r);
|
|
1164
|
-
if ("EISDIR" !== r.code) throw r;
|
|
1163
|
+
else if ("EPERM" === r.code) return c ? fixWinEPERMSync(e, t, r) : rmdirSync(e, t, r);
|
|
1164
|
+
else if ("EISDIR" !== r.code) throw r;
|
|
1165
1165
|
rmdirSync(e, t, r);
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
@@ -1172,7 +1172,7 @@
|
|
|
1172
1172
|
t.rmdirSync(e);
|
|
1173
1173
|
} catch (n) {
|
|
1174
1174
|
if ("ENOTDIR" === n.code) throw r;
|
|
1175
|
-
if ("ENOTEMPTY" === n.code || "EEXIST" === n.code || "EPERM" === n.code) rmkidsSync(e, t);
|
|
1175
|
+
else if ("ENOTEMPTY" === n.code || "EEXIST" === n.code || "EPERM" === n.code) rmkidsSync(e, t);
|
|
1176
1176
|
else if ("ENOENT" !== n.code) throw n;
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
@@ -1633,7 +1633,7 @@
|
|
|
1633
1633
|
});
|
|
1634
1634
|
function ReadStream(e, t) {
|
|
1635
1635
|
if (this instanceof ReadStream) return f.apply(this, arguments), this;
|
|
1636
|
-
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
1636
|
+
else return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
1637
1637
|
}
|
|
1638
1638
|
function ReadStream$open() {
|
|
1639
1639
|
var e = this;
|
|
@@ -1650,7 +1650,7 @@
|
|
|
1650
1650
|
}
|
|
1651
1651
|
function WriteStream(e, t) {
|
|
1652
1652
|
if (this instanceof WriteStream) return l.apply(this, arguments), this;
|
|
1653
|
-
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
1653
|
+
else return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
1654
1654
|
}
|
|
1655
1655
|
function WriteStream$open() {
|
|
1656
1656
|
var e = this;
|
|
@@ -2097,8 +2097,10 @@
|
|
|
2097
2097
|
a = JSON.parse(s, t ? t.reviver : null);
|
|
2098
2098
|
} catch (t) {
|
|
2099
2099
|
if (!o) return null;
|
|
2100
|
-
|
|
2101
|
-
|
|
2100
|
+
else {
|
|
2101
|
+
t.message = `${e}: ${t.message}`;
|
|
2102
|
+
throw t;
|
|
2103
|
+
}
|
|
2102
2104
|
}
|
|
2103
2105
|
return a;
|
|
2104
2106
|
}
|
|
@@ -2115,8 +2117,10 @@
|
|
|
2115
2117
|
return JSON.parse(n, t.reviver);
|
|
2116
2118
|
} catch (t) {
|
|
2117
2119
|
if (!i) return null;
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
+
else {
|
|
2121
|
+
t.message = `${e}: ${t.message}`;
|
|
2122
|
+
throw t;
|
|
2123
|
+
}
|
|
2120
2124
|
}
|
|
2121
2125
|
}
|
|
2122
2126
|
async function _writeFile(e, t, r = {}) {
|
|
@@ -2160,7 +2164,7 @@
|
|
|
2160
2164
|
if ("function" != typeof t[t.length - 1]) return new Promise((r, n)=>{
|
|
2161
2165
|
e.call(this, ...t, (e, t)=>null != e ? n(e) : r(t));
|
|
2162
2166
|
});
|
|
2163
|
-
e.apply(this, t);
|
|
2167
|
+
else e.apply(this, t);
|
|
2164
2168
|
}, "name", {
|
|
2165
2169
|
value: e.name
|
|
2166
2170
|
});
|
|
@@ -2169,7 +2173,7 @@
|
|
|
2169
2173
|
return Object.defineProperty(function(...t) {
|
|
2170
2174
|
const r = t[t.length - 1];
|
|
2171
2175
|
if ("function" != typeof r) return e.apply(this, t);
|
|
2172
|
-
e.apply(this, t.slice(0, -1)).then((e)=>r(null, e), r);
|
|
2176
|
+
else e.apply(this, t.slice(0, -1)).then((e)=>r(null, e), r);
|
|
2173
2177
|
}, "name", {
|
|
2174
2178
|
value: e.name
|
|
2175
2179
|
});
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
return n(t, e);
|
|
241
241
|
} catch (r) {
|
|
242
242
|
if (newError(r)) return c.realpathSync(t, e);
|
|
243
|
-
throw r;
|
|
243
|
+
else throw r;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
function monkeypatch() {
|
|
@@ -986,7 +986,7 @@
|
|
|
986
986
|
else {
|
|
987
987
|
var o = s.isDirectory() ? "DIR" : "FILE";
|
|
988
988
|
if (i && "FILE" === o) return e();
|
|
989
|
-
return e(null, o, s);
|
|
989
|
+
else return e(null, o, s);
|
|
990
990
|
}
|
|
991
991
|
var c = this;
|
|
992
992
|
var h = m("stat\0" + r, lstatcb_);
|
|
@@ -996,7 +996,7 @@
|
|
|
996
996
|
if (i) c._stat2(t, r, null, a, e);
|
|
997
997
|
else c._stat2(t, r, i, n, e);
|
|
998
998
|
});
|
|
999
|
-
c._stat2(t, r, i, a, e);
|
|
999
|
+
else c._stat2(t, r, i, a, e);
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
1002
|
Glob.prototype._stat2 = function(t, e, r, i, a) {
|
|
@@ -1298,11 +1298,12 @@
|
|
|
1298
1298
|
if (a[t]) {
|
|
1299
1299
|
a[t].push(e);
|
|
1300
1300
|
return null;
|
|
1301
|
+
} else {
|
|
1302
|
+
a[t] = [
|
|
1303
|
+
e
|
|
1304
|
+
];
|
|
1305
|
+
return makeres(t);
|
|
1301
1306
|
}
|
|
1302
|
-
a[t] = [
|
|
1303
|
-
e
|
|
1304
|
-
];
|
|
1305
|
-
return makeres(t);
|
|
1306
1307
|
}
|
|
1307
1308
|
function makeres(t) {
|
|
1308
1309
|
return n(function RES() {
|
|
@@ -1856,13 +1857,14 @@
|
|
|
1856
1857
|
if (this.matchOne(t.slice(u), e.slice(p), r)) {
|
|
1857
1858
|
this.debug("globstar found match!", u, o, v);
|
|
1858
1859
|
return true;
|
|
1860
|
+
} else {
|
|
1861
|
+
if ("." === v || ".." === v || !i.dot && "." === v.charAt(0)) {
|
|
1862
|
+
this.debug("dot detected!", t, u, e, p);
|
|
1863
|
+
break;
|
|
1864
|
+
}
|
|
1865
|
+
this.debug("globstar swallow a segment, and continue");
|
|
1866
|
+
u++;
|
|
1859
1867
|
}
|
|
1860
|
-
if ("." === v || ".." === v || !i.dot && "." === v.charAt(0)) {
|
|
1861
|
-
this.debug("dot detected!", t, u, e, p);
|
|
1862
|
-
break;
|
|
1863
|
-
}
|
|
1864
|
-
this.debug("globstar swallow a segment, and continue");
|
|
1865
|
-
u++;
|
|
1866
1868
|
}
|
|
1867
1869
|
if (r) {
|
|
1868
1870
|
this.debug("\n>>> no match, partial?", t, u, e, p);
|
|
@@ -1881,8 +1883,8 @@
|
|
|
1881
1883
|
if (!d) return false;
|
|
1882
1884
|
}
|
|
1883
1885
|
if (n === o && s === c) return true;
|
|
1884
|
-
if (n === o) return r;
|
|
1885
|
-
if (s === c) return n === o - 1 && "" === t[n];
|
|
1886
|
+
else if (n === o) return r;
|
|
1887
|
+
else if (s === c) return n === o - 1 && "" === t[n];
|
|
1886
1888
|
throw new Error("wtf?");
|
|
1887
1889
|
};
|
|
1888
1890
|
function globUnescape(t) {
|
|
@@ -5434,7 +5434,7 @@
|
|
|
5434
5434
|
return t.confidence - e.confidence;
|
|
5435
5435
|
});
|
|
5436
5436
|
if (t && true === t.returnAllMatches) return u;
|
|
5437
|
-
return u.length > 0 ? u[0].name : null;
|
|
5437
|
+
else return u.length > 0 ? u[0].name : null;
|
|
5438
5438
|
};
|
|
5439
5439
|
e.exports.detectFile = function(e, t, r) {
|
|
5440
5440
|
if ("function" == typeof t) {
|
|
@@ -6196,8 +6196,7 @@
|
|
|
6196
6196
|
if ("object" == typeof p) {
|
|
6197
6197
|
o = p;
|
|
6198
6198
|
continue;
|
|
6199
|
-
}
|
|
6200
|
-
if ("number" == typeof p) d = p;
|
|
6199
|
+
} else if ("number" == typeof p) d = p;
|
|
6201
6200
|
else if (void 0 == p) {
|
|
6202
6201
|
p = o[c];
|
|
6203
6202
|
if (void 0 !== p) {
|
|
@@ -9366,13 +9365,14 @@
|
|
|
9366
9365
|
}
|
|
9367
9366
|
this._hadControl = true;
|
|
9368
9367
|
return this.emit("data", e);
|
|
9368
|
+
} else {
|
|
9369
|
+
if (this._prompt && this._hadControl && 0 === e.indexOf(this._prompt)) {
|
|
9370
|
+
this._hadControl = false;
|
|
9371
|
+
this.emit("data", this._prompt);
|
|
9372
|
+
e = e.substr(this._prompt.length);
|
|
9373
|
+
}
|
|
9374
|
+
e = e.toString().replace(/./g, this.replace);
|
|
9369
9375
|
}
|
|
9370
|
-
if (this._prompt && this._hadControl && 0 === e.indexOf(this._prompt)) {
|
|
9371
|
-
this._hadControl = false;
|
|
9372
|
-
this.emit("data", this._prompt);
|
|
9373
|
-
e = e.substr(this._prompt.length);
|
|
9374
|
-
}
|
|
9375
|
-
e = e.toString().replace(/./g, this.replace);
|
|
9376
9376
|
}
|
|
9377
9377
|
this.emit("data", e);
|
|
9378
9378
|
};
|
|
@@ -14825,7 +14825,7 @@
|
|
|
14825
14825
|
return t(r, e, o, n);
|
|
14826
14826
|
})(i.innerFrom(e(r, o)));
|
|
14827
14827
|
}, r);
|
|
14828
|
-
if ("number" == typeof t) r = t;
|
|
14828
|
+
else if ("number" == typeof t) r = t;
|
|
14829
14829
|
return o.operate(function(t, n) {
|
|
14830
14830
|
return u.mergeInternals(t, n, e, r);
|
|
14831
14831
|
});
|
|
@@ -15084,7 +15084,7 @@
|
|
|
15084
15084
|
for(var i = 0; i < r; i++){
|
|
15085
15085
|
var o = null == n ? void 0 : n[e[i]];
|
|
15086
15086
|
if (void 0 === o) return;
|
|
15087
|
-
n = o;
|
|
15087
|
+
else n = o;
|
|
15088
15088
|
}
|
|
15089
15089
|
return n;
|
|
15090
15090
|
});
|
|
@@ -17367,7 +17367,7 @@
|
|
|
17367
17367
|
this.pending = false;
|
|
17368
17368
|
var r = this._execute(e, t);
|
|
17369
17369
|
if (r) return r;
|
|
17370
|
-
if (false === this.pending && null != this.id) this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
17370
|
+
else if (false === this.pending && null != this.id) this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
|
17371
17371
|
};
|
|
17372
17372
|
AsyncAction.prototype._execute = function(e, t) {
|
|
17373
17373
|
var r = false;
|
|
@@ -17619,11 +17619,13 @@
|
|
|
17619
17619
|
VirtualAction.prototype.schedule = function(t, r) {
|
|
17620
17620
|
if (void 0 === r) r = 0;
|
|
17621
17621
|
if (!Number.isFinite(r)) return o.Subscription.EMPTY;
|
|
17622
|
-
|
|
17623
|
-
|
|
17624
|
-
|
|
17625
|
-
|
|
17626
|
-
|
|
17622
|
+
else {
|
|
17623
|
+
if (!this.id) return e.prototype.schedule.call(this, t, r);
|
|
17624
|
+
this.active = false;
|
|
17625
|
+
var n = new VirtualAction(this.scheduler, this.work);
|
|
17626
|
+
this.add(n);
|
|
17627
|
+
return n.schedule(t, r);
|
|
17628
|
+
}
|
|
17627
17629
|
};
|
|
17628
17630
|
VirtualAction.prototype.requestAsyncId = function(e, t, r) {
|
|
17629
17631
|
if (void 0 === r) r = 0;
|
|
@@ -17643,8 +17645,8 @@
|
|
|
17643
17645
|
if (e.delay === t.delay) if (e.index === t.index) return 0;
|
|
17644
17646
|
else if (e.index > t.index) return 1;
|
|
17645
17647
|
else return -1;
|
|
17646
|
-
if (e.delay > t.delay) return 1;
|
|
17647
|
-
return -1;
|
|
17648
|
+
else if (e.delay > t.delay) return 1;
|
|
17649
|
+
else return -1;
|
|
17648
17650
|
};
|
|
17649
17651
|
return VirtualAction;
|
|
17650
17652
|
}(i.AsyncAction);
|
|
@@ -19666,11 +19668,13 @@
|
|
|
19666
19668
|
var b = n.emit;
|
|
19667
19669
|
var y = function(e, t) {
|
|
19668
19670
|
if (!("exit" === e && processOk(global.process))) return b.apply(this, arguments);
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19671
|
+
else {
|
|
19672
|
+
if (void 0 !== t) n.exitCode = t;
|
|
19673
|
+
var r = b.apply(this, arguments);
|
|
19674
|
+
l("exit", n.exitCode, null);
|
|
19675
|
+
l("afterexit", n.exitCode, null);
|
|
19676
|
+
return r;
|
|
19677
|
+
}
|
|
19674
19678
|
};
|
|
19675
19679
|
} else e.exports = function() {
|
|
19676
19680
|
return function() {};
|
|
@@ -19736,7 +19740,7 @@
|
|
|
19736
19740
|
while(u.length && !s.paused){
|
|
19737
19741
|
var e = u.shift();
|
|
19738
19742
|
if (null === e) return s.emit("end");
|
|
19739
|
-
s.emit("data", e);
|
|
19743
|
+
else s.emit("data", e);
|
|
19740
19744
|
}
|
|
19741
19745
|
}
|
|
19742
19746
|
s.queue = s.push = function(e) {
|
|
@@ -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;
|