@firebase/app-compat
Advanced tools
Comparing version 0.2.38 to 0.2.39-20240813205648
@@ -1,2 +0,2 @@ | ||
import { ErrorFactory, contains, deepExtend, createSubscribe, isBrowser } from '@firebase/util'; | ||
import { ErrorFactory, contains, deepExtend, createSubscribe, getGlobal } from '@firebase/util'; | ||
import { Component } from '@firebase/component'; | ||
@@ -372,3 +372,3 @@ import * as modularAPIs from '@firebase/app'; | ||
const name = "@firebase/app-compat"; | ||
const version = "0.2.38"; | ||
const version = "0.2.39-20240813205648"; | ||
@@ -412,18 +412,25 @@ /** | ||
*/ | ||
// Firebase Lite detection | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
if (isBrowser() && window.firebase !== undefined) { | ||
logger.warn(` | ||
Warning: Firebase is already defined in the global scope. Please make sure | ||
Firebase library is only loaded once. | ||
`); | ||
// eslint-disable-next-line | ||
const sdkVersion = window.firebase.SDK_VERSION; | ||
if (sdkVersion && sdkVersion.indexOf('LITE') >= 0) { | ||
try { | ||
const globals = getGlobal(); | ||
// Firebase Lite detection | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
if (globals.firebase !== undefined) { | ||
logger.warn(` | ||
Warning: You are trying to load Firebase while using Firebase Performance standalone script. | ||
You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code. | ||
Warning: Firebase is already defined in the global scope. Please make sure | ||
Firebase library is only loaded once. | ||
`); | ||
// eslint-disable-next-line | ||
const sdkVersion = globals.firebase | ||
.SDK_VERSION; | ||
if (sdkVersion && sdkVersion.indexOf('LITE') >= 0) { | ||
logger.warn(` | ||
Warning: You are trying to load Firebase while using Firebase Performance standalone script. | ||
You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code. | ||
`); | ||
} | ||
} | ||
} | ||
catch (_a) { | ||
// ignore errors thrown by getGlobal | ||
} | ||
const firebase = firebase$1; | ||
@@ -430,0 +437,0 @@ registerCoreComponents(); |
@@ -1,2 +0,2 @@ | ||
import { ErrorFactory, contains, deepExtend, createSubscribe, isBrowser } from '@firebase/util'; | ||
import { ErrorFactory, contains, deepExtend, createSubscribe, getGlobal } from '@firebase/util'; | ||
import { __assign } from 'tslib'; | ||
@@ -393,3 +393,3 @@ import { Component } from '@firebase/component'; | ||
var name = "@firebase/app-compat"; | ||
var version = "0.2.38"; | ||
var version = "0.2.39-20240813205648"; | ||
@@ -433,12 +433,19 @@ /** | ||
*/ | ||
// Firebase Lite detection | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
if (isBrowser() && window.firebase !== undefined) { | ||
logger.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n "); | ||
// eslint-disable-next-line | ||
var sdkVersion = window.firebase.SDK_VERSION; | ||
if (sdkVersion && sdkVersion.indexOf('LITE') >= 0) { | ||
logger.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n "); | ||
try { | ||
var globals = getGlobal(); | ||
// Firebase Lite detection | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
if (globals.firebase !== undefined) { | ||
logger.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n "); | ||
// eslint-disable-next-line | ||
var sdkVersion = globals.firebase | ||
.SDK_VERSION; | ||
if (sdkVersion && sdkVersion.indexOf('LITE') >= 0) { | ||
logger.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n "); | ||
} | ||
} | ||
} | ||
catch (_a) { | ||
// ignore errors thrown by getGlobal | ||
} | ||
var firebase = firebase$1; | ||
@@ -445,0 +452,0 @@ registerCoreComponents(); |
@@ -414,3 +414,3 @@ 'use strict'; | ||
var name = "@firebase/app-compat"; | ||
var version = "0.2.38"; | ||
var version = "0.2.39-20240813205648"; | ||
@@ -454,12 +454,19 @@ /** | ||
*/ | ||
// Firebase Lite detection | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
if (util.isBrowser() && window.firebase !== undefined) { | ||
logger.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n "); | ||
// eslint-disable-next-line | ||
var sdkVersion = window.firebase.SDK_VERSION; | ||
if (sdkVersion && sdkVersion.indexOf('LITE') >= 0) { | ||
logger.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n "); | ||
try { | ||
var globals = util.getGlobal(); | ||
// Firebase Lite detection | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
if (globals.firebase !== undefined) { | ||
logger.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n "); | ||
// eslint-disable-next-line | ||
var sdkVersion = globals.firebase | ||
.SDK_VERSION; | ||
if (sdkVersion && sdkVersion.indexOf('LITE') >= 0) { | ||
logger.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n "); | ||
} | ||
} | ||
} | ||
catch (_a) { | ||
// ignore errors thrown by getGlobal | ||
} | ||
var firebase = firebase$1; | ||
@@ -466,0 +473,0 @@ registerCoreComponents(); |
@@ -317,3 +317,3 @@ import * as modularAPIs from '@firebase/app'; | ||
var name$1 = "@firebase/app-compat"; | ||
var version = "0.2.38"; | ||
var version = "0.2.39-20240813205648"; | ||
@@ -320,0 +320,0 @@ /** |
@@ -295,3 +295,3 @@ import * as modularAPIs from '@firebase/app'; | ||
const name$1 = "@firebase/app-compat"; | ||
const version = "0.2.38"; | ||
const version = "0.2.39-20240813205648"; | ||
@@ -298,0 +298,0 @@ /** |
{ | ||
"name": "@firebase/app-compat", | ||
"version": "0.2.38", | ||
"version": "0.2.39-20240813205648", | ||
"description": "The primary entrypoint to the Firebase JS SDK", | ||
@@ -5,0 +5,0 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261950
3422