@uapkg/cli 1.3.0 → 1.3.2
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/app/CompositionRoot.d.ts +36 -33
- package/dist/app/CompositionRoot.d.ts.map +1 -1
- package/dist/app/CompositionRoot.js +91 -109
- package/dist/app/CompositionRoot.js.map +1 -1
- package/dist/app/UAPKGApplication.d.ts +6 -3
- package/dist/app/UAPKGApplication.d.ts.map +1 -1
- package/dist/app/UAPKGApplication.js +155 -169
- package/dist/app/UAPKGApplication.js.map +1 -1
- package/dist/build/BuildMetadata.d.ts +9 -6
- package/dist/build/BuildMetadata.d.ts.map +1 -1
- package/dist/build/BuildMetadata.js +2 -2
- package/dist/cli/UAPKGCommandLine.d.ts +259 -257
- package/dist/cli/UAPKGCommandLine.d.ts.map +1 -1
- package/dist/cli/UAPKGCommandLine.js +248 -239
- package/dist/cli/UAPKGCommandLine.js.map +1 -1
- package/dist/cli/parseCommandLine.d.ts +5 -1
- package/dist/cli/parseCommandLine.d.ts.map +1 -1
- package/dist/cli/parseCommandLine.js +8 -3
- package/dist/cli/parseCommandLine.js.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts +9 -6
- package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGCommandLineParser.js +23 -31
- package/dist/cli/parsing/UAPKGCommandLineParser.js.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts +12 -9
- package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +1 -1
- package/dist/cli/parsing/UAPKGParserRegistry.js +53 -50
- package/dist/cli/parsing/UAPKGParserRegistry.js.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts +9 -6
- package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js +1 -2
- package/dist/cli/parsing/modules/AddCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/AddCommandModule.js +49 -36
- package/dist/cli/parsing/modules/AddCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ConfigCommandModule.js +87 -83
- package/dist/cli/parsing/modules/ConfigCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InitCommandModule.js +25 -22
- package/dist/cli/parsing/modules/InitCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/InstallCommandModule.js +36 -28
- package/dist/cli/parsing/modules/InstallCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LifecycleCommandModule.js +78 -50
- package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ListCommandModule.js +26 -15
- package/dist/cli/parsing/modules/ListCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LoginCommandModule.js +34 -33
- package/dist/cli/parsing/modules/LoginCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/LogoutCommandModule.js +30 -28
- package/dist/cli/parsing/modules/LogoutCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/OutdatedCommandModule.js +21 -16
- package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PackCommandModule.js +30 -28
- package/dist/cli/parsing/modules/PackCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +14 -11
- package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/PublishCommandModule.js +63 -47
- package/dist/cli/parsing/modules/PublishCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RegistryCommandModule.js +117 -120
- package/dist/cli/parsing/modules/RegistryCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RemoveCommandModule.js +25 -14
- package/dist/cli/parsing/modules/RemoveCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/RequestsCommandModule.js +56 -60
- package/dist/cli/parsing/modules/RequestsCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/UpdateCommandModule.js +38 -25
- package/dist/cli/parsing/modules/UpdateCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhoamiCommandModule.js +30 -28
- package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts +8 -5
- package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +1 -1
- package/dist/cli/parsing/modules/WhyCommandModule.js +25 -14
- package/dist/cli/parsing/modules/WhyCommandModule.js.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.d.ts +8 -5
- package/dist/cli/parsing/modules/sharedOptions.d.ts.map +1 -1
- package/dist/cli/parsing/modules/sharedOptions.js +18 -23
- package/dist/cli/parsing/modules/sharedOptions.js.map +1 -1
- package/dist/cli/runUAPKGCLI.d.ts +4 -1
- package/dist/cli/runUAPKGCLI.d.ts.map +1 -1
- package/dist/cli/runUAPKGCLI.js +10 -5
- package/dist/cli/runUAPKGCLI.js.map +1 -1
- package/dist/cli-bootstrap.d.ts +1 -2
- package/dist/cli-bootstrap.js +15 -12
- package/dist/cli-bootstrap.js.map +1 -1
- package/dist/commands/AddCommand.d.ts +19 -16
- package/dist/commands/AddCommand.d.ts.map +1 -1
- package/dist/commands/AddCommand.js +49 -53
- package/dist/commands/AddCommand.js.map +1 -1
- package/dist/commands/Command.d.ts +5 -2
- package/dist/commands/Command.d.ts.map +1 -1
- package/dist/commands/Command.js +1 -2
- package/dist/commands/ConfigCommand.d.ts +28 -25
- package/dist/commands/ConfigCommand.d.ts.map +1 -1
- package/dist/commands/ConfigCommand.js +165 -186
- package/dist/commands/ConfigCommand.js.map +1 -1
- package/dist/commands/InitCommand.d.ts +19 -16
- package/dist/commands/InitCommand.d.ts.map +1 -1
- package/dist/commands/InitCommand.js +65 -60
- package/dist/commands/InitCommand.js.map +1 -1
- package/dist/commands/InstallCommand.d.ts +16 -13
- package/dist/commands/InstallCommand.d.ts.map +1 -1
- package/dist/commands/InstallCommand.js +118 -110
- package/dist/commands/InstallCommand.js.map +1 -1
- package/dist/commands/ListCommand.d.ts +13 -10
- package/dist/commands/ListCommand.d.ts.map +1 -1
- package/dist/commands/ListCommand.js +76 -81
- package/dist/commands/ListCommand.js.map +1 -1
- package/dist/commands/LoginCommand.d.ts +17 -14
- package/dist/commands/LoginCommand.d.ts.map +1 -1
- package/dist/commands/LoginCommand.js +66 -72
- package/dist/commands/LoginCommand.js.map +1 -1
- package/dist/commands/LogoutCommand.d.ts +15 -12
- package/dist/commands/LogoutCommand.d.ts.map +1 -1
- package/dist/commands/LogoutCommand.js +36 -37
- package/dist/commands/LogoutCommand.js.map +1 -1
- package/dist/commands/OutdatedCommand.d.ts +12 -9
- package/dist/commands/OutdatedCommand.d.ts.map +1 -1
- package/dist/commands/OutdatedCommand.js +41 -40
- package/dist/commands/OutdatedCommand.js.map +1 -1
- package/dist/commands/PackCommand.d.ts +13 -10
- package/dist/commands/PackCommand.d.ts.map +1 -1
- package/dist/commands/PackCommand.js +26 -21
- package/dist/commands/PackCommand.js.map +1 -1
- package/dist/commands/PackageLifecycleCommand.d.ts +23 -19
- package/dist/commands/PackageLifecycleCommand.d.ts.map +1 -1
- package/dist/commands/PackageLifecycleCommand.js +144 -138
- package/dist/commands/PackageLifecycleCommand.js.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.d.ts +11 -8
- package/dist/commands/PostinstallCandidateBuilder.d.ts.map +1 -1
- package/dist/commands/PostinstallCandidateBuilder.js +42 -42
- package/dist/commands/PostinstallCandidateBuilder.js.map +1 -1
- package/dist/commands/ProjectGetNameCommand.d.ts +10 -7
- package/dist/commands/ProjectGetNameCommand.d.ts.map +1 -1
- package/dist/commands/ProjectGetNameCommand.js +25 -25
- package/dist/commands/ProjectGetNameCommand.js.map +1 -1
- package/dist/commands/PublishCommand.d.ts +29 -23
- package/dist/commands/PublishCommand.d.ts.map +1 -1
- package/dist/commands/PublishCommand.js +243 -254
- package/dist/commands/PublishCommand.js.map +1 -1
- package/dist/commands/RegistryCommand.d.ts +38 -35
- package/dist/commands/RegistryCommand.d.ts.map +1 -1
- package/dist/commands/RegistryCommand.js +195 -223
- package/dist/commands/RegistryCommand.js.map +1 -1
- package/dist/commands/RemoveCommand.d.ts +14 -11
- package/dist/commands/RemoveCommand.d.ts.map +1 -1
- package/dist/commands/RemoveCommand.js +47 -54
- package/dist/commands/RemoveCommand.js.map +1 -1
- package/dist/commands/RequestsCommand.d.ts +21 -18
- package/dist/commands/RequestsCommand.d.ts.map +1 -1
- package/dist/commands/RequestsCommand.js +82 -95
- package/dist/commands/RequestsCommand.js.map +1 -1
- package/dist/commands/UpdateCommand.d.ts +29 -26
- package/dist/commands/UpdateCommand.d.ts.map +1 -1
- package/dist/commands/UpdateCommand.js +111 -111
- package/dist/commands/UpdateCommand.js.map +1 -1
- package/dist/commands/WhoamiCommand.d.ts +30 -27
- package/dist/commands/WhoamiCommand.d.ts.map +1 -1
- package/dist/commands/WhoamiCommand.js +63 -72
- package/dist/commands/WhoamiCommand.js.map +1 -1
- package/dist/commands/WhyCommand.d.ts +13 -10
- package/dist/commands/WhyCommand.d.ts.map +1 -1
- package/dist/commands/WhyCommand.js +45 -44
- package/dist/commands/WhyCommand.js.map +1 -1
- package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
- package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
- package/dist/commands/add/DependencyAddResolver.js +36 -36
- package/dist/commands/add/DependencyAddResolver.js.map +1 -1
- package/dist/control-plane/AccountManager.d.ts +96 -94
- package/dist/control-plane/AccountManager.d.ts.map +1 -1
- package/dist/control-plane/AccountManager.js +775 -967
- package/dist/control-plane/AccountManager.js.map +1 -1
- package/dist/control-plane/ArtifactObserver.d.ts +19 -16
- package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
- package/dist/control-plane/ArtifactObserver.js +73 -59
- package/dist/control-plane/ArtifactObserver.js.map +1 -1
- package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
- package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
- package/dist/control-plane/AuthMetadataStore.js +111 -113
- package/dist/control-plane/AuthMetadataStore.js.map +1 -1
- package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
- package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
- package/dist/control-plane/AuthStoragePaths.js +19 -14
- package/dist/control-plane/AuthStoragePaths.js.map +1 -1
- package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
- package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
- package/dist/control-plane/AuthenticationSelector.js +69 -63
- package/dist/control-plane/AuthenticationSelector.js.map +1 -1
- package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
- package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneClient.js +265 -254
- package/dist/control-plane/ControlPlaneClient.js.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
- package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
- package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
- package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
- package/dist/control-plane/ControlPlaneTypes.js +88 -81
- package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
- package/dist/control-plane/CredentialStore.d.ts +20 -18
- package/dist/control-plane/CredentialStore.d.ts.map +1 -1
- package/dist/control-plane/CredentialStore.js +66 -83
- package/dist/control-plane/CredentialStore.js.map +1 -1
- package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
- package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
- package/dist/control-plane/DPoPKeyStore.js +57 -53
- package/dist/control-plane/DPoPKeyStore.js.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
- package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
- package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
- package/dist/control-plane/PublishIdempotencyStore.js +97 -68
- package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
- package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
- package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
- package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
- package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
- package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
- package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
- package/dist/control-plane/RegistryGrantLock.js +149 -185
- package/dist/control-plane/RegistryGrantLock.js.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
- package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
- package/dist/control-plane/RegistryTrustResolver.js +97 -132
- package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
- package/dist/index.d.ts +62 -39
- package/dist/index.js +60 -53
- package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
- package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
- package/dist/postinstall/api/PostinstallDsl.js +32 -35
- package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
- package/dist/postinstall/api/definePostinstall.d.ts +5 -2
- package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
- package/dist/postinstall/api/definePostinstall.js +20 -16
- package/dist/postinstall/api/definePostinstall.js.map +1 -1
- package/dist/postinstall/index.d.ts +25 -26
- package/dist/postinstall/index.js +25 -37
- package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
- package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
- package/dist/postinstall/loader/EntryResolver.js +36 -32
- package/dist/postinstall/loader/EntryResolver.js.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
- package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
- package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
- package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
- package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
- package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
- package/dist/postinstall/loader/ExportValidator.js +36 -32
- package/dist/postinstall/loader/ExportValidator.js.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
- package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
- package/dist/postinstall/loader/ModuleImporter.js +50 -58
- package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
- package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
- package/dist/postinstall/loader/PostinstallLoader.js +62 -58
- package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
- package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
- package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
- package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerBlockService.js +44 -44
- package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
- package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
- package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
- package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
- package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
- package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
- package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
- package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
- package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
- package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
- package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
- package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
- package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
- package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
- package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpStructures.js +1 -2
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
- package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
- package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
- package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
- package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
- package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
- package/dist/postinstall/unreal/PluginHash.js +13 -8
- package/dist/postinstall/unreal/PluginHash.js.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
- package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
- package/dist/postinstall/unreal/PrettyParseError.js +37 -37
- package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
- package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
- package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
- package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
- package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
- package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
- package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectInjector.js +56 -52
- package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
- package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
- package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
- package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
- package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
- package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
- package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
- package/dist/prompts/InkPromptService.d.ts +10 -7
- package/dist/prompts/InkPromptService.d.ts.map +1 -1
- package/dist/prompts/InkPromptService.js +100 -71
- package/dist/prompts/InkPromptService.js.map +1 -1
- package/dist/prompts/ProjectContextDetector.d.ts +10 -7
- package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
- package/dist/prompts/ProjectContextDetector.js +32 -26
- package/dist/prompts/ProjectContextDetector.js.map +1 -1
- package/dist/prompts/PromptService.d.ts +11 -8
- package/dist/prompts/PromptService.d.ts.map +1 -1
- package/dist/prompts/PromptService.js +1 -8
- package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
- package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
- package/dist/reporting/DiagnosticDeduplicator.js +36 -35
- package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
- package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/DiagnosticRenderer.js +1 -2
- package/dist/reporting/DiagnosticReporter.d.ts +12 -9
- package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
- package/dist/reporting/DiagnosticReporter.js +40 -39
- package/dist/reporting/DiagnosticReporter.js.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
- package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/InkDiagnosticRenderer.js +50 -42
- package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/InstallProgressReporter.d.ts +23 -20
- package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
- package/dist/reporting/InstallProgressReporter.js +48 -47
- package/dist/reporting/InstallProgressReporter.js.map +1 -1
- package/dist/reporting/JsonReporter.d.ts +16 -13
- package/dist/reporting/JsonReporter.d.ts.map +1 -1
- package/dist/reporting/JsonReporter.js +34 -20
- package/dist/reporting/JsonReporter.js.map +1 -1
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
- package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
- package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
- package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
- package/dist/reporting/TextDiagnosticRenderer.js +36 -28
- package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
- package/dist/reporting/TextSink.d.ts +14 -11
- package/dist/reporting/TextSink.d.ts.map +1 -1
- package/dist/reporting/TextSink.js +24 -20
- package/dist/reporting/TextSink.js.map +1 -1
- package/package.json +31 -32
- package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
- package/dist/cli-bootstrap.d.ts.map +0 -1
- package/dist/commands/Command.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/postinstall/index.d.ts.map +0 -1
- package/dist/postinstall/index.js.map +0 -1
- package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
- package/dist/prompts/PromptService.js.map +0 -1
- package/dist/reporting/DiagnosticRenderer.js.map +0 -1
|
@@ -1,241 +1,250 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
1
|
+
//#region src/cli/UAPKGCommandLine.ts
|
|
2
|
+
const UAPKG_WHOAMI_FIELDS = [
|
|
3
|
+
"username",
|
|
4
|
+
"user-id",
|
|
5
|
+
"registry",
|
|
6
|
+
"registry-id"
|
|
7
|
+
];
|
|
8
|
+
var UAPKGCommandLineFactory = class {
|
|
9
|
+
cwdProvider;
|
|
10
|
+
constructor(cwdProvider = () => process.cwd()) {
|
|
11
|
+
this.cwdProvider = cwdProvider;
|
|
12
|
+
}
|
|
13
|
+
createInit(options = {}) {
|
|
14
|
+
return {
|
|
15
|
+
command: "init",
|
|
16
|
+
cwd: this.resolveCwd(options.cwd),
|
|
17
|
+
type: options.type,
|
|
18
|
+
name: options.name
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
createAdd(source, options = {}) {
|
|
22
|
+
return {
|
|
23
|
+
command: "add",
|
|
24
|
+
cwd: this.resolveCwd(options.cwd),
|
|
25
|
+
source,
|
|
26
|
+
force: options.force === true,
|
|
27
|
+
pin: options.pin === true,
|
|
28
|
+
dev: options.dev === true,
|
|
29
|
+
registry: options.registry,
|
|
30
|
+
dryRun: options.dryRun === true,
|
|
31
|
+
outputFormat: options.outputFormat ?? "text"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
createInstall(options = {}) {
|
|
35
|
+
return {
|
|
36
|
+
command: "install",
|
|
37
|
+
cwd: this.resolveCwd(options.cwd),
|
|
38
|
+
force: options.force === true,
|
|
39
|
+
frozen: options.frozen === true,
|
|
40
|
+
dryRun: options.dryRun === true,
|
|
41
|
+
outputFormat: options.outputFormat ?? "text"
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
createUpdate(options = {}) {
|
|
45
|
+
return {
|
|
46
|
+
command: "update",
|
|
47
|
+
cwd: this.resolveCwd(options.cwd),
|
|
48
|
+
specs: options.specs ?? [],
|
|
49
|
+
force: options.force === true,
|
|
50
|
+
dryRun: options.dryRun === true,
|
|
51
|
+
outputFormat: options.outputFormat ?? "text"
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
createOutdated(options = {}) {
|
|
55
|
+
return {
|
|
56
|
+
command: "outdated",
|
|
57
|
+
cwd: this.resolveCwd(options.cwd),
|
|
58
|
+
outputFormat: options.outputFormat ?? "text"
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
createWhy(target, options = {}) {
|
|
62
|
+
return {
|
|
63
|
+
command: "why",
|
|
64
|
+
cwd: this.resolveCwd(options.cwd),
|
|
65
|
+
target,
|
|
66
|
+
outputFormat: options.outputFormat ?? "text"
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
createList(options = {}) {
|
|
70
|
+
return {
|
|
71
|
+
command: "list",
|
|
72
|
+
cwd: this.resolveCwd(options.cwd),
|
|
73
|
+
depth: options.depth ?? 0,
|
|
74
|
+
outputFormat: options.outputFormat ?? "text"
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
createRemove(packageName, options = {}) {
|
|
78
|
+
return {
|
|
79
|
+
command: "remove",
|
|
80
|
+
cwd: this.resolveCwd(options.cwd),
|
|
81
|
+
packageName,
|
|
82
|
+
outputFormat: options.outputFormat ?? "text"
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
createLogin(options = {}) {
|
|
86
|
+
return {
|
|
87
|
+
command: "login",
|
|
88
|
+
cwd: this.resolveCwd(options.cwd),
|
|
89
|
+
registry: options.registry,
|
|
90
|
+
deviceName: options.deviceName,
|
|
91
|
+
reauthorize: options.reauthorize === true,
|
|
92
|
+
outputFormat: options.outputFormat ?? "text"
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
createLogout(options = {}) {
|
|
96
|
+
return {
|
|
97
|
+
command: "logout",
|
|
98
|
+
cwd: this.resolveCwd(options.cwd),
|
|
99
|
+
registry: options.registry,
|
|
100
|
+
localOnly: options.localOnly === true,
|
|
101
|
+
outputFormat: options.outputFormat ?? "text"
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
createWhoami(options = {}) {
|
|
105
|
+
return {
|
|
106
|
+
command: "whoami",
|
|
107
|
+
cwd: this.resolveCwd(options.cwd),
|
|
108
|
+
field: options.field,
|
|
109
|
+
registry: options.registry,
|
|
110
|
+
outputFormat: options.outputFormat ?? "text"
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
createPublish(options = {}) {
|
|
114
|
+
return {
|
|
115
|
+
command: "publish",
|
|
116
|
+
cwd: this.resolveCwd(options.cwd),
|
|
117
|
+
registry: options.registry,
|
|
118
|
+
owner: options.owner,
|
|
119
|
+
repository: options.repository,
|
|
120
|
+
tag: options.tag,
|
|
121
|
+
asset: options.asset,
|
|
122
|
+
assetPath: options.assetPath,
|
|
123
|
+
auth: options.auth ?? "auto",
|
|
124
|
+
detach: options.detach === true,
|
|
125
|
+
outputFormat: options.outputFormat ?? "text"
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
createLifecycle(command, packageName, packageVersion, options = {}) {
|
|
129
|
+
return {
|
|
130
|
+
command,
|
|
131
|
+
cwd: this.resolveCwd(options.cwd),
|
|
132
|
+
packageName,
|
|
133
|
+
packageVersion,
|
|
134
|
+
reason: options.reason,
|
|
135
|
+
registry: options.registry,
|
|
136
|
+
auth: options.auth ?? "auto",
|
|
137
|
+
detach: options.detach === true,
|
|
138
|
+
outputFormat: options.outputFormat ?? "text"
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
createRequests(action, options = {}) {
|
|
142
|
+
return {
|
|
143
|
+
command: "requests",
|
|
144
|
+
action,
|
|
145
|
+
cwd: this.resolveCwd(options.cwd),
|
|
146
|
+
requestId: options.requestId,
|
|
147
|
+
registry: options.registry,
|
|
148
|
+
status: options.status,
|
|
149
|
+
watch: options.watch === true,
|
|
150
|
+
outputFormat: options.outputFormat ?? "text"
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
createProjectGetName(options = {}) {
|
|
154
|
+
return {
|
|
155
|
+
command: "project-get-name",
|
|
156
|
+
cwd: this.resolveCwd(options.cwd)
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
createConfigGet(path, options = {}) {
|
|
160
|
+
return {
|
|
161
|
+
command: "config",
|
|
162
|
+
action: "get",
|
|
163
|
+
cwd: this.resolveCwd(options.cwd),
|
|
164
|
+
path,
|
|
165
|
+
scope: options.scope,
|
|
166
|
+
output: options.output ?? "text",
|
|
167
|
+
showOrigin: options.showOrigin === true,
|
|
168
|
+
trace: options.trace === true
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
createConfigList(options = {}) {
|
|
172
|
+
return {
|
|
173
|
+
command: "config",
|
|
174
|
+
action: "list",
|
|
175
|
+
cwd: this.resolveCwd(options.cwd),
|
|
176
|
+
scope: options.scope,
|
|
177
|
+
output: options.output ?? "text",
|
|
178
|
+
showOrigin: false,
|
|
179
|
+
trace: false
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
createConfigSet(path, value, options = {}) {
|
|
183
|
+
return {
|
|
184
|
+
command: "config",
|
|
185
|
+
action: "set",
|
|
186
|
+
cwd: this.resolveCwd(options.cwd),
|
|
187
|
+
path,
|
|
188
|
+
value,
|
|
189
|
+
scope: options.scope,
|
|
190
|
+
output: options.output ?? "text",
|
|
191
|
+
showOrigin: false,
|
|
192
|
+
trace: false
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
createConfigDelete(path, options = {}) {
|
|
196
|
+
return {
|
|
197
|
+
command: "config",
|
|
198
|
+
action: "delete",
|
|
199
|
+
cwd: this.resolveCwd(options.cwd),
|
|
200
|
+
path,
|
|
201
|
+
scope: options.scope,
|
|
202
|
+
output: options.output ?? "text",
|
|
203
|
+
showOrigin: false,
|
|
204
|
+
trace: false
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
createConfigEdit(options = {}) {
|
|
208
|
+
return {
|
|
209
|
+
command: "config",
|
|
210
|
+
action: "edit",
|
|
211
|
+
cwd: this.resolveCwd(options.cwd),
|
|
212
|
+
scope: options.scope,
|
|
213
|
+
output: options.output ?? "text",
|
|
214
|
+
showOrigin: false,
|
|
215
|
+
trace: false
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
createRegistry(action, options = {}) {
|
|
219
|
+
return {
|
|
220
|
+
command: "registry",
|
|
221
|
+
action,
|
|
222
|
+
cwd: this.resolveCwd(options.cwd),
|
|
223
|
+
name: options.name,
|
|
224
|
+
url: options.url,
|
|
225
|
+
refType: options.refType,
|
|
226
|
+
refValue: options.refValue,
|
|
227
|
+
scope: options.scope,
|
|
228
|
+
output: options.output ?? "text"
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
createPack(options = {}) {
|
|
232
|
+
return {
|
|
233
|
+
command: "pack",
|
|
234
|
+
cwd: this.resolveCwd(options.cwd),
|
|
235
|
+
dryRun: options.dryRun === true,
|
|
236
|
+
allowMissingLfs: options.allowMissingLfs === true,
|
|
237
|
+
outFile: options.outFile
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
resolveCwd(cwd) {
|
|
241
|
+
return cwd ?? this.cwdProvider();
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
function createUAPKGCommandLineFactory(cwdProvider) {
|
|
245
|
+
return new UAPKGCommandLineFactory(cwdProvider);
|
|
240
246
|
}
|
|
247
|
+
|
|
248
|
+
//#endregion
|
|
249
|
+
export { UAPKGCommandLineFactory, UAPKG_WHOAMI_FIELDS, createUAPKGCommandLineFactory };
|
|
241
250
|
//# sourceMappingURL=UAPKGCommandLine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandLine.js","sourceRoot":"","sources":["../../src/cli/UAPKGCommandLine.ts"],"names":[],"mappings":"AA2BA,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,CAAU,CAAC;AAiS/F,MAAM,OAAO,uBAAuB;IACL;IAA7B,YAA6B,cAA4B,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;QAA/C,gBAAW,GAAX,WAAW,CAAoC;IAAG,CAAC;IAEhF,UAAU,CAAC,UAAqF,EAAE;QAChG,OAAO;YACL,OAAO,EAAE,MAAM;Y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IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC;YACjC,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,MAAM;YAChC,UAAU,EAAE,KAAK;YACjB,KAAK,EAAE,KAAK;SACb,CAAC;IACJ,CAAC;IAED,cAAc,CAAC,MAA2B,EAAE,UAAsC,EAAE;QAClF,OAAO;YACL,OAAO,EAAE,UAAU;YACnB,MAAM;YACN,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC;YACjC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,GAAG,EAAE,OAAO,CAAC,GAAG;YAChB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,MAAM;SACjC,CAAC;IACJ,CAAC;IAED,UAAU,CAAC,UAAkC,EAAE;QAC7C,OAAO;YACL,OAAO,EAAE,MAAM;YACf,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC;YACjC,MAAM,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI;YAC/B,eAAe,EAAE,OAAO,CAAC,eAAe,KAAK,IAAI;YACjD,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,CAAC;IACJ,CAAC;IAEO,UAAU,CAAC,GAAY;QAC7B,OAAO,GAAG,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;IACnC,CAAC;CACF;AAED,MAAM,UAAU,6BAA6B,CAAC,WAA0B;IACtE,OAAO,IAAI,uBAAuB,CAAC,WAAW,CAAC,CAAC;AAClD,CAAC"}
|
|
1
|
+
{"version":3,"file":"UAPKGCommandLine.js","names":[],"sources":["../../src/cli/UAPKGCommandLine.ts"],"sourcesContent":["export type UAPKGCommandName =\n | 'init'\n | 'add'\n | 'install'\n | 'update'\n | 'project-get-name'\n | 'config'\n | 'registry'\n | 'pack'\n | 'outdated'\n | 'why'\n | 'list'\n | 'remove'\n | 'login'\n | 'logout'\n | 'whoami'\n | 'publish'\n | 'yank'\n | 'unyank'\n | 'unpublish'\n | 'deprecate'\n | 'undeprecate'\n | 'requests';\nexport type UAPKGConfigAction = 'get' | 'list' | 'set' | 'delete' | 'edit';\nexport type UAPKGRegistryAction = 'add' | 'remove' | 'list' | 'use' | 'auth' | 'refresh';\nexport type UAPKGRequestsAction = 'list' | 'status';\nexport type UAPKGControlPlaneAuthMode = 'auto' | 'login' | 'gat' | 'oidc';\nexport const UAPKG_WHOAMI_FIELDS = ['username', 'user-id', 'registry', 'registry-id'] as const;\nexport type UAPKGWhoamiField = (typeof UAPKG_WHOAMI_FIELDS)[number];\nexport type UAPKGRegistryRequestStatus =\n | 'queued'\n | 'checking'\n | 'accepted'\n | 'ready'\n | 'ready_superseded'\n | 'rejected'\n | 'operationally_failed';\nexport type UAPKGConfigScope = 'global' | 'local';\nexport type UAPKGOutputFormat = 'text' | 'json';\n\ninterface BaseCommandLine {\n command: UAPKGCommandName;\n cwd: string;\n}\n\nexport interface InitCommandLine extends BaseCommandLine {\n command: 'init';\n type?: 'project' | 'plugin';\n name?: string;\n}\n\nexport interface AddCommandLine extends BaseCommandLine {\n command: 'add';\n source: string;\n force: boolean;\n pin: boolean;\n dev: boolean;\n registry?: string;\n dryRun: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface InstallCommandLine extends BaseCommandLine {\n command: 'install';\n force: boolean;\n frozen: boolean;\n dryRun: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface UpdateCommandLine extends BaseCommandLine {\n command: 'update';\n specs: string[];\n force: boolean;\n dryRun: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface ProjectGetNameCommandLine extends BaseCommandLine {\n command: 'project-get-name';\n}\n\nexport interface ConfigCommandLine extends BaseCommandLine {\n command: 'config';\n action: UAPKGConfigAction;\n path?: string;\n value?: string;\n scope?: UAPKGConfigScope;\n output: UAPKGOutputFormat;\n showOrigin: boolean;\n trace: boolean;\n}\n\nexport interface RegistryCommandLine extends BaseCommandLine {\n command: 'registry';\n action: UAPKGRegistryAction;\n name?: string;\n url?: string;\n refType?: 'branch' | 'tag' | 'rev';\n refValue?: string;\n scope?: UAPKGConfigScope;\n output: UAPKGOutputFormat;\n}\n\nexport interface PackCommandLine extends BaseCommandLine {\n command: 'pack';\n dryRun: boolean;\n allowMissingLfs: boolean;\n outFile?: string;\n}\n\nexport interface OutdatedCommandLine extends BaseCommandLine {\n command: 'outdated';\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface WhyCommandLine extends BaseCommandLine {\n command: 'why';\n target: string;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface ListCommandLine extends BaseCommandLine {\n command: 'list';\n depth: number;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface RemoveCommandLine extends BaseCommandLine {\n command: 'remove';\n packageName: string;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface LoginCommandLine extends BaseCommandLine {\n command: 'login';\n registry?: string;\n deviceName?: string;\n reauthorize: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface LogoutCommandLine extends BaseCommandLine {\n command: 'logout';\n registry?: string;\n localOnly: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface WhoamiCommandLine extends BaseCommandLine {\n command: 'whoami';\n field?: UAPKGWhoamiField;\n registry?: string;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface PublishCommandLine extends BaseCommandLine {\n command: 'publish';\n registry?: string;\n owner?: string;\n repository?: string;\n tag?: string;\n asset?: string;\n assetPath?: string;\n auth: UAPKGControlPlaneAuthMode;\n detach: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport type UAPKGLifecycleCommandName = 'yank' | 'unyank' | 'unpublish' | 'deprecate' | 'undeprecate';\n\nexport interface LifecycleCommandLine extends BaseCommandLine {\n command: UAPKGLifecycleCommandName;\n packageName: string;\n packageVersion: string;\n reason?: string;\n registry?: string;\n auth: UAPKGControlPlaneAuthMode;\n detach: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport interface RequestsCommandLine extends BaseCommandLine {\n command: 'requests';\n action: UAPKGRequestsAction;\n requestId?: string;\n registry?: string;\n status?: UAPKGRegistryRequestStatus;\n watch: boolean;\n outputFormat: UAPKGOutputFormat;\n}\n\nexport type UAPKGCommandLine =\n | InitCommandLine\n | AddCommandLine\n | InstallCommandLine\n | UpdateCommandLine\n | ProjectGetNameCommandLine\n | ConfigCommandLine\n | RegistryCommandLine\n | PackCommandLine\n | OutdatedCommandLine\n | WhyCommandLine\n | ListCommandLine\n | RemoveCommandLine\n | LoginCommandLine\n | LogoutCommandLine\n | WhoamiCommandLine\n | PublishCommandLine\n | LifecycleCommandLine\n | RequestsCommandLine;\n\nexport interface CommonCommandLineOptions {\n cwd?: string;\n}\n\nexport interface AddCommandLineOptions extends CommonCommandLineOptions {\n force?: boolean;\n pin?: boolean;\n dev?: boolean;\n registry?: string;\n dryRun?: boolean;\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface InstallOrUpdateCommandLineOptions extends CommonCommandLineOptions {\n force?: boolean;\n frozen?: boolean;\n dryRun?: boolean;\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface UpdateFactoryOptions extends InstallOrUpdateCommandLineOptions {\n specs?: string[];\n}\n\nexport interface OutdatedFactoryOptions extends CommonCommandLineOptions {\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface WhyFactoryOptions extends CommonCommandLineOptions {\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface ListFactoryOptions extends CommonCommandLineOptions {\n depth?: number;\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface RemoveFactoryOptions extends CommonCommandLineOptions {\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface RegistryAuthCommandLineOptions extends CommonCommandLineOptions {\n registry?: string;\n outputFormat?: UAPKGOutputFormat;\n}\n\nexport interface LoginCommandLineOptions extends RegistryAuthCommandLineOptions {\n deviceName?: string;\n reauthorize?: boolean;\n}\n\nexport interface LogoutCommandLineOptions extends RegistryAuthCommandLineOptions {\n localOnly?: boolean;\n}\n\nexport interface WhoamiCommandLineOptions extends RegistryAuthCommandLineOptions {\n field?: UAPKGWhoamiField;\n}\n\nexport interface PublishCommandLineOptions extends RegistryAuthCommandLineOptions {\n owner?: string;\n repository?: string;\n tag?: string;\n asset?: string;\n assetPath?: string;\n auth?: UAPKGControlPlaneAuthMode;\n detach?: boolean;\n}\n\nexport interface LifecycleCommandLineOptions extends RegistryAuthCommandLineOptions {\n reason?: string;\n auth?: UAPKGControlPlaneAuthMode;\n detach?: boolean;\n}\n\nexport interface RequestsCommandLineOptions extends RegistryAuthCommandLineOptions {\n requestId?: string;\n status?: UAPKGRegistryRequestStatus;\n watch?: boolean;\n}\n\nexport interface ConfigCommonOptions extends CommonCommandLineOptions {\n scope?: UAPKGConfigScope;\n output?: UAPKGOutputFormat;\n}\n\nexport interface RegistryCommandLineOptions extends ConfigCommonOptions {\n name?: string;\n url?: string;\n refType?: 'branch' | 'tag' | 'rev';\n refValue?: string;\n}\n\nexport interface ConfigGetOptions extends ConfigCommonOptions {\n showOrigin?: boolean;\n trace?: boolean;\n}\n\nexport interface PackCommandLineOptions extends CommonCommandLineOptions {\n dryRun?: boolean;\n allowMissingLfs?: boolean;\n outFile?: string;\n}\n\nexport class UAPKGCommandLineFactory {\n constructor(private readonly cwdProvider: () => string = () => process.cwd()) {}\n\n createInit(options: { type?: 'project' | 'plugin'; name?: string } & CommonCommandLineOptions = {}): InitCommandLine {\n return {\n command: 'init',\n cwd: this.resolveCwd(options.cwd),\n type: options.type,\n name: options.name,\n };\n }\n\n createAdd(source: string, options: AddCommandLineOptions = {}): AddCommandLine {\n return {\n command: 'add',\n cwd: this.resolveCwd(options.cwd),\n source,\n force: options.force === true,\n pin: options.pin === true,\n dev: options.dev === true,\n registry: options.registry,\n dryRun: options.dryRun === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createInstall(options: InstallOrUpdateCommandLineOptions = {}): InstallCommandLine {\n return {\n command: 'install',\n cwd: this.resolveCwd(options.cwd),\n force: options.force === true,\n frozen: options.frozen === true,\n dryRun: options.dryRun === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createUpdate(options: UpdateFactoryOptions = {}): UpdateCommandLine {\n return {\n command: 'update',\n cwd: this.resolveCwd(options.cwd),\n specs: options.specs ?? [],\n force: options.force === true,\n dryRun: options.dryRun === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createOutdated(options: OutdatedFactoryOptions = {}): OutdatedCommandLine {\n return {\n command: 'outdated',\n cwd: this.resolveCwd(options.cwd),\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createWhy(target: string, options: WhyFactoryOptions = {}): WhyCommandLine {\n return {\n command: 'why',\n cwd: this.resolveCwd(options.cwd),\n target,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createList(options: ListFactoryOptions = {}): ListCommandLine {\n return {\n command: 'list',\n cwd: this.resolveCwd(options.cwd),\n depth: options.depth ?? 0,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createRemove(packageName: string, options: RemoveFactoryOptions = {}): RemoveCommandLine {\n return {\n command: 'remove',\n cwd: this.resolveCwd(options.cwd),\n packageName,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createLogin(options: LoginCommandLineOptions = {}): LoginCommandLine {\n return {\n command: 'login',\n cwd: this.resolveCwd(options.cwd),\n registry: options.registry,\n deviceName: options.deviceName,\n reauthorize: options.reauthorize === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createLogout(options: LogoutCommandLineOptions = {}): LogoutCommandLine {\n return {\n command: 'logout',\n cwd: this.resolveCwd(options.cwd),\n registry: options.registry,\n localOnly: options.localOnly === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createWhoami(options: WhoamiCommandLineOptions = {}): WhoamiCommandLine {\n return {\n command: 'whoami',\n cwd: this.resolveCwd(options.cwd),\n field: options.field,\n registry: options.registry,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createPublish(options: PublishCommandLineOptions = {}): PublishCommandLine {\n return {\n command: 'publish',\n cwd: this.resolveCwd(options.cwd),\n registry: options.registry,\n owner: options.owner,\n repository: options.repository,\n tag: options.tag,\n asset: options.asset,\n assetPath: options.assetPath,\n auth: options.auth ?? 'auto',\n detach: options.detach === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createLifecycle(\n command: UAPKGLifecycleCommandName,\n packageName: string,\n packageVersion: string,\n options: LifecycleCommandLineOptions = {},\n ): LifecycleCommandLine {\n return {\n command,\n cwd: this.resolveCwd(options.cwd),\n packageName,\n packageVersion,\n reason: options.reason,\n registry: options.registry,\n auth: options.auth ?? 'auto',\n detach: options.detach === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createRequests(action: UAPKGRequestsAction, options: RequestsCommandLineOptions = {}): RequestsCommandLine {\n return {\n command: 'requests',\n action,\n cwd: this.resolveCwd(options.cwd),\n requestId: options.requestId,\n registry: options.registry,\n status: options.status,\n watch: options.watch === true,\n outputFormat: options.outputFormat ?? 'text',\n };\n }\n\n createProjectGetName(options: CommonCommandLineOptions = {}): ProjectGetNameCommandLine {\n return {\n command: 'project-get-name',\n cwd: this.resolveCwd(options.cwd),\n };\n }\n\n createConfigGet(path: string, options: ConfigGetOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'get',\n cwd: this.resolveCwd(options.cwd),\n path,\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: options.showOrigin === true,\n trace: options.trace === true,\n };\n }\n\n createConfigList(options: ConfigCommonOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'list',\n cwd: this.resolveCwd(options.cwd),\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: false,\n trace: false,\n };\n }\n\n createConfigSet(path: string, value: string, options: ConfigCommonOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'set',\n cwd: this.resolveCwd(options.cwd),\n path,\n value,\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: false,\n trace: false,\n };\n }\n\n createConfigDelete(path: string, options: ConfigCommonOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'delete',\n cwd: this.resolveCwd(options.cwd),\n path,\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: false,\n trace: false,\n };\n }\n\n createConfigEdit(options: ConfigCommonOptions = {}): ConfigCommandLine {\n return {\n command: 'config',\n action: 'edit',\n cwd: this.resolveCwd(options.cwd),\n scope: options.scope,\n output: options.output ?? 'text',\n showOrigin: false,\n trace: false,\n };\n }\n\n createRegistry(action: UAPKGRegistryAction, options: RegistryCommandLineOptions = {}): RegistryCommandLine {\n return {\n command: 'registry',\n action,\n cwd: this.resolveCwd(options.cwd),\n name: options.name,\n url: options.url,\n refType: options.refType,\n refValue: options.refValue,\n scope: options.scope,\n output: options.output ?? 'text',\n };\n }\n\n createPack(options: PackCommandLineOptions = {}): PackCommandLine {\n return {\n command: 'pack',\n cwd: this.resolveCwd(options.cwd),\n dryRun: options.dryRun === true,\n allowMissingLfs: options.allowMissingLfs === true,\n outFile: options.outFile,\n };\n }\n\n private resolveCwd(cwd?: string) {\n return cwd ?? this.cwdProvider();\n }\n}\n\nexport function createUAPKGCommandLineFactory(cwdProvider?: () => string) {\n return new UAPKGCommandLineFactory(cwdProvider);\n}\n"],"mappings":";AA2BA,MAAa,sBAAsB;CAAC;CAAY;CAAW;CAAY;AAAa;AAiSpF,IAAa,0BAAb,MAAqC;CACN;CAA7B,YAAY,AAAiB,oBAAkC,QAAQ,IAAI,GAAG;EAAjD;CAAkD;CAE/E,WAAW,UAAqF,CAAC,GAAoB;EACnH,OAAO;GACL,SAAS;GACT,KAAK,KAAK,WAAW,QAAQ,GAAG;GAChC,MAAM,QAAQ;GAC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CAEA,eAAe,QAA6B,UAAsC,CAAC,GAAwB;EACzG,OAAO;GACL,SAAS;GACT;GACA,KAAK,KAAK,WAAW,QAAQ,GAAG;GAChC,MAAM,QAAQ;GACd,KAAK,QAAQ;GACb,SAAS,QAAQ;GACjB,UAAU,QAAQ;GAClB,OAAO,QAAQ;GACf,QAAQ,QAAQ,UAAU;EAC5B;CACF;CAEA,WAAW,UAAkC,CAAC,GAAoB;EAChE,OAAO;GACL,SAAS;GACT,KAAK,KAAK,WAAW,QAAQ,GAAG;GAChC,QAAQ,QAAQ,WAAW;GAC3B,iBAAiB,QAAQ,oBAAoB;GAC7C,SAAS,QAAQ;EACnB;CACF;CAEA,AAAQ,WAAW,KAAc;EAC/B,OAAO,OAAO,KAAK,YAAY;CACjC;AACF;AAEA,SAAgB,8BAA8B,aAA4B;CACxE,OAAO,IAAI,wBAAwB,WAAW;AAChD"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { UAPKGCommandLine } from "./UAPKGCommandLine.js";
|
|
2
|
+
//#region src/cli/parseCommandLine.d.ts
|
|
3
|
+
declare function parseUAPKGCommandLine(rawArgv?: string[]): Promise<UAPKGCommandLine>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { parseUAPKGCommandLine };
|
|
2
6
|
//# sourceMappingURL=parseCommandLine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseCommandLine.d.ts","
|
|
1
|
+
{"version":3,"file":"parseCommandLine.d.ts","names":[],"sources":["../../src/cli/parseCommandLine.ts"],"mappings":";;iBAIsB,sBAAsB,qBAAsB,QAA5C"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { UAPKGCommandLineParser } from
|
|
1
|
+
import { UAPKGCommandLineParser } from "./parsing/UAPKGCommandLineParser.js";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/parseCommandLine.ts
|
|
2
4
|
const parser = new UAPKGCommandLineParser();
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
async function parseUAPKGCommandLine(rawArgv = process.argv) {
|
|
6
|
+
return await parser.parse(rawArgv);
|
|
5
7
|
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { parseUAPKGCommandLine };
|
|
6
11
|
//# sourceMappingURL=parseCommandLine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseCommandLine.js","
|
|
1
|
+
{"version":3,"file":"parseCommandLine.js","names":[],"sources":["../../src/cli/parseCommandLine.ts"],"sourcesContent":["import { UAPKGCommandLineParser } from './parsing/UAPKGCommandLineParser.js';\n\nconst parser = new UAPKGCommandLineParser();\n\nexport async function parseUAPKGCommandLine(rawArgv = process.argv) {\n return await parser.parse(rawArgv);\n}\n"],"mappings":";;;AAEA,MAAM,SAAS,IAAI,uBAAuB;AAE1C,eAAsB,sBAAsB,UAAU,QAAQ,MAAM;CAClE,OAAO,MAAM,OAAO,MAAM,OAAO;AACnC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { UAPKGParserRegistry } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { UAPKGCommandLine } from "../UAPKGCommandLine.js";
|
|
2
|
+
import { UAPKGParserRegistry } from "./UAPKGParserRegistry.js";
|
|
3
|
+
//#region src/cli/parsing/UAPKGCommandLineParser.d.ts
|
|
4
|
+
declare class UAPKGCommandLineParser {
|
|
5
|
+
private readonly registry;
|
|
6
|
+
constructor(registry?: UAPKGParserRegistry);
|
|
7
|
+
parse(rawArgv?: string[]): Promise<UAPKGCommandLine>;
|
|
7
8
|
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { UAPKGCommandLineParser };
|
|
8
11
|
//# sourceMappingURL=UAPKGCommandLineParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UAPKGCommandLineParser.d.ts","
|
|
1
|
+
{"version":3,"file":"UAPKGCommandLineParser.d.ts","names":[],"sources":["../../../src/cli/parsing/UAPKGCommandLineParser.ts"],"mappings":";;;cAMa;mBACkB;EAA7B,YAA6B,WAAQ;EAE/B,MAAM,qBAAyB,QAAQ"}
|