@firebase/analytics
Advanced tools
Comparing version 0.2.3-canary.b236a06 to 0.2.3-canary.ba4eebb
@@ -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.ba4eebb", | ||
"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.ba4eebb", | ||
"@firebase/app-types": "0.4.6-canary.ba4eebb" | ||
}, | ||
"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.ba4eebb", | ||
"@firebase/installations": "0.3.2-canary.ba4eebb", | ||
"@firebase/util": "0.2.31-canary.ba4eebb", | ||
"tslib": "1.10.0" | ||
@@ -37,8 +37,8 @@ }, | ||
"@types/sinon": "7.5.0", | ||
"@typescript-eslint/parser": "2.5.0", | ||
"@typescript-eslint/eslint-plugin": "2.5.0", | ||
"@typescript-eslint/eslint-plugin-tslint": "2.5.0", | ||
"@typescript-eslint/parser": "2.6.0", | ||
"@typescript-eslint/eslint-plugin": "2.6.0", | ||
"@typescript-eslint/eslint-plugin-tslint": "2.6.0", | ||
"chai": "4.2.0", | ||
"chai-as-promised": "7.1.1", | ||
"eslint": "6.5.1", | ||
"eslint": "6.6.0", | ||
"eslint-plugin-import": "2.18.2", | ||
@@ -54,3 +54,3 @@ "mocha": "6.2.2", | ||
"nyc": "14.1.1", | ||
"rollup": "1.25.2", | ||
"rollup": "1.26.2", | ||
"ts-loader": "6.2.1", | ||
@@ -57,0 +57,0 @@ "typescript": "3.6.4", |
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
169371
+ Added@firebase/analytics-types@0.2.2-canary.ba4eebb(transitive)
+ Added@firebase/app@0.4.21-canary.ba4eebb(transitive)
+ Added@firebase/app-types@0.4.6-canary.ba4eebb(transitive)
+ Added@firebase/installations@0.3.2-canary.ba4eebb(transitive)
+ Added@firebase/installations-types@0.2.1-canary.ba4eebb(transitive)
+ Added@firebase/logger@0.1.28-canary.ba4eebb(transitive)
+ Added@firebase/util@0.2.31-canary.ba4eebb(transitive)
- Removed@firebase/analytics-types@0.2.2-canary.b236a06(transitive)
- Removed@firebase/app@0.4.21-canary.b236a06(transitive)
- Removed@firebase/app-types@0.4.6-canary.b236a06(transitive)
- Removed@firebase/installations@0.3.2-canary.b236a06(transitive)
- Removed@firebase/installations-types@0.2.1-canary.b236a06(transitive)
- Removed@firebase/logger@0.1.28-canary.b236a06(transitive)
- Removed@firebase/util@0.2.31-canary.b236a06(transitive)