New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adv-ui/ma-segment-wrapper

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adv-ui/ma-segment-wrapper - npm Package Compare versions

Comparing version 1.52.0 to 1.53.0

10

CHANGELOG.md
# CHANGELOG
# 1.53.0 (2024-09-23)
### Features
* **Root:** add list viewed sports category from home search ([075ca13](https://github.mpi-internal.com/scmspain/frontend-ma--segment-wrapper/commit/075ca13315ac4d8b221916bac805067cfb136526))
* **Root:** rename events for sport and home origin and add the underscore ([f38302a](https://github.mpi-internal.com/scmspain/frontend-ma--segment-wrapper/commit/f38302aeb0564a95266ece433c776d33fabd71b2))
# 1.52.0 (2024-09-19)

@@ -4,0 +14,0 @@

2

lib/middlewares/destination/optimizely/events/getDetailViewEvents.js

@@ -44,5 +44,5 @@ import { isCarCategory, isConsumerGoodsCategory, isJobsVertical, isMiscVertical, isMotorVertical, isRealStateVertical, isSportsCategory } from '../utils.js';

})) {
optimizelyLeadEvents.push('Detail View Sports');
optimizelyLeadEvents.push('Detail_View_Sports');
}
return optimizelyLeadEvents;
}

@@ -87,3 +87,6 @@ import { isCarCategory, isConsumerGoodsCategory, isInDetail, isJobsVertical, isMiscVertical, isMotorVertical, isRealStateCategory, isSitePrivate, isSportsCategory } from '../utils.js';

});
optimizelyLeadEvents.push.apply(optimizelyLeadEvents, sportsCategoryEventNames);
var transformedSportsCategoryEventNames = sportsCategoryEventNames.map(function (eventName) {
return eventName.replace(/\s+/g, '_');
});
optimizelyLeadEvents.push.apply(optimizelyLeadEvents, transformedSportsCategoryEventNames);
}

@@ -90,0 +93,0 @@ if (isSitePrivate({

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

import { isSportsCategory } from '../utils.js';
var listViewedEvent = 'List Viewed';

@@ -12,5 +13,10 @@ export function getListViewedEvents(_ref) {

if (listViewedFromHome) {
optimizelyEvents.push('List Viewed from home');
optimizelyEvents.push('List_Viewed_Home_Origin');
}
if (properties.hit_origin === 'home_search' && isSportsCategory({
properties: properties
})) {
optimizelyEvents.push('List_Viewed_Sports_Home_Origin');
}
return optimizelyEvents;
}
{
"name": "@adv-ui/ma-segment-wrapper",
"version": "1.52.0",
"version": "1.53.0",
"description": "Milanuncios Segment Wrapper",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -92,3 +92,3 @@ import {expect} from 'chai'

},
optimizelyEvents: ['Detail View', 'Detail View Sports']
optimizelyEvents: ['Detail View', 'Detail_View_Sports']
}

@@ -95,0 +95,0 @@ ]

@@ -19,3 +19,3 @@ import {expect} from 'chai'

{
scope: 'List Viewed from home',
scope: 'List Viewed Home Origin',
payload: {

@@ -29,6 +29,6 @@ obj: {

},
optimizelyEvents: ['List Viewed', 'List Viewed from home']
optimizelyEvents: ['List Viewed', 'List_Viewed_Home_Origin']
},
{
scope: 'List Viewed from home carrusel',
scope: 'List Viewed Home Origin Carrusel',
payload: {

@@ -42,6 +42,6 @@ obj: {

},
optimizelyEvents: ['List Viewed', 'List Viewed from home']
optimizelyEvents: ['List Viewed', 'List_Viewed_Home_Origin']
},
{
scope: 'List Viewed from home category level 1',
scope: 'List Viewed Home Origin Category Level 1',
payload: {

@@ -55,6 +55,6 @@ obj: {

},
optimizelyEvents: ['List Viewed', 'List Viewed from home']
optimizelyEvents: ['List Viewed', 'List_Viewed_Home_Origin']
},
{
scope: 'List Viewed from home category level 2',
scope: 'List Viewed Home Origin Category Level 2',
payload: {

@@ -68,3 +68,16 @@ obj: {

},
optimizelyEvents: ['List Viewed', 'List Viewed from home']
optimizelyEvents: ['List Viewed', 'List_Viewed_Home_Origin']
},
{
scope: 'List Viewed Sports Home Origin',
payload: {
obj: {
event: 'List Viewed',
properties: {
hit_origin: 'home_search',
category_level2: 'Deportes'
}
}
},
optimizelyEvents: ['List Viewed', 'List_Viewed_Home_Origin', 'List_Viewed_Sports_Home_Origin']
}

@@ -71,0 +84,0 @@ ]

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