@firebase/analytics
Advanced tools
Comparing version 0.2.3 to 0.2.4-0
@@ -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", | ||
"version": "0.2.4-0", | ||
"description": "A analytics package for new firebase packages", | ||
@@ -27,3 +27,3 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"@firebase/analytics-types": "0.2.2", | ||
"@firebase/installations": "0.3.2", | ||
"@firebase/installations": "0.3.3-0", | ||
"@firebase/util": "0.2.31", | ||
@@ -30,0 +30,0 @@ "tslib": "1.10.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
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
169280
+ Added@firebase/installations@0.3.3-0(transitive)
- Removed@firebase/installations@0.3.2(transitive)