@firebase/analytics
Advanced tools
Comparing version 0.1.0-canary.e8a3920 to 0.1.0-canary.ed769e8
@@ -8,3 +8,3 @@ 'use strict'; | ||
var firebase = _interopDefault(require('@firebase/app')); | ||
var tslib_1 = require('tslib'); | ||
var tslib = require('tslib'); | ||
require('@firebase/installations'); | ||
@@ -94,5 +94,5 @@ var util = require('@firebase/util'); | ||
function logEvent(gtagFunction, analyticsId, eventName, eventParams, options) { | ||
var params = eventParams; | ||
var params = eventParams || {}; | ||
if (!options || !options.global) { | ||
params = tslib_1.__assign({}, eventParams, { 'send_to': analyticsId }); | ||
params = tslib.__assign(tslib.__assign({}, eventParams), { 'send_to': analyticsId }); | ||
} | ||
@@ -194,6 +194,6 @@ // Workaround for http://b/141370449 - third argument cannot be undefined. | ||
function initializeGAId(app, gtagCore) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return tslib.__awaiter(this, void 0, void 0, function () { | ||
var fid; | ||
var _a; | ||
return tslib_1.__generator(this, function (_b) { | ||
return tslib.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
@@ -200,0 +200,0 @@ case 0: return [4 /*yield*/, app.installations().getId()]; |
@@ -87,5 +87,5 @@ import firebase from '@firebase/app'; | ||
function logEvent(gtagFunction, analyticsId, eventName, eventParams, options) { | ||
var params = eventParams; | ||
var params = eventParams || {}; | ||
if (!options || !options.global) { | ||
params = __assign({}, eventParams, { 'send_to': analyticsId }); | ||
params = __assign(__assign({}, eventParams), { 'send_to': analyticsId }); | ||
} | ||
@@ -92,0 +92,0 @@ // Workaround for http://b/141370449 - third argument cannot be undefined. |
@@ -86,5 +86,5 @@ import firebase from '@firebase/app'; | ||
function logEvent(gtagFunction, analyticsId, eventName, eventParams, options) { | ||
let params = eventParams; | ||
let params = eventParams || {}; | ||
if (!options || !options.global) { | ||
params = Object.assign({}, eventParams, { 'send_to': analyticsId }); | ||
params = Object.assign(Object.assign({}, eventParams), { 'send_to': analyticsId }); | ||
} | ||
@@ -91,0 +91,0 @@ // Workaround for http://b/141370449 - third argument cannot be undefined. |
@@ -25,3 +25,3 @@ /** | ||
*/ | ||
export declare function logEvent(gtagFunction: Gtag, analyticsId: string, eventName: string, eventParams: EventParams, options?: AnalyticsCallOptions): void; | ||
export declare function logEvent(gtagFunction: Gtag, analyticsId: string, eventName: string, eventParams?: EventParams, options?: AnalyticsCallOptions): void; | ||
/** | ||
@@ -28,0 +28,0 @@ * Set screen_name parameter for this Google Analytics ID. |
{ | ||
"name": "@firebase/analytics", | ||
"version": "0.1.0-canary.e8a3920", | ||
"version": "0.1.0-canary.ed769e8", | ||
"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.18-canary.e8a3920", | ||
"@firebase/app-types": "0.4.4-canary.e8a3920" | ||
"@firebase/app": "0.4.18-canary.ed769e8", | ||
"@firebase/app-types": "0.4.4-canary.ed769e8" | ||
}, | ||
"dependencies": { | ||
"@firebase/analytics-types": "0.1.0-canary.e8a3920", | ||
"@firebase/installations": "0.2.7-canary.e8a3920", | ||
"@firebase/util": "0.2.28-canary.e8a3920", | ||
"@firebase/analytics-types": "0.1.0-canary.ed769e8", | ||
"@firebase/installations": "0.2.7-canary.ed769e8", | ||
"@firebase/util": "0.2.28-canary.ed769e8", | ||
"tslib": "1.10.0" | ||
@@ -34,13 +34,13 @@ }, | ||
"devDependencies": { | ||
"@types/chai": "4.2.0", | ||
"@types/chai": "4.2.3", | ||
"@types/mocha": "5.2.7", | ||
"@types/sinon": "7.0.13", | ||
"@typescript-eslint/parser": "2.0.0", | ||
"@typescript-eslint/eslint-plugin": "2.0.0", | ||
"@typescript-eslint/eslint-plugin-tslint": "2.0.0", | ||
"@types/sinon": "7.5.0", | ||
"@typescript-eslint/parser": "2.3.2", | ||
"@typescript-eslint/eslint-plugin": "2.3.2", | ||
"@typescript-eslint/eslint-plugin-tslint": "2.3.2", | ||
"chai": "4.2.0", | ||
"chai-as-promised": "7.1.1", | ||
"eslint": "5.16.0", | ||
"eslint": "6.5.1", | ||
"eslint-plugin-import": "2.18.2", | ||
"mocha": "6.2.0", | ||
"mocha": "6.2.1", | ||
"rollup-plugin-commonjs": "10.1.0", | ||
@@ -50,10 +50,10 @@ "rollup-plugin-json": "4.0.0", | ||
"rollup-plugin-uglify": "6.0.3", | ||
"sinon": "7.4.1", | ||
"sinon": "7.5.0", | ||
"sinon-chai": "3.3.0", | ||
"npm-run-all": "4.1.5", | ||
"nyc": "14.1.1", | ||
"rollup": "1.20.3", | ||
"ts-loader": "6.0.4", | ||
"typescript": "3.5.3", | ||
"webpack": "4.39.3" | ||
"rollup": "1.23.0", | ||
"ts-loader": "6.2.0", | ||
"typescript": "3.6.3", | ||
"webpack": "4.41.0" | ||
}, | ||
@@ -60,0 +60,0 @@ "repository": { |
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
169794
20
1874
+ Added@firebase/analytics-types@0.1.0-canary.ed769e8(transitive)
+ Added@firebase/app@0.4.18-canary.ed769e8(transitive)
+ Added@firebase/app-types@0.4.4-canary.ed769e8(transitive)
+ Added@firebase/installations@0.2.7-canary.ed769e8(transitive)
+ Added@firebase/installations-types@0.1.2-canary.ed769e8(transitive)
+ Added@firebase/logger@0.1.25-canary.ed769e8(transitive)
+ Added@firebase/util@0.2.28-canary.ed769e8(transitive)
- Removed@firebase/analytics-types@0.1.0-canary.e8a3920(transitive)
- Removed@firebase/app@0.4.18-canary.e8a3920(transitive)
- Removed@firebase/app-types@0.4.4-canary.e8a3920(transitive)
- Removed@firebase/installations@0.2.7-canary.e8a3920(transitive)
- Removed@firebase/installations-types@0.1.2-canary.e8a3920(transitive)
- Removed@firebase/logger@0.1.25-canary.e8a3920(transitive)
- Removed@firebase/util@0.2.28-canary.e8a3920(transitive)