@azure/event-hubs
Version:
Azure Event Hubs SDK for JS.
1 lines • 1.12 kB
Source Map (JSON)
{"version":3,"file":"runtimeInfo-browser.mjs","sourceRoot":"","sources":["../../../src/util/runtimeInfo-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,4BAA4B,cAAc,EAAE,EAAE,CAAC;AACxD,CAAC;AAED,SAAS,cAAc;IACrB,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IACjC,OAAO,SAAS,CAAC,UAAU,CAAC;AAC9B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\ninterface Window {}\ndeclare let self: Window & typeof globalThis & { navigator: Navigator };\n\ninterface Navigator {\n /**\n * Returns a string representing the browser version info.\n */\n appVersion: string;\n}\n\n/**\n * Returns information about the platform this function is being run on.\n * @internal\n */\nexport function getRuntimeInfo(): string {\n return `BROWSER-VERSION; Browser ${getReleaseInfo()}`;\n}\n\nfunction getReleaseInfo(): string {\n if (typeof self === \"undefined\") {\n return \"\";\n }\n\n const navigator = self.navigator;\n return navigator.appVersion;\n}\n"]}