Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}: {
containerPath: string
containerVersion: string
pipeline: any[]
platform: 'android' | 'ios'
}) {
const cauldron = await getActiveCauldron()
let curIdx = 0
for (const pipelineElt of pipeline || []) {
curIdx++
const pipelineEltPackage = PackagePath.fromString(pipelineElt.name)
let pipelineEltType
if (isPublisher(pipelineEltPackage)) {
pipelineEltType = 'publisher'
} else if (isTransformer(pipelineEltPackage)) {
pipelineEltType = 'transformer'
} else {
log.error(
`[${curIdx}/${pipeline.length}] Skipping non transformer/publisher pipeline element ${pipelineElt.name}`
)
continue
}
if (pipelineElt.disabled) {
log.info(
`[${curIdx}/${pipeline.length}] Skipping ${pipelineElt.name} ${pipelineEltType} [disabled]`
)
continue
}
let extra = pipelineElt.extra