@start9labs/start-sdk 0.4.0-beta.48 → 0.4.0-beta.49
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/base/lib/Effects.d.ts +4 -4
- package/base/lib/actions/index.d.ts +6 -6
- package/base/lib/actions/input/builder/index.d.ts +4 -4
- package/base/lib/actions/input/builder/inputSpec.d.ts +5 -5
- package/base/lib/actions/input/builder/list.d.ts +5 -5
- package/base/lib/actions/input/builder/list.js +8 -8
- package/base/lib/actions/input/builder/value.d.ts +11 -11
- package/base/lib/actions/input/builder/value.js +27 -27
- package/base/lib/actions/input/builder/variants.d.ts +9 -9
- package/base/lib/actions/input/index.d.ts +3 -3
- package/base/lib/actions/input/inputSpecConstants.d.ts +3 -3
- package/base/lib/actions/input/inputSpecConstants.js +18 -18
- package/base/lib/actions/input/inputSpecTypes.d.ts +20 -20
- package/base/lib/actions/input/inputSpecTypes.js +1 -1
- package/base/lib/actions/setupActions.d.ts +8 -8
- package/base/lib/dependencies/dependencies.d.ts +2 -2
- package/base/lib/dependencies/dependencies.js +14 -14
- package/base/lib/dependencies/setupDependencies.d.ts +6 -6
- package/base/lib/exver/index.d.ts +12 -12
- package/base/lib/exver/index.js +150 -150
- package/base/lib/index.d.ts +11 -11
- package/base/lib/inits/index.d.ts +2 -2
- package/base/lib/inits/setupInit.d.ts +2 -2
- package/base/lib/inits/setupInit.js +2 -2
- package/base/lib/inits/setupUninit.d.ts +2 -2
- package/base/lib/inits/setupUninit.js +2 -2
- package/base/lib/interfaces/Host.d.ts +6 -6
- package/base/lib/interfaces/Host.js +9 -9
- package/base/lib/interfaces/Origin.d.ts +4 -4
- package/base/lib/interfaces/Origin.js +2 -2
- package/base/lib/interfaces/ServiceInterfaceBuilder.d.ts +3 -3
- package/base/lib/interfaces/setupInterfaces.d.ts +2 -2
- package/base/lib/osBindings/AcceptSigners.d.ts +1 -1
- package/base/lib/osBindings/ActionInput.d.ts +1 -1
- package/base/lib/osBindings/ActionMetadata.d.ts +2 -2
- package/base/lib/osBindings/ActionResult.d.ts +4 -4
- package/base/lib/osBindings/ActionResultMember.d.ts +2 -2
- package/base/lib/osBindings/ActionResultV1.d.ts +1 -1
- package/base/lib/osBindings/ActionResultValue.d.ts +3 -3
- package/base/lib/osBindings/ActionVisibility.d.ts +2 -2
- package/base/lib/osBindings/AddAdminParams.d.ts +1 -1
- package/base/lib/osBindings/AddAssetParams.d.ts +2 -2
- package/base/lib/osBindings/AddCategoryParams.d.ts +1 -1
- package/base/lib/osBindings/AddMirrorParams.d.ts +2 -2
- package/base/lib/osBindings/AddPackageParams.d.ts +2 -2
- package/base/lib/osBindings/AddPackageSignerParams.d.ts +2 -2
- package/base/lib/osBindings/AddPackageToCategoryParams.d.ts +1 -1
- package/base/lib/osBindings/AddPrivateDomainParams.d.ts +5 -0
- package/base/lib/osBindings/AddPrivateDomainParams.js +3 -0
- package/base/lib/osBindings/AddPrivateDomainParams.js.map +1 -0
- package/base/lib/osBindings/AddPublicDomainParams.d.ts +7 -0
- package/base/lib/osBindings/AddPublicDomainParams.js +3 -0
- package/base/lib/osBindings/AddPublicDomainParams.js.map +1 -0
- package/base/lib/osBindings/AddSslOptions.d.ts +1 -1
- package/base/lib/osBindings/AddTunnelParams.d.ts +3 -1
- package/base/lib/osBindings/AddTunnelParams.js +0 -1
- package/base/lib/osBindings/AddTunnelParams.js.map +1 -1
- package/base/lib/osBindings/AddressInfo.d.ts +1 -1
- package/base/lib/osBindings/Alerts.d.ts +1 -1
- package/base/lib/osBindings/Algorithm.d.ts +1 -1
- package/base/lib/osBindings/AllPackageData.d.ts +2 -2
- package/base/lib/osBindings/AllowedStatuses.d.ts +1 -1
- package/base/lib/osBindings/AlpnInfo.d.ts +2 -2
- package/base/lib/osBindings/ApiState.d.ts +1 -1
- package/base/lib/osBindings/AttachParams.d.ts +1 -1
- package/base/lib/osBindings/BackupInfo.d.ts +9 -0
- package/base/lib/osBindings/{PackageSignerParams.js → BackupInfo.js} +1 -1
- package/base/lib/osBindings/BackupInfo.js.map +1 -0
- package/base/lib/osBindings/BackupParams.d.ts +9 -0
- package/base/lib/osBindings/BackupParams.js +3 -0
- package/base/lib/osBindings/BackupParams.js.map +1 -0
- package/base/lib/osBindings/BackupReport.d.ts +9 -0
- package/base/lib/osBindings/BackupReport.js +3 -0
- package/base/lib/osBindings/BackupReport.js.map +1 -0
- package/base/lib/osBindings/BackupTarget.d.ts +17 -0
- package/base/lib/osBindings/BackupTarget.js +3 -0
- package/base/lib/osBindings/BackupTarget.js.map +1 -0
- package/base/lib/osBindings/BackupTargetFS.d.ts +4 -4
- package/base/lib/osBindings/BackupTargetId.d.ts +1 -0
- package/base/lib/osBindings/BackupTargetId.js +4 -0
- package/base/lib/osBindings/BackupTargetId.js.map +1 -0
- package/base/lib/osBindings/BindId.d.ts +1 -1
- package/base/lib/osBindings/BindInfo.d.ts +4 -2
- package/base/lib/osBindings/BindOptions.d.ts +2 -2
- package/base/lib/osBindings/BindParams.d.ts +3 -3
- package/base/lib/osBindings/BindingGatewaySetEnabledParams.d.ts +1 -1
- package/base/lib/osBindings/BindingSetAddressEnabledParams.d.ts +5 -0
- package/base/lib/osBindings/BindingSetAddressEnabledParams.js +4 -0
- package/base/lib/osBindings/BindingSetAddressEnabledParams.js.map +1 -0
- package/base/lib/osBindings/Bindings.d.ts +4 -0
- package/base/lib/osBindings/Bindings.js +3 -0
- package/base/lib/osBindings/Bindings.js.map +1 -0
- package/base/lib/osBindings/Blake3Commitment.d.ts +1 -1
- package/base/lib/osBindings/CancelInstallParams.d.ts +4 -0
- package/base/lib/osBindings/CancelInstallParams.js +3 -0
- package/base/lib/osBindings/CancelInstallParams.js.map +1 -0
- package/base/lib/osBindings/Category.d.ts +1 -1
- package/base/lib/osBindings/Celsius.d.ts +4 -1
- package/base/lib/osBindings/CheckDependenciesParam.d.ts +1 -1
- package/base/lib/osBindings/CheckDependenciesResult.d.ts +6 -6
- package/base/lib/osBindings/CheckDnsParams.d.ts +4 -0
- package/base/lib/osBindings/CheckDnsParams.js +3 -0
- package/base/lib/osBindings/CheckDnsParams.js.map +1 -0
- package/base/lib/osBindings/CheckPortParams.d.ts +5 -0
- package/base/lib/osBindings/CheckPortParams.js +3 -0
- package/base/lib/osBindings/CheckPortParams.js.map +1 -0
- package/base/lib/osBindings/CheckPortRes.d.ts +5 -0
- package/base/lib/osBindings/CheckPortRes.js +4 -0
- package/base/lib/osBindings/CheckPortRes.js.map +1 -0
- package/base/lib/osBindings/CifsAddParams.d.ts +6 -0
- package/base/lib/osBindings/CifsAddParams.js +4 -0
- package/base/lib/osBindings/CifsAddParams.js.map +1 -0
- package/base/lib/osBindings/CifsBackupTarget.d.ts +10 -0
- package/base/lib/osBindings/CifsBackupTarget.js +3 -0
- package/base/lib/osBindings/CifsBackupTarget.js.map +1 -0
- package/base/lib/osBindings/CifsRemoveParams.d.ts +4 -0
- package/base/lib/osBindings/CifsRemoveParams.js +3 -0
- package/base/lib/osBindings/CifsRemoveParams.js.map +1 -0
- package/base/lib/osBindings/CifsUpdateParams.d.ts +8 -0
- package/base/lib/osBindings/CifsUpdateParams.js +3 -0
- package/base/lib/osBindings/CifsUpdateParams.js.map +1 -0
- package/base/lib/osBindings/ClearActionsParams.d.ts +1 -1
- package/base/lib/osBindings/ClearBindingsParams.d.ts +1 -1
- package/base/lib/osBindings/ClearServiceInterfacesParams.d.ts +1 -1
- package/base/lib/osBindings/ClearTaskParams.d.ts +7 -0
- package/base/lib/osBindings/ClearTaskParams.js +3 -0
- package/base/lib/osBindings/ClearTaskParams.js.map +1 -0
- package/base/lib/osBindings/ControlParams.d.ts +4 -0
- package/base/lib/osBindings/ControlParams.js +3 -0
- package/base/lib/osBindings/ControlParams.js.map +1 -0
- package/base/lib/osBindings/CreateSubcontainerFsParams.d.ts +1 -1
- package/base/lib/osBindings/CreateTaskParams.d.ts +6 -6
- package/base/lib/osBindings/CurrentDependencies.d.ts +2 -2
- package/base/lib/osBindings/CurrentDependencyInfo.d.ts +4 -4
- package/base/lib/osBindings/DepInfo.d.ts +3 -2
- package/base/lib/osBindings/Dependencies.d.ts +2 -2
- package/base/lib/osBindings/DependencyMetadata.d.ts +2 -2
- package/base/lib/osBindings/DependencyRequirement.d.ts +4 -4
- package/base/lib/osBindings/DerivedAddressInfo.d.ts +15 -0
- package/base/lib/osBindings/DerivedAddressInfo.js +3 -0
- package/base/lib/osBindings/DerivedAddressInfo.js.map +1 -0
- package/base/lib/osBindings/Description.d.ts +1 -1
- package/base/lib/osBindings/DesiredStatus.d.ts +5 -5
- package/base/lib/osBindings/DestroySubcontainerFsParams.d.ts +1 -1
- package/base/lib/osBindings/DeviceFilter.d.ts +1 -1
- package/base/lib/osBindings/DomainSettings.d.ts +1 -1
- package/base/lib/osBindings/EditSignerParams.d.ts +3 -3
- package/base/lib/osBindings/EffectsRunActionParams.d.ts +7 -0
- package/base/lib/osBindings/EffectsRunActionParams.js +3 -0
- package/base/lib/osBindings/EffectsRunActionParams.js.map +1 -0
- package/base/lib/osBindings/ErrorData.d.ts +1 -0
- package/base/lib/osBindings/EventId.d.ts +1 -1
- package/base/lib/osBindings/ExportActionParams.d.ts +2 -2
- package/base/lib/osBindings/ExportServiceInterfaceParams.d.ts +3 -3
- package/base/lib/osBindings/FileType.d.ts +1 -1
- package/base/lib/osBindings/ForgetGatewayParams.d.ts +4 -0
- package/base/lib/osBindings/ForgetGatewayParams.js +3 -0
- package/base/lib/osBindings/ForgetGatewayParams.js.map +1 -0
- package/base/lib/osBindings/FullIndex.d.ts +5 -5
- package/base/lib/osBindings/FullProgress.d.ts +2 -2
- package/base/lib/osBindings/GatewayInfo.d.ts +1 -1
- package/base/lib/osBindings/GatewayType.d.ts +1 -0
- package/base/lib/osBindings/GatewayType.js +4 -0
- package/base/lib/osBindings/GatewayType.js.map +1 -0
- package/base/lib/osBindings/GetActionInputParams.d.ts +2 -2
- package/base/lib/osBindings/GetContainerIpParams.d.ts +2 -2
- package/base/lib/osBindings/GetHostInfoParams.d.ts +3 -3
- package/base/lib/osBindings/GetPackageParams.d.ts +3 -3
- package/base/lib/osBindings/GetPackageResponse.d.ts +3 -3
- package/base/lib/osBindings/GetPackageResponseFull.d.ts +2 -2
- package/base/lib/osBindings/GetServiceInterfaceParams.d.ts +3 -3
- package/base/lib/osBindings/GetServiceManifestParams.d.ts +2 -2
- package/base/lib/osBindings/GetServicePortForwardParams.d.ts +2 -2
- package/base/lib/osBindings/GetSslCertificateParams.d.ts +2 -2
- package/base/lib/osBindings/GetSslKeyParams.d.ts +1 -1
- package/base/lib/osBindings/GetStatusParams.d.ts +2 -2
- package/base/lib/osBindings/GetSystemSmtpParams.d.ts +1 -1
- package/base/lib/osBindings/GigaBytes.d.ts +4 -1
- package/base/lib/osBindings/HardwareRequirements.d.ts +1 -1
- package/base/lib/osBindings/Host.d.ts +10 -12
- package/base/lib/osBindings/Hostname.d.ts +1 -0
- package/base/lib/osBindings/Hostname.js +4 -0
- package/base/lib/osBindings/Hostname.js.map +1 -0
- package/base/lib/osBindings/HostnameInfo.d.ts +5 -9
- package/base/lib/osBindings/HostnameMetadata.d.ts +22 -0
- package/base/lib/osBindings/HostnameMetadata.js +3 -0
- package/base/lib/osBindings/HostnameMetadata.js.map +1 -0
- package/base/lib/osBindings/Hosts.d.ts +2 -2
- package/base/lib/osBindings/ImageConfig.d.ts +1 -1
- package/base/lib/osBindings/ImageSource.d.ts +2 -2
- package/base/lib/osBindings/InfoParams.d.ts +6 -0
- package/base/lib/osBindings/InfoParams.js +3 -0
- package/base/lib/osBindings/InfoParams.js.map +1 -0
- package/base/lib/osBindings/InitAcmeParams.d.ts +5 -0
- package/base/lib/osBindings/InitAcmeParams.js +3 -0
- package/base/lib/osBindings/InitAcmeParams.js.map +1 -0
- package/base/lib/osBindings/InitProgressRes.d.ts +2 -2
- package/base/lib/osBindings/InstallParams.d.ts +2 -2
- package/base/lib/osBindings/InstalledState.d.ts +1 -1
- package/base/lib/osBindings/InstalledVersionParams.d.ts +1 -1
- package/base/lib/osBindings/InstallingInfo.d.ts +2 -2
- package/base/lib/osBindings/InstallingState.d.ts +1 -1
- package/base/lib/osBindings/IpHostname.d.ts +4 -4
- package/base/lib/osBindings/IpInfo.d.ts +1 -1
- package/base/lib/osBindings/KillParams.d.ts +3 -0
- package/base/lib/osBindings/KillParams.js +4 -0
- package/base/lib/osBindings/KillParams.js.map +1 -0
- package/base/lib/osBindings/ListNotificationParams.d.ts +4 -0
- package/base/lib/osBindings/ListNotificationParams.js +4 -0
- package/base/lib/osBindings/ListNotificationParams.js.map +1 -0
- package/base/lib/osBindings/ListPackageSignersParams.d.ts +1 -1
- package/base/lib/osBindings/ListServiceInterfacesParams.d.ts +2 -2
- package/base/lib/osBindings/LogEntry.d.ts +5 -0
- package/base/lib/osBindings/LogEntry.js +4 -0
- package/base/lib/osBindings/LogEntry.js.map +1 -0
- package/base/lib/osBindings/LogFollowResponse.d.ts +5 -0
- package/base/lib/osBindings/LogFollowResponse.js +3 -0
- package/base/lib/osBindings/LogFollowResponse.js.map +1 -0
- package/base/lib/osBindings/LogResponse.d.ts +6 -0
- package/base/lib/osBindings/LogResponse.js +3 -0
- package/base/lib/osBindings/LogResponse.js.map +1 -0
- package/base/lib/osBindings/LogsParams.d.ts +6 -0
- package/base/lib/osBindings/LogsParams.js +4 -0
- package/base/lib/osBindings/LogsParams.js.map +1 -0
- package/base/lib/osBindings/LshwDevice.d.ts +4 -4
- package/base/lib/osBindings/Manifest.d.ts +22 -23
- package/base/lib/osBindings/MebiBytes.d.ts +4 -1
- package/base/lib/osBindings/MerkleArchiveCommitment.d.ts +1 -1
- package/base/lib/osBindings/Metadata.d.ts +2 -2
- package/base/lib/osBindings/MetadataSrc.d.ts +2 -2
- package/base/lib/osBindings/Metrics.d.ts +4 -4
- package/base/lib/osBindings/MetricsCpu.d.ts +1 -1
- package/base/lib/osBindings/MetricsDisk.d.ts +2 -2
- package/base/lib/osBindings/MetricsFollowResponse.d.ts +6 -0
- package/base/lib/osBindings/MetricsFollowResponse.js +3 -0
- package/base/lib/osBindings/MetricsFollowResponse.js.map +1 -0
- package/base/lib/osBindings/MetricsGeneral.d.ts +1 -1
- package/base/lib/osBindings/MetricsMemory.d.ts +2 -2
- package/base/lib/osBindings/ModifyNotificationBeforeParams.d.ts +3 -0
- package/base/lib/osBindings/ModifyNotificationBeforeParams.js +4 -0
- package/base/lib/osBindings/ModifyNotificationBeforeParams.js.map +1 -0
- package/base/lib/osBindings/ModifyNotificationParams.d.ts +3 -0
- package/base/lib/osBindings/ModifyNotificationParams.js +4 -0
- package/base/lib/osBindings/ModifyNotificationParams.js.map +1 -0
- package/base/lib/osBindings/MountParams.d.ts +1 -1
- package/base/lib/osBindings/MountTarget.d.ts +3 -3
- package/base/lib/osBindings/NamedHealthCheckResult.d.ts +6 -6
- package/base/lib/osBindings/NamedProgress.d.ts +1 -1
- package/base/lib/osBindings/NetInfo.d.ts +0 -3
- package/base/lib/osBindings/NetInfo.js +1 -0
- package/base/lib/osBindings/NetInfo.js.map +1 -1
- package/base/lib/osBindings/NetworkInfo.d.ts +8 -7
- package/base/lib/osBindings/NetworkInterfaceInfo.d.ts +3 -2
- package/base/lib/osBindings/NetworkInterfaceType.d.ts +1 -1
- package/base/lib/osBindings/Notification.d.ts +12 -0
- package/base/lib/osBindings/Notification.js +3 -0
- package/base/lib/osBindings/Notification.js.map +1 -0
- package/base/lib/osBindings/NotificationLevel.d.ts +1 -0
- package/base/lib/osBindings/NotificationLevel.js +4 -0
- package/base/lib/osBindings/NotificationLevel.js.map +1 -0
- package/base/lib/osBindings/NotificationWithId.d.ts +13 -0
- package/base/lib/osBindings/NotificationWithId.js +3 -0
- package/base/lib/osBindings/NotificationWithId.js.map +1 -0
- package/base/lib/osBindings/OsIndex.d.ts +1 -1
- package/base/lib/osBindings/OsVersionInfo.d.ts +3 -3
- package/base/lib/osBindings/OsVersionInfoMap.d.ts +1 -1
- package/base/lib/osBindings/PackageBackupInfo.d.ts +7 -0
- package/base/lib/osBindings/PackageBackupInfo.js +3 -0
- package/base/lib/osBindings/PackageBackupInfo.js.map +1 -0
- package/base/lib/osBindings/PackageBackupReport.d.ts +3 -0
- package/base/lib/osBindings/PackageBackupReport.js +4 -0
- package/base/lib/osBindings/PackageBackupReport.js.map +1 -0
- package/base/lib/osBindings/PackageDataEntry.d.ts +12 -11
- package/base/lib/osBindings/PackageDetailLevel.d.ts +1 -1
- package/base/lib/osBindings/PackageIndex.d.ts +3 -3
- package/base/lib/osBindings/PackageInfo.d.ts +3 -3
- package/base/lib/osBindings/PackageInfoShort.d.ts +2 -1
- package/base/lib/osBindings/PackageInfoShort.js +0 -1
- package/base/lib/osBindings/PackageInfoShort.js.map +1 -1
- package/base/lib/osBindings/PackageState.d.ts +8 -8
- package/base/lib/osBindings/PackageVersionInfo.d.ts +17 -18
- package/base/lib/osBindings/PartitionInfo.d.ts +11 -0
- package/base/lib/osBindings/PartitionInfo.js +3 -0
- package/base/lib/osBindings/PartitionInfo.js.map +1 -0
- package/base/lib/osBindings/PasswordType.d.ts +1 -1
- package/base/lib/osBindings/Percentage.d.ts +4 -1
- package/base/lib/osBindings/PortForward.d.ts +6 -0
- package/base/lib/osBindings/PortForward.js +3 -0
- package/base/lib/osBindings/PortForward.js.map +1 -0
- package/base/lib/osBindings/Progress.d.ts +1 -1
- package/base/lib/osBindings/ProgressUnits.d.ts +1 -1
- package/base/lib/osBindings/Public.d.ts +2 -2
- package/base/lib/osBindings/PublicDomainConfig.d.ts +2 -2
- package/base/lib/osBindings/QueryDnsParams.d.ts +3 -0
- package/base/lib/osBindings/QueryDnsParams.js +4 -0
- package/base/lib/osBindings/QueryDnsParams.js.map +1 -0
- package/base/lib/osBindings/RebuildParams.d.ts +4 -0
- package/base/lib/osBindings/RebuildParams.js +3 -0
- package/base/lib/osBindings/RebuildParams.js.map +1 -0
- package/base/lib/osBindings/RecoverySource.d.ts +3 -3
- package/base/lib/osBindings/RegistryAsset.d.ts +2 -2
- package/base/lib/osBindings/RegistryInfo.d.ts +2 -2
- package/base/lib/osBindings/RemoveAcmeParams.d.ts +4 -0
- package/base/lib/osBindings/RemoveAcmeParams.js +3 -0
- package/base/lib/osBindings/RemoveAcmeParams.js.map +1 -0
- package/base/lib/osBindings/RemoveAdminParams.d.ts +1 -1
- package/base/lib/osBindings/RemoveDomainParams.d.ts +3 -0
- package/base/lib/osBindings/RemoveDomainParams.js +4 -0
- package/base/lib/osBindings/RemoveDomainParams.js.map +1 -0
- package/base/lib/osBindings/RemoveMirrorParams.d.ts +2 -2
- package/base/lib/osBindings/RemovePackageFromCategoryParams.d.ts +1 -1
- package/base/lib/osBindings/RemovePackageParams.d.ts +3 -3
- package/base/lib/osBindings/RemovePackageSignerParams.d.ts +2 -2
- package/base/lib/osBindings/RemoveTunnelParams.d.ts +1 -1
- package/base/lib/osBindings/RenameGatewayParams.d.ts +5 -0
- package/base/lib/osBindings/RenameGatewayParams.js +3 -0
- package/base/lib/osBindings/RenameGatewayParams.js.map +1 -0
- package/base/lib/osBindings/RequestCommitment.d.ts +1 -1
- package/base/lib/osBindings/ResetPasswordParams.d.ts +5 -0
- package/base/lib/osBindings/ResetPasswordParams.js +3 -0
- package/base/lib/osBindings/ResetPasswordParams.js.map +1 -0
- package/base/lib/osBindings/RestorePackageParams.d.ts +7 -0
- package/base/lib/osBindings/RestorePackageParams.js +3 -0
- package/base/lib/osBindings/RestorePackageParams.js.map +1 -0
- package/base/lib/osBindings/RunActionParams.d.ts +6 -4
- package/base/lib/osBindings/ServerBackupReport.d.ts +4 -0
- package/base/lib/osBindings/ServerBackupReport.js +4 -0
- package/base/lib/osBindings/ServerBackupReport.js.map +1 -0
- package/base/lib/osBindings/ServerInfo.d.ts +7 -6
- package/base/lib/osBindings/ServerStatus.d.ts +3 -3
- package/base/lib/osBindings/ServiceInterface.d.ts +3 -3
- package/base/lib/osBindings/ServiceInterfaceType.d.ts +1 -1
- package/base/lib/osBindings/SessionList.d.ts +1 -1
- package/base/lib/osBindings/Sessions.d.ts +1 -1
- package/base/lib/osBindings/SetCountryParams.d.ts +3 -0
- package/base/lib/osBindings/SetCountryParams.js +4 -0
- package/base/lib/osBindings/SetCountryParams.js.map +1 -0
- package/base/lib/osBindings/SetDefaultOutboundParams.d.ts +4 -0
- package/base/lib/osBindings/SetDefaultOutboundParams.js +3 -0
- package/base/lib/osBindings/SetDefaultOutboundParams.js.map +1 -0
- package/base/lib/osBindings/SetDependenciesParams.d.ts +1 -1
- package/base/lib/osBindings/SetHealth.d.ts +7 -7
- package/base/lib/osBindings/SetIconParams.d.ts +1 -1
- package/base/lib/osBindings/SetLanguageParams.d.ts +3 -0
- package/base/lib/osBindings/SetLanguageParams.js +4 -0
- package/base/lib/osBindings/SetLanguageParams.js.map +1 -0
- package/base/lib/osBindings/SetMainStatus.d.ts +1 -1
- package/base/lib/osBindings/SetMainStatusStatus.d.ts +1 -1
- package/base/lib/osBindings/SetOutboundGatewayParams.d.ts +6 -0
- package/base/lib/osBindings/SetOutboundGatewayParams.js +3 -0
- package/base/lib/osBindings/SetOutboundGatewayParams.js.map +1 -0
- package/base/lib/osBindings/SetStaticDnsParams.d.ts +3 -0
- package/base/lib/osBindings/SetStaticDnsParams.js +4 -0
- package/base/lib/osBindings/SetStaticDnsParams.js.map +1 -0
- package/base/lib/osBindings/SetWifiEnabledParams.d.ts +3 -0
- package/base/lib/osBindings/SetWifiEnabledParams.js +4 -0
- package/base/lib/osBindings/SetWifiEnabledParams.js.map +1 -0
- package/base/lib/osBindings/SetupExecuteParams.d.ts +2 -2
- package/base/lib/osBindings/SetupProgress.d.ts +2 -2
- package/base/lib/osBindings/SetupResult.d.ts +1 -1
- package/base/lib/osBindings/SetupStatusRes.d.ts +7 -7
- package/base/lib/osBindings/SideloadParams.d.ts +1 -0
- package/base/lib/osBindings/SideloadParams.js +4 -0
- package/base/lib/osBindings/SideloadParams.js.map +1 -0
- package/base/lib/osBindings/SideloadResponse.d.ts +5 -0
- package/base/lib/osBindings/SideloadResponse.js +3 -0
- package/base/lib/osBindings/SideloadResponse.js.map +1 -0
- package/base/lib/osBindings/SignAssetParams.d.ts +1 -1
- package/base/lib/osBindings/SignalStrength.d.ts +4 -0
- package/base/lib/osBindings/SignalStrength.js +4 -0
- package/base/lib/osBindings/SignalStrength.js.map +1 -0
- package/base/lib/osBindings/SignerInfo.d.ts +2 -2
- package/base/lib/osBindings/SshAddParams.d.ts +4 -0
- package/base/lib/osBindings/SshAddParams.js +3 -0
- package/base/lib/osBindings/SshAddParams.js.map +1 -0
- package/base/lib/osBindings/SshDeleteParams.d.ts +3 -0
- package/base/lib/osBindings/SshDeleteParams.js +4 -0
- package/base/lib/osBindings/SshDeleteParams.js.map +1 -0
- package/base/lib/osBindings/SshKeyResponse.d.ts +6 -0
- package/base/lib/osBindings/SshKeyResponse.js +4 -0
- package/base/lib/osBindings/SshKeyResponse.js.map +1 -0
- package/base/lib/osBindings/SshPubKey.d.ts +1 -0
- package/base/lib/osBindings/SshPubKey.js +4 -0
- package/base/lib/osBindings/SshPubKey.js.map +1 -0
- package/base/lib/osBindings/Ssid.d.ts +4 -0
- package/base/lib/osBindings/Ssid.js +4 -0
- package/base/lib/osBindings/Ssid.js.map +1 -0
- package/base/lib/osBindings/StartOsRecoveryInfo.d.ts +8 -0
- package/base/lib/osBindings/StartOsRecoveryInfo.js +3 -0
- package/base/lib/osBindings/StartOsRecoveryInfo.js.map +1 -0
- package/base/lib/osBindings/StartStop.d.ts +1 -1
- package/base/lib/osBindings/StatusInfo.d.ts +4 -4
- package/base/lib/osBindings/Task.d.ts +5 -5
- package/base/lib/osBindings/TaskCondition.d.ts +1 -1
- package/base/lib/osBindings/TaskEntry.d.ts +1 -1
- package/base/lib/osBindings/TaskInput.d.ts +1 -1
- package/base/lib/osBindings/TaskSeverity.d.ts +1 -1
- package/base/lib/osBindings/TaskTrigger.d.ts +1 -1
- package/base/lib/osBindings/TimeInfo.d.ts +4 -0
- package/base/lib/osBindings/TimeInfo.js +4 -0
- package/base/lib/osBindings/TimeInfo.js.map +1 -0
- package/base/lib/osBindings/UmountParams.d.ts +4 -0
- package/base/lib/osBindings/UmountParams.js +3 -0
- package/base/lib/osBindings/UmountParams.js.map +1 -0
- package/base/lib/osBindings/UninstallParams.d.ts +6 -0
- package/base/lib/osBindings/UninstallParams.js +3 -0
- package/base/lib/osBindings/UninstallParams.js.map +1 -0
- package/base/lib/osBindings/UpdatingState.d.ts +2 -2
- package/base/lib/osBindings/VerifyCifsParams.d.ts +1 -1
- package/base/lib/osBindings/VersionSignerParams.d.ts +1 -1
- package/base/lib/osBindings/WifiAddParams.d.ts +4 -0
- package/base/lib/osBindings/WifiAddParams.js +4 -0
- package/base/lib/osBindings/WifiAddParams.js.map +1 -0
- package/base/lib/osBindings/WifiListInfo.d.ts +12 -0
- package/base/lib/osBindings/WifiListInfo.js +3 -0
- package/base/lib/osBindings/WifiListInfo.js.map +1 -0
- package/base/lib/osBindings/WifiListOut.d.ts +7 -0
- package/base/lib/osBindings/WifiListOut.js +3 -0
- package/base/lib/osBindings/WifiListOut.js.map +1 -0
- package/base/lib/osBindings/WifiSsidParams.d.ts +3 -0
- package/base/lib/osBindings/WifiSsidParams.js +4 -0
- package/base/lib/osBindings/WifiSsidParams.js.map +1 -0
- package/base/lib/osBindings/index.d.ts +296 -226
- package/base/lib/s9pk/index.d.ts +2 -2
- package/base/lib/s9pk/index.js +13 -13
- package/base/lib/s9pk/merkleArchive/directoryContents.d.ts +1 -1
- package/base/lib/s9pk/merkleArchive/directoryContents.js +2 -2
- package/base/lib/s9pk/merkleArchive/fileContents.d.ts +1 -1
- package/base/lib/s9pk/merkleArchive/fileContents.js +1 -1
- package/base/lib/s9pk/merkleArchive/index.d.ts +3 -3
- package/base/lib/s9pk/merkleArchive/index.js +8 -8
- package/base/lib/s9pk/merkleArchive/varint.js +1 -1
- package/base/lib/types/ManifestTypes.d.ts +22 -30
- package/base/lib/types.d.ts +13 -13
- package/base/lib/types.js +4 -4
- package/base/lib/util/Drop.js +3 -3
- package/base/lib/util/GetSystemSmtp.d.ts +2 -2
- package/base/lib/util/GetSystemSmtp.js +5 -5
- package/base/lib/util/asError.js +1 -1
- package/base/lib/util/deepMerge.js +3 -3
- package/base/lib/util/getDefaultString.d.ts +1 -1
- package/base/lib/util/getDefaultString.js +1 -1
- package/base/lib/util/getRandomCharInSet.js +9 -9
- package/base/lib/util/getRandomString.d.ts +1 -1
- package/base/lib/util/getRandomString.js +1 -1
- package/base/lib/util/getServiceInterface.d.ts +34 -46
- package/base/lib/util/getServiceInterface.js +73 -79
- package/base/lib/util/getServiceInterface.js.map +1 -1
- package/base/lib/util/getServiceInterfaces.d.ts +3 -3
- package/base/lib/util/getServiceInterfaces.js +6 -6
- package/base/lib/util/graph.d.ts +1 -1
- package/base/lib/util/graph.js +3 -3
- package/base/lib/util/inMs.js +7 -7
- package/base/lib/util/index.d.ts +18 -18
- package/base/lib/util/ip.js +29 -29
- package/base/lib/util/patterns.d.ts +1 -3
- package/base/lib/util/patterns.js +10 -18
- package/base/lib/util/patterns.js.map +1 -1
- package/base/lib/util/regexes.d.ts +0 -2
- package/base/lib/util/regexes.js +2 -4
- package/base/lib/util/regexes.js.map +1 -1
- package/base/lib/util/splitCommand.js +1 -1
- package/base/lib/util/typeHelpers.d.ts +4 -4
- package/base/lib/util/typeHelpers.js +1 -1
- package/package/lib/StartSdk.d.ts +34 -34
- package/package/lib/StartSdk.js +9 -9
- package/package/lib/backup/Backups.d.ts +8 -8
- package/package/lib/backup/Backups.js +17 -17
- package/package/lib/backup/index.d.ts +2 -2
- package/package/lib/backup/setupBackups.d.ts +4 -4
- package/package/lib/health/HealthCheck.d.ts +4 -4
- package/package/lib/health/HealthCheck.js +7 -7
- package/package/lib/health/checkFns/HealthCheckResult.d.ts +2 -2
- package/package/lib/health/checkFns/checkPortListening.d.ts +2 -2
- package/package/lib/health/checkFns/checkPortListening.js +7 -7
- package/package/lib/health/checkFns/checkWebUrl.d.ts +3 -3
- package/package/lib/health/checkFns/checkWebUrl.js +2 -2
- package/package/lib/health/checkFns/index.d.ts +4 -4
- package/package/lib/health/checkFns/index.js +1 -1
- package/package/lib/health/checkFns/runHealthScript.d.ts +3 -3
- package/package/lib/health/checkFns/runHealthScript.js +2 -2
- package/package/lib/health/index.d.ts +2 -2
- package/package/lib/i18n/index.js +4 -4
- package/package/lib/index.d.ts +20 -20
- package/package/lib/mainFn/CommandController.d.ts +4 -4
- package/package/lib/mainFn/CommandController.js +13 -13
- package/package/lib/mainFn/Daemon.d.ts +6 -6
- package/package/lib/mainFn/Daemon.js +1 -1
- package/package/lib/mainFn/Daemons.d.ts +10 -10
- package/package/lib/mainFn/Daemons.js +3 -3
- package/package/lib/mainFn/HealthDaemon.d.ts +4 -4
- package/package/lib/mainFn/HealthDaemon.js +20 -20
- package/package/lib/mainFn/Mounts.d.ts +6 -6
- package/package/lib/mainFn/Mounts.js +7 -7
- package/package/lib/mainFn/Oneshot.d.ts +4 -4
- package/package/lib/mainFn/index.d.ts +4 -4
- package/package/lib/manifest/setupManifest.d.ts +4 -4
- package/package/lib/manifest/setupManifest.js +13 -15
- package/package/lib/manifest/setupManifest.js.map +1 -1
- package/package/lib/test/health.readyCheck.test.js +2 -2
- package/package/lib/test/host.test.js +11 -11
- package/package/lib/test/inputSpecBuilder.test.js +206 -207
- package/package/lib/test/inputSpecBuilder.test.js.map +1 -1
- package/package/lib/test/makeOutput.js +197 -197
- package/package/lib/test/output.js +301 -390
- package/package/lib/test/output.js.map +1 -1
- package/package/lib/test/output.sdk.d.ts +56 -70
- package/package/lib/test/output.sdk.js +15 -16
- package/package/lib/test/output.sdk.js.map +1 -1
- package/package/lib/test/output.test.js +23 -23
- package/package/lib/trigger/TriggerInput.d.ts +1 -1
- package/package/lib/trigger/changeOnFirstSuccess.d.ts +1 -1
- package/package/lib/trigger/changeOnFirstSuccess.js +1 -1
- package/package/lib/trigger/index.d.ts +3 -3
- package/package/lib/trigger/lastStatus.d.ts +2 -2
- package/package/lib/trigger/lastStatus.js +1 -1
- package/package/lib/trigger/successFailure.d.ts +1 -1
- package/package/lib/types.d.ts +2 -2
- package/package/lib/util/GetServiceManifest.d.ts +2 -2
- package/package/lib/util/GetServiceManifest.js +6 -6
- package/package/lib/util/GetSslCertificate.d.ts +2 -2
- package/package/lib/util/GetSslCertificate.js +5 -5
- package/package/lib/util/SubContainer.d.ts +21 -21
- package/package/lib/util/SubContainer.js +72 -72
- package/package/lib/util/Volume.d.ts +3 -3
- package/package/lib/util/Volume.js +2 -2
- package/package/lib/util/fileHelper.d.ts +4 -4
- package/package/lib/util/fileHelper.js +20 -20
- package/package/lib/util/index.d.ts +5 -5
- package/package/lib/version/VersionGraph.d.ts +5 -5
- package/package/lib/version/VersionGraph.js +14 -14
- package/package/lib/version/VersionInfo.d.ts +2 -2
- package/package/lib/version/VersionInfo.js +10 -10
- package/package/lib/version/index.d.ts +2 -2
- package/package/package.json +2 -2
- package/package/scripts/oldSpecToBuilder.js +44 -44
- package/package.json +2 -2
- package/base/lib/osBindings/PackageSignerParams.d.ts +0 -6
- package/base/lib/osBindings/PackageSignerParams.js.map +0 -1
package/base/lib/exver/index.js
CHANGED
|
@@ -67,8 +67,8 @@ function adjacentVersionRangePoints(a, b) {
|
|
|
67
67
|
return a.side == -1 && b.side == 1;
|
|
68
68
|
}
|
|
69
69
|
function flavorAnd(a, b) {
|
|
70
|
-
if (a.type ==
|
|
71
|
-
if (b.type ==
|
|
70
|
+
if (a.type == 'Flavor') {
|
|
71
|
+
if (b.type == 'Flavor') {
|
|
72
72
|
if (a.flavor == b.flavor) {
|
|
73
73
|
return a;
|
|
74
74
|
}
|
|
@@ -86,7 +86,7 @@ function flavorAnd(a, b) {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
|
-
if (b.type ==
|
|
89
|
+
if (b.type == 'Flavor') {
|
|
90
90
|
if (a.flavors.has(b.flavor)) {
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
@@ -97,7 +97,7 @@ function flavorAnd(a, b) {
|
|
|
97
97
|
else {
|
|
98
98
|
// TODO: use Set.union if targeting esnext or later
|
|
99
99
|
return {
|
|
100
|
-
type:
|
|
100
|
+
type: 'FlavorNot',
|
|
101
101
|
flavors: new Set([...a.flavors, ...b.flavors]),
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -173,12 +173,12 @@ class VersionRangeTable {
|
|
|
173
173
|
static eqFlavor(flavor) {
|
|
174
174
|
return new deep_equality_data_structures_1.DeepMap([
|
|
175
175
|
[
|
|
176
|
-
{ type:
|
|
176
|
+
{ type: 'Flavor', flavor },
|
|
177
177
|
new VersionRangeTable([], [true]),
|
|
178
178
|
],
|
|
179
179
|
// make sure the truth table is exhaustive, or `not` will not work properly.
|
|
180
180
|
[
|
|
181
|
-
{ type:
|
|
181
|
+
{ type: 'FlavorNot', flavors: new Set([flavor]) },
|
|
182
182
|
new VersionRangeTable([], [false]),
|
|
183
183
|
],
|
|
184
184
|
]);
|
|
@@ -190,12 +190,12 @@ class VersionRangeTable {
|
|
|
190
190
|
static cmpPoint(flavor, point, left, right) {
|
|
191
191
|
return new deep_equality_data_structures_1.DeepMap([
|
|
192
192
|
[
|
|
193
|
-
{ type:
|
|
193
|
+
{ type: 'Flavor', flavor },
|
|
194
194
|
new VersionRangeTable([point], [left, right]),
|
|
195
195
|
],
|
|
196
196
|
// make sure the truth table is exhaustive, or `not` will not work properly.
|
|
197
197
|
[
|
|
198
|
-
{ type:
|
|
198
|
+
{ type: 'FlavorNot', flavors: new Set([flavor]) },
|
|
199
199
|
new VersionRangeTable([], [false]),
|
|
200
200
|
],
|
|
201
201
|
]);
|
|
@@ -311,7 +311,7 @@ class VersionRangeTable {
|
|
|
311
311
|
let sum_terms = [];
|
|
312
312
|
for (let [flavor, table] of tables) {
|
|
313
313
|
let cmp_flavor = null;
|
|
314
|
-
if (flavor.type ==
|
|
314
|
+
if (flavor.type == 'Flavor') {
|
|
315
315
|
cmp_flavor = flavor.flavor;
|
|
316
316
|
}
|
|
317
317
|
for (let i = 0; i < table.values.length; i++) {
|
|
@@ -319,7 +319,7 @@ class VersionRangeTable {
|
|
|
319
319
|
if (!table.values[i]) {
|
|
320
320
|
continue;
|
|
321
321
|
}
|
|
322
|
-
if (flavor.type ==
|
|
322
|
+
if (flavor.type == 'FlavorNot') {
|
|
323
323
|
for (let not_flavor of flavor.flavors) {
|
|
324
324
|
term.push(VersionRange.flavor(not_flavor).not());
|
|
325
325
|
}
|
|
@@ -333,20 +333,20 @@ class VersionRangeTable {
|
|
|
333
333
|
q = table.points[i];
|
|
334
334
|
}
|
|
335
335
|
if (p != null && q != null && adjacentVersionRangePoints(p, q)) {
|
|
336
|
-
term.push(VersionRange.anchor(
|
|
336
|
+
term.push(VersionRange.anchor('=', new ExtendedVersion(cmp_flavor, p.upstream, p.downstream)));
|
|
337
337
|
}
|
|
338
338
|
else {
|
|
339
339
|
if (p != null && p.side < 0) {
|
|
340
|
-
term.push(VersionRange.anchor(
|
|
340
|
+
term.push(VersionRange.anchor('>=', new ExtendedVersion(cmp_flavor, p.upstream, p.downstream)));
|
|
341
341
|
}
|
|
342
342
|
if (p != null && p.side >= 0) {
|
|
343
|
-
term.push(VersionRange.anchor(
|
|
343
|
+
term.push(VersionRange.anchor('>', new ExtendedVersion(cmp_flavor, p.upstream, p.downstream)));
|
|
344
344
|
}
|
|
345
345
|
if (q != null && q.side < 0) {
|
|
346
|
-
term.push(VersionRange.anchor(
|
|
346
|
+
term.push(VersionRange.anchor('<', new ExtendedVersion(cmp_flavor, q.upstream, q.downstream)));
|
|
347
347
|
}
|
|
348
348
|
if (q != null && q.side >= 0) {
|
|
349
|
-
term.push(VersionRange.anchor(
|
|
349
|
+
term.push(VersionRange.anchor('<=', new ExtendedVersion(cmp_flavor, q.upstream, q.downstream)));
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
if (term.length == 0) {
|
|
@@ -365,22 +365,22 @@ class VersionRange {
|
|
|
365
365
|
toStringParens(parent) {
|
|
366
366
|
let needs = true;
|
|
367
367
|
switch (this.atom.type) {
|
|
368
|
-
case
|
|
369
|
-
case
|
|
368
|
+
case 'And':
|
|
369
|
+
case 'Or':
|
|
370
370
|
needs = parent != this.atom.type;
|
|
371
371
|
break;
|
|
372
|
-
case
|
|
373
|
-
case
|
|
374
|
-
case
|
|
375
|
-
needs = parent ==
|
|
372
|
+
case 'Anchor':
|
|
373
|
+
case 'Any':
|
|
374
|
+
case 'None':
|
|
375
|
+
needs = parent == 'Not';
|
|
376
376
|
break;
|
|
377
|
-
case
|
|
378
|
-
case
|
|
377
|
+
case 'Not':
|
|
378
|
+
case 'Flavor':
|
|
379
379
|
needs = false;
|
|
380
380
|
break;
|
|
381
381
|
}
|
|
382
382
|
if (needs) {
|
|
383
|
-
return
|
|
383
|
+
return '(' + this.toString() + ')';
|
|
384
384
|
}
|
|
385
385
|
else {
|
|
386
386
|
return this.toString();
|
|
@@ -388,38 +388,38 @@ class VersionRange {
|
|
|
388
388
|
}
|
|
389
389
|
toString() {
|
|
390
390
|
switch (this.atom.type) {
|
|
391
|
-
case
|
|
391
|
+
case 'Anchor':
|
|
392
392
|
return `${this.atom.operator}${this.atom.version}`;
|
|
393
|
-
case
|
|
393
|
+
case 'And':
|
|
394
394
|
return `${this.atom.left.toStringParens(this.atom.type)} && ${this.atom.right.toStringParens(this.atom.type)}`;
|
|
395
|
-
case
|
|
395
|
+
case 'Or':
|
|
396
396
|
return `${this.atom.left.toStringParens(this.atom.type)} || ${this.atom.right.toStringParens(this.atom.type)}`;
|
|
397
|
-
case
|
|
397
|
+
case 'Not':
|
|
398
398
|
return `!${this.atom.value.toStringParens(this.atom.type)}`;
|
|
399
|
-
case
|
|
399
|
+
case 'Flavor':
|
|
400
400
|
return this.atom.flavor == null ? `#` : `#${this.atom.flavor}`;
|
|
401
|
-
case
|
|
402
|
-
return
|
|
403
|
-
case
|
|
404
|
-
return
|
|
401
|
+
case 'Any':
|
|
402
|
+
return '*';
|
|
403
|
+
case 'None':
|
|
404
|
+
return '!';
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
static parseAtom(atom) {
|
|
408
408
|
switch (atom.type) {
|
|
409
|
-
case
|
|
409
|
+
case 'Not':
|
|
410
410
|
return new VersionRange({
|
|
411
|
-
type:
|
|
411
|
+
type: 'Not',
|
|
412
412
|
value: VersionRange.parseAtom(atom.value),
|
|
413
413
|
});
|
|
414
|
-
case
|
|
414
|
+
case 'Parens':
|
|
415
415
|
return VersionRange.parseRange(atom.expr);
|
|
416
|
-
case
|
|
416
|
+
case 'Anchor':
|
|
417
417
|
return new VersionRange({
|
|
418
|
-
type:
|
|
419
|
-
operator: atom.operator ||
|
|
418
|
+
type: 'Anchor',
|
|
419
|
+
operator: atom.operator || '^',
|
|
420
420
|
version: new ExtendedVersion(atom.version.flavor, new Version(atom.version.upstream.number, atom.version.upstream.prerelease), new Version(atom.version.downstream.number, atom.version.downstream.prerelease)),
|
|
421
421
|
});
|
|
422
|
-
case
|
|
422
|
+
case 'Flavor':
|
|
423
423
|
return VersionRange.flavor(atom.flavor);
|
|
424
424
|
default:
|
|
425
425
|
return new VersionRange(atom);
|
|
@@ -429,17 +429,17 @@ class VersionRange {
|
|
|
429
429
|
let result = VersionRange.parseAtom(range[0]);
|
|
430
430
|
for (const next of range[1]) {
|
|
431
431
|
switch (next[1]?.[0]) {
|
|
432
|
-
case
|
|
432
|
+
case '||':
|
|
433
433
|
result = new VersionRange({
|
|
434
|
-
type:
|
|
434
|
+
type: 'Or',
|
|
435
435
|
left: result,
|
|
436
436
|
right: VersionRange.parseAtom(next[2]),
|
|
437
437
|
});
|
|
438
438
|
break;
|
|
439
|
-
case
|
|
439
|
+
case '&&':
|
|
440
440
|
default:
|
|
441
441
|
result = new VersionRange({
|
|
442
|
-
type:
|
|
442
|
+
type: 'And',
|
|
443
443
|
left: result,
|
|
444
444
|
right: VersionRange.parseAtom(next[2]),
|
|
445
445
|
});
|
|
@@ -449,40 +449,40 @@ class VersionRange {
|
|
|
449
449
|
return result;
|
|
450
450
|
}
|
|
451
451
|
static parse(range) {
|
|
452
|
-
return VersionRange.parseRange(P.parse(range, { startRule:
|
|
452
|
+
return VersionRange.parseRange(P.parse(range, { startRule: 'VersionRange' }));
|
|
453
453
|
}
|
|
454
454
|
static anchor(operator, version) {
|
|
455
|
-
return new VersionRange({ type:
|
|
455
|
+
return new VersionRange({ type: 'Anchor', operator, version });
|
|
456
456
|
}
|
|
457
457
|
static flavor(flavor) {
|
|
458
|
-
return new VersionRange({ type:
|
|
458
|
+
return new VersionRange({ type: 'Flavor', flavor });
|
|
459
459
|
}
|
|
460
460
|
static parseEmver(range) {
|
|
461
|
-
return VersionRange.parseRange(P.parse(range, { startRule:
|
|
461
|
+
return VersionRange.parseRange(P.parse(range, { startRule: 'EmverVersionRange' }));
|
|
462
462
|
}
|
|
463
463
|
and(right) {
|
|
464
|
-
return new VersionRange({ type:
|
|
464
|
+
return new VersionRange({ type: 'And', left: this, right });
|
|
465
465
|
}
|
|
466
466
|
or(right) {
|
|
467
|
-
return new VersionRange({ type:
|
|
467
|
+
return new VersionRange({ type: 'Or', left: this, right });
|
|
468
468
|
}
|
|
469
469
|
not() {
|
|
470
|
-
return new VersionRange({ type:
|
|
470
|
+
return new VersionRange({ type: 'Not', value: this });
|
|
471
471
|
}
|
|
472
472
|
static and(...xs) {
|
|
473
473
|
let y = VersionRange.any();
|
|
474
474
|
for (let x of xs) {
|
|
475
|
-
if (x.atom.type ==
|
|
475
|
+
if (x.atom.type == 'Any') {
|
|
476
476
|
continue;
|
|
477
477
|
}
|
|
478
|
-
if (x.atom.type ==
|
|
478
|
+
if (x.atom.type == 'None') {
|
|
479
479
|
return x;
|
|
480
480
|
}
|
|
481
|
-
if (y.atom.type ==
|
|
481
|
+
if (y.atom.type == 'Any') {
|
|
482
482
|
y = x;
|
|
483
483
|
}
|
|
484
484
|
else {
|
|
485
|
-
y = new VersionRange({ type:
|
|
485
|
+
y = new VersionRange({ type: 'And', left: y, right: x });
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
return y;
|
|
@@ -490,67 +490,67 @@ class VersionRange {
|
|
|
490
490
|
static or(...xs) {
|
|
491
491
|
let y = VersionRange.none();
|
|
492
492
|
for (let x of xs) {
|
|
493
|
-
if (x.atom.type ==
|
|
493
|
+
if (x.atom.type == 'None') {
|
|
494
494
|
continue;
|
|
495
495
|
}
|
|
496
|
-
if (x.atom.type ==
|
|
496
|
+
if (x.atom.type == 'Any') {
|
|
497
497
|
return x;
|
|
498
498
|
}
|
|
499
|
-
if (y.atom.type ==
|
|
499
|
+
if (y.atom.type == 'None') {
|
|
500
500
|
y = x;
|
|
501
501
|
}
|
|
502
502
|
else {
|
|
503
|
-
y = new VersionRange({ type:
|
|
503
|
+
y = new VersionRange({ type: 'Or', left: y, right: x });
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
return y;
|
|
507
507
|
}
|
|
508
508
|
static any() {
|
|
509
|
-
return new VersionRange({ type:
|
|
509
|
+
return new VersionRange({ type: 'Any' });
|
|
510
510
|
}
|
|
511
511
|
static none() {
|
|
512
|
-
return new VersionRange({ type:
|
|
512
|
+
return new VersionRange({ type: 'None' });
|
|
513
513
|
}
|
|
514
514
|
satisfiedBy(version) {
|
|
515
515
|
return version.satisfies(this);
|
|
516
516
|
}
|
|
517
517
|
tables() {
|
|
518
518
|
switch (this.atom.type) {
|
|
519
|
-
case
|
|
519
|
+
case 'Anchor':
|
|
520
520
|
switch (this.atom.operator) {
|
|
521
|
-
case
|
|
521
|
+
case '=':
|
|
522
522
|
// `=1.2.3` is equivalent to `>=1.2.3 && <=1.2.4 && #flavor`
|
|
523
523
|
return VersionRangeTable.and(VersionRangeTable.cmp(this.atom.version, -1, false, true), VersionRangeTable.cmp(this.atom.version, 1, true, false));
|
|
524
|
-
case
|
|
524
|
+
case '>':
|
|
525
525
|
return VersionRangeTable.cmp(this.atom.version, 1, false, true);
|
|
526
|
-
case
|
|
526
|
+
case '<':
|
|
527
527
|
return VersionRangeTable.cmp(this.atom.version, -1, true, false);
|
|
528
|
-
case
|
|
528
|
+
case '>=':
|
|
529
529
|
return VersionRangeTable.cmp(this.atom.version, -1, false, true);
|
|
530
|
-
case
|
|
530
|
+
case '<=':
|
|
531
531
|
return VersionRangeTable.cmp(this.atom.version, 1, true, false);
|
|
532
|
-
case
|
|
532
|
+
case '!=':
|
|
533
533
|
// `!=1.2.3` is equivalent to `!(>=1.2.3 && <=1.2.3 && #flavor)`
|
|
534
534
|
// **not** equivalent to `(<1.2.3 || >1.2.3) && #flavor`
|
|
535
535
|
return VersionRangeTable.not(VersionRangeTable.and(VersionRangeTable.cmp(this.atom.version, -1, false, true), VersionRangeTable.cmp(this.atom.version, 1, true, false)));
|
|
536
|
-
case
|
|
536
|
+
case '^':
|
|
537
537
|
// `^1.2.3` is equivalent to `>=1.2.3 && <2.0.0 && #flavor`
|
|
538
538
|
return VersionRangeTable.and(VersionRangeTable.cmp(this.atom.version, -1, false, true), VersionRangeTable.cmp(this.atom.version.incrementMajor(), -1, true, false));
|
|
539
|
-
case
|
|
539
|
+
case '~':
|
|
540
540
|
// `~1.2.3` is equivalent to `>=1.2.3 && <1.3.0 && #flavor`
|
|
541
541
|
return VersionRangeTable.and(VersionRangeTable.cmp(this.atom.version, -1, false, true), VersionRangeTable.cmp(this.atom.version.incrementMinor(), -1, true, false));
|
|
542
542
|
}
|
|
543
|
-
case
|
|
543
|
+
case 'Flavor':
|
|
544
544
|
return VersionRangeTable.eqFlavor(this.atom.flavor);
|
|
545
|
-
case
|
|
545
|
+
case 'Not':
|
|
546
546
|
return VersionRangeTable.not(this.atom.value.tables());
|
|
547
|
-
case
|
|
547
|
+
case 'And':
|
|
548
548
|
return VersionRangeTable.and(this.atom.left.tables(), this.atom.right.tables());
|
|
549
|
-
case
|
|
549
|
+
case 'Or':
|
|
550
550
|
return VersionRangeTable.or(this.atom.left.tables(), this.atom.right.tables());
|
|
551
|
-
case
|
|
551
|
+
case 'Any':
|
|
552
552
|
return true;
|
|
553
|
-
case
|
|
553
|
+
case 'None':
|
|
554
554
|
return false;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -571,63 +571,63 @@ class Version {
|
|
|
571
571
|
this.prerelease = prerelease;
|
|
572
572
|
}
|
|
573
573
|
toString() {
|
|
574
|
-
return `${this.number.join(
|
|
574
|
+
return `${this.number.join('.')}${this.prerelease.length > 0 ? `-${this.prerelease.join('.')}` : ''}`;
|
|
575
575
|
}
|
|
576
576
|
compare(other) {
|
|
577
577
|
const numLen = Math.max(this.number.length, other.number.length);
|
|
578
578
|
for (let i = 0; i < numLen; i++) {
|
|
579
579
|
if ((this.number[i] || 0) > (other.number[i] || 0)) {
|
|
580
|
-
return
|
|
580
|
+
return 'greater';
|
|
581
581
|
}
|
|
582
582
|
else if ((this.number[i] || 0) < (other.number[i] || 0)) {
|
|
583
|
-
return
|
|
583
|
+
return 'less';
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
if (this.prerelease.length === 0 && other.prerelease.length !== 0) {
|
|
587
|
-
return
|
|
587
|
+
return 'greater';
|
|
588
588
|
}
|
|
589
589
|
else if (this.prerelease.length !== 0 && other.prerelease.length === 0) {
|
|
590
|
-
return
|
|
590
|
+
return 'less';
|
|
591
591
|
}
|
|
592
592
|
const prereleaseLen = Math.max(this.prerelease.length, other.prerelease.length);
|
|
593
593
|
for (let i = 0; i < prereleaseLen; i++) {
|
|
594
594
|
if (typeof this.prerelease[i] === typeof other.prerelease[i]) {
|
|
595
595
|
if (this.prerelease[i] > other.prerelease[i]) {
|
|
596
|
-
return
|
|
596
|
+
return 'greater';
|
|
597
597
|
}
|
|
598
598
|
else if (this.prerelease[i] < other.prerelease[i]) {
|
|
599
|
-
return
|
|
599
|
+
return 'less';
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
else {
|
|
603
603
|
switch (`${typeof this.prerelease[1]}:${typeof other.prerelease[i]}`) {
|
|
604
|
-
case
|
|
605
|
-
return
|
|
606
|
-
case
|
|
607
|
-
return
|
|
608
|
-
case
|
|
609
|
-
case
|
|
610
|
-
return
|
|
611
|
-
case
|
|
612
|
-
case
|
|
613
|
-
return
|
|
604
|
+
case 'number:string':
|
|
605
|
+
return 'less';
|
|
606
|
+
case 'string:number':
|
|
607
|
+
return 'greater';
|
|
608
|
+
case 'number:undefined':
|
|
609
|
+
case 'string:undefined':
|
|
610
|
+
return 'greater';
|
|
611
|
+
case 'undefined:number':
|
|
612
|
+
case 'undefined:string':
|
|
613
|
+
return 'less';
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return 'equal';
|
|
618
618
|
}
|
|
619
619
|
compareForSort(other) {
|
|
620
620
|
switch (this.compare(other)) {
|
|
621
|
-
case
|
|
621
|
+
case 'greater':
|
|
622
622
|
return 1;
|
|
623
|
-
case
|
|
623
|
+
case 'equal':
|
|
624
624
|
return 0;
|
|
625
|
-
case
|
|
625
|
+
case 'less':
|
|
626
626
|
return -1;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
629
|
static parse(version) {
|
|
630
|
-
const parsed = P.parse(version, { startRule:
|
|
630
|
+
const parsed = P.parse(version, { startRule: 'Version' });
|
|
631
631
|
return new Version(parsed.number, parsed.prerelease);
|
|
632
632
|
}
|
|
633
633
|
satisfies(versionRange) {
|
|
@@ -643,24 +643,24 @@ class ExtendedVersion {
|
|
|
643
643
|
this.downstream = downstream;
|
|
644
644
|
}
|
|
645
645
|
toString() {
|
|
646
|
-
return `${this.flavor ? `#${this.flavor}:` :
|
|
646
|
+
return `${this.flavor ? `#${this.flavor}:` : ''}${this.upstream.toString()}:${this.downstream.toString()}`;
|
|
647
647
|
}
|
|
648
648
|
compare(other) {
|
|
649
649
|
if (this.flavor !== other.flavor) {
|
|
650
650
|
return null;
|
|
651
651
|
}
|
|
652
652
|
const upstreamCmp = this.upstream.compare(other.upstream);
|
|
653
|
-
if (upstreamCmp !==
|
|
653
|
+
if (upstreamCmp !== 'equal') {
|
|
654
654
|
return upstreamCmp;
|
|
655
655
|
}
|
|
656
656
|
return this.downstream.compare(other.downstream);
|
|
657
657
|
}
|
|
658
658
|
compareLexicographic(other) {
|
|
659
|
-
if ((this.flavor ||
|
|
660
|
-
return
|
|
659
|
+
if ((this.flavor || '') > (other.flavor || '')) {
|
|
660
|
+
return 'greater';
|
|
661
661
|
}
|
|
662
|
-
else if ((this.flavor ||
|
|
663
|
-
return
|
|
662
|
+
else if ((this.flavor || '') > (other.flavor || '')) {
|
|
663
|
+
return 'less';
|
|
664
664
|
}
|
|
665
665
|
else {
|
|
666
666
|
return this.compare(other);
|
|
@@ -668,36 +668,36 @@ class ExtendedVersion {
|
|
|
668
668
|
}
|
|
669
669
|
compareForSort(other) {
|
|
670
670
|
switch (this.compareLexicographic(other)) {
|
|
671
|
-
case
|
|
671
|
+
case 'greater':
|
|
672
672
|
return 1;
|
|
673
|
-
case
|
|
673
|
+
case 'equal':
|
|
674
674
|
return 0;
|
|
675
|
-
case
|
|
675
|
+
case 'less':
|
|
676
676
|
return -1;
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
greaterThan(other) {
|
|
680
|
-
return this.compare(other) ===
|
|
680
|
+
return this.compare(other) === 'greater';
|
|
681
681
|
}
|
|
682
682
|
greaterThanOrEqual(other) {
|
|
683
|
-
return [
|
|
683
|
+
return ['greater', 'equal'].includes(this.compare(other));
|
|
684
684
|
}
|
|
685
685
|
equals(other) {
|
|
686
|
-
return this.compare(other) ===
|
|
686
|
+
return this.compare(other) === 'equal';
|
|
687
687
|
}
|
|
688
688
|
lessThan(other) {
|
|
689
|
-
return this.compare(other) ===
|
|
689
|
+
return this.compare(other) === 'less';
|
|
690
690
|
}
|
|
691
691
|
lessThanOrEqual(other) {
|
|
692
|
-
return [
|
|
692
|
+
return ['less', 'equal'].includes(this.compare(other));
|
|
693
693
|
}
|
|
694
694
|
static parse(extendedVersion) {
|
|
695
|
-
const parsed = P.parse(extendedVersion, { startRule:
|
|
695
|
+
const parsed = P.parse(extendedVersion, { startRule: 'ExtendedVersion' });
|
|
696
696
|
return new ExtendedVersion(parsed.flavor || null, new Version(parsed.upstream.number, parsed.upstream.prerelease), new Version(parsed.downstream.number, parsed.downstream.prerelease));
|
|
697
697
|
}
|
|
698
698
|
static parseEmver(extendedVersion) {
|
|
699
699
|
try {
|
|
700
|
-
const parsed = P.parse(extendedVersion, { startRule:
|
|
700
|
+
const parsed = P.parse(extendedVersion, { startRule: 'Emver' });
|
|
701
701
|
return new ExtendedVersion(parsed.flavor || null, new Version(parsed.upstream.number, parsed.upstream.prerelease), new Version(parsed.downstream.number, parsed.downstream.prerelease));
|
|
702
702
|
}
|
|
703
703
|
catch (e) {
|
|
@@ -754,22 +754,22 @@ class ExtendedVersion {
|
|
|
754
754
|
*/
|
|
755
755
|
satisfies(versionRange) {
|
|
756
756
|
switch (versionRange.atom.type) {
|
|
757
|
-
case
|
|
757
|
+
case 'Anchor':
|
|
758
758
|
const otherVersion = versionRange.atom.version;
|
|
759
759
|
switch (versionRange.atom.operator) {
|
|
760
|
-
case
|
|
760
|
+
case '=':
|
|
761
761
|
return this.equals(otherVersion);
|
|
762
|
-
case
|
|
762
|
+
case '>':
|
|
763
763
|
return this.greaterThan(otherVersion);
|
|
764
|
-
case
|
|
764
|
+
case '<':
|
|
765
765
|
return this.lessThan(otherVersion);
|
|
766
|
-
case
|
|
766
|
+
case '>=':
|
|
767
767
|
return this.greaterThanOrEqual(otherVersion);
|
|
768
|
-
case
|
|
768
|
+
case '<=':
|
|
769
769
|
return this.lessThanOrEqual(otherVersion);
|
|
770
|
-
case
|
|
770
|
+
case '!=':
|
|
771
771
|
return !this.equals(otherVersion);
|
|
772
|
-
case
|
|
772
|
+
case '^':
|
|
773
773
|
const nextMajor = versionRange.atom.version.incrementMajor();
|
|
774
774
|
if (this.greaterThanOrEqual(otherVersion) &&
|
|
775
775
|
this.lessThan(nextMajor)) {
|
|
@@ -778,7 +778,7 @@ class ExtendedVersion {
|
|
|
778
778
|
else {
|
|
779
779
|
return false;
|
|
780
780
|
}
|
|
781
|
-
case
|
|
781
|
+
case '~':
|
|
782
782
|
const nextMinor = versionRange.atom.version.incrementMinor();
|
|
783
783
|
if (this.greaterThanOrEqual(otherVersion) &&
|
|
784
784
|
this.lessThan(nextMinor)) {
|
|
@@ -788,19 +788,19 @@ class ExtendedVersion {
|
|
|
788
788
|
return false;
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
|
-
case
|
|
791
|
+
case 'Flavor':
|
|
792
792
|
return versionRange.atom.flavor == this.flavor;
|
|
793
|
-
case
|
|
793
|
+
case 'And':
|
|
794
794
|
return (this.satisfies(versionRange.atom.left) &&
|
|
795
795
|
this.satisfies(versionRange.atom.right));
|
|
796
|
-
case
|
|
796
|
+
case 'Or':
|
|
797
797
|
return (this.satisfies(versionRange.atom.left) ||
|
|
798
798
|
this.satisfies(versionRange.atom.right));
|
|
799
|
-
case
|
|
799
|
+
case 'Not':
|
|
800
800
|
return !this.satisfies(versionRange.atom.value);
|
|
801
|
-
case
|
|
801
|
+
case 'Any':
|
|
802
802
|
return true;
|
|
803
|
-
case
|
|
803
|
+
case 'None':
|
|
804
804
|
return false;
|
|
805
805
|
}
|
|
806
806
|
}
|
|
@@ -811,34 +811,34 @@ exports.testTypeExVer = testTypeExVer;
|
|
|
811
811
|
const testTypeVersion = (t) => t;
|
|
812
812
|
exports.testTypeVersion = testTypeVersion;
|
|
813
813
|
function tests() {
|
|
814
|
-
(0, exports.testTypeVersion)(
|
|
815
|
-
(0, exports.testTypeVersion)(
|
|
816
|
-
(0, exports.testTypeVersion)(
|
|
817
|
-
(0, exports.testTypeVersion)(
|
|
818
|
-
(0, exports.testTypeVersion)(
|
|
819
|
-
(0, exports.testTypeVersion)(
|
|
814
|
+
(0, exports.testTypeVersion)('1.2.3');
|
|
815
|
+
(0, exports.testTypeVersion)('1');
|
|
816
|
+
(0, exports.testTypeVersion)('12.34.56');
|
|
817
|
+
(0, exports.testTypeVersion)('1.2-3');
|
|
818
|
+
(0, exports.testTypeVersion)('1-3');
|
|
819
|
+
(0, exports.testTypeVersion)('1-alpha');
|
|
820
820
|
// @ts-expect-error
|
|
821
|
-
(0, exports.testTypeVersion)(
|
|
821
|
+
(0, exports.testTypeVersion)('-3');
|
|
822
822
|
// @ts-expect-error
|
|
823
|
-
(0, exports.testTypeVersion)(
|
|
823
|
+
(0, exports.testTypeVersion)('1.2.3:1');
|
|
824
824
|
// @ts-expect-error
|
|
825
|
-
(0, exports.testTypeVersion)(
|
|
826
|
-
(0, exports.testTypeExVer)(
|
|
827
|
-
(0, exports.testTypeExVer)(
|
|
828
|
-
(0, exports.testTypeExVer)(
|
|
829
|
-
(0, exports.testTypeExVer)(
|
|
830
|
-
(0, exports.testTypeExVer)(
|
|
831
|
-
(0, exports.testTypeExVer)(
|
|
832
|
-
(0, exports.testTypeExVer)(
|
|
825
|
+
(0, exports.testTypeVersion)('#cat:1:1');
|
|
826
|
+
(0, exports.testTypeExVer)('1.2.3:1.2.3');
|
|
827
|
+
(0, exports.testTypeExVer)('1.2.3.4.5.6.7.8.9.0:1');
|
|
828
|
+
(0, exports.testTypeExVer)('100:1');
|
|
829
|
+
(0, exports.testTypeExVer)('#cat:1:1');
|
|
830
|
+
(0, exports.testTypeExVer)('1.2.3.4.5.6.7.8.9.11.22.33:1');
|
|
831
|
+
(0, exports.testTypeExVer)('1-0:1');
|
|
832
|
+
(0, exports.testTypeExVer)('1-0:1');
|
|
833
833
|
// @ts-expect-error
|
|
834
|
-
(0, exports.testTypeExVer)(
|
|
834
|
+
(0, exports.testTypeExVer)('1.2-3');
|
|
835
835
|
// @ts-expect-error
|
|
836
|
-
(0, exports.testTypeExVer)(
|
|
836
|
+
(0, exports.testTypeExVer)('1-3');
|
|
837
837
|
// @ts-expect-error
|
|
838
|
-
(0, exports.testTypeExVer)(
|
|
838
|
+
(0, exports.testTypeExVer)('1.2.3.4.5.6.7.8.9.0.10:1');
|
|
839
839
|
// @ts-expect-error
|
|
840
|
-
(0, exports.testTypeExVer)(
|
|
840
|
+
(0, exports.testTypeExVer)('1.-2:1');
|
|
841
841
|
// @ts-expect-error
|
|
842
|
-
(0, exports.testTypeExVer)(
|
|
842
|
+
(0, exports.testTypeExVer)('1..2.3:3');
|
|
843
843
|
}
|
|
844
844
|
//# sourceMappingURL=index.js.map
|