Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (dependencyIsInNativeApplicationVersionContainer) {
kaxTask = kax.task(
'Ensuring that dependency(ies) is/are present in native application version container'
)
await Ensure.dependencyIsInNativeApplicationVersionContainer(
dependencyIsInNativeApplicationVersionContainer.dependency,
dependencyIsInNativeApplicationVersionContainer.descriptor,
dependencyIsInNativeApplicationVersionContainer.extraErrorMessage
)
kaxTask.succeed()
}
if (dependencyIsInNativeApplicationVersionContainerWithDifferentVersion) {
kaxTask = kax.task(
'Ensuring that dependency(ies) is/are present in native application version container with different version(s)'
)
await Ensure.dependencyIsInNativeApplicationVersionContainerWithDifferentVersion(
dependencyIsInNativeApplicationVersionContainerWithDifferentVersion.dependency,
dependencyIsInNativeApplicationVersionContainerWithDifferentVersion.descriptor,
dependencyIsInNativeApplicationVersionContainerWithDifferentVersion.extraErrorMessage
)
kaxTask.succeed()
}
if (dependencyNotInUseByAMiniApp) {
kaxTask = kax.task(
'Ensuring that no MiniApp(s) is/are using a dependency'
)
await Ensure.dependencyNotInUseByAMiniApp(
dependencyNotInUseByAMiniApp.dependency,
dependencyNotInUseByAMiniApp.descriptor,
dependencyNotInUseByAMiniApp.extraErrorMessage
)
kaxTask.succeed()