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

coveo.analytics

Package Overview
Dependencies
Maintainers
16
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coveo.analytics - npm Package Compare versions

Comparing version 2.24.1 to 2.25.1

2

dist/definitions/plugins/BasePlugin.d.ts
import { AnalyticsClient } from '../client/analytics';
import { uuidv4 } from '../client/crypto';
import { v4 as uuidv4 } from 'uuid';
declare type PluginWithId = {

@@ -4,0 +4,0 @@ readonly Id: string;

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

export declare const libVersion = "2.24.1";
export declare const libVersion = "2.25.1";
{
"name": "coveo.analytics",
"version": "2.24.1",
"version": "2.25.1",
"description": "📈 Coveo analytics client (node and browser compatible) ",

@@ -5,0 +5,0 @@ "main": "dist/library.js",

@@ -12,6 +12,6 @@ import {EventType, ViewEventRequest, DefaultEventResponse} from '../events';

const aVisitorId = '123';
const uuidv4Mock = jest.fn();
jest.mock('./crypto', () => ({
uuidv4: () => uuidv4Mock(),
jest.mock('uuid', () => ({
v4: () => aVisitorId,
validate: jest.requireActual('uuid').validate,
v5: jest.requireActual('uuid').v5,
}));

@@ -53,3 +53,2 @@

fetchMock.reset();
uuidv4Mock.mockImplementationOnce(() => aVisitorId);

@@ -56,0 +55,0 @@ client = new CoveoAnalyticsClient({

@@ -25,4 +25,3 @@ import {

import {enhanceViewEvent} from '../hook/enhanceViewEvent';
import {uuidv4} from './crypto';
import {v5 as uuidv5, validate as uuidValidate} from 'uuid';
import {v4 as uuidv4, v5 as uuidv5, validate as uuidValidate} from 'uuid';
import {libVersion} from '../version';

@@ -29,0 +28,0 @@ import {

import coveoua from './simpleanalytics';
import {createAnalyticsClientMock, visitorIdMock} from '../../tests/analyticsClientMock';
import {TestPlugin} from '../../tests/pluginMock';
import {uuidv4} from '../client/crypto';
import {v4 as uuidv4} from 'uuid';
import {PluginOptions} from '../plugins/BasePlugin';

@@ -11,5 +11,3 @@ import {mockFetch} from '../../tests/fetchMock';

const uuidv4Mock = jest.fn();
jest.mock('../client/crypto', () => ({
uuidv4: () => uuidv4Mock(),
}));
jest.mock('uuid', () => ({v4: () => uuidv4Mock()}));

@@ -16,0 +14,0 @@ const {fetchMock, fetchMockBeforeEach} = mockFetch();

import {AnalyticsClient} from '../client/analytics';
import {uuidv4} from '../client/crypto';
import {v4 as uuidv4} from 'uuid';
import {getFormattedLocation} from '../client/location';
import {UAPluginOptions} from '../coveoua/plugins';
import {hasDocument} from '../detector';

@@ -70,3 +69,3 @@

title: hasDocument() ? document.title : '',
encoding: hasDocument() ? document.characterSet :'UTF-8',
encoding: hasDocument() ? document.characterSet : 'UTF-8',
};

@@ -107,3 +106,3 @@ const screenContext = {

/*
When calling getPayload or getParameters, we need to return what would be sent by the API without updating our internal reference.
When calling getPayload or getParameters, we need to return what would be sent by the API without updating our internal reference.
For instance, if you getPayload("pageview"), we want to return the same payload as if you did coveoua("send", "pageview").

@@ -110,0 +109,0 @@ */

@@ -28,3 +28,3 @@ import {ECPlugin, ECPluginEventTypes} from './ec';

client = createAnalyticsClientMock();
ec = new ECPlugin({client, uuidGenerator: someUUIDGenerator});
ec = new ECPlugin({client, uuidGenerator: someUUIDGenerator as any});
});

@@ -31,0 +31,0 @@

import {EventType} from '../events';
import {uuidv4} from '../client/crypto';
import {v4 as uuidv4} from 'uuid';
import {

@@ -4,0 +4,0 @@ convertProductToMeasurementProtocol,

@@ -28,3 +28,3 @@ import {SVCPlugin, SVCPluginEventTypes} from './svc';

client = createAnalyticsClientMock();
svc = new SVCPlugin({client, uuidGenerator: someUUIDGenerator});
svc = new SVCPlugin({client, uuidGenerator: someUUIDGenerator as any});
});

@@ -31,0 +31,0 @@

import {EventType} from '../events';
import {uuidv4} from '../client/crypto';
import {v4 as uuidv4} from 'uuid';
import {convertTicketToMeasurementProtocol} from '../client/measurementProtocolMapping/serviceMeasurementProtocolMapper';

@@ -4,0 +4,0 @@ import {BasePlugin, BasePluginEventTypes, PluginClass, PluginOptions} from './BasePlugin';

@@ -5,3 +5,3 @@ import {WebStorage} from '../storage';

import {PreprocessAnalyticsRequest} from '../client/analyticsRequestClient';
import {uuidv4} from '../client/crypto';
import {v4 as uuidv4} from 'uuid';
import {buildBaseUrl} from '../client/analytics';

@@ -8,0 +8,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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