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

@financial-times/o-tracking

Package Overview
Dependencies
Maintainers
18
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/o-tracking - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

2

package.json
{
"name": "@financial-times/o-tracking",
"version": "4.1.0",
"version": "4.1.1",
"description": "Provides tracking for a product. Tracking requests are sent to the Spoor API.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -6,2 +6,3 @@ import Delegate from 'ftdomdelegate';

import {getTrace} from '../../libs/get-trace.js';
import { Queue } from '../core/queue.js';

@@ -76,4 +77,15 @@ let delegate;

delegate.on('click', elementsToTrack, handleClickEvent(eventData), true);
// Fire all click events that were stored in the old queue used by o-tracking v2
const clickQueue = new Queue('clicks');
sendAllEventsFromQueue(clickQueue);
};
function sendAllEventsFromQueue(queue) {
const nextLink = queue.shift();
if (nextLink) {
core.track(nextLink, () => sendAllEventsFromQueue(queue));
}
}
const click = {

@@ -80,0 +92,0 @@ init

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