Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/app-compat

Package Overview
Dependencies
Maintainers
4
Versions
1192
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.08bb87b9f to 0.2.38-canary.16015723b

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.08bb87b9f";
const version = "0.2.38-canary.16015723b";

@@ -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.08bb87b9f";
var version = "0.2.38-canary.16015723b";

@@ -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.08bb87b9f";
var version = "0.2.38-canary.16015723b";

@@ -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.08bb87b9f";
var version = "0.2.38-canary.16015723b";

@@ -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.08bb87b9f";
const version = "0.2.38-canary.16015723b";

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

{
"name": "@firebase/app-compat",
"version": "0.2.38-canary.08bb87b9f",
"version": "0.2.38-canary.16015723b",
"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.08bb87b9f",
"@firebase/util": "1.9.7-canary.08bb87b9f",
"@firebase/logger": "0.4.2-canary.08bb87b9f",
"@firebase/component": "0.6.8-canary.08bb87b9f",
"@firebase/app": "0.10.8-canary.16015723b",
"@firebase/util": "1.9.7-canary.16015723b",
"@firebase/logger": "0.4.2-canary.16015723b",
"@firebase/component": "0.6.8-canary.16015723b",
"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