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

@abtasty/scroll-tracking

Package Overview
Dependencies
Maintainers
14
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtasty/scroll-tracking - npm Package Compare versions

Comparing version 3.0.4-2 to 3.0.4-3

2

dist/main.js

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

!function(){"use strict";var e=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},n=DATA.engagementGoal;window.checkScrollGoals=function(){var t=100*(document.body.scrollTop||document.documentElement.scrollTop)/(document.body.scrollHeight-window.innerHeight);n.forEach(function(o,s){var i=o.percentage;if(t>=i){var l=o.name;n.splice(s,1),0===n.length&&window.removeEventListener("scroll",window.checkScrollGoals),TEST_ID>0?(window.ABTastyEvent(l,null,TEST_ID),e('Engagement goal "'+l+'" sent to test '+TEST_ID+".")):e("Needs ID of the test.")}})},function(e,n){console.log("add event"),function(e){window.ABTastyEventListeners&&(window.ABTastyEventListeners=window.ABTastyEventListeners.filter(function(n){return n.eventName!==e||(console.log("remove event",e),window.removeEventListener(n.eventName,n.listener),!1)}))}(e),setTimeout(function(){window.ABTastyEventListeners||(window.ABTastyEventListeners=[]),console.log("add event push"),window.ABTastyEventListeners.push({eventName:e,listener:n}),window.addEventListener(e,n)},0)}("scroll",window.checkScrollGoals)}();
!function(){"use strict";var e=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},n=DATA.engagementGoal;window.checkScrollGoals=function(){var t=100*(document.body.scrollTop||document.documentElement.scrollTop)/(document.body.scrollHeight-window.innerHeight);n.forEach(function(o,s){var i=o.percentage;if(t>=i){var l=o.name;n.splice(s,1),0===n.length&&window.removeEventListener("scroll",window.checkScrollGoals),TEST_ID>0?(window.ABTastyEvent(l,null,TEST_ID),e('Engagement goal "'+l+'" sent to test '+TEST_ID+".")):e("Needs ID of the test.")}})},function(e,n){!function(e){window.ABTastyEventListeners&&(window.ABTastyEventListeners=window.ABTastyEventListeners.filter(function(n){return n.eventName!==e||(window.removeEventListener(n.eventName,n.listener),!1)}))}(e),setTimeout(function(){window.ABTastyEventListeners||(window.ABTastyEventListeners=[]),window.ABTastyEventListeners.push({eventName:e,listener:n}),window.addEventListener(e,n)},0)}("scroll",window.checkScrollGoals)}();
{
"name": "@abtasty/scroll-tracking",
"description": "AB Tasty Widget",
"version": "3.0.4-2",
"version": "3.0.4-3",
"icon": "icon.png",

@@ -6,0 +6,0 @@ "form": "dist/form.js",

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