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

@firebase/analytics

Package Overview
Dependencies
Maintainers
5
Versions
2488
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/analytics - npm Package Compare versions

Comparing version 0.2.3-canary.b236a06 to 0.2.3-canary.cf2be75

6

dist/index.cjs.js

@@ -449,6 +449,6 @@ 'use strict';

extendApp) {
if (!app.options[ANALYTICS_ID_FIELD]) {
var analyticsId = app.options[ANALYTICS_ID_FIELD];
if (!analyticsId) {
throw ERROR_FACTORY.create("no-ga-id" /* NO_GA_ID */);
}
var analyticsId = app.options[ANALYTICS_ID_FIELD];
if (initializedIdPromisesMap[analyticsId] != null) {

@@ -490,3 +490,3 @@ throw ERROR_FACTORY.create("already-exists" /* ALREADY_EXISTS */, {

setAnalyticsCollectionEnabled: function (enabled) {
return setAnalyticsCollectionEnabled(app.options[ANALYTICS_ID_FIELD], enabled);
return setAnalyticsCollectionEnabled(analyticsId, enabled);
}

@@ -493,0 +493,0 @@ };

@@ -443,6 +443,6 @@ import firebase from '@firebase/app';

extendApp) {
if (!app.options[ANALYTICS_ID_FIELD]) {
var analyticsId = app.options[ANALYTICS_ID_FIELD];
if (!analyticsId) {
throw ERROR_FACTORY.create("no-ga-id" /* NO_GA_ID */);
}
var analyticsId = app.options[ANALYTICS_ID_FIELD];
if (initializedIdPromisesMap[analyticsId] != null) {

@@ -484,3 +484,3 @@ throw ERROR_FACTORY.create("already-exists" /* ALREADY_EXISTS */, {

setAnalyticsCollectionEnabled: function (enabled) {
return setAnalyticsCollectionEnabled(app.options[ANALYTICS_ID_FIELD], enabled);
return setAnalyticsCollectionEnabled(analyticsId, enabled);
}

@@ -487,0 +487,0 @@ };

@@ -419,6 +419,6 @@ import firebase from '@firebase/app';

extendApp) {
if (!app.options[ANALYTICS_ID_FIELD]) {
const analyticsId = app.options[ANALYTICS_ID_FIELD];
if (!analyticsId) {
throw ERROR_FACTORY.create("no-ga-id" /* NO_GA_ID */);
}
const analyticsId = app.options[ANALYTICS_ID_FIELD];
if (initializedIdPromisesMap[analyticsId] != null) {

@@ -451,3 +451,3 @@ throw ERROR_FACTORY.create("already-exists" /* ALREADY_EXISTS */, {

setUserProperties: (properties, options) => setUserProperties(wrappedGtagFunction, analyticsId, properties, options),
setAnalyticsCollectionEnabled: enabled => setAnalyticsCollectionEnabled(app.options[ANALYTICS_ID_FIELD], enabled)
setAnalyticsCollectionEnabled: enabled => setAnalyticsCollectionEnabled(analyticsId, enabled)
};

@@ -454,0 +454,0 @@ extendApp({

{
"name": "@firebase/analytics",
"version": "0.2.3-canary.b236a06",
"version": "0.2.3-canary.cf2be75",
"description": "A analytics package for new firebase packages",

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

"peerDependencies": {
"@firebase/app": "0.4.21-canary.b236a06",
"@firebase/app-types": "0.4.6-canary.b236a06"
"@firebase/app": "0.4.21-canary.cf2be75",
"@firebase/app-types": "0.4.6-canary.cf2be75"
},
"dependencies": {
"@firebase/analytics-types": "0.2.2-canary.b236a06",
"@firebase/installations": "0.3.2-canary.b236a06",
"@firebase/util": "0.2.31-canary.b236a06",
"@firebase/analytics-types": "0.2.2-canary.cf2be75",
"@firebase/installations": "0.3.2-canary.cf2be75",
"@firebase/util": "0.2.31-canary.cf2be75",
"tslib": "1.10.0"

@@ -31,0 +31,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