UNPKG

@axiomhq/logging

Version:
1 lines 726 B
{"version":3,"file":"runtime.cjs","sources":["../../src/runtime.ts"],"sourcesContent":["export const Version = __PACKAGE_VERSION__;\n\ndeclare global {\n const __PACKAGE_VERSION__: string;\n var WorkerGlobalScope: any;\n var EdgeRuntime: any;\n}\n\nexport const isWebWorker =\n typeof self !== 'undefined' &&\n typeof globalThis.WorkerGlobalScope !== 'undefined' &&\n self instanceof WorkerGlobalScope;\n\nexport const isBrowser = typeof window !== 'undefined' || isWebWorker;\nexport const isEdgeRuntime = globalThis.EdgeRuntime ? true : false;\n"],"names":[],"mappings":";;AAAO,MAAM,UAAU;AAQV,MAAA,cACX,OAAO,SAAS,eAChB,OAAO,WAAW,sBAAsB,eACxC,gBAAgB;AAEL,MAAA,YAAY,OAAO,WAAW,eAAe;AAC7C,MAAA,gBAAgB,WAAW,cAAc,OAAO;;;;;"}