@bleedingdev/modern-js-utils 3.9.0-ultramodern.1 → 3.9.0-ultramodern.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli/require.js +10 -1
- package/dist/cjs/universal/index.js +5 -25
- package/dist/compiled/chokidar/types/index.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +1 -1
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +1 -1
- package/dist/compiled/fast-glob/out/types/index.d.ts +1 -1
- package/dist/compiled/inquirer/lib/prompts/base.d.ts +100 -0
- package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +116 -0
- package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +53 -0
- package/dist/compiled/inquirer/lib/prompts/editor.d.ts +101 -0
- package/dist/compiled/inquirer/lib/prompts/expand.d.ts +149 -0
- package/dist/compiled/inquirer/lib/prompts/input.d.ts +82 -0
- package/dist/compiled/inquirer/lib/prompts/list.d.ts +89 -0
- package/dist/compiled/inquirer/lib/prompts/number.d.ts +32 -0
- package/dist/compiled/inquirer/lib/prompts/password.d.ts +82 -0
- package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +111 -0
- package/dist/compiled/inquirer/lib/utils/events.d.ts +72 -0
- package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +23 -0
- package/dist/compiled/inquirer/lib/utils/paginator.d.ts +55 -0
- package/dist/compiled/inquirer/lib/utils/readline.d.ts +56 -0
- package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +90 -0
- package/dist/compiled/inquirer/lib/utils/utils.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/LICENSE.txt +202 -0
- package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/index.d.ts +173 -0
- package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +175 -0
- package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +121 -0
- package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +92 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +115 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +227 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +65 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +200 -0
- package/dist/compiled/inquirer/rxjs/internal/config.d.ts +73 -0
- package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +42 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +33 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +27 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +173 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +76 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +159 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +24 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +314 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +82 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +21 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +40 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +115 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +126 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +87 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +58 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +59 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +60 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +51 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +47 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +64 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +119 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +64 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +52 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +62 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +18 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +68 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +44 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +63 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +56 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +54 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +18 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +69 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +56 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +29 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +108 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +28 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +46 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +60 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +43 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +36 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +62 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +61 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +20 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +45 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +42 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +72 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +78 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +39 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +50 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +255 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +35 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +33 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +65 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +49 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +10 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +26 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +30 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +12 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +24 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +48 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +38 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +13 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +41 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +53 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +69 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +16 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +88 -0
- package/dist/compiled/inquirer/rxjs/internal/types.d.ts +307 -0
- package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +19 -0
- package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +21 -0
- package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +17 -0
- package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +20 -0
- package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +17 -0
- package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +16 -0
- package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +5 -0
- package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +44 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +9 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +8 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +4 -0
- package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +3 -0
- package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +15 -0
- package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +14 -0
- package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +11 -0
- package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +7 -0
- package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +6 -0
- package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/operators/index.d.ts +114 -0
- package/dist/compiled/inquirer/rxjs/testing/index.d.ts +2 -0
- package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +3 -0
- package/dist/compiled/inquirer/types-license +21 -0
- package/dist/compiled/lodash/index.d.ts +1 -11
- package/dist/compiled/upath/upath.d.ts +2 -2
- package/dist/esm/cli/require.mjs +10 -1
- package/dist/esm/universal/index.mjs +0 -2
- package/dist/esm-node/cli/require.mjs +10 -1
- package/dist/esm-node/universal/index.mjs +0 -2
- package/dist/types/universal/index.d.ts +0 -2
- package/package.json +7 -6
- package/rslib.config.mts +2 -0
- package/dist/cjs/universal/backend-federation-contract/build-artifact.js +0 -185
- package/dist/cjs/universal/backend-federation-contract/constants.js +0 -92
- package/dist/cjs/universal/backend-federation-contract/delivery-unit.js +0 -130
- package/dist/cjs/universal/backend-federation-contract/index.js +0 -137
- package/dist/cjs/universal/backend-federation-contract/metadata.js +0 -133
- package/dist/cjs/universal/backend-federation-contract/types.js +0 -18
- package/dist/cjs/universal/backend-federation-contract/validation-core.js +0 -85
- package/dist/cjs/universal/surface-resolution/env-static-provider.js +0 -318
- package/dist/cjs/universal/surface-resolution/index.js +0 -69
- package/dist/cjs/universal/surface-resolution/surface-ref.js +0 -132
- package/dist/cjs/universal/surface-resolution/types.js +0 -18
- package/dist/cjs/universal/surface-resolution/validation.js +0 -202
- package/dist/esm/universal/backend-federation-contract/build-artifact.mjs +0 -135
- package/dist/esm/universal/backend-federation-contract/constants.mjs +0 -18
- package/dist/esm/universal/backend-federation-contract/delivery-unit.mjs +0 -74
- package/dist/esm/universal/backend-federation-contract/index.mjs +0 -5
- package/dist/esm/universal/backend-federation-contract/metadata.mjs +0 -80
- package/dist/esm/universal/backend-federation-contract/types.mjs +0 -0
- package/dist/esm/universal/backend-federation-contract/validation-core.mjs +0 -29
- package/dist/esm/universal/surface-resolution/env-static-provider.mjs +0 -274
- package/dist/esm/universal/surface-resolution/index.mjs +0 -3
- package/dist/esm/universal/surface-resolution/surface-ref.mjs +0 -88
- package/dist/esm/universal/surface-resolution/types.mjs +0 -0
- package/dist/esm/universal/surface-resolution/validation.mjs +0 -155
- package/dist/esm-node/universal/backend-federation-contract/build-artifact.mjs +0 -136
- package/dist/esm-node/universal/backend-federation-contract/constants.mjs +0 -19
- package/dist/esm-node/universal/backend-federation-contract/delivery-unit.mjs +0 -75
- package/dist/esm-node/universal/backend-federation-contract/index.mjs +0 -6
- package/dist/esm-node/universal/backend-federation-contract/metadata.mjs +0 -81
- package/dist/esm-node/universal/backend-federation-contract/types.mjs +0 -1
- package/dist/esm-node/universal/backend-federation-contract/validation-core.mjs +0 -30
- package/dist/esm-node/universal/surface-resolution/env-static-provider.mjs +0 -275
- package/dist/esm-node/universal/surface-resolution/index.mjs +0 -4
- package/dist/esm-node/universal/surface-resolution/surface-ref.mjs +0 -89
- package/dist/esm-node/universal/surface-resolution/types.mjs +0 -1
- package/dist/esm-node/universal/surface-resolution/validation.mjs +0 -156
- package/dist/types/universal/backend-federation-contract/build-artifact.d.ts +0 -9
- package/dist/types/universal/backend-federation-contract/constants.d.ts +0 -14
- package/dist/types/universal/backend-federation-contract/delivery-unit.d.ts +0 -9
- package/dist/types/universal/backend-federation-contract/index.d.ts +0 -7
- package/dist/types/universal/backend-federation-contract/metadata.d.ts +0 -7
- package/dist/types/universal/backend-federation-contract/types.d.ts +0 -60
- package/dist/types/universal/backend-federation-contract/validation-core.d.ts +0 -8
- package/dist/types/universal/surface-resolution/env-static-provider.d.ts +0 -107
- package/dist/types/universal/surface-resolution/index.d.ts +0 -4
- package/dist/types/universal/surface-resolution/surface-ref.d.ts +0 -72
- package/dist/types/universal/surface-resolution/types.d.ts +0 -102
- package/dist/types/universal/surface-resolution/validation.d.ts +0 -53
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
-
var define = (defs, kind)=>{
|
|
6
|
-
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
[kind]: defs[key]
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
define(getters, "get");
|
|
12
|
-
define(values, "value");
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
(()=>{
|
|
16
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17
|
-
})();
|
|
18
|
-
(()=>{
|
|
19
|
-
__webpack_require__.r = (exports1)=>{
|
|
20
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
21
|
-
value: 'Module'
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
24
|
-
value: true
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
})();
|
|
28
|
-
var __webpack_exports__ = {};
|
|
29
|
-
__webpack_require__.r(__webpack_exports__);
|
|
30
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
-
DEFAULT_LOCAL_ENVIRONMENTS: ()=>DEFAULT_LOCAL_ENVIRONMENTS,
|
|
32
|
-
ENV_STATIC_PROVIDER_NAME: ()=>ENV_STATIC_PROVIDER_NAME,
|
|
33
|
-
createEnvStaticSurfaceResolutionProvider: ()=>createEnvStaticSurfaceResolutionProvider
|
|
34
|
-
});
|
|
35
|
-
const external_surface_ref_js_namespaceObject = require("./surface-ref.js");
|
|
36
|
-
const external_validation_js_namespaceObject = require("./validation.js");
|
|
37
|
-
const DEFAULT_LOCAL_ENVIRONMENTS = [
|
|
38
|
-
'development',
|
|
39
|
-
'local'
|
|
40
|
-
];
|
|
41
|
-
const ENV_STATIC_PROVIDER_NAME = 'env-static';
|
|
42
|
-
function trimTrailingSlashes(value) {
|
|
43
|
-
return value.replace(/\/+$/u, '');
|
|
44
|
-
}
|
|
45
|
-
function envValue(env, name) {
|
|
46
|
-
const value = env[name]?.trim();
|
|
47
|
-
return void 0 !== value && value.length > 0 ? value : void 0;
|
|
48
|
-
}
|
|
49
|
-
function stripMfNamePrefix(value, mfName) {
|
|
50
|
-
return value.startsWith(`${mfName}@`) ? value.slice(mfName.length + 1) : value;
|
|
51
|
-
}
|
|
52
|
-
function createEnvContext(env, allowLocalFallback) {
|
|
53
|
-
return {
|
|
54
|
-
env,
|
|
55
|
-
allowLocalFallback,
|
|
56
|
-
cloudflareDeployEnabled: 'cloudflare' === env.MODERNJS_DEPLOY,
|
|
57
|
-
workersDevSubdomain: envValue(env, 'ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN'),
|
|
58
|
-
requireCloudflarePublicUrls: 'true' === env.ULTRAMODERN_CLOUDFLARE_REQUIRE_PUBLIC_URLS
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function resolveBaseUrl(context, unit) {
|
|
62
|
-
const publicUrlEnv = `ULTRAMODERN_PUBLIC_URL_${unit.envSegment}`;
|
|
63
|
-
const configuredPublicUrl = envValue(context.env, publicUrlEnv);
|
|
64
|
-
if (void 0 !== configuredPublicUrl) return {
|
|
65
|
-
ok: true,
|
|
66
|
-
baseUrl: trimTrailingSlashes(configuredPublicUrl)
|
|
67
|
-
};
|
|
68
|
-
if (context.cloudflareDeployEnabled && void 0 !== context.workersDevSubdomain && void 0 !== unit.workerName) return {
|
|
69
|
-
ok: true,
|
|
70
|
-
baseUrl: `https://${unit.workerName}.${context.workersDevSubdomain}.workers.dev`
|
|
71
|
-
};
|
|
72
|
-
if (context.cloudflareDeployEnabled && context.requireCloudflarePublicUrls) return {
|
|
73
|
-
ok: false,
|
|
74
|
-
reason: `Cloudflare deploy requires ${publicUrlEnv} (or a configured manifest env / ULTRAMODERN_CLOUDFLARE_WORKERS_DEV_SUBDOMAIN with a worker name)`,
|
|
75
|
-
details: {
|
|
76
|
-
publicUrlEnv
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
if (void 0 !== unit.port && context.allowLocalFallback) return {
|
|
80
|
-
ok: true,
|
|
81
|
-
baseUrl: `http://localhost:${unit.port}`
|
|
82
|
-
};
|
|
83
|
-
if (void 0 !== unit.port) return {
|
|
84
|
-
ok: false,
|
|
85
|
-
reason: `No base URL available: set ${publicUrlEnv} (localhost fallback is disabled outside designated local environments)`,
|
|
86
|
-
details: {
|
|
87
|
-
publicUrlEnv
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
return {
|
|
91
|
-
ok: false,
|
|
92
|
-
reason: `No base URL available: set ${publicUrlEnv} or configure a localhost port`,
|
|
93
|
-
details: {
|
|
94
|
-
publicUrlEnv
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function resolveBrowserMfManifest(context, unit) {
|
|
99
|
-
const manifestEnv = `VERTICAL_${unit.envSegment}_MF_MANIFEST`;
|
|
100
|
-
const configuredManifest = envValue(context.env, manifestEnv);
|
|
101
|
-
if (void 0 !== configuredManifest) return {
|
|
102
|
-
ok: true,
|
|
103
|
-
location: {
|
|
104
|
-
platform: 'browser-mf-manifest',
|
|
105
|
-
manifestUrl: stripMfNamePrefix(configuredManifest, unit.mfName)
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
const base = resolveBaseUrl(context, unit);
|
|
109
|
-
if (!base.ok) return {
|
|
110
|
-
ok: false,
|
|
111
|
-
reason: `browser-mf-manifest unavailable (${manifestEnv} unset; ${base.reason})`,
|
|
112
|
-
details: {
|
|
113
|
-
manifestEnv,
|
|
114
|
-
...base.details
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
return {
|
|
118
|
-
ok: true,
|
|
119
|
-
location: {
|
|
120
|
-
platform: 'browser-mf-manifest',
|
|
121
|
-
manifestUrl: `${base.baseUrl}/mf-manifest.json`
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function resolveNodeMfManifest(context, unit) {
|
|
126
|
-
const manifestEnv = `VERTICAL_${unit.envSegment}_BACKEND_MF_MANIFEST`;
|
|
127
|
-
const configuredManifest = envValue(context.env, manifestEnv);
|
|
128
|
-
if (void 0 !== configuredManifest) return {
|
|
129
|
-
ok: true,
|
|
130
|
-
location: {
|
|
131
|
-
platform: 'node-mf-manifest',
|
|
132
|
-
manifestRef: configuredManifest
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
if (void 0 !== unit.port && context.allowLocalFallback) return {
|
|
136
|
-
ok: true,
|
|
137
|
-
location: {
|
|
138
|
-
platform: 'node-mf-manifest',
|
|
139
|
-
manifestRef: `http://localhost:${unit.port}/backend-mf-manifest.json`
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
if (void 0 !== unit.port) return {
|
|
143
|
-
ok: false,
|
|
144
|
-
reason: `node-mf-manifest unavailable: set ${manifestEnv} (localhost fallback is disabled outside designated local environments)`,
|
|
145
|
-
details: {
|
|
146
|
-
manifestEnv
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
return {
|
|
150
|
-
ok: false,
|
|
151
|
-
reason: `node-mf-manifest unavailable: set ${manifestEnv} or configure a localhost port`,
|
|
152
|
-
details: {
|
|
153
|
-
manifestEnv
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
function resolveHttpApi(context, unit, config) {
|
|
158
|
-
const base = resolveBaseUrl(context, unit);
|
|
159
|
-
if (!base.ok) return {
|
|
160
|
-
ok: false,
|
|
161
|
-
reason: `http-api unavailable (${base.reason})`,
|
|
162
|
-
details: base.details
|
|
163
|
-
};
|
|
164
|
-
return {
|
|
165
|
-
ok: true,
|
|
166
|
-
location: {
|
|
167
|
-
platform: 'http-api',
|
|
168
|
-
baseUrl: base.baseUrl,
|
|
169
|
-
prefix: config.prefix
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
function resolveCloudflareServiceBinding(config) {
|
|
174
|
-
if (0 === config.serviceBinding.length) return {
|
|
175
|
-
ok: false,
|
|
176
|
-
reason: 'cloudflare-service-binding unavailable: empty serviceBinding'
|
|
177
|
-
};
|
|
178
|
-
return {
|
|
179
|
-
ok: true,
|
|
180
|
-
location: {
|
|
181
|
-
platform: 'cloudflare-service-binding',
|
|
182
|
-
serviceBinding: config.serviceBinding,
|
|
183
|
-
...void 0 === config.dispatchNamespace ? {} : {
|
|
184
|
-
dispatchNamespace: config.dispatchNamespace
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function resolveSurfaceLocations(context, unit, surface) {
|
|
190
|
-
const outcomes = [];
|
|
191
|
-
if (surface.platforms.browserMfManifest) outcomes.push(resolveBrowserMfManifest(context, unit));
|
|
192
|
-
if (surface.platforms.nodeMfManifest) outcomes.push(resolveNodeMfManifest(context, unit));
|
|
193
|
-
if (void 0 !== surface.platforms.httpApi) outcomes.push(resolveHttpApi(context, unit, surface.platforms.httpApi));
|
|
194
|
-
if (void 0 !== surface.platforms.cloudflareServiceBinding) outcomes.push(resolveCloudflareServiceBinding(surface.platforms.cloudflareServiceBinding));
|
|
195
|
-
const failure = outcomes.find((outcome)=>!outcome.ok);
|
|
196
|
-
if (void 0 !== failure && !failure.ok) return {
|
|
197
|
-
ok: false,
|
|
198
|
-
reason: `surface ${surface.surfaceId}: ${failure.reason}`,
|
|
199
|
-
details: failure.details
|
|
200
|
-
};
|
|
201
|
-
const locations = outcomes.flatMap((outcome)=>outcome.ok ? [
|
|
202
|
-
outcome.location
|
|
203
|
-
] : []);
|
|
204
|
-
if (0 === locations.length) return {
|
|
205
|
-
ok: false,
|
|
206
|
-
reason: `surface ${surface.surfaceId} declares no platform locations`
|
|
207
|
-
};
|
|
208
|
-
return {
|
|
209
|
-
ok: true,
|
|
210
|
-
surface: {
|
|
211
|
-
surfaceId: surface.surfaceId,
|
|
212
|
-
kind: surface.kind,
|
|
213
|
-
locations
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
function createEnvStaticSurfaceResolutionProvider(options) {
|
|
218
|
-
const env = options.env ?? {};
|
|
219
|
-
const localEnvironments = new Set(options.localEnvironments ?? DEFAULT_LOCAL_ENVIRONMENTS);
|
|
220
|
-
const identityVerification = options.identityVerification ?? 'static-trust';
|
|
221
|
-
const unitsById = new Map(options.units.map((unit)=>[
|
|
222
|
-
unit.unitId,
|
|
223
|
-
unit
|
|
224
|
-
]));
|
|
225
|
-
return {
|
|
226
|
-
name: ENV_STATIC_PROVIDER_NAME,
|
|
227
|
-
resolve (ref, environment) {
|
|
228
|
-
const refString = (0, external_surface_ref_js_namespaceObject.formatSurfaceRef)(ref);
|
|
229
|
-
const unit = unitsById.get(ref.unitId);
|
|
230
|
-
if (void 0 === unit) return {
|
|
231
|
-
ok: false,
|
|
232
|
-
error: (0, external_validation_js_namespaceObject.createDiscoveryError)('unknown-unit', refString, `No statically configured delivery unit ${ref.unitId}.`, {
|
|
233
|
-
environment,
|
|
234
|
-
knownUnits: [
|
|
235
|
-
...unitsById.keys()
|
|
236
|
-
]
|
|
237
|
-
})
|
|
238
|
-
};
|
|
239
|
-
if (!unit.surfaces.some((surface)=>surface.surfaceId === ref.surfaceId)) return {
|
|
240
|
-
ok: false,
|
|
241
|
-
error: (0, external_validation_js_namespaceObject.createDiscoveryError)('unknown-surface', refString, `Unit ${unit.unitId} does not declare surface ${ref.surfaceId}.`, {
|
|
242
|
-
environment,
|
|
243
|
-
availableSurfaces: unit.surfaces.map((surface)=>surface.surfaceId)
|
|
244
|
-
})
|
|
245
|
-
};
|
|
246
|
-
let effectiveUnit = unit;
|
|
247
|
-
if (void 0 !== ref.major) {
|
|
248
|
-
const majorConfig = (unit.majors ?? []).find((candidate)=>candidate.major === ref.major);
|
|
249
|
-
if (void 0 === majorConfig) return {
|
|
250
|
-
ok: false,
|
|
251
|
-
error: (0, external_validation_js_namespaceObject.createDiscoveryError)('major-not-published', refString, `Unit ${unit.unitId} has no materialization for external major v${ref.major}.`, {
|
|
252
|
-
environment,
|
|
253
|
-
publishedMajors: (unit.majors ?? []).map((candidate)=>candidate.major)
|
|
254
|
-
})
|
|
255
|
-
};
|
|
256
|
-
effectiveUnit = {
|
|
257
|
-
...unit,
|
|
258
|
-
envSegment: majorConfig.envSegment ?? `${unit.envSegment}_V${majorConfig.major}`,
|
|
259
|
-
port: majorConfig.port,
|
|
260
|
-
workerName: majorConfig.workerName
|
|
261
|
-
};
|
|
262
|
-
}
|
|
263
|
-
const context = createEnvContext(env, localEnvironments.has(environment));
|
|
264
|
-
const surfaces = [];
|
|
265
|
-
for (const surfaceConfig of unit.surfaces){
|
|
266
|
-
const resolved = resolveSurfaceLocations(context, effectiveUnit, surfaceConfig);
|
|
267
|
-
if (!resolved.ok) return {
|
|
268
|
-
ok: false,
|
|
269
|
-
error: (0, external_validation_js_namespaceObject.createDiscoveryError)('provider-unavailable', refString, `env-static provider cannot assemble a complete record for ${unit.unitId}: ${resolved.reason}.`, {
|
|
270
|
-
environment,
|
|
271
|
-
...resolved.details
|
|
272
|
-
})
|
|
273
|
-
};
|
|
274
|
-
surfaces.push(void 0 === ref.major ? resolved.surface : {
|
|
275
|
-
...resolved.surface,
|
|
276
|
-
servedMajor: ref.major
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
const record = {
|
|
280
|
-
unitId: unit.unitId,
|
|
281
|
-
buildMarker: unit.buildMarker,
|
|
282
|
-
sourceRevision: unit.sourceRevision,
|
|
283
|
-
baselineCohortId: unit.baselineCohortId,
|
|
284
|
-
surfaces,
|
|
285
|
-
compatibility: {
|
|
286
|
-
status: 'compatible',
|
|
287
|
-
baselineCohortId: unit.baselineCohortId,
|
|
288
|
-
...'static-trust' === identityVerification ? {
|
|
289
|
-
reason: 'static-identity-unverified'
|
|
290
|
-
} : {}
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
const validation = (0, external_validation_js_namespaceObject.validateResolvedDeliveryUnit)(record);
|
|
294
|
-
if (!validation.ok) return {
|
|
295
|
-
ok: false,
|
|
296
|
-
error: (0, external_validation_js_namespaceObject.createDiscoveryError)('provider-unavailable', refString, `env-static provider assembled an invalid record for ${unit.unitId}.`, {
|
|
297
|
-
environment,
|
|
298
|
-
issues: validation.issues
|
|
299
|
-
})
|
|
300
|
-
};
|
|
301
|
-
return {
|
|
302
|
-
ok: true,
|
|
303
|
-
unit: record
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
exports.DEFAULT_LOCAL_ENVIRONMENTS = __webpack_exports__.DEFAULT_LOCAL_ENVIRONMENTS;
|
|
309
|
-
exports.ENV_STATIC_PROVIDER_NAME = __webpack_exports__.ENV_STATIC_PROVIDER_NAME;
|
|
310
|
-
exports.createEnvStaticSurfaceResolutionProvider = __webpack_exports__.createEnvStaticSurfaceResolutionProvider;
|
|
311
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
312
|
-
"DEFAULT_LOCAL_ENVIRONMENTS",
|
|
313
|
-
"ENV_STATIC_PROVIDER_NAME",
|
|
314
|
-
"createEnvStaticSurfaceResolutionProvider"
|
|
315
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
316
|
-
Object.defineProperty(exports, '__esModule', {
|
|
317
|
-
value: true
|
|
318
|
-
});
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
-
var define = (defs, kind)=>{
|
|
6
|
-
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
[kind]: defs[key]
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
define(getters, "get");
|
|
12
|
-
define(values, "value");
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
(()=>{
|
|
16
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17
|
-
})();
|
|
18
|
-
(()=>{
|
|
19
|
-
__webpack_require__.r = (exports1)=>{
|
|
20
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
21
|
-
value: 'Module'
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
24
|
-
value: true
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
})();
|
|
28
|
-
var __webpack_exports__ = {};
|
|
29
|
-
__webpack_require__.r(__webpack_exports__);
|
|
30
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
-
DEFAULT_LOCAL_ENVIRONMENTS: ()=>external_env_static_provider_js_namespaceObject.DEFAULT_LOCAL_ENVIRONMENTS,
|
|
32
|
-
ENV_STATIC_PROVIDER_NAME: ()=>external_env_static_provider_js_namespaceObject.ENV_STATIC_PROVIDER_NAME,
|
|
33
|
-
createDiscoveryError: ()=>external_validation_js_namespaceObject.createDiscoveryError,
|
|
34
|
-
createEnvStaticSurfaceResolutionProvider: ()=>external_env_static_provider_js_namespaceObject.createEnvStaticSurfaceResolutionProvider,
|
|
35
|
-
formatSurfaceRef: ()=>external_surface_ref_js_namespaceObject.formatSurfaceRef,
|
|
36
|
-
matchDeliveryUnitIdentity: ()=>external_validation_js_namespaceObject.matchDeliveryUnitIdentity,
|
|
37
|
-
parseSurfaceRef: ()=>external_surface_ref_js_namespaceObject.parseSurfaceRef,
|
|
38
|
-
selectResolvedSurface: ()=>external_validation_js_namespaceObject.selectResolvedSurface,
|
|
39
|
-
validateResolvedDeliveryUnit: ()=>external_validation_js_namespaceObject.validateResolvedDeliveryUnit,
|
|
40
|
-
validateSurfaceRef: ()=>external_surface_ref_js_namespaceObject.validateSurfaceRef
|
|
41
|
-
});
|
|
42
|
-
const external_env_static_provider_js_namespaceObject = require("./env-static-provider.js");
|
|
43
|
-
const external_surface_ref_js_namespaceObject = require("./surface-ref.js");
|
|
44
|
-
const external_validation_js_namespaceObject = require("./validation.js");
|
|
45
|
-
exports.DEFAULT_LOCAL_ENVIRONMENTS = __webpack_exports__.DEFAULT_LOCAL_ENVIRONMENTS;
|
|
46
|
-
exports.ENV_STATIC_PROVIDER_NAME = __webpack_exports__.ENV_STATIC_PROVIDER_NAME;
|
|
47
|
-
exports.createDiscoveryError = __webpack_exports__.createDiscoveryError;
|
|
48
|
-
exports.createEnvStaticSurfaceResolutionProvider = __webpack_exports__.createEnvStaticSurfaceResolutionProvider;
|
|
49
|
-
exports.formatSurfaceRef = __webpack_exports__.formatSurfaceRef;
|
|
50
|
-
exports.matchDeliveryUnitIdentity = __webpack_exports__.matchDeliveryUnitIdentity;
|
|
51
|
-
exports.parseSurfaceRef = __webpack_exports__.parseSurfaceRef;
|
|
52
|
-
exports.selectResolvedSurface = __webpack_exports__.selectResolvedSurface;
|
|
53
|
-
exports.validateResolvedDeliveryUnit = __webpack_exports__.validateResolvedDeliveryUnit;
|
|
54
|
-
exports.validateSurfaceRef = __webpack_exports__.validateSurfaceRef;
|
|
55
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
56
|
-
"DEFAULT_LOCAL_ENVIRONMENTS",
|
|
57
|
-
"ENV_STATIC_PROVIDER_NAME",
|
|
58
|
-
"createDiscoveryError",
|
|
59
|
-
"createEnvStaticSurfaceResolutionProvider",
|
|
60
|
-
"formatSurfaceRef",
|
|
61
|
-
"matchDeliveryUnitIdentity",
|
|
62
|
-
"parseSurfaceRef",
|
|
63
|
-
"selectResolvedSurface",
|
|
64
|
-
"validateResolvedDeliveryUnit",
|
|
65
|
-
"validateSurfaceRef"
|
|
66
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
67
|
-
Object.defineProperty(exports, '__esModule', {
|
|
68
|
-
value: true
|
|
69
|
-
});
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (exports1, getters, values)=>{
|
|
5
|
-
var define = (defs, kind)=>{
|
|
6
|
-
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
[kind]: defs[key]
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
define(getters, "get");
|
|
12
|
-
define(values, "value");
|
|
13
|
-
};
|
|
14
|
-
})();
|
|
15
|
-
(()=>{
|
|
16
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
17
|
-
})();
|
|
18
|
-
(()=>{
|
|
19
|
-
__webpack_require__.r = (exports1)=>{
|
|
20
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
21
|
-
value: 'Module'
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
24
|
-
value: true
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
})();
|
|
28
|
-
var __webpack_exports__ = {};
|
|
29
|
-
__webpack_require__.r(__webpack_exports__);
|
|
30
|
-
const SEGMENT_PATTERN = /^[A-Za-z0-9._-]+$/;
|
|
31
|
-
const MAJOR_PATTERN = /^v[1-9][0-9]*$/;
|
|
32
|
-
function parseSurfaceRef(input) {
|
|
33
|
-
if ('' === input) return {
|
|
34
|
-
ok: false,
|
|
35
|
-
error: {
|
|
36
|
-
code: 'empty'
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const hashCount = countChar(input, '#');
|
|
40
|
-
if (0 === hashCount) return {
|
|
41
|
-
ok: false,
|
|
42
|
-
error: {
|
|
43
|
-
code: 'missing-surface-separator'
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
if (hashCount > 1) return {
|
|
47
|
-
ok: false,
|
|
48
|
-
error: {
|
|
49
|
-
code: 'multiple-surface-separators'
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
const hashIndex = input.indexOf('#');
|
|
53
|
-
const unitPart = input.slice(0, hashIndex);
|
|
54
|
-
const rest = input.slice(hashIndex + 1);
|
|
55
|
-
const atIndex = rest.indexOf('@');
|
|
56
|
-
const surfaceId = -1 === atIndex ? rest : rest.slice(0, atIndex);
|
|
57
|
-
const ref = {
|
|
58
|
-
unitId: unitPart,
|
|
59
|
-
surfaceId
|
|
60
|
-
};
|
|
61
|
-
if (-1 !== atIndex) {
|
|
62
|
-
const majorPart = rest.slice(atIndex + 1);
|
|
63
|
-
if ('' === majorPart) return {
|
|
64
|
-
ok: false,
|
|
65
|
-
error: {
|
|
66
|
-
code: 'empty-major'
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
if (!MAJOR_PATTERN.test(majorPart)) return {
|
|
70
|
-
ok: false,
|
|
71
|
-
error: {
|
|
72
|
-
code: 'invalid-major',
|
|
73
|
-
value: majorPart
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
ref.major = Number(majorPart.slice(1));
|
|
77
|
-
}
|
|
78
|
-
const error = validateSurfaceRef(ref);
|
|
79
|
-
return void 0 === error ? {
|
|
80
|
-
ok: true,
|
|
81
|
-
ref
|
|
82
|
-
} : {
|
|
83
|
-
ok: false,
|
|
84
|
-
error
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function formatSurfaceRef(ref) {
|
|
88
|
-
const error = validateSurfaceRef(ref);
|
|
89
|
-
if (void 0 !== error) throw new TypeError(`Cannot format invalid SurfaceRef: ${error.code}.`);
|
|
90
|
-
const base = `${ref.unitId}#${ref.surfaceId}`;
|
|
91
|
-
return void 0 === ref.major ? base : `${base}@v${ref.major}`;
|
|
92
|
-
}
|
|
93
|
-
function validateSurfaceRef(ref) {
|
|
94
|
-
if ('' === ref.unitId) return {
|
|
95
|
-
code: 'empty-unit-id'
|
|
96
|
-
};
|
|
97
|
-
for (const segment of ref.unitId.split('/'))if (!SEGMENT_PATTERN.test(segment)) return {
|
|
98
|
-
code: 'invalid-unit-id',
|
|
99
|
-
segment
|
|
100
|
-
};
|
|
101
|
-
if ('' === ref.surfaceId) return {
|
|
102
|
-
code: 'empty-surface-id'
|
|
103
|
-
};
|
|
104
|
-
if (!SEGMENT_PATTERN.test(ref.surfaceId)) return {
|
|
105
|
-
code: 'invalid-surface-id'
|
|
106
|
-
};
|
|
107
|
-
if (void 0 !== ref.major && (!Number.isSafeInteger(ref.major) || ref.major < 1)) return {
|
|
108
|
-
code: 'invalid-major',
|
|
109
|
-
value: String(ref.major)
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
function countChar(input, char) {
|
|
113
|
-
let count = 0;
|
|
114
|
-
for (const current of input)if (current === char) count += 1;
|
|
115
|
-
return count;
|
|
116
|
-
}
|
|
117
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
118
|
-
formatSurfaceRef: ()=>formatSurfaceRef,
|
|
119
|
-
parseSurfaceRef: ()=>parseSurfaceRef,
|
|
120
|
-
validateSurfaceRef: ()=>validateSurfaceRef
|
|
121
|
-
});
|
|
122
|
-
exports.formatSurfaceRef = __webpack_exports__.formatSurfaceRef;
|
|
123
|
-
exports.parseSurfaceRef = __webpack_exports__.parseSurfaceRef;
|
|
124
|
-
exports.validateSurfaceRef = __webpack_exports__.validateSurfaceRef;
|
|
125
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
126
|
-
"formatSurfaceRef",
|
|
127
|
-
"parseSurfaceRef",
|
|
128
|
-
"validateSurfaceRef"
|
|
129
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
130
|
-
Object.defineProperty(exports, '__esModule', {
|
|
131
|
-
value: true
|
|
132
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.r = (exports1)=>{
|
|
5
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
6
|
-
value: 'Module'
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
9
|
-
value: true
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
})();
|
|
13
|
-
var __webpack_exports__ = {};
|
|
14
|
-
__webpack_require__.r(__webpack_exports__);
|
|
15
|
-
for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
16
|
-
Object.defineProperty(exports, '__esModule', {
|
|
17
|
-
value: true
|
|
18
|
-
});
|