How to use the ern-container-transformer.isTransformer function in ern-container-transformer

To help you get started, we’ve selected a few ern-container-transformer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electrode-io / electrode-native / ern-orchestrator / src / runContainerPipeline.ts View on Github external
}: {
  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

ern-container-transformer

Electrode Native Container Transformer

Apache-2.0
Latest version published 2 months ago

Package Health Score

69 / 100
Full package analysis