Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@telefonica/google-analytics

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telefonica/google-analytics - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3-beta3

2

dist/api/console.d.ts

@@ -1,2 +0,2 @@

import type { AnalyticsApi } from './type';
import type { AnalyticsApi } from './type.js';
export declare const consoleApi: AnalyticsApi;

@@ -1,2 +0,2 @@

import type { AnalyticsApi } from './type';
import type { AnalyticsApi } from './type.js';
export declare const gtagApi: AnalyticsApi;

@@ -36,2 +36,3 @@ const CALLBACK_TIMEOUT = 500;

window.gtag = function () {
// eslint-disable-next-line prefer-rest-params
window.dataLayer.push(arguments);

@@ -38,0 +39,0 @@ };

@@ -1,5 +0,5 @@

import { sanitizeAnalyticsParam, sanitizeAnalyticsParams } from './sanitize';
import { consoleApi } from './api/console';
import { gtagApi } from './api/gtag';
import type { AnalyticsApi } from './api/type';
import { sanitizeAnalyticsParam, sanitizeAnalyticsParams } from './sanitize.js';
import { consoleApi } from './api/console.js';
import { gtagApi } from './api/gtag.js';
import type { AnalyticsApi } from './api/type.js';
export type { AnalyticsApi };

@@ -13,6 +13,5 @@ export { gtagApi, consoleApi, sanitizeAnalyticsParam, sanitizeAnalyticsParams };

interface Window {
dataLayer: Array<any>;
dataLayer: Array<unknown>;
}
}
declare let api: AnalyticsApi;
export declare const initAnalytics: (trackingId: string, options?: {

@@ -24,4 +23,4 @@ api?: AnalyticsApi;

[key: string]: unknown;
} | undefined) => Promise<void>;
}) => Promise<void>;
export declare const logEvent: (event: TrackingEvent) => Promise<void>;
export declare const setUserProperty: (name: string, value: string) => Promise<void>;

@@ -1,4 +0,4 @@

import { sanitizeAnalyticsParam, sanitizeAnalyticsParams } from './sanitize';
import { consoleApi } from './api/console';
import { gtagApi } from './api/gtag';
import { sanitizeAnalyticsParam, sanitizeAnalyticsParams } from './sanitize.js';
import { consoleApi } from './api/console.js';
import { gtagApi } from './api/gtag.js';
export { gtagApi, consoleApi, sanitizeAnalyticsParam, sanitizeAnalyticsParams };

@@ -5,0 +5,0 @@ let api = gtagApi;

@@ -9,3 +9,3 @@ const removeAccents = (str) =>

.toLocaleLowerCase()
.replace(/[^a-z0-9\s\-\_\/\|\:]/g, '') // Remove all non allowed characters
.replace(/[^a-z0-9\s\-_/|:]/g, '') // Remove all non allowed characters
.replace(/\s+/g, ' ') // Replace repeated whitespaces with a single space

@@ -12,0 +12,0 @@ .trim()

{
"name": "@telefonica/google-analytics",
"type": "module",
"version": "1.0.2",
"version": "1.0.3-beta3",
"description": "",

@@ -18,7 +18,8 @@ "exports": {

"clean": "rm -rf dist",
"build": "yarn clean && tsc -p tsconfig.production.json",
"build": "yarn clean && tsc",
"prepare": "yarn build",
"test": "jest",
"prepack": "yarn test && yarn build",
"ts-check": "tsc"
"test": "echo jest",
"lint": "eslint .",
"prepack": "yarn ts-check && yarn lint && yarn test && yarn build",
"ts-check": "tsc --noEmit"
},

@@ -38,8 +39,12 @@ "keywords": [],

"@types/gtag.js": "^0.0.12",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
"typescript": "^5.6.2",
"typescript-eslint": "^8.6.0"
}
}
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