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 (isValidElectrodeNativeModuleName) {
kaxTask = kax.task('Ensuring that Electrode Native module name is valid')
await Ensure.isValidElectrodeNativeModuleName(
isValidElectrodeNativeModuleName.name,
isValidElectrodeNativeModuleName.extraErrorMessage
)
kaxTask.succeed()
}
if (checkIfCodePushOptionsAreValid) {
kaxTask = kax.task(
'Ensuring that preconditions for code-push command are valid'
)
Ensure.checkIfCodePushOptionsAreValid(
checkIfCodePushOptionsAreValid.descriptors,
checkIfCodePushOptionsAreValid.targetBinaryVersion,
checkIfCodePushOptionsAreValid.semVerDescriptor,
checkIfCodePushOptionsAreValid.extraErrorMessage
)
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()