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
2501
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.1.0-canary.e8a3920 to 0.1.0-canary.ed769e8

dist/index.test.d.ts

10

dist/index.cjs.js

@@ -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

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