Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (isDirectoryPath) {
kaxTask = kax.task('Ensuring that path is a directory path')
await Ensure.isDirectoryPath(
isDirectoryPath.p,
isDirectoryPath.extraErrorMessage
)
kaxTask.succeed()
}
if (isValidPlatformConfig) {
kaxTask = kax.task('Ensuring that config key is whitelisted')
Ensure.isValidPlatformConfig(isValidPlatformConfig.key)
kaxTask.succeed()
}
if (isSupportedMiniAppOrJsApiImplVersion) {
kaxTask = kax.task('Ensuring that version is fixed')
Ensure.isSupportedMiniAppOrJsApiImplVersion(
isSupportedMiniAppOrJsApiImplVersion.obj
)
kaxTask.succeed()
}
if (isContainerPath) {
kaxTask = kax.task('Ensuring that path is a container path')
Ensure.isContainerPath(
isContainerPath.p,
isContainerPath.extraErrorMessage
)
kaxTask.succeed()
}
if (isEnvVariableDefined) {
kaxTask = kax.task(
`Ensuring that ${isEnvVariableDefined.name} env variable is defined`
)