{"version":3,"file":"contextUtils.mjs","names":[],"sources":["../../../src/domain/context/contextUtils.ts"],"sourcesContent":["import { getType } from '@openobserve/js-core/util'\nimport type { Context } from '../../tools/serialisation/context'\nimport { display } from '../../tools/display'\n\n/**\n * Simple check to ensure an object is a valid context\n */\nexport function checkContext(maybeContext: unknown): maybeContext is Context {\n  const isValid = getType(maybeContext) === 'object'\n  if (!isValid) {\n    display.error('Unsupported context:', maybeContext)\n  }\n  return isValid\n}\n"],"mappings":";;;;;;AAOA,SAAgB,aAAa,cAAgD;CAC3E,MAAM,UAAU,QAAQ,YAAY,MAAM;CAC1C,IAAI,CAAC,SACH,QAAQ,MAAM,wBAAwB,YAAY;CAEpD,OAAO;AACT"}