Socket
Socket
Sign inDemoInstall

@firebase/app-compat

Package Overview
Dependencies
Maintainers
4
Versions
1151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/app-compat - npm Package Compare versions

Comparing version 0.2.38-canary.b4c5ef3c3 to 0.2.38-canary.e6b852562

35

dist/esm/index.esm2017.js

@@ -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-canary.b4c5ef3c3";
const version = "0.2.38-canary.e6b852562";

@@ -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();

27

dist/esm/index.esm5.js

@@ -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-canary.b4c5ef3c3";
var version = "0.2.38-canary.e6b852562";

@@ -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-canary.b4c5ef3c3";
var version = "0.2.38-canary.e6b852562";

@@ -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-canary.b4c5ef3c3";
var version = "0.2.38-canary.e6b852562";

@@ -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-canary.b4c5ef3c3";
const version = "0.2.38-canary.e6b852562";

@@ -298,0 +298,0 @@ /**

{
"name": "@firebase/app-compat",
"version": "0.2.38-canary.b4c5ef3c3",
"version": "0.2.38-canary.e6b852562",
"description": "The primary entrypoint to the Firebase JS SDK",

@@ -44,6 +44,6 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",

"dependencies": {
"@firebase/app": "0.10.8-canary.b4c5ef3c3",
"@firebase/util": "1.9.7-canary.b4c5ef3c3",
"@firebase/logger": "0.4.2-canary.b4c5ef3c3",
"@firebase/component": "0.6.8-canary.b4c5ef3c3",
"@firebase/app": "0.10.8-canary.e6b852562",
"@firebase/util": "1.9.7-canary.e6b852562",
"@firebase/logger": "0.4.2-canary.e6b852562",
"@firebase/component": "0.6.8-canary.e6b852562",
"tslib": "^2.1.0"

@@ -50,0 +50,0 @@ },

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc