# All files / src/common initOpitons.ts

100% Statements 12/12
50% Branches 1/2
100% Functions 1/1
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    151x
    1x

    1x
    1x
    1x

    1x
    1x
    1x
    1x
    1x
    1x

     import { breadcrumb } from '../core/breadcrumb'
    import { transportData } from '../core/transportData'
    import { InitOptions } from '../types/options'
    import { setSilentFlag } from '../utils/browser'
    import { logger } from '../utils/logger'
    import { options as coreOptions } from '../core/options'

    export default function initOptions(Ioptions: InitOptions = {}) {
      setSilentFlag(options)
      breadcrumb.bindOptions(options)
      logger.bindOptions(options.debug)
      transportData.bindOptions(options)
      coreOptions.bindOptions(options)
    }