@firebase/analytics
Advanced tools
Comparing version 0.2.3-canary.344d063 to 0.2.3-canary.94ffe75
@@ -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.344d063", | ||
"version": "0.2.3-canary.94ffe75", | ||
"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.344d063", | ||
"@firebase/app-types": "0.4.6-canary.344d063" | ||
"@firebase/app": "0.4.21-canary.94ffe75", | ||
"@firebase/app-types": "0.4.6-canary.94ffe75" | ||
}, | ||
"dependencies": { | ||
"@firebase/analytics-types": "0.2.2-canary.344d063", | ||
"@firebase/installations": "0.3.2-canary.344d063", | ||
"@firebase/util": "0.2.31-canary.344d063", | ||
"@firebase/analytics-types": "0.2.2-canary.94ffe75", | ||
"@firebase/installations": "0.3.2-canary.94ffe75", | ||
"@firebase/util": "0.2.31-canary.94ffe75", | ||
"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
169371
+ Added@firebase/analytics-types@0.2.2-canary.94ffe75(transitive)
+ Added@firebase/app@0.4.21-canary.94ffe75(transitive)
+ Added@firebase/app-types@0.4.6-canary.94ffe75(transitive)
+ Added@firebase/installations@0.3.2-canary.94ffe75(transitive)
+ Added@firebase/installations-types@0.2.1-canary.94ffe75(transitive)
+ Added@firebase/logger@0.1.28-canary.94ffe75(transitive)
+ Added@firebase/util@0.2.31-canary.94ffe75(transitive)
- Removed@firebase/analytics-types@0.2.2-canary.344d063(transitive)
- Removed@firebase/app@0.4.21-canary.344d063(transitive)
- Removed@firebase/app-types@0.4.6-canary.344d063(transitive)
- Removed@firebase/installations@0.3.2-canary.344d063(transitive)
- Removed@firebase/installations-types@0.2.1-canary.344d063(transitive)
- Removed@firebase/logger@0.1.28-canary.344d063(transitive)
- Removed@firebase/util@0.2.31-canary.344d063(transitive)