basant307/AI_Governance_Project
048
1/*2 * Copyright The OpenTelemetry Authors3 *4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 *8 * https://www.apache.org/licenses/LICENSE-2.09 *10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */16// Updates to this file should also be replicated to @opentelemetry/core too.17/**18 * - globalThis (New standard)19 * - self (Will return the current window instance for supported browsers)20 * - window (fallback for older browser implementations)21 * - global (NodeJS implementation)22 * - <object> (When all else fails)23 */24/** only globals that common to node and browsers are allowed */25// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef26export const _globalThis = typeof globalThis === 'object'27 ? globalThis28 : typeof self === 'object'29 ? self30 : typeof window === 'object'31 ? window32 : typeof global === 'object'33 ? global34 : {};35//# sourceMappingURL=globalThis.js.map