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

@abtasty/scroll-tracking

Package Overview
Dependencies
Maintainers
13
Versions
56
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 2.0.1 to 3.0.0

dist/form.js

2

dist/main.js

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

var scrollTracking=function(e){"use strict";var n=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},t=DATA.engagementGoal,o=function(){return 100*document.documentElement.scrollTop/(document.body.offsetHeight-window.innerHeight)};return window.addEventListener("scroll",function e(){var r=o();t.forEach(function(o,l){var c=o.percentage;if(r>=c){var i=o.name;t.splice(l,1),0===t.length&&window.removeEventListener("scroll",e),TEST_ID>0?(window.ABTastyEvent(i,null,TEST_ID),n('Engagement goal "'+i+'" sent to test '+TEST_ID+".")):n("Needs ID of the test.")}})}),e.getCurrentScrollPercent=o,e}({});
var widgetMain=function(e){"use strict";var n=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},t=DATA.engagementGoal,o=function(){return 100*(document.body.scrollTop||document.documentElement.scrollTop)/(document.body.scrollHeight-window.innerHeight)};return window.addEventListener("scroll",function e(){var r=o();t.forEach(function(o,l){var c=o.percentage;if(r>=c){var i=o.name;t.splice(l,1),0===t.length&&window.removeEventListener("scroll",e),TEST_ID>0?(window.ABTastyEvent(i,null,TEST_ID),n('Engagement goal "'+i+'" sent to test '+TEST_ID+".")):n("Needs ID of the test.")}})}),e.getCurrentScrollPercent=o,e}({});
{
"name": "@abtasty/scroll-tracking",
"description": "AB Tasty Widget",
"version": "2.0.1",
"version": "3.0.0",
"icon": "icon.png",
"form": "form.html",
"form": "dist/form.js",
"main": "dist/main.js",
"files": [
"icon.png",
"form.html",
"dist/main.js"
"dist"
],

@@ -25,3 +24,2 @@ "repository": "https://gitlab.com/abtasty/widgets/scroll-tracking",

"devDependencies": {
"@abtasty/widget-utils": "^1.5.0",
"babel-core": "^6.26.0",

@@ -31,3 +29,3 @@ "babel-preset-es2015-rollup": "^3.0.0",

"concurrently": "^3.5.0",
"eslint": "^4.6.1",
"eslint": "^4.7.2",
"eslint-config-google": "^0.9.1",

@@ -43,3 +41,6 @@ "jsdom": "^11.2.0",

"rollup-watch": "^4.3.1"
},
"dependencies": {
"@abtasty/widget-utils": "^1.10.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