Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
kaxTask.succeed()
}
if (pathExist) {
kaxTask = kax.task('Ensuring that path exist')
await Ensure.pathExist(pathExist.p)
kaxTask.succeed()
}
if (isFilePath) {
kaxTask = kax.task('Ensuring that path is a file path')
await Ensure.isFilePath(isFilePath.p, isFilePath.extraErrorMessage)
kaxTask.succeed()
}
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()